作业帮 > 数学 > 作业

lingo运行小错误:too many inequality or equality ralation

来源:学生作业帮 编辑:大师作文网作业帮 分类:数学作业 时间:2024/11/19 08:54:06
lingo运行小错误:too many inequality or equality ralation
线性规划问题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;
x1<=500;
x2<=800;
x3<=500;
y1<=200;
y2<=950/4;
d1+d2+d3<=150;
g1+g2+g3<=50;
End
运行结果有误,请教高手应该怎样改进?
lingo运行小错误:too many inequality or equality ralation
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