Silencing the output on Matlab when using ipopt solver

450 views
Skip to first unread message

Anjana Gayathri Arunachalam

unread,
Jun 18, 2021, 11:26:19 AM6/18/21
to CasADi

Hello!
I am using CasADi's Opti Stack with the ipopt solver on Matlab for a variety of optimisation and optimal control problems. The solver prints out a lot of information to the command window. I used the following commands to reduce the verbosity of the output, but I unable to silence it completely.

opti = casadi.Opti();
solver_options= struct;
solver_options.ipopt.print_level = 0;
solver_options.print_time =0;
solver_options.verbose = 0;
solver_options.ipopt.sb ='yes';

1) Is there any way to completely silence the solver?
2) If not, is there a way we could redirect the output information to a txt file instead?

Thank you.
Sincerely,
Anjana
Reply all
Reply to author
Forward
0 new messages