LINGO运行错误 too many inequality or equality relationsModel:min=160*(x1/2)^2*3.14+x1*240-160*x5*(x6+1);h1=70-70*x7/(x1/2*@sqrt(45*45-(45-45/4)^2));r1=@sqrt((l1-x7)^2-(h1)^2);l1=@sqrt((45-r1)^2+(h1)^2);x1>=220;x4=2;(40*x4)*(l1-x1/2+45+x7)>=x5;x6>
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/28 08:12:59
LINGO运行错误 too many inequality or equality relationsModel:min=160*(x1/2)^2*3.14+x1*240-160*x5*(x6+1);h1=70-70*x7/(x1/2*@sqrt(45*45-(45-45/4)^2));r1=@sqrt((l1-x7)^2-(h1)^2);l1=@sqrt((45-r1)^2+(h1)^2);x1>=220;x4=2;(40*x4)*(l1-x1/2+45+x7)>=x5;x6>
LINGO运行错误 too many inequality or equality relations
Model:
min=160*(x1/2)^2*3.14+x1*240-160*x5*(x6+1);
h1=70-70*x7/(x1/2*@sqrt(45*45-(45-45/4)^2));
r1=@sqrt((l1-x7)^2-(h1)^2);
l1=@sqrt((45-r1)^2+(h1)^2);
x1>=220;
x4=2;
(40*x4)*(l1-x1/2+45+x7)>=x5;
x6>=0.6;
x6=x7;
x7>=l1;
end
怎么破
LINGO运行错误 too many inequality or equality relationsModel:min=160*(x1/2)^2*3.14+x1*240-160*x5*(x6+1);h1=70-70*x7/(x1/2*@sqrt(45*45-(45-45/4)^2));r1=@sqrt((l1-x7)^2-(h1)^2);l1=@sqrt((45-r1)^2+(h1)^2);x1>=220;x4=2;(40*x4)*(l1-x1/2+45+x7)>=x5;x6>
minB=800+x1+d1+g1/2-y1+a2/2+a3/2+25+x2+d2+g2/2-y2+y1+a3/2-a2/2-50+x3+d3+g3/2-y3+y2-a3/2;
简化为:
min=800+25-50+x1+x2+x3-y3+d1+d2+d3+a3/2+g1/2+g2/2+g3/2;
可见,这里的y3没有约束,即使其他各个变量取0,也不能得到最小值,除非给出y3