MATLAB: Optimization Error: How to set the algorithm of used by a function

options

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'.

Best Answer

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