[SciPy-User] optimize leastsq

Christopher Jordan-Squire cjordan1 at uw.edu
Wed Jun 29 07:19:04 EDT 2011


It's from the fortran code that leastsq calls. According to comments in the
source,

 info = 1  both actual and predicted relative reductions
c                   in the sum of squares are at most ftol.
c
c         info = 2  relative error between two consecutive iterates
c                   is at most xtol.
c
c         info = 3  conditions for info = 1 and info = 2 both hold.
c
c         info = 4  the cosine of the angle between fvec and any
c                   column of the jacobian is at most gtol in
c                   absolute value.


I presume that means the info says what conditions caused the function
to terminate.


-Chris JS


On Tue, Jun 28, 2011 at 5:03 AM, Johannes Radinger <
johradinger at googlemail.com> wrote:

> Sorry for double posting, but I thought yesterdays posting didn't
> work.
>
> /johannes
>
> On 28 Jun., 14:01, Johannes Radinger <johradin... at googlemail.com>
> wrote:
> > Hello,
> >
> > I just wanted to ask you about the output of leassq.
> > Besides the fitted values I also get an integer flag 1-4.
> >
> > http://docs.scipy.org/doc/scipy/reference/generated/scipy.optimize.le...
> >
> > what does this flag exactly mean and what are the differences between
> > the numbers?
> >
> > Secondly I want to know the accuracy of the fit? is there any value
> > for e.g the residuals etc. or what is the requested tolerance of that
> > algorithm?
> >
> > thanks
> > Johannes
> > _______________________________________________
> > SciPy-User mailing list
> > SciPy-U... at scipy.orghttp://mail.scipy.org/mailman/listinfo/scipy-user
> _______________________________________________
> SciPy-User mailing list
> SciPy-User at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20110629/a1fd46ec/attachment.html>


More information about the SciPy-User mailing list