Why does cost increase with the number of iterations #552
Replies: 3 comments
-
It does not appear that the solver has converged based on the profile of the primal residual. I don't think you can infer much from the computed cost at a non-optimal and non-feasible point. Are you sure that your problem is feasible? |
Beta Was this translation helpful? Give feedback.
-
Are there any other conditions that need to be met |
Beta Was this translation helpful? Give feedback.
-
It evidently has not reached an optimal point, otherwise the solver would have stopped. The primal residual still appears to be above 0.001. Depending on your stopping criteria, that may not be sufficient. Your plot appears to show that the The conditions that need to be met before the solver stops are explained clearly in the solver documentation here: https://osqp.org/docs/solver/index.html#convergence |
Beta Was this translation helpful? Give feedback.
-
I save the pri_res, eps_prim, dua_res, eps_dual, constraint ( l <= Ax + 1e-3 && Ax - 1e-3 <= u), cost of each iteration, and then plot the curve:
Why does cost increase with the number of iterations ?
I check P matrix is positive definite
Beta Was this translation helpful? Give feedback.
All reactions