About the Matlab function lsqnonlin

Sergei Steshenko sergstesh at yahoo.com
Tue Jul 21 14:27:29 CDT 2009




--- On Tue, 7/21/09, Jaroslav Hajek <highegg at gmail.com> wrote:

> From: Jaroslav Hajek <highegg at gmail.com>
> Subject: Re: About the Matlab function lsqnonlin
> To: "george brida" <george.brida at gmail.com>
> Cc: help-octave at octave.org
> Date: Tuesday, July 21, 2009, 5:12 AM
> On Tue, Jul 21, 2009 at 12:35 PM,
> george brida<george.brida at gmail.com>
> wrote:
> > Hi friends,
> > I would like to ask you if Octave accept the Matlab
> function lsqnonlin. If
> > no, is there any function in Octave having  the same
> goal than lsqnonlin.
> > Thank you.
> > George
> >
> 
> Unconstrained nonlinear least-squares with small residuals
> can be
> handled using fsolve (overdetermined nonlinear eq.
> systems)
> since 3.1.55. For constrained optimization, sqp can be
> used. Another
> option is to use the optim package, which provides a
> plethora of other
> options, most well-known of which is leasqr.
> 
> 
> -- 
> RNDr. Jaroslav Hajek
> computing expert & GNU Octave developer
> Aeronautical Research and Test Institute (VZLU)
> Prague, Czech Republic
> url: www.highegg.matfyz.cz
> 

'leasqr' works fine for me, though there are some quirks - make sure the system is overdetermined, and you'll be fine.

Regards,
  Sergei.


      



More information about the Help-octave mailing list