LINGO程序总是有问题model:sets:entrance/1/:x,y;endsetsinit:x=0;y=0;endinit[OBJ]min = ((45-x(i))^2+y(i)^2)^(1/2)+((35-x(i))^2+(100-y(i))^2)^(1/2)+((120-x(i))^2+(100-y(i))^2)^(1/2);((45-x(i))^2+y(i)^2)^(1/2)+((35-x(i))^2+(100-y(i))^2)^(1/2)+30
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/16 07:18:39
LINGO程序总是有问题model:sets:entrance/1/:x,y;endsetsinit:x=0;y=0;endinit[OBJ]min = ((45-x(i))^2+y(i)^2)^(1/2)+((35-x(i))^2+(100-y(i))^2)^(1/2)+((120-x(i))^2+(100-y(i))^2)^(1/2);((45-x(i))^2+y(i)^2)^(1/2)+((35-x(i))^2+(100-y(i))^2)^(1/2)+30
LINGO程序总是有问题
model:
sets:
entrance/1/:x,y;
endsets
init:
x=0;
y=0;
endinit
[OBJ]min = ((45-x(i))^2+y(i)^2)^(1/2)+((35-x(i))^2+(100-y(i))^2)^(1/2)+((120-x(i))^2+(100-y(i))^2)^(1/2);
((45-x(i))^2+y(i)^2)^(1/2)+((35-x(i))^2+(100-y(i))^2)^(1/2)+30
LINGO程序总是有问题model:sets:entrance/1/:x,y;endsetsinit:x=0;y=0;endinit[OBJ]min = ((45-x(i))^2+y(i)^2)^(1/2)+((35-x(i))^2+(100-y(i))^2)^(1/2)+((120-x(i))^2+(100-y(i))^2)^(1/2);((45-x(i))^2+y(i)^2)^(1/2)+((35-x(i))^2+(100-y(i))^2)^(1/2)+30
model:
sets:
entrance/1/:x,y;
endsets
init:
x=0;
y=0;
endinit
[OBJ]min = @sum(entrance(i):((45-x(i))^2+y(i)^2)^(1/2)+((35-x(i))^2+(100-y(i))^2)^(1/2)+((120-x(i))^2+(100-y(i))^2)^(1/2));
@for(entrance(i):((45-x(i))^2+y(i)^2)^(1/2)+((35-x(i))^2+(100-y(i))^2)^(1/2)+30