GlobalSearch and fmincon options

조회 수: 10 (최근 30일)
Snoopy
Snoopy 2021년 9월 5일
답변: Matt J 2021년 9월 6일
I use GlobalSearch for minizing a function. I use fmincon as the solver. Does using fmincon as the solver mean that I can make use of all options available for fmincon when using GlobalSearch. I wanted to make use of the option 'FunValCheck' using the options specification as
options = optimset('GradObj','off','MaxFunEvals',10000,'Display','on','DerivativeCheck','off','Algorithm','sqp','TolFun',1e-9,'TolX',1e-9,'Display','iter','FunValCheck','on');
However, in this case I do not obtain the vector of parameters minimizing the function, which I call theta_hat. I get what is below, whereas if I do not use 'FunValCheck' I obtain the theta_hat.
Num Pts Best Current Threshold Local Local
Analyzed F-count f(x) Penalty Penalty f(x) exitflag Procedure
Iter Func-count Fval Feasibility Step Length Norm of First-order
step optimality
0 6 2.635536e+05 0.000e+00 1.000e+00 0.000e+00 8.771e+05
0 6 -10 Initial Point
GlobalSearch encountered failures in the user provided functions.
The local solver ran once and it failed in a user supplied function.
ans =
263553.581516057
theta_hat =
[]
  댓글 수: 1
Alan Weiss
Alan Weiss 2021년 9월 6일
I do not understand what you are trying to do by using the FunValCheck option. Please explain why you want to use it, what you hope to accomplish.
Alan Weiss
MATLAB mathematical toolbox documentation

댓글을 달려면 로그인하십시오.

답변 (1개)

Matt J
Matt J 2021년 9월 6일
The FunValCheck option is intended to abort the optimization if your objective function code does not return a valid value. It appears that that has occurred, just as it was designed.

카테고리

Help CenterFile Exchange에서 Global or Multiple Starting Point Search에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by