Hello everyone
I am having issues with the current acados head version when trying to built mpc interface for simulink:
- Acados with Matlab (R2018b, 2020b, 2023b)
- Casadi 3.3.5
- minGW64 6.3
- CMAKE 3.26
→ all default examples are working as intended
The problem is that there are much less and also different mex files compiled (compared to working revision from 14/06) when executing the main build script which then results in the following issue:
Error using acados_ocp/generate_c_code
If you want to provide simulink options, put it in the constructor of acados_ocp.
Error in generateSfunction (line 30)
ocp.generate_c_code(simulink_opts);
The error is refered to acados\interfaces\acados_matlab_octave\acados_ocp()
(line 228).
There are definitely simulink options defined which are also present in the workspace before the error event. Options are listed below:
When line 228 is commented out the build script is atleast executed without errors but then there are strange things happening in the simulink model (returned signals from sfunction solver model (ultraj
/xtraj
) will be disconnected during compiling as corresponding inputs disappear and also some controls are not working properly anymore).
I invested much time oberving the problem, but without any success.
Thanks in advance and feel free to ask for more information on the problem, if needed.
Cheers,
Marius