sets:
lie/1..3/:x;
hang/1/:y;
links(lie,lie):c;
endsets
data:
c=-2 3 1
1 1 0
1 1 0;
enddata
max = x(1)+y(1)-x(3);
@for(lie(i):@sum(lie(j):c(i,j))<=3);
@for(lie(i):@sum(lie(j):c(i,j))<=y+2);
@for(lie(i)|i#le#2:y<=x(i));
@for(lie:@gin(x));
@for(hang:@gin(y));