(1)i) Design and produce A 1 product x 1 barrel and A2 product x2 barrel.
Objective function:? Max. 72*x 1+64*x2
Constraint:? 12 * x 1+8x * 2≤480;
x 1+x2≤50;
0≤3 * x 1≤ 100;
x2≥0; X 1, x2 is an integer.
Argot programming is as follows:
Model:
Set:
row/ 1..2/:b;
col/ 1..2/:c,x,l,u;
matrix(row,col):A;
End set
max = @ sum(col:c * x);
@for(col:@? gin(x));
@for (line (i)):
@sum(col(j):A(i,j)* x(j))& lt; = b(I));
Data:
c=72,64;
b=480,50;
A= 12,8,
1, 1;
l=0,0;
u = 100500;
End data
end
Results:
Get x 1=20 and x3 = 30? Earn 3360 yuan a day? There is no time left for raw materials, and the processing capacity is 40%
As raw materials increased by 1 unit, profits increased by 48 yuan, 35.
Ii) What are the argot results of the above questions? Time increases 1 set, and profits increase in 2 yuan. Therefore, the maximum wage paid to temporary workers is 2 yuan per hour.
Iii) What are the argot results of the above questions? The coefficient range of x 1 is between (64,96), so when the coefficient of x 1 increases to 90? There is no need to change the production plan.
(2) (i) Suppose A 1 product x 1, A2 product x2, B 1 product x3 and B2 product x4 are produced? Is A 1 processed into B 1? x5? A2 is processed into B2? x6
Objective function:? Max. 24 * x 1+ 16 * x2+44 * x3+32 * x4-3 * X5-3 * X6
Constraint:? (x 1? +X5)/3+(x2+X6)/4≤50;
x 1+X5≤ 100;
4 *(x 1+X5)+2 *(x2+X6)+2 * X5+2 * X6≤480;
x 1 = 0.8 * 5; ? x2 = 0.75 * x6
x 1…X6≥0; X 1…x6 is an integer.
Argot programming is as follows:
Model:
Set:
row/ 1..3/:b;
col/ 1..6/:c,x;
matrix(row,col):A;
End set
max = @ sum(col:c * x);
@for(col:@? gin(x));
@for (line (i)):
@sum(col(j):A(i,j)* x(j))& lt; = b(I));
Data:
c=24, 16,44,32,-3,-3;
b=600, 100,480;
A=4,3,0,0,4,3,
1,0,0,0, 1,0,
4,2,0,0,6,4;
End data
end
Results:
Get? max = 3460.8 x 1 = 8 x2 = 168 x 3 = 19.2 X5 = 24? Other x is 0.
Produce 8 barrels of A 1 convert all 24kgA 1 into B 1 produce 42 barrels of A2?
Me)? Adding a bucket of milk can increase profits? 3. 16* 12=37.92? Can an extra hour increase the profit by 3.26? So we should make this investment. 150 yuan can increase 5 barrels of milk? Or earn it back? 37.92*5= 189.6 yuan? 150 yuan can add 50 hours? Or earn it back? 3.26*50= 163 yuan? So invest in milk? Get the maximum profit
ii)? According to the above question, what is the result of argot? B 1? The profit decreased by 65,438+00%, and the profit of B2 increased by 65,438+00%. x3? X4 coefficient range, so it has an impact on the plan, and the production plan should be re-formulated.