Lingo
问题描述:
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
为什么报错呢.
答
MIN = @SUM(site(i):((a-x(i))^2+(b-y(i))^2)^(1/2));