model:
sets:
cutfa/13/:x;
buj/14/:L,need;
shul(cutfa,buj):n;
endsets
data:
L=4 5 6 8;
need=50 10 20 15;
enddata
min=@sum(cutfa:x);
@for(buj(j):@sum(cutfa(i):n(i,j)x(i))>=need(j));
@for(cutfa(i):@sum(buj(j):n(i,j)L(j))<=19);
@for(cutfa(i):@sum(buj(j):n(i,j)L(j))>=16);
@for(shul:@gin(n));
@for(cutfa:@gin(x));
end
欢迎分享,转载请注明来源:浪漫分享网
评论列表(0条)