Change fminsearch() stepsize
Mostrar comentarios más antiguos
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?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Choose a Solver en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!