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'.
0 个评论
采纳的回答
Birdman
2018-3-27
Try this:
options=optimset('fmincon');
options.Display='iter';
options.Algorithm='sqp';
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Nonlinear Optimization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!