limited sums
Posted: Tue Jan 19, 2021 7:03 pm
Hi,
I have a binary variable y(i,j,k) and i want to add this constraint:
y(i,j,k)+y(i,j,k+1)+y(i,j,k+2) =l= 1; for all i's and j's.
For example
y(1,1,1)+y(1,1,2)+y(1,1,3)<=1;
I'm new to GAMS, sorry if that's a rather silly question
I have a binary variable y(i,j,k) and i want to add this constraint:
y(i,j,k)+y(i,j,k+1)+y(i,j,k+2) =l= 1; for all i's and j's.
For example
y(1,1,1)+y(1,1,2)+y(1,1,3)<=1;
I'm new to GAMS, sorry if that's a rather silly question