thanks for the answers!
I am going to try Arne`s solution, sounds easier! haha
2012/8/14 Arne Stolbjerg Drud
Lucas:
The simplest is to add an extra variable, revise eq2, and put bounds on the new variable:
Variable temp; temp.lo = 0; temp.up = 1;
eq2… temp =E= + 1p0 + 1p1 + 1p2 + 1p3;
Good luck
Arne
Arne Stolbjerg Drud
ARKI Consulting & Development A/S
Bagsvaerdvej 246A, DK-2880 Bagsvaerd, Denmark
Phone: (+45) 44 49 03 23, Fax: (+45) 44 49 03 33, email: adrud@arki.dk
From: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] On Behalf Of Lucas Ianni
Sent: Monday, August 13, 2012 7:56 PM
To: gamsworld@googlegroups.com
Subject: How do I put intervals in my functions ?
Variables m, p0, p1, p2, p3;
Equations funct, eq0, eq1, eq2;
funct… m =e= +1p0 +1p1 +1p2 +1p3;
eq0… + 0p0 + 0p1 + 1p2 + 1p3 =e= 0.5;
eq1… + 0p0 + 1p1 + 0p2 + 1p3 =e= 0.5;
eq2… 0 =g= + 1p0 + 1p1 + 1p2 + 1p3 =l= 1 ;
The gams cant solve this program, how could I program problems with statements like 0 <= x <= 1 in GAMS language ?
–
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.