I'm busy adding an interface to OSQP to CasADi, but got stuck.
Using some numerical experiments, I was under the impression that one could set up an osqp instance with sparse matrices and dummy data, and later update that data to meaningful values.
However, I stumbled on a case were this approach does not give identical results compared to just setting up osqp with the proper values right away.
(e.g. https://gist.github.com/jgillis/65e0db7c10a33b275ab7cd7b530ea205)
Did I hit a bug, or was I just lucky with the experiments were it did work out alright?
Fwiw, I also have a case were this 'delayed' approach leads to an unexpected "nonconvex" message..
Many thanks in advance,
Joris Gillis