How to use fmincon inside a level-2 matlab function in Simulink external mode?
1 view (last 30 days)
Show older comments
Hi everybody,
I am trying to use fmincon inside a level-2 matlab function in Simulink real-time, using external mode.
Unfortunately, I got an error since the corresponding .tlc file is not found.
The corresponding 'test_opt_fun.tlc' file for the MATLAB S-function 'test_opt_fun' in block 'test_opt/MATLAB file (level-2) S-Function' must be located in the current working directory, the MATLAB S-function directory 'C:\Users\...\test_level2_matlabfun', or the directory 'C:\Users\...\test_level2_matlabfun\tlc_c'
How can I solve the problem? Is there a way to make Simulink automatically generate the .tlc file?
Or is there any other workaround to be able to use fmincon in Simulink real-time (external mode)?
Thank you very much in advance.
Best,
Lorenzo
0 Comments
Answers (0)
See Also
Categories
Find more on Cluster Configuration in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!