QP formulation from the MPC toolbox

조회 수: 20 (최근 30일)
Elias Prytz
Elias Prytz 2023년 10월 20일
Hi,
I am studying different QP solvers (e.g. qpOASES, OSQP, DAQP and Gurobi) for a project I am doing at my university. I want to test their capabilites in MPC. I have tested them in the aircraft example and gotten some reasonable results, but now I wonder which QP formulation Matlab's mpc generates.
Does it create some sort of reduced-space condensed QP based on the state-space model? I am guessing this is the case because the hessian (H) of the objective function is only 11x11 for the MPC example mentioned above, with a horizon of 50 (4 states and 2 inputs).
I am guessing that it is not some sort of step-response model formulation (not for the aircraft model at least) because the model has unstable poles.
Does anyone have insights into this?
Thanks

채택된 답변

Emmanouil Tzorakoleftherakis
Emmanouil Tzorakoleftherakis 2023년 10월 23일
편집: Emmanouil Tzorakoleftherakis 2023년 10월 23일
We are currently using the dense formula as you mentioned, but also working on adding support for sparse problems. The following two links may be helpful:
  댓글 수: 3
Muhammad
Muhammad 2024년 5월 29일
편집: Muhammad 2024년 5월 29일
I hope you're doing well. I have one confusion, I designed MPC controller using mpcobj and Simulink MPC Toolbox, I didn't put any constrainst to my MPC controller keeping all the values as default inf,-inf.. Its work well but now my professor asked me one question does your unconstrained MPC uses QP solver or not? If not then what kind of solver matlab/simulink is using for unconstrained mpc?
I checked with mpcobj.Optimizer (without constraint and with constraints its give me same response)
Algorithm: 'active-set'
ActiveSetOptions: [1×1 struct]
InteriorPointOptions: [1×1 struct]
MixedIntegerOptions: [1×1 struct]
MinOutputECR: 0
UseSuboptimalSolution: 0
CustomSolver: 0
CustomSolverCodeGen: 0
Emmanouil Tzorakoleftherakis
Emmanouil Tzorakoleftherakis 2024년 5월 29일
Hi,
I answered your question here.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Refinement에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by