Hello,
I’m new to Acados and need a bit of help. I’m using an S-Function in Simulink. During simulation, I get a solver status of 1, and I’ve checked the entire system—there are no NaN values anywhere.
To make debugging easier, I started running the solver in MATLAB using the same parameters and constraints. However, in MATLAB, I get a solver status of 2.
I don’t understand why the solver status is different in MATLAB and Simulink with the same setup. What could be the reasons for this? Why might the solver work in MATLAB but not in Simulink?
I would really appreciate any help you can provide.
Thanks in advance!