writing equation problem

Problems with syntax of GAMS
Post Reply
prodigy1991
User
User
Posts: 1
Joined: 5 years ago

writing equation problem

Post 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.
User avatar
Renger
Posts: 639
Joined: 7 years ago

Re: writing equation problem

Post 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
____________________________________
Enjoy modeling even more: Read my blog on modeling at The lazy economist
Post Reply