大神!!求解答!!货车载荷问题!!
发布网友
发布时间:2024-08-20 13:22
我来回答
共1个回答
热心网友
时间:2024-08-30 08:44
sets:
s1/1..3/;
s2/1..16/:w;
s12(s1,s2):x;
endsets
data:
w=34 6 8 17 16 5 13 21 25 31 14 13 33 9 25 25;
enddata
min=z;
@for(s1(i):@sum(s2(j):x(i,j)*w(j))<=z);
z<=100;
@for(s2(j):@sum(s1(i):x(i,j))=1);
@for(s12:@bin(x));