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

Antworten (2)

Alan Weiss
Alan Weiss am 7 Mai 2013

0 Stimmen

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
gjergj ndoci
gjergj ndoci am 7 Mai 2013

0 Stimmen

thank you sir, now it works correctly ;)

2 Kommentare

Would you then "accept" my answer? Thanks,
Alan Weiss
MATLAB mathematical toolbox documentation
gjergj ndoci
gjergj ndoci am 8 Mai 2013
Bearbeitet: gjergj ndoci am 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

Melden Sie sich an, um zu kommentieren.

Kategorien

Gefragt:

am 7 Mai 2013

Community Treasure Hunt

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

Start Hunting!

Translated by