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

조회 수: 3 (최근 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에서 Problem-Based Optimization Setup에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by