How to change the optimizer algorithm in MPC Toolbox?

조회 수: 14 (최근 30일)
saman
saman 2020년 4월 18일
답변: saman 2020년 4월 19일
Hi,
I am trying to change the soler for my MPC controller, designed via MPC toolbox.
The documentation for "mpc" command and "QP solver" mention that you can do it with setting Optimizer.Algorithm equal to 'interior-point', But I get the following error:
The "Optimizer" property of an "mpc" object does not allow field "algorithm". Valid field names include "MaxIter", "MinOutputECR", "CustomSolver", "UseWarmStart", and "UseSuboptimalSolution".
What's going on here? Have they erased the field "algorithm" and just forgot to change the documentation?

채택된 답변

saman
saman 2020년 4월 19일
Ok, found the answer myself!
The reason I had problem was that I have Matlab 2019b installed on my machine, but the help page online is written for Matlab 2020, and this is something that apparently they've just added to the features. So in order to make sure that you are using the correct commands, use the help button in your command window instead of relying on the help pages on Mathworks page.
My friend had a similar problem yesterday with Optimization toolbox.

추가 답변 (0개)

카테고리

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

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by