SETS:COORD/1..6/:X,Y,D;TRANS1/1..6/:T1;TRANS2/1..6/:T2;P1:X1,Y1;P2:X2,Y2;ENDSETSDATA:X Y D=1.25 1.25 38.75 0.75 50.5 4.75 45.75 5 73 6.5 67.25 7.75 11;ENDDATAINIT:X1 Y1=5,1;Y2 Y2=2,7;ENDINITMIN=@SUM(COORD(I):((X(I)-X1)^2+(Y(I)-y1)^2)^0.5*T1(I)+((X(I)
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/18 20:16:45
SETS:COORD/1..6/:X,Y,D;TRANS1/1..6/:T1;TRANS2/1..6/:T2;P1:X1,Y1;P2:X2,Y2;ENDSETSDATA:X Y D=1.25 1.25 38.75 0.75 50.5 4.75 45.75 5 73 6.5 67.25 7.75 11;ENDDATAINIT:X1 Y1=5,1;Y2 Y2=2,7;ENDINITMIN=@SUM(COORD(I):((X(I)-X1)^2+(Y(I)-y1)^2)^0.5*T1(I)+((X(I)
SETS:
COORD/1..6/:X,Y,D;
TRANS1/1..6/:T1;
TRANS2/1..6/:T2;
P1:X1,Y1;
P2:X2,Y2;
ENDSETS
DATA:
X Y D=1.25 1.25 3
8.75 0.75 5
0.5 4.75 4
5.75 5 7
3 6.5 6
7.25 7.75 11;
ENDDATA
INIT:
X1 Y1=5,1;
Y2 Y2=2,7;
ENDINIT
MIN=@SUM(COORD(I):((X(I)-X1)^2+(Y(I)-y1)^2)^0.5*T1(I)+((X(I)-x2)^2+(Y(I)-y2)^2)^0.5*T2(I));
@sum(TRANS1(I):T1(I))
SETS:COORD/1..6/:X,Y,D;TRANS1/1..6/:T1;TRANS2/1..6/:T2;P1:X1,Y1;P2:X2,Y2;ENDSETSDATA:X Y D=1.25 1.25 38.75 0.75 50.5 4.75 45.75 5 73 6.5 67.25 7.75 11;ENDDATAINIT:X1 Y1=5,1;Y2 Y2=2,7;ENDINITMIN=@SUM(COORD(I):((X(I)-X1)^2+(Y(I)-y1)^2)^0.5*T1(I)+((X(I)
你的Y2到底是什么 init段写的根本不对