How to silent cvxopt solver [Python]?

Spectral picture Spectral · Oct 17, 2014 · Viewed 7.2k times · Source

Whenever I run Python cvsopt solver in terminal, it will print:

     pcost       dcost       gap    pres   dres
 0: -8.0742e+00 -7.3715e+00  3e+03  5e+01  4e-15
 1: -6.6241e-01 -7.2834e+00  7e+01  1e+00  3e-15
......
Optimal solution found.

Can I silent this message? Thank you!

Answer

sjm picture sjm · Nov 28, 2014

Just add the following line before calling the solvers:

solvers.options['show_progress'] = False