- Asked 8/34
- 2078 Bhadra · 7 marks
Simplex method max:P=x₁+x₂
Short answer
Using the simplex method by adding slack variables, the optimal solution is found after four iterations. The maximum value is P = 13, achieved at x₁ = 3 and x₂ = 10.
Solve the following LPP by the simplex method: Maximize P = x₁ + x₂ subject to 2x₁ + x₂ ≤ 16, x₁ ≤ 6, x₂ ≤ 10, x₁, x₂ ≥ 0.
Step 1: Standard form. Every constraint is of the ≤ type, so add one slack variable to each (s₁, s₂, s₃ ≥ 0) to turn it into an equation. Slack variables have zero cost.
Maximize P = x₁ + x₂
subject to
2x₁ + x₂ + s₁ = 16
x₁ + s₂ = 6
x₂ + s₃ = 10
Step 2: Initial basic feasible solution. Put x₁, x₂ = 0, so the slack variables are the basic variables: s₁ = 16, s₂ = 6, s₃ = 10. Then P = 0.
Rules used: the entering variable is the one with the largest positive Cj − Zj; the leaving variable is the one with the smallest non-negative ratio b/column; the solution is optimal when every Cj − Zj ≤ 0.
Step 3: Simplex tables
Table 1
Cj 1 1 0 0 0
Basis CB x₁ x₂ s₁ s₂ s₃ b Ratio
------------------------------------
s₁ 0 2 1 1 0 0 16 8
s₂ 0 1 0 0 1 0 6 6
s₃ 0 0 1 0 0 1 10 -
------------------------------------
Zj 0 0 0 0 0 0
Cj-Zj 1 1 0 0 0
Entering: x₁ Leaving: s₂ Pivot = 1
Table 2
Cj 1 1 0 0 0
Basis CB x₁ x₂ s₁ s₂ s₃ b Ratio
------------------------------------
s₁ 0 0 1 1 -2 0 4 4
x₁ 1 1 0 0 1 0 6 -
s₃ 0 0 1 0 0 1 10 10
------------------------------------
Zj 1 0 0 1 0 6
Cj-Zj 0 1 0 -1 0
Entering: x₂ Leaving: s₁ Pivot = 1
Table 3
Cj 1 1 0 0 0
Basis CB x₁ x₂ s₁ s₂ s₃ b Ratio
------------------------------------
x₂ 1 0 1 1 -2 0 4 -
x₁ 1 1 0 0 1 0 6 6
s₃ 0 0 0 -1 2 1 6 3
------------------------------------
Zj 1 1 1 -1 0 10
Cj-Zj 0 0 -1 1 0
Entering: s₂ Leaving: s₃ Pivot = 2
Table 4
Cj 1 1 0 0 0
Basis CB x₁ x₂ s₁ s₂ s₃ b
----------------------------------
x₂ 1 0 1 0 0 1 10
x₁ 1 1 0 1/2 0 -1/2 3
s₂ 0 0 0 -1/2 1 1/2 3
----------------------------------
Zj 1 1 1/2 0 1/2 13
Cj-Zj 0 0 -1/2 0 -1/2
Step 4: Optimality test. In the last table every Cj − Zj is ≤ 0, so the solution is optimal.
Answer: x₁ = 3, x₂ = 10, and Maximum P = 13.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Simplex method max:P=−x₁+2x₂ · Mathematics III, chapter 5 · asked 8×
- Simplex method max:P=50x₁+80x₂ · Mathematics III, chapter 5 · asked 7×
- Simplex method max:P=30x₁+x₂ · Mathematics III, chapter 5 · asked 7×
- Big-M method max:P=2x₁+x₂ · Mathematics III, chapter 5 · asked 3×
- Big-M method max:P=2x₁+5x₂ · Mathematics III, chapter 5 · asked 3×
- Simplex method max:Z=10x₁+x₂+2x₃ · Mathematics III, chapter 5 · asked 18×
- Simplex method max:P=15x+10y · Mathematics III, chapter 5 · asked 17×
- Simplex method max:P=20x₂−5x₁ · Mathematics III, chapter 5 · asked 17×
- Simplex method max:Z=15x₁+10x₂ · Mathematics III, chapter 5 · asked 15×
- Simplex method max:Z=3x₁+5x₂ · Mathematics III, chapter 5 · asked 17×
- Simplex method max:Z=4x+3y · Mathematics III, chapter 5 · asked 17×
- Integral of (sin x+cos x)/(9+16 sin 2x) · Mathematics I, chapter 2
- Solve y''+3y'+2y=e^(2x) sin x · Mathematics I, chapter 4 · asked 2×
- Solve (D²−2D+5)y=e^(2x) sin x · Mathematics I, chapter 4 · asked 2×
- Solve dy/dx = (x+2y−3)/(2x+y−3) · Mathematics I, chapter 4