Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.



Re: termination for function:lsqnonlin
Posted:
Apr 5, 2013 8:00 AM


On 4/4/2013 10:23 AM, Toan Cao wrote: > Hi everyone, > > I am using function "lsqnonlin" for optimization process in which > "LevenbergMarquardt" algorithm is chosen. > Given a cost function F, if i would like to terminate optimization > process and use following equation: > F(k)  F(k1) < alpha*(1+F(k)), where F(k) is cost function value at > iteration k > > How can i set up this option for the function "lsqnonlin"? > Thanks so much for your advice. > Toan
Before you do that you might want to understand what termination conditions lsqnonlin already uses. http://www.mathworks.com/help/optim/ug/tolerancesandstoppingcriteria.html
You can stop any nonlinear solver using any criterion you like by using an output function: http://www.mathworks.com/help/optim/ug/outputfunctions.html
Good luck,
Alan Weiss MATLAB mathematical toolbox documentation



