help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fsolve with lower and upper boundaries for solutions: lsqnonlin


From: Olaf Till
Subject: Re: fsolve with lower and upper boundaries for solutions: lsqnonlin
Date: Mon, 28 Apr 2014 11:02:23 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

On Sun, Apr 27, 2014 at 10:07:59PM -0700, Toshi wrote:
> Hello !
> 
> I'm looking for a function like fsolve to solve non-linear simultaneous
> equations.
> 
> Actually, I can use fsolve in some cases, but in the other I should use
> something else like lsqnonlin
> to find the solutions in a certain range;  as you know well, lsqnonlin of
> MATLAB can set the lower
> and upper boundaries (lb and ub) like 
> [x, resnorm] = lsqnonlin('myeq', x0, lb, ub).
> 
> Unfortunately, lsqnonlin exists in MATLAB but not in Octave.
> (http://wiki.octave.org/Optimization_package).
> So, could you tell me some function available in Octave which finds
> solutions of non-linear equations 
> in a fixed range ?
> 
> Toshi

See nonlin_residmin in package optim.

lsqnonlin (@ (p) ..., x0, lb, ub)

should be roughly equivalent to

nonlin_residmin (@ (p) ..., x0, optimset ("lbound", lb, "ubound", ub))

but I'd suggest reading 'help nonlin_residmin' anyway.

Olaf

-- 
public key id EAFE0591, e.g. on x-hkp://pool.sks-keyservers.net

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]