Optimization Problem S-Function Will not Compile in Simulink

93 views
Skip to first unread message

Alex Endreson

unread,
Mar 3, 2021, 4:08:39 PM3/3/21
to CasADi
Good Afternoon All,

I am trying to implement a simple optimization problem for a proof of concept inside of MATLAB/Simulink. The MATLAB script I have written is generated into C-Code which is then Mex'd by MATLAB for use in my SIMULINK Model. The problem I am facing is that I am getting the following error when trying to compile in Simulink.

Capture.JPG

The MATLAB script is below, any help would be greatly appreciated.Capture.JPG

Joris Gillis

unread,
Mar 12, 2021, 4:19:16 PM3/12/21
to CasADi
Hi there,

I'm not a Matlab expert, but Mc.c provides merely the mexFunction interface, no S-Function interface for Simulink to pick up automatically..

Best regards,
  Joris
Reply all
Reply to author
Forward
0 new messages