lingo线性规划编程,应该不难,50分x1+x2+x3+x4=84x5+x6+x7+x8=116x3+x7-x9-x11=0x4+x8-x10-x12=0x1+x5+x9+x10=96x2+x6+x11+x12=104x1
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/23 23:47:04
lingo线性规划编程,应该不难,50分x1+x2+x3+x4=84x5+x6+x7+x8=116x3+x7-x9-x11=0x4+x8-x10-x12=0x1+x5+x9+x10=96x2+x6+x11+x12=104x1
lingo线性规划编程,应该不难,50分
x1+x2+x3+x4=84
x5+x6+x7+x8=116
x3+x7-x9-x11=0
x4+x8-x10-x12=0
x1+x5+x9+x10=96
x2+x6+x11+x12=104
x1
lingo线性规划编程,应该不难,50分x1+x2+x3+x4=84x5+x6+x7+x8=116x3+x7-x9-x11=0x4+x8-x10-x12=0x1+x5+x9+x10=96x2+x6+x11+x12=104x1
min=3.7*x1+5*x2+1.5*x3+1.3*x4+3.1*x5+3.5*x6+1*x7+1*x8+1.5*x9+1.9*x10+1.7*x11+1.6*x12
+@if(x1#le#40,0,(x1-40)*4.1)
+@if(x2#le#30,0,(x2-30)*5.3)
+@if(x3#le#30,0,(x3-30)*1.8)
+@if(x4#le#30,0,(x4-30)*1.6)
+@if(x5#le#40,0,(x5-40)*3.5)
+@if(x6#le#30,0,(x6-30)*3.8)
+@if(x7#le#30,0,(x7-30)*1.3)
+@if(x8#le#30,0,(x8-30)*1.3)
+@if(x9#le#40,0,(x9-40)*1.9)
+@if(x10#le#40,0,(x10-40)*2.2)
+@if(x11#le#30,0,(x11-30)*2.0)
+@if(x12#le#30,0,(x12-30)*1.9);
x1+x2+x3+x4=84;
x5+x6+x7+x8=116;
x3+x7-x9-x11=0;
x4+x8-x10-x12=0;
x1+x5+x9+x10=96;
x2+x6+x11+x12=104;
x1