Code Generation for S-function - Matlab Interface

Hi @Freddy,

I am glad you like the S-function.

I think that the whole x trajectory in the OCP solver is not often needed, so I wont implement that.
However, please feel free to edit the template that is used for the S-function:

In particular, you would have to edit these sections:


Moreover, you will have to edit the Simulink block to adjust for the new outputs.

I hope that helps and isnt too involved…

Best,
Jonathan

1 Like