Hello everyone
I have this constraint:
x(i)+x1(i,j)-x2(j)<=MM*y2(i)
this constraint certify for each i and j=i+1
x(i),x1(i,j) and x2(j) are positive variables.y2(i) is binary variable. MM in a big number
please help me to add it to the constraint.
Thank you
–
To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/HOJE5UMCH7AJ.
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.
Hi Neda
If I understand you correctly, you could write
Alias(i,j);
…
x(i)+x1(i,i+1)-x2(i+1)<=MM*y2(i);
cheers
Renger
From: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] On Behalf Of NEDA
Sent: Dienstag, 4. Dezember 2012 06:57
To: gamsworld@googlegroups.com
Subject: Define j=i+1 for index in GAMS
Hello everyone
I have this constraint:
x(i)+x1(i,j)-x2(j)<=MM*y2(i)
this constraint certify for each i and j=i+1
x(i),x1(i,j) and x2(j) are positive variables.y2(i) is binary variable. MM in a big number
please help me to add it to the constraint.
Thank you
–
To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/HOJE5UMCH7AJ.
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.
Hi Renger,
Thanks for helping.
Best regards
On Tuesday, December 4, 2012 11:28:48 AM UTC+3:30, Renger van Nieuwkoop wrote:
Hi Neda
If I understand you correctly, you could write
Alias(i,j);
…
x(i)+x1(i,i+1)-x2(i+1)<=MM*y2(i);
cheers
Renger
From: gams...@googlegroups.com [mailto:gams...@googlegroups.com] On Behalf Of NEDA
Sent: Dienstag, 4. Dezember 2012 06:57
To: gams...@googlegroups.com
Subject: Define j=i+1 for index in GAMS
Hello everyone
I have this constraint:
x(i)+x1(i,j)-x2(j)<=MM*y2(i)
this constraint certify for each i and j=i+1
x(i),x1(i,j) and x2(j) are positive variables.y2(i) is binary variable. MM in a big number
please help me to add it to the constraint.
Thank you
–
To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/HOJE5UMCH7AJ.
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 view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/H4EB-0oxptcJ.
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.