writing equation problem

Problems with syntax of GAMS
Post Reply
prodigy1991
User
User
Posts: 1
Joined: 4 weeks ago

writing equation problem

Post by prodigy1991 » 4 weeks ago

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: 219
Joined: 2 years ago

Re: writing equation problem

Post by Renger » 4 weeks ago

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

Post Reply