Optimization Error: How do I set the algorithm of used by a function?

e.g. (R2011a) if I am using 'fmincon', I used options:
options = optimoptions('fmincon','Display','iter','Algorithm','sqp');
I am getting an error:
Undefined function 'optimoptions' for input arguments of type 'char'.

 Respuesta aceptada

Try this:
options=optimset('fmincon');
options.Display='iter';
options.Algorithm='sqp';

Más respuestas (0)

Categorías

Etiquetas

Preguntada:

el 27 de Mzo. de 2018

Comentada:

el 27 de Mzo. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by