how a parameter used as set in equation
Posted: Sat May 19, 2018 3:25 am
Hi All,
I am new to use GAMS so I need an advice about my first modelling.
Model needs to use a paramater as set in equation. How can I show it in GAMS?
The related model section as below;
sets
i /1*15/
j /1*10/
parameter as index table
d(i,j)
binary variable;
x(i), y(i,j)
equation;
y(d(i,j),j)=x(d(i,j)) for all j
when I insert the equation into GAMS like above. GAMS warns it needs a set.
Regards,
Harun
I am new to use GAMS so I need an advice about my first modelling.
Model needs to use a paramater as set in equation. How can I show it in GAMS?
The related model section as below;
sets
i /1*15/
j /1*10/
parameter as index table
d(i,j)
binary variable;
x(i), y(i,j)
equation;
y(d(i,j),j)=x(d(i,j)) for all j
when I insert the equation into GAMS like above. GAMS warns it needs a set.
Regards,
Harun