To solve the given linear programming problem using the simplex method, we proceed step-by-step:
1. Convert to Standard Form:
The original problem is:
- Maximize ( Z = 2x_1 - x_2 + x_3 + 4x_4 )
- Subject to:
- ( 5x_1 - x_2 + 0x_3 + 4x_4 \leq 20 )
- ( x_1 + 2x_2 + 3x_3 + x_4 \leq 8 )
- ( x_1, x_2, x_3, x_4 \geq 0 )
We introduce slack variables ( s_1 \geq 0 ) and ( s_2 \geq 0 ):
- ( 5x_1 - x_2 + 0x_3 + 4x_4 + s_1 = 20 )
- ( x_1 + 2x_2 + 3x_3 + x_4 + s_2 = 8 )
2. Initial Simplex Tableau:
Set up the initial simplex tableau with slack variables as the initial basis:
| Basic Variable | ( x_1 ) | ( x_2 ) | ( x_3 ) | ( x_4 ) | ( s_1 ) | ( s_2 ) | RHS |
|---|
| ( s_1 ) | 5 | -1 | 0 | 4 | 1 | 0 | 20 |
| ( s_2 ) | 1 | 2 | 3 | 1 | 0 | 1 | 8 |
| ( Z ) | -2 | 1 | -1 | -4 | 0 | 0 | 0 |
3. Iteration 1:
- Entering Variable: ( x_1 ) (smallest index with negative coefficient in ( Z )-row).
- Leaving Variable: ( s_1 ) (minimum ratio ( 20 / 5 = 4 )).
- Pivoting: Update the tableau by pivoting on row 1, column ( x_1 ).
New Tableau:
| Basic Variable | ( x_1 ) | ( x_2 ) | ( x_3 ) | ( x_4 ) | ( s_1 ) | ( s_2 ) | RHS |
|---|
| ( x_1 ) | 1 | -0.2 | 0 | 0.8 | 0.2 | 0 | 4 |
| ( s_2 ) | 0 | ( 2.2 ) | 3 | 0.2 | ( -0.2 ) | 1 | 4 |
| ( Z ) | 0 | 0.6 | -1 | -2.4 | 0.4 | 0 | 8 |
4. Iteration 2:
- Entering Variable: ( x_3 ) (next smallest index with a negative coefficient in ( Z )-row).
- Leaving Variable: ( s_2 ) (minimum ratio ( 4 / 3 )).
- Pivoting: Update the tableau by pivoting on row 2, column ( x_3 ).
New Tableau:
| Basic Variable | ( x_1 ) | ( x_2 ) | ( x_3 ) | ( x_4 ) | ( s_1 ) | ( s_2 ) | RHS |
|---|
| ( x_1 ) | 1 | ( -0.2 ) | 0 | 0.8 | 0.2 | 0 | 4 |
| ( x_3 ) | 0 | ( -\frac{11}{15} ) | 1 | ( -\frac{1}{15} ) | ( \frac{1}{15} ) | ( -\frac{1}{3} ) | ( \frac{4}{3} ) |
| ( Z ) | 0 | ( -\frac{4}{3} ) | 0 | ( \frac{7}{3} ) | ( -\frac{1}{3} ) | ( -\frac{1}{3} ) | ( \frac{28}{3} ) |
5. Optimality Check:
- Negative coefficients in ( Z )-row for ( x_2 ), but all entries in its column are negative or zero.
- No further pivoting is possible.
- Current solution is optimal.
6. Optimal Solution:
- ( x_1 = 4 )
- ( x_3 = \frac{4}{3} )
- ( x_2 = 0 )
- ( x_4 = 0 )
- Objective Function Value: ( Z = \frac{28}{3} )
Answer:
An optimal basis is ( x₁,, x₃ ) with optimal value ( Z = \dfrac{28}{3} ) at ( x₁ = 4,\ x₃ = \dfrac{4}{3} ).