Hello,
I need a help for my GAMS code.
I have sets i and l ;
alias(i,j) and alias (l,k).
Also i have variable ;
y(i,l,j,k).
I want to declare valid_y as in the picture and use it in the following constraints.
con2(j)… sum((i,l,k), y(i,l,j,k)) =e= 1;
con3(i)… sum((j,l,k), y(i,l,j,k)) =e= 1;
con4(i)(ord(i)>1).. sum((l,k,sp), z(i,l,k,sp)) =e= 1;
con5(l,i)(ord(i)>1)… sum((k,sp), z(i,l,k,sp) ) =l= sum((j,k), y(j,k,i,l) );
con6(k,i)$(ord(i)>1)… sum((l,sp), z(i,l,k,sp) ) =l= sum((j,l), y(i,k,j,l) );
How can i do that ? Could you pls help me ?
Regards.