Help setting time limit on fzero
Ältere Kommentare anzeigen
I need to set a time limit or a max number of iterations on the premade function, fzero.m. Can anyone please help me with this?
Thanks, Eric
Antworten (1)
Walter Roberson
am 17 Mär. 2012
0 Stimmen
Use optimset() to create a parameters structure that sets an output function. The output function should check the iterations or the time elapsed and return true if the optimization should terminate.
1 Kommentar
Eric
am 17 Mär. 2012
Kategorien
Mehr zu Problem-Based Optimization Setup finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!