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/11/24 02:10:59
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)