I am a beginner in GAMS and learning to model things using its syntax.
Here is my problem,
Given,
Code: Select all
set i /1,2/
x(i)
y(i);
How can I write constraints equations say, x1 + y2 <= 1 similarly, x2 + y1 <= 1 ?
I know, defining an equation like this
Code: Select all
eq(i).. x(i) + y(i) <= 1
But How can I do x1 + y2 <= 1?
Do I have to use a condition somewhere?