LINGO 错误1017min=7.2*(((x1^2+(y1-5)^2)^(1/2))+((x1-15)^2+(y1-y2)^2)^(1/2)+(25+(8-y2)^2)^(1/2)+x1)+21*(25+(8-y2)^2)^(1/2)STx1>0x10y1
问题描述:
LINGO 错误1017
min=7.2*(((x1^2+(y1-5)^2)^(1/2))+((x1-15)^2+(y1-y2)^2)^(1/2)+(25+(8-y2)^2)^(1/2)+x1)+21*(25+(8-y2)^2)^(1/2)
ST
x1>0
x10
y1
答
min=7.2*(((x1^2+(y1-5)^2)^(1/2))+((x1-15)^2+(y1-y2)^2)^(1/2)+(25+(8-y2)^2)^(1/2)+x1)+21*(25+(8-y2)^2)^(1/2);
x10写在约束条件中.
表示变量范围也可以用@bnd函数表示.比如@bnd(5,y2,8);就表示5