miosqp icon indicating copy to clipboard operation
miosqp copied to clipboard

Is it possible to deal with the equality constraints with the proposed miosqp?

Open Yangli0505 opened this issue 4 years ago • 2 comments

I have to deal with the equality constraints, but there are no options in the miosqp model and the inputs of setup function only include P, q, A, l, u, i_idx, i_l, i_u. Then, how to deal with equality constraints?If I set l=u, the l≤Ax≤u, is it okay?

Yangli0505 avatar Jun 16 '20 09:06 Yangli0505

Yes, just set the lower and upper bounds equal. The solver will recognise that as an equality and act accordingly.

goulart-paul avatar Jun 16 '20 10:06 goulart-paul

thanks! 祝好!

李洋 清华大学汽车工程系 Department of Automotive Engineering, Tsinghua University Email Address:[email protected] Google scholar:https://scholar.google.com/citations?user=jsO5m0UAAAAJ&hl=en

Paul Goulart [email protected] 于2020年6月16日周二 下午6:10写道:

Yes, just set the lower and upper bounds equal. The solver will recognise that as an equality and act accordingly.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/oxfordcontrol/miosqp/issues/7#issuecomment-644670299, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGKO327YP5IOJ62VK42SR6TRW5AKHANCNFSM4N7OQVXA .

Yangli0505 avatar Jun 18 '20 08:06 Yangli0505