Acados 0.4.1 matlab windows - run minimal_example_ocp.m

Hi eveyone,

I have installed acados version 0.4.1 on my pc but following the manual I have run the minimal_example_ocp.m and it gives the following error:

https://compiling \OCP_tools\acados_0_4_1\acados\examples\acados_matlab_octave\..\..\interfaces\acados_matlab_octave\ocp_get_cost.c
Building with 'MinGW64 Compiler (C)'.
MEX completed successfully.
compiling \OCP_tools\acados_0_4_1\acados\examples\acados_matlab_octave\..\..\interfaces\acados_matlab_octave\ocp_get.c
Building with 'MinGW64 Compiler (C)'.
MEX completed successfully.
compiling \OCP_tools\acados_0_4_1\acados\examples\acados_matlab_octave\..\..\interfaces\acados_matlab_octave\ocp_eval_param_sens.c
Building with 'MinGW64 Compiler (C)'.
MEX completed successfully.
acados MEX interface compiled successfully
not rendering Simulink related templates, as simulink_opts are not specified.
Successfully rendered acados templates!
compiling acados_mex_create_pendulum.c
Building with 'MinGW64 Compiler (C)'.
MEX completed successfully.
compiling acados_mex_free_pendulum.c
Building with 'MinGW64 Compiler (C)'.
MEX completed successfully.
compiling acados_mex_solve_pendulum.c
Building with 'MinGW64 Compiler (C)'.
MEX completed successfully.
compiling acados_mex_set_pendulum.c
Building with 'MinGW64 Compiler (C)'.
MEX completed successfully.
compiling acados_mex_reset_pendulum.c
Building with 'MinGW64 Compiler (C)'.
MEX completed successfully.
delete template...
Invalid MEX-file
'\OCP_tools\acados_0_4_1\acados\examples\acados_matlab_octave\getting_started\c_generated_code\acados_mex_create_pendulum.mexw64':
The specified module could not be found."

Error in pendulum_mex_solver (line 48)
            obj.C_ocp = acados_mex_create_pendulum();

Error in AcadosOcpSolver (line 76)
            obj.t_ocp = mex_solver();

Error in minimal_example_ocp (line 110)
ocp_solver = AcadosOcpSolver(ocp);

Error in run (line 91)
evalin('caller', strcat(script, ';'));.acados.org/

Could you help me to solve the problem?

Hi,

here, there seems to be something off in the bottom of your post, the acados.org part.

Probably it is unrelated though.
Did you successfully run the acados example before?
It seemed so from the message you sent.

Did you properly export the paths as stated in the documentation? See Matlab + Simulink and Octave Interface — acados documentation

Is the file '\OCP_tools\acados_0_4_1\acados\examples\acados_matlab_octave\getting_started\c_generated_code\acados_mex_create_pendulum.mexw64':
located there as it should be?

Do you have another acados installation on your machine that could cause problems/incompatibilities?

Best,
Jonathan

Hi Jonathan,

sorry but for “.acados.org/” was my fault, it is a copy.

Regarding the location of mex file it is where you indicate.
Instead I confim that I have another installation of acados version 0.3.3 that sounds to work well.
I would still like to keep version 0.3.3 and not delete it because I have projects that work with that version and in the same time I would like to install also the versione 0.4.1 to update matlab interface. Do you have any suggestions?