How to suppress all outputs in the terminal when using Python interface

Hi :wave:

I’ve using acados Python interface and allow a few SQP iterations in each prediction. I’ve already set print_level to 0, but there’re outputs in the terminal constantly saying

ocp_nlp_sqp: maximum iterations reached

I don’t want to see these outputs all the time since they’re blocking other important information. Is there anyway to suppress these outputs completely?

Thank you very much.

Best,
Fenglong

Hi,

you can set ACADOS_SILENT=OFF in CMake.

Cheers!

1 Like

Thanks! Will try it :slight_smile: