Hello everyone,
I am new to GAMS modelling and i cant figure out how to write the equation
X(i,1)=0
any help would be appreciated.
writing equation problem
Re: writing equation problem
Hi
If the 1 in your equation is a set element, you should quote it (set elements that are numbers are treated as strings). Futhermore, the equal sign in equations is =E=.
X(i,"1") =E= 0;
Cheers
Renger
If the 1 in your equation is a set element, you should quote it (set elements that are numbers are treated as strings). Futhermore, the equal sign in equations is =E=.
X(i,"1") =E= 0;
Cheers
Renger
____________________________________
Enjoy modeling even more: Read my blog on modeling at The lazy economist
Enjoy modeling even more: Read my blog on modeling at The lazy economist