How to change the optimizer algorithm in MPC Toolbox?

14 vues (au cours des 30 derniers jours)
saman
saman le 18 Avr 2020
Réponse apportée : saman le 19 Avr 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?

Réponse acceptée

saman
saman le 19 Avr 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.

Plus de réponses (0)

Produits


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by