Lingo MODEL:SETS:\x05site/s1..s13/:x,y;ENDSETSDATA:\x05Y= 53.8178 53.8083 53.8334 53.8109 53.8179 53.4324 53.8001 53.6544 53.4599 53.7117 53.7900 53.8085 53.8228;\x05X = 1.5428 1.5311 1.5002 1.7633 1.5325 2.2506 1.7721 1.7800 2.2225 1.8736 1.7640 1.6

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/16 20:31:05
LingoMODEL:SETS:\x05site/s1..s13/:x,y;ENDSETSDATA:\x05Y=53.817853.808353.833453.810953.817953.432453

Lingo MODEL:SETS:\x05site/s1..s13/:x,y;ENDSETSDATA:\x05Y= 53.8178 53.8083 53.8334 53.8109 53.8179 53.4324 53.8001 53.6544 53.4599 53.7117 53.7900 53.8085 53.8228;\x05X = 1.5428 1.5311 1.5002 1.7633 1.5325 2.2506 1.7721 1.7800 2.2225 1.8736 1.7640 1.6
Lingo
MODEL:
SETS:
\x05site/s1..s13/:x,y;
ENDSETS
DATA:
\x05Y= 53.8178 53.8083 53.8334 53.8109 53.8179 53.4324 53.8001 53.6544 53.4599 53.7117 53.7900 53.8085 53.8228;
\x05X = 1.5428 1.5311 1.5002 1.7633 1.5325 2.2506 1.7721 1.7800 2.2225 1.8736 1.7640 1.6715 1.5781;
ENDDATA
MIN = @SUM(site:((a-x(i))^2+(b-y(i))^2)^(1/2));
END
为什么报错呢.

Lingo MODEL:SETS:\x05site/s1..s13/:x,y;ENDSETSDATA:\x05Y= 53.8178 53.8083 53.8334 53.8109 53.8179 53.4324 53.8001 53.6544 53.4599 53.7117 53.7900 53.8085 53.8228;\x05X = 1.5428 1.5311 1.5002 1.7633 1.5325 2.2506 1.7721 1.7800 2.2225 1.8736 1.7640 1.6
MIN = @SUM(site(i):((a-x(i))^2+(b-y(i))^2)^(1/2));