Hello everyone, i need to know how to exclude a value in gams; i need to exclude the firts element of j to the equation below
Set
i 'type of oil' /i1*i5/
j 'months' /j1*j6/;
Equation
Balance( i , j );
Balance( i , j ).. A(i, j-1) + B(i,j) =e= D(i,j) + E(i,j);
I need to exclude j1, so the equation only evaluates j2,j3,j4,j5,j6. Please help
Thanks in advance
How to exclude a value
Re: How to exclude a value
Try this:
Balance( i , j )$(j.pos > 1).. A(i, j-1) + B(i,j) =e= D(i,j) + E(i,j);
Balance( i , j )$(j.pos > 1).. A(i, j-1) + B(i,j) =e= D(i,j) + E(i,j);