← 2017 Paper 2
UPSC 2017 Maths Optional Paper 2 Q3c — Step-by-Step Solution
20 marks · Section A
Simplex method (basic) · Linear Programming · asked 9× in 13 yrs · Read the full method →
Question
Solve the following linear programming problem by simplex method:
Maximize z=3x1+5x2+4x3
subject to
2x1+3x22x2+5x33x1+2x2+4x3x1,x2,x3≤8≤10≤15≥0.
Technique
Primal simplex in tableau form; slack variables for the initial basis; entering variable = most positive cj−zj, leaving variable = minimum ratio test; iterate to non-positive cj−zj.
Solution
Add slacks s1,s2,s3≥0:
2x1+3x2+0x3+s12x2+5x3+s23x1+2x2+4x3+s3=8=10=15z−3x1−5x2−4x3=0.
Initial basis (s1,s2,s3)=(8,10,15) with z=0.
Step 2 — Iteration 0 (initial tableau)
Basis {s1,s2,s3}. Row cj−zj=(3,5,4,0,0,0).
| Basis | x1 | x2 | x3 | s1 | s2 | s3 | RHS | ratio (RHS/x2) |
|---|
| s1 | 2 | 3 | 0 | 1 | 0 | 0 | 8 | 8/3 ← min |
| s2 | 0 | 2 | 5 | 0 | 1 | 0 | 10 | 5 |
| s3 | 3 | 2 | 4 | 0 | 0 | 1 | 15 | 15/2 |
Most positive cj−zj=5 at x2 → x2 enters; min ratio 8/3 → s1 leaves. Pivot on 3.
Step 3 — Iteration 1
Basis {x2,s2,s3}, z=40/3. Row cj−zj=(−31,0,4,−35,0,0).
| Basis | x1 | x2 | x3 | s1 | s2 | s3 | RHS | ratio (RHS/x3) |
|---|
| x2 | 2/3 | 1 | 0 | 1/3 | 0 | 0 | 8/3 | — |
| s2 | −4/3 | 0 | 5 | −2/3 | 1 | 0 | 14/3 | 14/15 ← min |
| s3 | 5/3 | 0 | 4 | −2/3 | 0 | 1 | 29/3 | 29/12 |
Most positive cj−zj=4 at x3 → x3 enters; min ratio 14/15 → s2 leaves. Pivot on 5.
Step 4 — Iteration 2
Basis {x2,x3,s3}, z=256/15. Row cj−zj=(1511,0,0,−1517,−54,0).
| Basis | x1 | x2 | x3 | s1 | s2 | s3 | RHS | ratio (RHS/x1) |
|---|
| x2 | 2/3 | 1 | 0 | 1/3 | 0 | 0 | 8/3 | 4 |
| x3 | −4/15 | 0 | 1 | −2/15 | 1/5 | 0 | 14/15 | — |
| s3 | 41/15 | 0 | 0 | −2/15 | −4/5 | 1 | 89/15 | 89/41 ← min |
Most positive cj−zj=1511 at x1 → x1 enters; min ratio 89/41 → s3 leaves. Pivot on 41/15.
Step 5 — Iteration 3 (optimal)
Basis {x2,x3,x1}. Row cj−zj=(0,0,0,−4145,−4124,−4111)≤0 → optimal.
| Basis | x1 | x2 | x3 | s1 | s2 | s3 | RHS |
|---|
| x2 | 0 | 1 | 0 | 15/41 | 8/41 | −10/41 | 50/41 |
| x3 | 0 | 0 | 1 | −6/41 | 5/41 | 4/41 | 62/41 |
| x1 | 1 | 0 | 0 | −2/41 | −12/41 | 15/41 | 89/41 |
All cj−zj≤0, so the current solution is optimal:
x1=4189,x2=4150,x3=4162,
z=3⋅4189+5⋅4150+4⋅4162=41267+250+248=41765.
Answer
zmax=41765≈18.66at(x1,x2,x3)=(4189,4150,4162).