早教吧 育儿知识 作业答案 考试题库 百科 知识分享

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
怎么破
▼优质解答
答案和解析
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