sets:
one/1..6/:a,x;
two/1..5/:b;
three(one,two):c;
endsets
data:
a=
c=
enddata
min=@sum(one(i):a(i)*x(i));
@for(two(j):
@sum(one(i):c(i,j)*x(i))>=b(j));
@sum(one(i):x(i))=14;
@bnd(1,x(2),3);
@bnd(1,x(4),2);
@for(one(i)|i#ne#2 #and# i#ne#4:@bnd(1,x(i),4));
end
==============分割线===========
data部分为输入的数据