Page 1 of 1

writing equation problem

Posted: Wed Nov 14, 2018 12:21 pm
by prodigy1991
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.

Re: writing equation problem

Posted: Thu Nov 15, 2018 8:12 am
by Renger
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