Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn solving verbosity off #117

Open
amir-hoseyn77 opened this issue Sep 18, 2023 · 1 comment
Open

Turn solving verbosity off #117

amir-hoseyn77 opened this issue Sep 18, 2023 · 1 comment

Comments

@amir-hoseyn77
Copy link

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
Copy link
Author

amir-hoseyn77 commented Sep 18, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant