Could you give some background information?
Running the example works on my machine.
Do any of the getting_started examples of acados work for you?
Is there a specific reason to run exactly the example you uploaded?
I suspect it is rather related to your machine somehow.
What operating system are you using?
Was the installation successful?
I am running the example that I send you on Windows 11 with Matlab 2021b.
The installation was succefull and I am able to run the examples in the getting started folder, e.g. minimal_example_ocp.
We orignially planed to use a different toolbox, but do to the reason of embedded compatibility we switched to ACADOS. Therefore, I tried to build the OCP as close as possible to the existing OCP created with a different toolbox. This is why it looks the way it is.
could you try to remove the folders build and c_generated_code in your example folder and run your code again in a fresh started Matlab session?
If that doesn’t work:
Can you tell me which version of acados you are using?
As I said the code works on my machine with the latest master branch of acados, so it is likely an issue specific to your setup somehow.
Also, does Matlab give leave any error message? Or does it just crash?
I have tried to remove the two folders, but Matlab still crashed. I don’t even get an error message, it just crashes.
I am working on the main branch, I have pulled and installed it last Friday.
I think the error is somehow related to the qp_solver ‘full_condensing_qpoases’. When I use a different qp_solver, like ‘full_condensing_hpipm’, it does not crash.
Theminimal_example_ocp also crashed when I select the qp_solver ‘full_condensing_qpoases’
A quick question regarding the installation: On the installation page (Installation — acados documentation), I only followed the instructions for " Windows (for use with Matlab)" and performed the automatic build of acados (minGW), is that correct?
thank you, reinstalling and selecting ‘-DACADOS_WITH_QPOASES=ON’ solved the problem.
I am able to generate the code and use the s-function in Simulink.
However, I am still having some issues. I receive a solver_status = 1;