早教吧作业答案频道 -->英语-->
还是lingo问题road(country,country):length,xie,c;endsetsdata:length=0 0 5 9 12 0 12 16 0 228 0 9 15 17 0 11 18 14 220 0 0 7 9 0 7 12 0 170 0 0 0 3 0 0 7 0 00 0 0 0 0 0 0 6 0 014 18 11 17 8 0 9 14 8 160 0 0 10 10 0 0 8 0 110 0 0 0 0 0 0 0 0 00 0 12
题目详情
还是lingo问题
road(country,country):length,xie,c;
endsets
data:
length=
0 0 5 9 12 0 12 16 0 22
8 0 9 15 17 0 11 18 14 22
0 0 0 7 9 0 7 12 0 17
0 0 0 0 3 0 0 7 0 0
0 0 0 0 0 0 0 6 0 0
14 18 11 17 8 0 9 14 8 16
0 0 0 10 10 0 0 8 0 11
0 0 0 0 0 0 0 0 0 0
0 0 12 15 15 0 6 11 0 10
0 0 0 0 15 0 0 11 0 0;
enddata
min=@sum(road:0.66*xie^0.51*length*c );
liu(6)=100; liu(8)=1000;
c(1,1)=0;c(1,2)=0;c(1,6)=0;c(1,9)=0;
c(2,2)=0;c(2,6)=0;
c(3,1)=0;c(3,2)=0;c(3,3)=0;c(3,6)=0;c(3,9)=0;
c(4,1)=0;c(4,2)=0;c(4,3);c(4,4)=0;c(4,6)=0;c(4,7)=0;c(4,9)=0;c(4,10)=0;
c(5,1)=0;c(5,2)=0;c(5,3)=0;c(5,5)=0;c(5,5)=0;c(5,6)=0;c(5,7)=0;c(5,9)=0;c(5,10)=0;
c(6,6)=0;
c(7,1)=0;c(7,2)=0;c(7,3)=0;c(7,6)=0;c(7,7)=0;c(7,9)=0;
c(8,1)=0;c(8,2)=0;c(8,3)=0;c(8,4)=0;c(8,5)=0;c(8,6)=0;c(8,7)=0;c(8,8)=0;c(8,9)=0;c(8,10)=0;
c(9,1)=0;c(9,2)=0;c(9,6)=0;c(9,9)=0;
c(10,1)=0;c(10,2)=0;c(10,3)=0;c(10,4)=0;c(10,6)=0;c(10,7)=0;c(10,9)=0;c(10,10)=0;
@sum(road(i,j)|i#eq#6:xie(i,j)*c(i,j))>100;
@for(country(i)|(i#ne#6)#and#(i#ne#8):liu(i)=@sum(road(j,i):xie(j,i)*c(j,i)+100));
@for(country(i)|(i#ne#6)#and#(i#ne#8):liu(i)=@sum(road(i,j):xie(i,j)*c(i,j)));
@for( road:@bin(c) );
end
road(country,country):length,xie,c;
endsets
data:
length=
0 0 5 9 12 0 12 16 0 22
8 0 9 15 17 0 11 18 14 22
0 0 0 7 9 0 7 12 0 17
0 0 0 0 3 0 0 7 0 0
0 0 0 0 0 0 0 6 0 0
14 18 11 17 8 0 9 14 8 16
0 0 0 10 10 0 0 8 0 11
0 0 0 0 0 0 0 0 0 0
0 0 12 15 15 0 6 11 0 10
0 0 0 0 15 0 0 11 0 0;
enddata
min=@sum(road:0.66*xie^0.51*length*c );
liu(6)=100; liu(8)=1000;
c(1,1)=0;c(1,2)=0;c(1,6)=0;c(1,9)=0;
c(2,2)=0;c(2,6)=0;
c(3,1)=0;c(3,2)=0;c(3,3)=0;c(3,6)=0;c(3,9)=0;
c(4,1)=0;c(4,2)=0;c(4,3);c(4,4)=0;c(4,6)=0;c(4,7)=0;c(4,9)=0;c(4,10)=0;
c(5,1)=0;c(5,2)=0;c(5,3)=0;c(5,5)=0;c(5,5)=0;c(5,6)=0;c(5,7)=0;c(5,9)=0;c(5,10)=0;
c(6,6)=0;
c(7,1)=0;c(7,2)=0;c(7,3)=0;c(7,6)=0;c(7,7)=0;c(7,9)=0;
c(8,1)=0;c(8,2)=0;c(8,3)=0;c(8,4)=0;c(8,5)=0;c(8,6)=0;c(8,7)=0;c(8,8)=0;c(8,9)=0;c(8,10)=0;
c(9,1)=0;c(9,2)=0;c(9,6)=0;c(9,9)=0;
c(10,1)=0;c(10,2)=0;c(10,3)=0;c(10,4)=0;c(10,6)=0;c(10,7)=0;c(10,9)=0;c(10,10)=0;
@sum(road(i,j)|i#eq#6:xie(i,j)*c(i,j))>100;
@for(country(i)|(i#ne#6)#and#(i#ne#8):liu(i)=@sum(road(j,i):xie(j,i)*c(j,i)+100));
@for(country(i)|(i#ne#6)#and#(i#ne#8):liu(i)=@sum(road(i,j):xie(i,j)*c(i,j)));
@for( road:@bin(c) );
end
▼优质解答
答案和解析
说实在的,我看不出你要算什么
liu(6)=100; liu(8)=1000;
这个liu什么用,有什么约束?
还有,你的约束条件是什么,感觉就只有
@sum(road(i,j)|i#eq#6:xie(i,j)*c(i,j))>100;
liu(6)=100; liu(8)=1000;
这个liu什么用,有什么约束?
还有,你的约束条件是什么,感觉就只有
@sum(road(i,j)|i#eq#6:xie(i,j)*c(i,j))>100;
看了 还是lingo问题road(...的网友还看了以下:
口算.510÷10=510÷100=5.1×10=5.1×100=0.12×6=7.8÷3=0.6 2020-04-07 …
直接写出得数:0.5+0.4=0.90.9;1.4+2.7=4.14.1;8.2+3.7=11.9 2020-04-07 …
请帮我算下这个数独的答案,{4,2,0,0,9,0,0,0,0}{5,0,7,3,0,0,0,0, 2020-04-26 …
还是lingo问题road(country,country):length,xie,c;endse 2020-05-13 …
ansys直接建立有限元模型问题finish/clear/prep7n,1,0,0,0n,2,0, 2020-05-17 …
位似图形的变化...在平面坐标系中,依次连接点(0,0)(10,8)(6,0)(10,1)(10, 2020-06-07 …
CAD自定义填充时各个数字代表什么?比如下面的例子*AR-B816C,8x16块砖顺砌,用灰泥接缝 2020-06-14 …
(1+2+3+4+5+6+7+8+9)×(1+2+3+4+5+6+7+8+9)-(9-8-7-6- 2020-07-18 …
数学练习题:(计算)(1)(-40)/(-12);(2)-25.6/(-0.064);(3)5分之 2020-07-18 …
0.1*0.3*0.9+0.2*0.6*1.8+0.3*0.9*2.7/0.1*0.2*0.4+0 2020-07-26 …