equation

Problems with modeling
Post Reply
vivianx
User
User
Posts: 2
Joined: 1 year ago

equation

Post by vivianx »

how can i code this?
image.png
image.png (6.66 KiB) Viewed 968 times
Attachments
image.png
image.png (6.66 KiB) Viewed 968 times
Last edited by vivianx 1 year ago, edited 3 times in total.
Fred
Posts: 373
Joined: 7 years ago

Re: equation

Post by Fred »

E.g. as follows.

Code: Select all

eq(j)$[not sameas(j,'1')]..  sum((k,i)$[not sameas(i,j)], X(i,j,k)) =e= 1;
But instead of sharing a screenshot that provides no context, I suggest that you follow the forum rules and try to provide executable GAMS code (even if it has errors) that demonstrates where exactly you are struggling.

Best,
Fred
Post Reply