Change fminsearch() stepsize
이전 댓글 표시
Dear Sir/Madam
I am trying to use fminsearch() function for certain optimization problem. I hope to change the intial step size of the function.
I tried the following code
options = optimset('fminsearch');
options.DiffMinChange=100;
options.DiffMaxChange=200;
[deltarR1, fmin1]=fminsearch(@XYZR_MeasureDefine,Deltar,options,XYZRcoodinate,BfieldData,NVBfield,[1,1,1]);
%Deltar is the intial guess, Bfield Data, NVfield, [1,1,1] are other constant parameters
In principle , this 'options' should set the stepsize from 100 to 200. The stepsize actually does not change when I run the code.
Any suggestion?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Choose a Solver에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!