← 2022 Paper 2

UPSC 2022 Maths Optional Paper 2 Q3c — Step-by-Step Solution

15 marks · Section A

Simplex method (basic) · Linear Programming · asked 9× in 13 yrs · Read the full method →

Question

Solve maxZ=x1+x2+x3\max Z=x_1+x_2+x_3 subject to 2x1+x2+x322x_1+x_2+x_3\le 2, 4x1+2x2+x324x_1+2x_2+x_3\le 2, xi0x_i\ge 0 by simplex. Write dual; read dual optimum from optimal table.

Technique

Standard simplex; degenerate pivot (RHS becomes 0 during pivot); continue until all zc0z-c\ge 0.

Solution

Step 1 — Standard form with slacks s1,s2s_1,s_2

2x1+x2+x3+s1=22x_1+x_2+x_3+s_1=2 4x1+2x2+x3+s2=24x_1+2x_2+x_3+s_2=2

Step 2 — Initial simplex tableau

Basisx1x_1x2x_2x3x_3s1s_1s2s_2RHS
s1s_1211102
s2s_2421012
zcz-c-1-1-1000

Most negative: any of 1-1. Pick x3x_3 (ties broken by choosing smallest index, but x3x_3‘s column gives a cleaner pivot).

Actually let me pick x1x_1 (smallest index).

Pivot on x1x_1: Ratio test: s1:2/2=1s_1: 2/2=1, s2:2/4=1/2s_2: 2/4=1/2. s2s_2 leaves.

New x1x_1 row: (s2/4)(s_2/4): (1,1/2,1/4,0,1/4,1/2)(1, 1/2, 1/4, 0, 1/4, 1/2).

New s1s_1 row: s12x1s_1-2\cdot x_1: (0,0,1/2,1,1/2,1)(0, 0, 1/2, 1, -1/2, 1).

New zcz-c: add 1x11\cdot x_1 row: (1+1,1+1/2,1+1/4,0,1/4,1/2)=(0,1/2,3/4,0,1/4,1/2)(-1+1, -1+1/2, -1+1/4, 0, 1/4, 1/2)=(0, -1/2, -3/4, 0, 1/4, 1/2).

Tableau:

Basisx1x_1x2x_2x3x_3s1s_1s2s_2RHS
s1s_1001/21-1/21
x1x_111/21/401/41/2
zcz-c0-1/2-3/401/41/2

Most negative: 3/4-3/4 at x3x_3. x3x_3 enters.

Ratio test: s1:1/(1/2)=2s_1: 1/(1/2)=2, x1:(1/2)/(1/4)=2x_1: (1/2)/(1/4)=2. Tie.

Pick s1s_1 leaving (degenerate, but either works).

Pivot on x3x_3, row s1s_1:

New x3x_3 row: multiply s1s_1 by 2: (0,0,1,2,1,2)(0, 0, 1, 2, -1, 2).

New x1x_1 row: x1(1/4)x3x_1-(1/4)\cdot x_3: (1,1/2,0,1/2,1/2,0)(1, 1/2, 0, -1/2, 1/2, 0).

New zcz-c: add (3/4)x3(3/4)\cdot x_3 row: (0,1/2,0,3/2,1/43/4,1/2+3/2)=(0,1/2,0,3/2,1/2,2)(0, -1/2, 0, 3/2, 1/4-3/4, 1/2+3/2)=(0, -1/2, 0, 3/2, -1/2, 2).

Hmm — still 1/2-1/2 for x2x_2. Continue.

Pivot on x2x_2: Ratio test on x2x_2 column.

x3x_3 row x2x_2-coeff =0=0: skip. x1x_1 row x2x_2-coeff =1/2=1/2, ratio 0/(1/2)=00/(1/2)=0. x1x_1 leaves.

But ratio 0 means a degenerate pivot — Bland’s rule typically prevents cycling.

Hmm actually if x1x_1 has x2x_2-coefficient 1/21/2 and RHS =0=0 in the x1x_1 row (after last pivot), then ratio =0=0. The pivot will keep things at x1=0x_1=0 but introduce x2x_2 into the basis. The objective doesn’t increase.

Let me re-examine: after the second pivot, do I have RHS=0=0 for x1x_1 row? Yes: x1x_1 row is (1,1/2,0,1/2,1/2,0)(1, 1/2, 0, -1/2, 1/2, 0) with RHS 00.

OK this means x1=0x_1=0 now (degenerate). The current solution is x1=0,x2=0,x3=2,s1=0,s2=0x_1=0, x_2=0, x_3=2, s_1=0, s_2=0, with Z=0+0+2=2Z=0+0+2=2.

But there’s still room to improve: 1/2-1/2 in zcz-c for x2x_2. Pivot:

New x2x_2 row: multiply x1x_1 row by 2: (2,1,0,1,1,0)(2, 1, 0, -1, 1, 0).

New x3x_3 row: x30x2x_3-0\cdot x_2: (0,0,1,2,1,2)(0, 0, 1, 2, -1, 2) (unchanged).

New zcz-c: add (1/2)x2(1/2)\cdot x_2 row: (0+1,1/2+1/2,0,3/21/2,1/2+1/2,2+0)=(1,0,0,1,0,2)(0+1, -1/2+1/2, 0, 3/2-1/2, -1/2+1/2, 2+0)=(1, 0, 0, 1, 0, 2).

All zc0z-c\ge 0 ⇒ optimal.

Tableau:

Basisx1x_1x2x_2x3x_3s1s_1s2s_2RHS
x2x_2210-110
x3x_30012-12
zcz-c100102

x2=0,x3=2,x1=0x_2=0, x_3=2, x_1=0. Z=0+0+2=2Z=0+0+2=2.

Primal optimum: x1=0,x2=0,x3=2,Z=2x_1=0,x_2=0,x_3=2,Z=2.

Step 3 — Dual

Primal: max Z=x1+x2+x3Z=x_1+x_2+x_3, two \le constraints, x0x\ge 0.

Dual: min W=2y1+2y2W=2y_1+2y_2, three \ge constraints (one per primal variable), y0y\ge 0.

Constraints:

Step 4 — Read dual optimum from primal optimal tableau

Dual values = zcz-c row entries at slack-variable columns:

Dual optimum: y1=1,y2=0,W=2(1)+2(0)=2y_1=1,y_2=0,W=2(1)+2(0)=2 ✓ (matches Z=2Z=2, strong duality).

Step 5 — Verify dual feasibility

Complementary slackness: bindings 2 and 3 correspond to nonzero primal variables x2,x3x_2,x_3? But x2=0x_2=0 in optimum. Hmm, primal degenerate.

Actually the primal optimum is at vertex x1=x2=0,x3=2x_1=x_2=0,x_3=2 where only x3x_3 is positive — so only dual constraint 3 needs to bind. Constraint 2 binding is consistent (degenerate vertex with multiple optimal vertices possible).

Answer

  Primal: x3=2,Z=2;  Dual: y1=1,y2=0,W=2.  \boxed{\;\text{Primal: }x_3=2,Z=2;\;\text{Dual: }y_1=1,y_2=0,W=2.\;}
We post more of this — worked solutions, CSAT trap breakdowns, guide chapters — a few times a week on Telegram. Free, no sign-in. Join

This solution is part of the Maths Coverage Map — 13 years, mapped. Get the take-away PDF free.