Help setting time limit on fzero
1 view (last 30 days)
Show older comments
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
0 Comments
Answers (1)
Walter Roberson
on 17 Mar 2012
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.
See Also
Categories
Find more on Optimization in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!