lingo程序错误1017model:sets:question(/1..i/):x,y;endsetsinit:x(1)=0;y(1)=0;endinit[obj] max=@sum(link(i,j):c(i))@for(question:(min(@sqrt((x(i)-x(i1))^2+(y(i)-y(j))^2))>=z););@for(question:(max(@sqrt((x(i)-x(i1))^2+(y(i)-y(j))^2))
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/25 23:06:41
lingo程序错误1017model:sets:question(/1..i/):x,y;endsetsinit:x(1)=0;y(1)=0;endinit[obj] max=@sum(link(i,j):c(i))@for(question:(min(@sqrt((x(i)-x(i1))^2+(y(i)-y(j))^2))>=z););@for(question:(max(@sqrt((x(i)-x(i1))^2+(y(i)-y(j))^2))
lingo程序错误1017
model:
sets:
question(/1..i/):x,y;
endsets
init:
x(1)=0;
y(1)=0;
endinit
[obj] max=@sum(link(i,j):c(i))
@for(question:(min(@sqrt((x(i)-x(i1))^2+(y(i)-y(j))^2))>=z););
@for(question:(max(@sqrt((x(i)-x(i1))^2+(y(i)-y(j))^2))
lingo程序错误1017model:sets:question(/1..i/):x,y;endsetsinit:x(1)=0;y(1)=0;endinit[obj] max=@sum(link(i,j):c(i))@for(question:(min(@sqrt((x(i)-x(i1))^2+(y(i)-y(j))^2))>=z););@for(question:(max(@sqrt((x(i)-x(i1))^2+(y(i)-y(j))^2))
question(/1..i/):x,y;
你的程序中数据段从1到i,i是多少?你没有生成i.应该是i的地方错了