← 2014 Paper 2
UPSC 2014 Maths Optional Paper 2 Q4c — Step-by-Step Solution
20 marks · Section A
Simplex method (basic) · Linear Programming · asked 9× in 13 yrs · Read the full method →
Question
Find all optimal solutions of the following linear programming problem by the simplex method:
Maximize Z=30x1+24x2subject to5x1+4x2≤200,x1≤32,x2≤40,x1,x2≥0.
Technique
Simplex method; alternative-optima detection via cj−zj=0 for a non-basic variable at optimum; iterate to find both extreme optimal vertices.
Solution
Introduce slacks s1,s2,s3 for each ≤ constraint:
5x1+4x2+s1=200,x1+s2=32,x2+s3=40.
Initial BFS: x1=x2=0, (s1,s2,s3)=(200,32,40), Z=0.
Step 2 — Iteration 1: x1 in, s2 out
For max simplex: enter the variable with the largest cj−zj. Initially cj−zj equals cj: (30,24,0,0,0). Largest: x1 at 30.
Min ratio in x1 column: min(200/5,32/1)=min(40,32)=32 at s2. So s2 leaves.
Pivot. New tableau:
| Basis | x1 | x2 | s1 | s2 | s3 | RHS |
|---|
| s1 | 0 | 4 | 1 | −5 | 0 | 40 |
| x1 | 1 | 0 | 0 | 1 | 0 | 32 |
| s3 | 0 | 1 | 0 | 0 | 1 | 40 |
Z=30⋅32=960.
Step 3 — Iteration 2: x2 in, s1 out
cj−zj: x2:24−0=24 (largest), s2:0−30=−30. Enter x2.
Min ratio: 40/4=10, 40/1=40. Min 10 at s1.
Pivot. New tableau:
| Basis | x1 | x2 | s1 | s2 | s3 | RHS |
|---|
| x2 | 0 | 1 | 1/4 | −5/4 | 0 | 10 |
| x1 | 1 | 0 | 0 | 1 | 0 | 32 |
| s3 | 0 | 0 | −1/4 | 5/4 | 1 | 30 |
Z=24(10)+30(32)=240+960=1200.
Step 4 — Optimality check
cj−zj for non-basic:
- s1:0−(24⋅1/4+30⋅0)=−6≤0 ✓.
- s2:0−(24⋅(−5/4)+30⋅1)=0−(0)=0.
All ≤0 ⇒ optimal. The 0 at s2 signals alternative optima.
Optimum 1: x1=32,x2=10,Z=1200.
Step 5 — Find other optimal vertex (bring s2 into basis)
Min ratio in s2 column (positive entries): x1:32/1=32, s3:30/(5/4)=24. Min 24 at s3.
Pivot. New tableau:
| Basis | x1 | x2 | s1 | s2 | s3 | RHS |
|---|
| x2 | 0 | 1 | 0 | 0 | 1 | 40 |
| x1 | 1 | 0 | 1/5 | 0 | −4/5 | 8 |
| s2 | 0 | 0 | −1/5 | 1 | 4/5 | 24 |
Z=24⋅40+30⋅8=960+240=1200 ✓.
Optimum 2: x1=8,x2=40,Z=1200.
Step 6 — All optimal solutions
The set of optimal solutions is the line segment joining (32,10) and (8,40). Parametrically:
(x1,x2)=(1−t)(32,10)+t(8,40)=(32−24t,10+30t),t∈[0,1].
Verification of Z on segment: Z=30(32−24t)+24(10+30t)=960−720t+240+720t=1200 for all t∈[0,1] ✓.
Both endpoints satisfy 5x1+4x2=200 (binding constraint), and the entire segment lies on this constraint boundary.
Answer
All optimal solutions: (x1,x2)=(32−24t,10+30t) for t∈[0,1];Zmax=1200.