Help setting time limit on fzero
Afficher commentaires plus anciens
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
Réponses (1)
Walter Roberson
le 17 Mar 2012
0 votes
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 commentaire
Eric
le 17 Mar 2012
Catégories
En savoir plus sur Optimization dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!