帮忙看一下这个LINGO程序错在哪里了,比较紧急,感谢大神的帮助!!
max=1000000*X1+1500000*X2+1000000*X3+2000000*X4+500000*X5+1000000*Y1+2000000*Y2+15000...
max = 1000000*X1+1500000*X2+1000000*X3+2000000*X4+500000*X5
+1000000*Y1+2000000*Y2+1500000*Y3+1500000*Y4+1500000*Y5
-50000*X1*X3-75000*X1*X4-70000*X2*X3-60000*X2*X4-100000*X3*X5-35000*X4*X5
-140000*X1*Y3-210000*X1*Y4-196000*X2*Y3-168000*X2*Y4-280000*X3-Y5+98000*X4*Y5
-5000*Y1*Y3-75000*Y1*Y4-70000*Y2*Y3-60000*Y2*Y3-60000*Y2*Y4-10000*Y3*Y5-35000*Y4*Y5
-130000*X1*(1-X3-Y3)-195000*X1*(1-X4-Y4)-182000*X2*(1-X3-Y3)-156000*X2*(1-X4-Y4)
-260000*X3*(1-X5-Y5)-91000*X4*(1-X5-Y5)
-90000*Y1*(1-X3-Y3)-135000*Y1*(1-X4-Y4)-126000*Y2*(1-X3-Y3)-108000*Y2*(1-X4-Y4)
-180000*Y3*(1-X5-Y5)-63000*Y4*(1-X5-Y5)
-100000*(1-X1-Y1)*(1-X3-Y3)-150000*(1-X1-Y1)*(1-X4-Y4)-140000*(1-X2-Y2)*(1-X3-Y3)
-120000*(1-X2-Y2)*(1-X4-Y4)-200000*(1-X3-Y3)*(1-X5-Y5)-70000*(1-X4-Y4)*(1-X5-Y5);
X1+X2+X3+X4+X5≤3;
Y1+Y2+Y3+Y4+Y5≤3;
5-(X1+X2+X3+X4+X5 + Y1+Y2+Y3+Y4+Y5)≤3;
X1+Y1<=1;
X2+Y2<=1;
X3+Y3<=1;
X4+Y4<=1;
X5+Y5<=1;
@bin(X1);@bin(X2);@bin(X3);@bin(X4);@bin(X5);
@bin(Y1);@bin(Y2);@bin(Y3);@bin(Y4);@bin(Y5); 展开
+1000000*Y1+2000000*Y2+1500000*Y3+1500000*Y4+1500000*Y5
-50000*X1*X3-75000*X1*X4-70000*X2*X3-60000*X2*X4-100000*X3*X5-35000*X4*X5
-140000*X1*Y3-210000*X1*Y4-196000*X2*Y3-168000*X2*Y4-280000*X3-Y5+98000*X4*Y5
-5000*Y1*Y3-75000*Y1*Y4-70000*Y2*Y3-60000*Y2*Y3-60000*Y2*Y4-10000*Y3*Y5-35000*Y4*Y5
-130000*X1*(1-X3-Y3)-195000*X1*(1-X4-Y4)-182000*X2*(1-X3-Y3)-156000*X2*(1-X4-Y4)
-260000*X3*(1-X5-Y5)-91000*X4*(1-X5-Y5)
-90000*Y1*(1-X3-Y3)-135000*Y1*(1-X4-Y4)-126000*Y2*(1-X3-Y3)-108000*Y2*(1-X4-Y4)
-180000*Y3*(1-X5-Y5)-63000*Y4*(1-X5-Y5)
-100000*(1-X1-Y1)*(1-X3-Y3)-150000*(1-X1-Y1)*(1-X4-Y4)-140000*(1-X2-Y2)*(1-X3-Y3)
-120000*(1-X2-Y2)*(1-X4-Y4)-200000*(1-X3-Y3)*(1-X5-Y5)-70000*(1-X4-Y4)*(1-X5-Y5);
X1+X2+X3+X4+X5≤3;
Y1+Y2+Y3+Y4+Y5≤3;
5-(X1+X2+X3+X4+X5 + Y1+Y2+Y3+Y4+Y5)≤3;
X1+Y1<=1;
X2+Y2<=1;
X3+Y3<=1;
X4+Y4<=1;
X5+Y5<=1;
@bin(X1);@bin(X2);@bin(X3);@bin(X4);@bin(X5);
@bin(Y1);@bin(Y2);@bin(Y3);@bin(Y4);@bin(Y5); 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询