how a parameter used as set in equation

Problems with syntax of GAMS
Post Reply
harunyilmaz
User
User
Posts: 2
Joined: 5 years ago

how a parameter used as set in equation

Post by harunyilmaz »

Hi All,

I am new to use GAMS so I need an advice about my first modelling.

Model needs to use a paramater as set in equation. How can I show it in GAMS?


The related model section as below;

sets
i /1*15/
j /1*10/

parameter as index table
d(i,j)

binary variable;
x(i), y(i,j)

equation;

y(d(i,j),j)=x(d(i,j)) for all j

when I insert the equation into GAMS like above. GAMS warns it needs a set.

Regards,

Harun
User avatar
bussieck
Moderator
Moderator
Posts: 1033
Joined: 7 years ago

Re: how a parameter used as set in equation

Post by bussieck »

I suggest investing a little more time learning before you seek help here, see the rules of the forum (app.php/rules). There is good tutorial material out there. As a starter: https://www.gams.com/latest/docs/UG_MAI ... l_Examples and https://www.youtube.com/user/GAMSLessons.

-Michael
harunyilmaz
User
User
Posts: 2
Joined: 5 years ago

Re: how a parameter used as set in equation

Post by harunyilmaz »

thanks for advices Michael. I pay attention to rules of forum.

After the tutorial and videos, I can ask details if I cannot solve the my question.

regards,
Post Reply