lingo错误29sets:sec/1..15/:a,b,c,d,e,f,g,w;endsetsdata:a,b,c,d
来源:学生作业帮 编辑:大师作文网作业帮 分类:综合作业 时间:2024/11/11 13:01:51
sets:
sec/1..15/:a,b,c,d,e,f,g,w;
endsets
data:
a,b,c,d,e,f,g,w=0 0 1 0 0 0 1 52.4
0 0 1 0 0 0 0 61.9
0 0 1 0 0 0 0 37.2
0 0 0 0 0 0 1 16.3
0 0 0 0 0 0 1 17.7
0 0 0 1 0 0 0 6.9
0 0 0 0 0 1 1 40.8
0 0 1 0 0 0 0 52
0 0 0 0 0 1 0 75.7
0 0 0 0 0 0 1 55.9
0 1 1 0 0 0 0 60
0 0 0 1 0 0 0 46
1 0 0 0 1 0 0 34.3
0 1 0 0 1 1 0 50.7
1 1 0 0 0 0 0 42.1
enddata
max=@sum(sec(i):(c1*a(i)#or#b(i)*c2#or#c(i)*c3#or#d(i)*c4#or#e(i)
*c5#or#f(i)*c6#or#g(i)*c7)*w(i));
9*c1+6.5*c2+20*c3+14.5*c4+19*c5+13*c6+10.5*c7<50;
@bin(c1);@bin(c2);@bin(c3);@bin(c4);@bin(c5);@bin(c6);@bin(c7);
end