问题描述 问题一: 单中转站选址 解题方法: 解题思路: 第一步, 利用总费用最小的思想, 通过极值求解, 解出中转站坐标的表达式:nα ω==∑∑重心法*00//jjjjjdnjjjjxdxdα ω=*0n∑0//njjjjjdjjjjydydα ωα ω===∑  第二步: 给定中转站坐标初始值, 进行迭代求解 (迭代过程见P1 1 2 , P1 1 3)利用MATLAB编程求解:问题一: 单中转站选址function T=TotalCostx0=0;y0=0;x1=0;y1 =0;a=[0.04,0.04,0.095,0.095,0.095];w=[5000,7000,3500,3000,5500];x=[3,8,2,6,8];y=[8,2,5,4,8];d=[0,0,0,0,0];T0=200;T1 =1 00; w h ile( T1 -T0< = 0)T0= 0;T1 = 0;a1 = 0;a2= 0;b1 = 0;b2= 0;x0= x1 ;y0= y1 ;for i= 1 :5d ( i) = sq rt( ( x0-x( i) ) ^ 2+ ( y0-y( i) ) ^ 2) ;T0= T0+ a( i) * w ( i) * d ( i) ;en d问题一: 单中转站选址for i=1 :5a1 =a1 +a(i)*w(i)*x(i)/d(i);a2=a2+a(i)*w(i)/d(i);b1 =b1 +a(i)*w(i)*y(i)/d(i);b2=b2+a(i)*w(i)/d(i);endx1 =a1 /a2;y1 =b1 /b2;for i=1 :5d(i)=sqrt((x(i)-x1 )^2+(y(i)-y1 )^2);T1 =T1 +a(i)*w(i)*d(i);end T0T1endx1y1  答案: x1 = 5.9393; y1 = 5.31 70