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