lingo code error model:sets:city/1..24/;link(city,city)|&1#gt#&2:d,x;endsetsdata:d=0 1000 0 1000 1000 0 1000 1000 2.6 0 1000 1000 2.2 1000 0 2.2 3.1 5.3 1000 1000 0 1000 3.5 1000 1000 1000 1000 0 1.8 1000 3.3 1000 1.8 1000 1000 0 1000 1000 1000 2.1 1
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/15 10:13:13
lingo code error model:sets:city/1..24/;link(city,city)|&1#gt#&2:d,x;endsetsdata:d=0 1000 0 1000 1000 0 1000 1000 2.6 0 1000 1000 2.2 1000 0 2.2 3.1 5.3 1000 1000 0 1000 3.5 1000 1000 1000 1000 0 1.8 1000 3.3 1000 1.8 1000 1000 0 1000 1000 1000 2.1 1
lingo code error
model:
sets:
city/1..24/;
link(city,city)|&1#gt#&2:d,x;
endsets
data:
d=
0
1000 0
1000 1000 0
1000 1000 2.6 0
1000 1000 2.2 1000 0
2.2 3.1 5.3 1000 1000 0
1000 3.5 1000 1000 1000 1000 0
1.8 1000 3.3 1000 1.8 1000 1000 0
1000 1000 1000 2.1 1.8 1000 1000 1000 0
1000 1000 1000 1000 1000 1000 2.3 1000 1000 0
1.4 1000 1000 1000 1000 1000 1000 2.2 1000 1000 0
1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 0
1000 1000 1000 1000 1000 2.1 1000 1000 1000 1.8 1.5 1.1 0
1000 1000 1000 1000 1000 1000 1000 1000 1.3 1000 1000 1000 1000 0
1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 2.3 1000 0
1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1.1 1000 0
1000 1000 1000 1000 1000 1000 1000 2.9 1000 1000 1000 2.2 1000 1000 1000 1000 0
1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1.4 1.5 0
1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1.8 1000 1000 1000 1000 1000 1000 0
1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1.6 1000 1000 1000 1000 0
1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 0
1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 2.6 1000 1000 0.9 0
1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 3.2 1000 1000 3.2 2.4 1000 0
1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 2 1000 1000 0;
enddata
min=@sum(link:d*x);
@sum(city(j)|j#gt#1:x(j,1))=2;
@for(city(i)|i#gt#1:@sum(city(j)|j#gt#i:x(i,j))+@sum(city(k)|k#lt#i:x(i,k))=2);
@for(link:@bin(x));
end
lingo code error model:sets:city/1..24/;link(city,city)|&1#gt#&2:d,x;endsetsdata:d=0 1000 0 1000 1000 0 1000 1000 2.6 0 1000 1000 2.2 1000 0 2.2 3.1 5.3 1000 1000 0 1000 3.5 1000 1000 1000 1000 0 1.8 1000 3.3 1000 1.8 1000 1000 0 1000 1000 1000 2.1 1
29 数据段或初始段的数据个数不符