9. A company manufactures two products P1 and P2. Profit per unit for P1 is $200 and for P2 is $300. Three raw materials M1, M2 and M3 are required. One unit of P1 needs 5 units of M1 and 10 units of M2. One unit of P2 needs 18 units of M2 and 10 units of M3. Availability is 50 units of M1, 90 units of M2 and 50 units of M3.
A. Formulate as LPP
B. Find the optimal by using Simplex method
Let x1 - number of units for P1, x2 - number of units for P2.
LPP:
maximize z = 200*x1 + 300*x2
Subject to 5x1 <= 50;
10*x1 + 18*x2 <= 90;
10x2 <= 50;
x1, x2 >= 0.
Next to add one slack variable for each inequality:
5x1 + y1 = 50;
10*x1 + 18*x2 + y2 = 90;
10x2 + y3 = 50;
We rewrite the objective function z = 200*x1 + 300*x2 as -200*x1 - 300*x2 + z = 0
Then construct the initial simplex tableau. Each inequality constraint appears in its own row:
From the table above we can find basic solution: y1 = 50, y2 = 90, y3 = 50, z = 0.
The most negative entry in the bottom row identifies the pivot column. This corresponds to x2 , because -300 is most negative. Next calculate the quotients. The smallest quotient identifies a row. The element in the intersection of the column identified as x2 and the row identified in this step is identified as the pivot element. Following the algorithm, in order to calculate the quotient, we divide the entries in the far right column by the entries in column x2 , excluding the entry in the bottom row.
90:18 = 5 and 50:10 = 5. In this situation we have two equal values, let's choose the second row of the table above, but in general the smallest of the two quotients is needed.
Next make our pivot element by dividing the entire second row by 18. The result follows.
To obtain a zero in the entry first above the pivot element, we multiply the second row by -18/2 and add it to row 1. We get
To obtain a zero in the element below the pivot, we multiply the second row by 360 and add it to the last row:
We see that there are no more negative entries in the bottom row, we are finished. Because of positive values in the bottom row x2 = 0 and y2 = 0. Hence x1 = 9 and z = 1800
Comments
Leave a comment