How to change the optimizer algorithm in MPC Toolbox?

16 Ansichten (letzte 30 Tage)
saman
saman am 18 Apr. 2020
Beantwortet: saman am 19 Apr. 2020
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?

Akzeptierte Antwort

saman
saman am 19 Apr. 2020
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.

Weitere Antworten (0)

Produkte


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by