GepocUS / Spcies

Suite of Predictive Controllers for Industrial Embedded Systems. A Matlab toolbox for automatic code generation of solvers for MPC controllers.
Apache License 2.0
14 stars 2 forks source link

Improve user experience with the system constraints #31

Open pablokrupa opened 1 year ago

pablokrupa commented 1 year ago

As of commit d8e73f9, which merges the online update of MPC ingredients for laxMPC and equMPC, the way in which the user calls the solvers from Matlab has been changes. You now have to provide the system constraints. That is, instead of solver(x, xr, ur), you have to do solver(x, xr, ur, [LBx; LBu], [UBx; UBu]), which is a worst user experience to have by default.

I open this issue to evaluate and work on improving how system constraints are handled in regards to the new online update features of the solvers and the user experience in Matlab (MEX).

The comments in pull request #28 might be useful when working on this issue.