MathematicsNEB 2076 (old course)
Solve by Simplex method: Maximize z = 7x 1 + 5x 2 , subject to x 1 + 2x 2 6 , 4x 1 + 3x 2 12 , x 1, x 2 0 . [6]
6Answer
Solution by Simplex Method
We are given the linear programming problem (LPP) to maximize: subject to the constraints:
Step 1: Convert the Inequalities into Equations
To apply the simplex method, we convert the inequalities into equations by introducing slack variables and :
The objective function remains:
Step 2: Write the Initial Simplex Tableau
The initial tableau is constructed as follows:
| Basis | RHS | ||||
|---|---|---|---|---|---|
| 1 | 2 | 1 | 0 | 6 | |
| 4 | 3 | 0 | 1 | 12 | |
| -7 | -5 | 0 | 0 | 0 |
Step 3: Check for Optimality
The optimality condition is that all coefficients in the -row must be non-negative. Here, and are negative, so the current solution is not optimal.
The entering variable is the one with the most negative coefficient in the -row, which is (since ).
Step 4: Determine the Leaving Variable
To find the leaving variable, we compute the ratio test for each positive entry in the column:
- For :
- For :
The minimum ratio is 3, so is the leaving variable.
Step 5: Perform Pivot Operation
We pivot on the element 4 (intersection of row and column). The new tableau is obtained by:
Dividing the pivot row by 4:
Eliminating from other rows:
- For row:
- For row:
The updated tableau is:
| Basis | RHS | ||||
|---|---|---|---|---|---|
| 0 | 1 | 3 | |||
| 1 | 0 | 3 | |||
| 0 | 0 | 1 | 21 |
Step 6: Check Optimality Again
The -row now has under , which is still negative. Thus, the solution is not yet optimal.
The entering variable is now (since ).
Step 7: Determine the Leaving Variable (Second Iteration)
Compute the ratio test for the column:
- For :
- For :
The minimum ratio is 2.4, so is the leaving variable.
Step 8: Perform Pivot Operation (Second Iteration)
We pivot on the element (intersection of row and column). The new tableau is obtained by:
Dividing the pivot row by :
Eliminating from other rows:
- For row:
- For row:
The updated tableau is:
| Basis | RHS | ||||
|---|---|---|---|---|---|
| 0 | 1 | ||||
| 1 | 0 | ||||
| 0 | 0 |
Step 9: Final Optimality Check
All coefficients in the -row are now non-negative, so the current solution is optimal.
Step 10: Extract the Solution
From the final tableau:
- ,
- ,
- ,
- .
The maximum value of is:
Final Answer
The optimal solution is:
Discussion
Loading…