Verbosity in MATLAB

How do you enable verbose solver output in MATLAB?
I have tried both of the following without luck:

ocp_opts.set('print_level', 5);
ocp.set('print_level', 5);

So how would you in general suggest to debug solver errors? I am currently getting the ACADOS_QP_FAILURE error.

Regards Thomas

Hi Thomas,

both work.
The first option just sets the option on creation of the solver.
The second one enables you to change the verbosity between the calls.
Note that the output is printed in the terminal, you start Matlab from, not the Matlab command window.

It is not easy to debug using this output.
So, I would suggest to first carefully check your problem formulation, initialization and also try both HPIPM and qpOASES.