lingo编程提示error code 1017 错哪了?model:sets:b/1.2.3/:x,a,v,;endsetsdata:a=400,300,100;v=3,2,1;enddatamax=@sum(b(i):x(i)*a(i));@for(b(i):x(i)v(i))
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/05 11:27:26
lingo编程提示error code 1017 错哪了?model:sets:b/1.2.3/:x,a,v,;endsetsdata:a=400,300,100;v=3,2,1;enddatamax=@sum(b(i):x(i)*a(i));@for(b(i):x(i)v(i))
lingo编程提示error code 1017 错哪了?
model:
sets:b/1.2.3/:x,a,v,;
endsets
data:
a=400,300,100;
v=3,2,1;
enddata
max=@sum(b(i):x(i)*a(i));
@for(b(i):x(i)v(i))
lingo编程提示error code 1017 错哪了?model:sets:b/1.2.3/:x,a,v,;endsetsdata:a=400,300,100;v=3,2,1;enddatamax=@sum(b(i):x(i)*a(i));@for(b(i):x(i)v(i))
标点要非常注意 这不是你平常随便写字 标点可以随便加 这个语法规则是很严格的 改成这样就行了
model:
sets:b/1,2,3/:x,a,v;
endsets
data:
a=400,300,100;
v=3,2,1;
enddata
max=@sum(b(i):x(i)*a(i));
@for(b(i):x(i)*v(i)