model:
title 分配
sets:
pinshu/1..2/:m;
pinwei/1..25/;
link(pinwei,pinshu):c,x;
endsets
data:
m=10,15;
c=5,15,11,5,5,4,4,6,1,4,28,38,13,15,6,4,1,4,11,9,5,10,5,6,7,8,3,7,10,10,1,5,1,3,0,2,2,4,3,9,4,3,0,2,3,6,0,1,1,3;
enddata
[email=min=@sum(link(i,j):x(i,j)*c(i,j]min=@sum(link(i,j):x(i,j)*c(i,j[/email]));
@for(pinwei(i)sum(pinshu(j):c(i,j))=1);
@for(pinshu(j)sum(pinwei(i):c(i,j))=m(i));
@for(link(i,j)bin(x(i,j)));
end |