Slow initialization and stuck in initialization phase when using OSQP for quadratic programming #696
Answered
by
goulart-paul
ineffable-sun-xie
asked this question in
Python Interface
-
Beta Was this translation helpful? Give feedback.
Answered by
goulart-paul
Dec 19, 2024
Replies: 1 comment 3 replies
-
How many nonzeros are in A and P? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The number of nonzeros is really large in your problem, and its likely that the issue is that the internal memory allocation and factorisation of the KKT conditions for your problem are consequently very slow. This is partly (maybe entirely) because the internal sparse matrix factorisation method defaults to the QDLDL package, which is a simplicial matrix factorisation method that doesn't always scale well to very large problems.
If you are on an intel platform then you could try using the MKL solver backend instead, or even the indirect / conjugate gradient based linear solver method. I'm not sure if those are in the current release (0.6) though, or only in the 1.0 beta release.