當前位置:編程學習大全網 - 編程軟體 - lingo線性規劃編程,應該不難,急求好心人,50分

lingo線性規劃編程,應該不難,急求好心人,50分

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<=60;

x2<=50;

x3<=50;

x4<=50;

x5<=60;

x6<=50;

x7<=50;

x8<=50;

x9<=60;

x10<=60;

x11<=50;

x12<=50;

  • 上一篇:Springcloud編程代碼
  • 下一篇:模具主要分哪幾個工種?都是做什麽的?工資如何?
  • copyright 2024編程學習大全網