필터 지우기
필터 지우기

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개)

카테고리

Help CenterFile Exchange에서 Cluster Configuration에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by