lingo显示错误 求帮忙改一下
发布网友
发布时间:2023-09-15 02:39
我来回答
共1个回答
热心网友
时间:2023-12-09 10:51
model:
sets:
packings/1..7/:t,w,n;
boards/1,2/;
links(packings,boards):volume;
endsets
data:
T=48.7 52 64 48.7 53 61.3 72;
w=4 2 1 2 3 1 0.5;
n=6 4 8 8 7 9 6;
enddata
max=@sum(links(i,J):volume(i,j)*t(i));
@for(packings(i):
@sum(boards(j):volume(i,j))<n(i));
@for(boards(j):
@sum(packings(i):t(i)*volume(i,j))<1020);
@for(boards(j):
@sum(packings(i):w(i)*volume(i,j))<40);
@for(boards(j):
@sum(packings(i)|i#le#3:t(j)*volume(i,j))<302.7);
@for(links:@gin(volume));
end