optimset without effect --- option MaxFunEvals seems to remain unchanged after the options=optimset - command
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Writing the commands
options = optimset('MaxFunEvals',100000,'MaxIter',10000);
optimset('fminsearch')
I receive the answer: Display: 'notify' MaxFunEvals: '200*numberofvariables'
MaxIter: '200*numberofvariables'
TolFun: 1.000000000000000e-04
TolX: 1.000000000000000e-04
FunValCheck: 'off'
and it seems nothing has changed after my optimset command. What did I wrong?
0 Kommentare
Antworten (2)
Steven Lord
am 9 Jun. 2016
The optimset function does NOT make some sort of "global" change, as I believe you expected.
That function creates an options structure that can cause an optimization function to behave differently when that options structure is passed into that optimization function as an input argument. If you don't pass that options structure into the optimization function, the optimization function uses its default options.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Optimization finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!