lingo error11错误在第四行model:title 投资计划;sets:zq/1..5/:a,b,c,d,e;endsetsdata:a=0 1 1 1 0;b=2 2 1 1 5;c=9 15 4 3 2;d=4.3 2.7 2.5 2.2 4.5;e=1000;enddatamax=@sum(zq:d(i)*x(i));@sum(zq|i#lt#5:x(i))
来源:学生作业帮助网 编辑:作业帮 时间:2024/08/25 15:59:38
![lingo error11错误在第四行model:title 投资计划;sets:zq/1..5/:a,b,c,d,e;endsetsdata:a=0 1 1 1 0;b=2 2 1 1 5;c=9 15 4 3 2;d=4.3 2.7 2.5 2.2 4.5;e=1000;enddatamax=@sum(zq:d(i)*x(i));@sum(zq|i#lt#5:x(i))](/uploads/image/z/7202599-7-9.jpg?t=lingo+error11%E9%94%99%E8%AF%AF%E5%9C%A8%E7%AC%AC%E5%9B%9B%E8%A1%8Cmodel%3Atitle+%E6%8A%95%E8%B5%84%E8%AE%A1%E5%88%92%EF%BC%9Bsets%3Azq%2F1..5%2F%3Aa%2Cb%2Cc%2Cd%2Ce%3Bendsetsdata%3Aa%3D0+1+1+1+0%3Bb%3D2+2+1+1+5%3Bc%3D9+15+4+3+2%3Bd%3D4.3+2.7+2.5+2.2+4.5%3Be%3D1000%3Benddatamax%3D%40sum%28zq%3Ad%28i%29%2Ax%28i%29%29%3B%40sum%28zq%7Ci%23lt%235%3Ax%28i%29%29)
lingo error11错误在第四行model:title 投资计划;sets:zq/1..5/:a,b,c,d,e;endsetsdata:a=0 1 1 1 0;b=2 2 1 1 5;c=9 15 4 3 2;d=4.3 2.7 2.5 2.2 4.5;e=1000;enddatamax=@sum(zq:d(i)*x(i));@sum(zq|i#lt#5:x(i))
lingo error11错误在第四行
model:
title 投资计划;
sets:
zq/1..5/:a,b,c,d,e;
endsets
data:
a=0 1 1 1 0;
b=2 2 1 1 5;
c=9 15 4 3 2;
d=4.3 2.7 2.5 2.2 4.5;
e=1000;
enddata
max=@sum(zq:d(i)*x(i));
@sum(zq|i#lt#5:x(i))
lingo error11错误在第四行model:title 投资计划;sets:zq/1..5/:a,b,c,d,e;endsetsdata:a=0 1 1 1 0;b=2 2 1 1 5;c=9 15 4 3 2;d=4.3 2.7 2.5 2.2 4.5;e=1000;enddatamax=@sum(zq:d(i)*x(i));@sum(zq|i#lt#5:x(i))
错误好多,你再看看,而且约束是不是错的
model:
title 投资计划;
sets:
zq/1..5/:a, b, c, d,x;
endsets
calc:
e=1000;
endcalc
data:
a=0 1 1 1 0;
b=2 2 1 1 5;
c=9 15 4 3 2;
d=4.3 2.7 2.5 2.2 4.5;
enddata
max=@sum(zq:d*x);
@for(zq:@sum(zq:x)