lingo 提示错误:missing right parenthesissets:well/w1..w7/:m,n;point/p1..p7/:x,y;links(well,point):pro,dist;endsets目标函数;min=@sum(links:pro*dist);@for(point(J):@sum(well(I):dist(I,J)=sqrt((x(J)-m(I))^2+(y(J)-n(I))^2)));数据;data:m=23 7
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/26 13:25:27
lingo 提示错误:missing right parenthesissets:well/w1..w7/:m,n;point/p1..p7/:x,y;links(well,point):pro,dist;endsets目标函数;min=@sum(links:pro*dist);@for(point(J):@sum(well(I):dist(I,J)=sqrt((x(J)-m(I))^2+(y(J)-n(I))^2)));数据;data:m=23 7
lingo 提示错误:missing right parenthesis
sets:
well/w1..w7/:m,n;
point/p1..p7/:x,y;
links(well,point):pro,dist;
endsets
目标函数;
min=@sum(links:pro*dist);
@for(point(J):
@sum(well(I):dist(I,J)=sqrt((x(J)-m(I))^2+(y(J)-n(I))^2)));
数据;
data:
m=23 7 4 52 36 18 82;
n=39 12 82 31 13 11 66;
x=23 7 4 52 36 18 82;
y=39 12 82 31 13 11 66;
pro=19 39 63 23 26 17 54;
enddata
end
lingo 提示错误:missing right parenthesissets:well/w1..w7/:m,n;point/p1..p7/:x,y;links(well,point):pro,dist;endsets目标函数;min=@sum(links:pro*dist);@for(point(J):@sum(well(I):dist(I,J)=sqrt((x(J)-m(I))^2+(y(J)-n(I))^2)));数据;data:m=23 7
@sum那里括号放错了位置,pro数据个数不够.暂时就发现这两个错误