Modelling condition set

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

Modelling condition set

Post by Philippo »

Hi,

i am trying to modelling a enlarged Knapsack Problem. I have a set I (I1 to I13) and next to i i use j in my equations. I need the condition that always i is lower than j. You can find the related locations of my code down here. I tried so many things but I don't get any solution.

set
I Zones /I1*I13/
;

alias (i,j);

equations

Subst (i,j) z(i,j) =l= subst(i,j)*y(j)
Replace(i) sum(j, z(i,j)) =e= 1;


I would be so grateful for your help.

Best regards,
Philipp
Post Reply