← 2018 Paper 2
UPSC 2018 Maths Optional Paper 2 Q2b — Step-by-Step Solution
20 marks · Section A
Big-M / two-phase method (artificial variables) · Linear Programming · asked 5× in 13 yrs · Read the full method →
Question
Solve the following linear programming problem by Big M-method and show that the problem has finite optimal solutions. Also find the value of the objective function:
Minimize z=3x1+5x2
subject to
x1+2x23x1+2x25x1+6x2x1,x2≥8≥12≤60,≥0.
Technique
Big-M penalty method; surplus + artificial variables on the two ≥ constraints, slack on the ≤ constraint; pivot until both artificials leave and all reduced costs are non-positive (minimization).
Solution
Convert each constraint to an equation. The two ≥ constraints need surplus variables s1,s2≥0 (subtracted) and artificial variables A1,A2≥0; the ≤ constraint needs a slack s3≥0:
x1+2x2−s1+A13x1+2x2−s2+A25x1+6x2+s3=8,=12,=60.
For minimization, artificials are penalized with +M (M a large positive number):
Minimize z=3x1+5x2+0s1+0s2+0s3+MA1+MA2.
Initial basis: A1=8, A2=12, s3=60 (all else 0).
Step 2 — Initial tableau and reduced costs
With cB=(M,M,0) for the basis (A1,A2,s3), the reduced cost zj−cj for each non-basic column is cB⋅(column)−cj:
| variable | x1 | x2 | s1 | s2 |
|---|
| zj−cj | 4M−3 | 4M−5 | −M | −M |
(e.g. x1: M⋅1+M⋅3+0⋅5−3=4M−3). For minimization we improve while some zj−cj>0. The most positive is x1 (4M−3) vs x2 (4M−5); enter x1 (largest coefficient of M tie broken by constant: 4M−3>4M−5).
Ratio test (RHS / positive entries in x1 column =(1,3,5)): 8/1=8, 12/3=4, 60/5=12. Minimum =4 at row 2 ⇒ A2 leaves.
Step 3 — Pivot 1 (enter x1, leave A2), pivot element 3
Row 2 ÷3: x1+32x2−31s2+31A2=4. Eliminate x1 elsewhere:
R1←R1−R2′:R3←R3−5R2′: 34x2−s1+31s2+A1−31A2=4, 38x2+35s2+s3−35A2=40.
New basis (A1,x1,s3)=(4,4,40). Recompute reduced costs; the x2 column still has a positive zj−cj (coefficient of M is 34>0), so enter x2.
Ratio test (x2 column entries in rows (A1,x1,s3)=(34,32,38), RHS (4,4,40)): 4/34=3, 4/32=6, 40/38=15. Minimum =3 at row 1 ⇒ A1 leaves.
Step 4 — Pivot 2 (enter x2, leave A1), pivot element 34
Row 1 ÷34: x2−43s1+41s2=3. Update:
x1s3=4−32x2 ⇒ x1=4−32(3)=2,=40−38x2=40−38(3)=32.
New basis (x2,x1,s3)=(3,2,32); both artificials are now non-basic (at 0).
Step 5 — Optimality check
With both artificials expelled and the basis (x1,x2,s3), all reduced costs zj−cj≤0 for the non-basic variables s1,s2,A1,A2 (the surplus columns give zj−cj≤0 and artificials carry the −M penalty). No entering variable improves z, so the current basic feasible solution is optimal:
x1=2,x2=3,s3=32,s1=s2=0,A1=A2=0.
Objective value:
z=3(2)+5(3)=6+15=21.
Answer
x1=2, x2=3,zmin=21(finite optimum, artificials driven to 0).