Can I use quadprog solver in an Explicit MPC?
조회 수: 4 (최근 30일)
이전 댓글 표시
Hi,
I have a question regarding to using quadprog solver. Can I use quadprog solver to obtain all the regions for a Explicit MPC?
I have this in my code (thinking that maybe I can use quadprog solver)
% Generate explicit MPC controller
mpcobj.Optimizer.Solver = 'interior-point';
setCustomSolver(mpcobj,'quadprog');
My other question is can I change the cost function that the Explicit MPC will minimize when it will obtain the controller? How?
Thanks in advance
Dave
댓글 수: 0
답변 (1개)
Supraja
2024년 6월 5일
Hello Dave,
I can infer from the question that you want to use the 'quadprog' solver in explicit MPC. Yes, you can use it in an explicit MPC by using it as a custom solver.
For more information, please refer to the documentation here: https://in.mathworks.com/help/mpc/ref/mpc.setcustomsolver.html#:~:text=Configure%20mpcobj%20to%20Use%20quadprog%20as%20Custom%20Solver
For more information related to the minimization of quadprog solver, you can have a look in the documentation link here: https://in.mathworks.com/help/optim/ug/quadprog.html#:~:text=Linear%20Constraints%20and-,Bounds,-Try%20This%20Example
I hope this helps!
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Refinement에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!