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

number of iterations for solving simple convex qp problems #270

Open
222042015 opened this issue Jun 11, 2024 · 1 comment
Open

number of iterations for solving simple convex qp problems #270

222042015 opened this issue Jun 11, 2024 · 1 comment

Comments

@222042015
Copy link

I'm trying to use scs to solve a collection of synthesis convex qp problems. The parameters of the instances are randomly generated. Though, all the problems are successfully solved, the number of reported iterations are all taking values at 75, 50 things like that. For a specific problem, I tried to warm start the solver from different point, however, the number of iteration is still unchanged. Controlling the tolerance for the residuals also would not help. Is there any specific settings that I need to turn off to get the real number of iterations for the solver to converge? Thank you~

@bodono
Copy link
Member

bodono commented Jun 13, 2024

The convergence criteria are only checked every 25 iterations by default in order to save on compute time (since checking the criteria is about the same computational cost as taking a step in the algorithm). I would tighten the tolerances, or try generating hard problems first. If you want to change the 25 parameter to another number, you need to change this line in the code and then recompile the solver.

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

2 participants