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

1 次查看(过去 30 天)
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'.

采纳的回答

Birdman
Birdman 2018-3-27
Try this:
options=optimset('fmincon');
options.Display='iter';
options.Algorithm='sqp';

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Nonlinear Optimization 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by