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?
Best Answer