First I want to thank all the developers for this excellent solver.
I am using OSQP in MPC application with a time-varying model. Hence, I need to update all the matrices and vectors at each call.
Matlab example:
m.update('Px',P,'Px_idx',[],'Ax',A,'Ax_idx',[],'q',q,'l',l,'u',u);
The Px_idx and Ax_idx are empty hence all the elements are updated.
The problem is that the problem cannot be solved due to primal infeasibility. However, when I just replace the update function by setup function:
m.setup('Px',P,'Ax',A,'q',q,'l',l,'u',u);
I can get the correct solution.
But I don't want to call m.setup at each call (quite stupid in MPC).
What is the possible reason for this difference and how can I resolve it?
Thanks,
Yutao
Thank you for the quick reply.
I have attached the file and data needed.
Cheers,
Yutao
--
You received this message because you are subscribed to a topic in the Google Groups "OSQP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/osqp/VlmMAI2Ti1w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to osqp+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osqp/fab1b2e5-f647-4d25-a9ac-13b106d98fb3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.