i dont understad where is my mistake, or what i should do to resolve it:

options = optimset(@fmincon,'Display','iter','Algorithm','interior-point');
result: ??? Error using ==> optimset at 151 Expected argument 1 to be a string parameter name or an options structure created with OPTIMSET.
please help

Réponses (2)

Alan Weiss
Alan Weiss le 7 Mai 2013
As detailed in the function reference page, OPTIMSET does not take an initial argument of the solver name. That syntax is for OPTIMOPTIONS, which was introduced in R2013a.
Alan Weiss
MATLAB mathematical toolbox documentation
thank you sir, now it works correctly ;)

2 commentaires

Would you then "accept" my answer? Thanks,
Alan Weiss
MATLAB mathematical toolbox documentation
gjergj ndoci
gjergj ndoci le 8 Mai 2013
Modifié(e) : gjergj ndoci le 12 Mai 2013
another question, i want to know the deferences that occur betwin: optimal toolbox and knitro? differences on performance, why do we need to use knitro instad of optimal toolbox, in what problems knitro can be more then knitro etc etc
thank you for your advise and help

Connectez-vous pour commenter.

Catégories

Community Treasure Hunt

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

Start Hunting!

Translated by