FORMULATION

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

FORMULATION

Post by AndresGO97 » 4 weeks ago

How can I formulate the following restriction? (in the link I put the image with the restriction)
https://ibb.co/mprOVL
Can you help me please, I do not know the syntax to formulate this, thanks.
Image

User avatar
Renger
Posts: 219
Joined: 2 years ago

Re: FORMULATION

Post by Renger » 4 weeks ago

Hi
How about this:

Code: Select all

alias(i,j);
equations
     eq1(i,k)
     eq2(i,k);
     
 eq1(i,k)..
    sum(j, x(i,j,k)) =E= sum(j, x(j,i,k));
 eq2(i,k)..
    sum(j, x(i,j,k)) =E= y(i,k);   
    
Cheers
Renger

Post Reply