Hy Toschi

I guess one way is to use qpsolve (or qp_solve or quapro), using 0<xi<1 as bounds, and adding the linear constraint x1-x2<0 (or maybe x1+x2 <= 1 )

Does that make sense?

Adrien

On 08/05/2014 03:14, toshi wrote:
Hi!

I'm trying to solve simultaneous equations using Scilab.
The constraints of the variables are like 0 < x1 < x2 < 1.
A program using leastsq shown below does not work:
----------------------------------------------
binf =  [         0,  xopt(1)];
bsup = [xopt(2),          1]
[fopt, xopt] = leastsq(myfunc, 'b',binf,bsup, x0)
----------------------------------------------
Obviously because xopt(1) and xopt(2) are not determined
before calling leastsq but they are used as boundaries.

So, could somebody tell me how to solve this kind of problem ?

toshi



--
View this message in context: 
http://mailinglists.scilab.org/How-can-I-solve-simultaneous-eqs-with-dynamic-boundaries-tp4030445.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users


--
Adrien Vogt-Schilb
Consultant (World Bank) and PhD Candidate (Cired)
1 202 473 7980

_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users

Reply via email to