Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: termination for function:lsqnonlin
Replies: 2   Last Post: Apr 5, 2013 3:03 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Toan Cao

Posts: 52
Registered: 10/15/10
Re: termination for function:lsqnonlin
Posted: Apr 5, 2013 3:03 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Alan_Weiss <aweiss@mathworks.com> wrote in message <kjmec9$lt2$1@newscl01ah.mathworks.com>...
> On 4/4/2013 10:23 AM, Toan Cao wrote:
> > Hi everyone,
> >
> > I am using function "lsqnonlin" for optimization process in which
> > "Levenberg-Marquardt" algorithm is chosen.
> > Given a cost function F, if i would like to terminate optimization
> > process and use following equation:
> > |F(k) - F(k-1)| < 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/tolerances-and-stopping-criteria.html
>
> You can stop any nonlinear solver using any criterion you like by using
> an output function:
> http://www.mathworks.com/help/optim/ug/output-functions.html
>
> Good luck,
>
> Alan Weiss
> MATLAB mathematical toolbox documentation

Hi Alan Weiss,
The second link is so good, it expresses what i am looking for.
Thank you,
Toan



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.