Why do I receive an error when I select "Start Optimization" for a model when using Simulink Reponse Optimization 3.1 (R2006b)

1 vue (au cours des 30 derniers jours)
I have got a control system-based model in Simulink. I then use Simulink Response Optimization to tune the parameters of my controller. When I specify the response requirements and select "Start Optimization" option, then I receive the following error dialog:
ERROR: Error using sldodialogs.DesignOptimizationGroup/openTab (line 83)
ERROR: No default options available for the function 'fmincon'.

Réponse acceptée

MathWorks Support Team
MathWorks Support Team le 23 Oct 2020
Modifié(e) : MathWorks Support Team le 27 Oct 2020
This error can occur if you have installed Simulink Response Optimization 3.1 (R2006b) but do no possess the license. To verify your license for Simulink Response Optimization please type the following command in the MATLAB command window:
which -all optimset
This will find all instances of the function OPTIMSET in your MATLAB Path. Most probably this command will output multiple lines, each line corresponds to one found instance of the function. If Simulink Response Optimization is installed but not correctly licensed one of the lines will read:\n
$MATLABROOT\toolbox\sloptim\sloptim\@ResponseOptimizer\simset.m % ResponseOptimizer method, Has no license available
(Where $MATLABROOT is the base installation directory of MATLAB as returned by typing 'matlabroot' in the MATLAB command window.)
If the product is not correctly licensed, please obtain and install a valid license.
If you find this line without "Has no license available" then Simulink Response Optimization is correclty installed and licensed. In this case the error message is not caused by any licensing issue. In this case, following steps have proven to resolve the issue for few users:
(1) Please verify whether the necessary requirements are installed on the machine -
-> https://www.mathworks.com/support/requirements/product-requirements-platform-availability-list.html#SO
(2) Confirm whether you can checkout the network license, which I presume you have, by typing -
>> license('checkout', feature)
where feature = 'optimization_toolbox' and 'simulink_design_optim'
(3) Type this at the MATLAB command prompt -
>> restoredefaultpath
>> rehash toolboxchache
>> savepath
Note above statements will remove any custom path you may have added to MATLAB path.
(4) Finally, you could try re-installing the toolboxes.

Plus de réponses (0)

Tags

Aucun tag saisi pour le moment.

Produits


Version

R2006b

Community Treasure Hunt

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

Start Hunting!

Translated by