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

3 ビュー (過去 30 日間)
Devdatt Thengdi
Devdatt Thengdi 2018 年 3 月 27 日
コメント済み: Devdatt Thengdi 2018 年 3 月 27 日
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 Center および File ExchangeProblem-Based Optimization Setup についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by