help-octave
[Top][All Lists]
Advanced

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

Re: Re-sending: Setting a range for variables


From: marco atzeri
Subject: Re: Re-sending: Setting a range for variables
Date: Tue, 27 Dec 2011 19:29:58 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0

On 12/27/2011 7:11 PM, Pedro Castro Menezes Xavier de Mello e Silva wrote:

Hello there,

I'm trying to solve a system of 5 nonlinear equations with 5 variables
with octave, but the results are rubbish. I would like to set limits,
such as "x(1) must be smaller than 0" (x(1) is one of the unknowns) so
that the solver don't produce x(1) = 2 as an answer, for instance.

Is there a way to do it using fsolve? I'm googling it for more than 2
hours with no success.

Thanks in advance,

Pedro

try using sqp

www.gnu.org/software/octave/doc/interpreter/Nonlinear-Programming.html

and instead of the root of f(x)=0 look for the minimal of f(x)^2

Regards
Marco


reply via email to

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