osqp / osqp-python

Python interface for OSQP
https://osqp.org/
Apache License 2.0
109 stars 41 forks source link

Turn solving verbosity off #117

Open amir-hoseyn77 opened 1 year ago

amir-hoseyn77 commented 1 year ago

Hi, I run the method OSQP.solve() rapidly in my code and in each solve calling, the OSQP shows the solving log verbose. This makes output inappropriate for me. How to turn off the verbose mode (no print, log in console)?

amir-hoseyn77 commented 1 year ago

I think I found the solution. There is _model that stores all settings, matrices, and info. verbosity can be turned off in _model by this command prob._model.update_verbose(False)
It works in pure python osqp osqppurepy and osqp modules Apply this command after setup problem Because after setting up the _model create workspace that has verbose attribute.