How to use fmincon inside a level-2 matlab function in Simulink external mode?
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Cluster Configuration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!