← 2019 Paper 2

UPSC 2019 Maths Optional Paper 2 Q3b — Step-by-Step Solution

15 marks · Section A

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

Question

Solve the linear programming problem using Simplex method. Minimize Z=x1+2x23x32x4Z=x_1+2x_2-3x_3-2x_4 subject to

x1+2x23x3+x4=4x1+2x2+x3+2x4=4\begin{aligned}x_1+2x_2-3x_3+x_4&=4\\ x_1+2x_2+x_3+2x_4&=4\end{aligned}

and x1,x2,x3,x40x_1,x_2,x_3,x_4\ge 0.

Technique

Two-phase simplex (artificial variables for equality constraints); the structural cancellation 4x3+x4=04x_3+x_4=0 collapses the feasible region.

Solution

Step 1 — A structural observation (feasible region forces x3=x4=0x_3=x_4=0)

Subtract the first equation from the second:

(x1+2x2+x3+2x4)(x1+2x23x3+x4)=0  4x3+x4=0.(x_1+2x_2+x_3+2x_4)-(x_1+2x_2-3x_3+x_4)=0\ \Longrightarrow\ 4x_3+x_4=0.

With x3,x40x_3,x_4\ge0 this forces x3=0x_3=0 and x4=0x_4=0. Substituting back, both constraints reduce to the single equation x1+2x2=4x_1+2x_2=4. So every feasible point has x3=x4=0x_3=x_4=0 and x1+2x2=4x_1+2x_2=4, on which

Z=x1+2x200=x1+2x2=4 (constant!).Z=x_1+2x_2-0-0=x_1+2x_2=4\ \text{(constant!)}.

Thus Z4Z\equiv4 on the entire feasible region; the minimum (and maximum) is 44. We confirm this with a formal simplex run.

Step 2 — Phase-I setup (artificial variables)

Both RHS are +4>0+4>0; introduce artificials a1,a20a_1,a_2\ge0 and minimize a1+a2a_1+a_2:

x1+2x23x3+x4+a1=4,x1+2x2+x3+2x4+a2=4.x_1+2x_2-3x_3+x_4+a_1=4,\qquad x_1+2x_2+x_3+2x_4+a_2=4.

Initial basis (a1,a2)=(4,4)(a_1,a_2)=(4,4).

Iteration 1. Phase-I reduced costs (cost row a1+a2a_1+a_2): for a structural column, zjcj=(column sum)0z_j-c_j=(\text{column sum})-0. Column sums: x1:2, x2:4, x3:3+1=2, x4:1+2=3x_1:2,\ x_2:4,\ x_3:-3+1=-2,\ x_4:1+2=3. Most positive is x2x_2 (=4=4); enter x2x_2. Ratios 4/2=2, 4/2=24/2=2,\ 4/2=2 (tie); pivot on row 1, a1a_1 leaves. Pivot (divide row1 by 2):

12x1+x232x3+12x4+12a1=2.\tfrac12x_1+x_2-\tfrac32x_3+\tfrac12x_4+\tfrac12a_1=2.

Eliminate x2x_2 from row 2 (subtract 2×2\timesrow1): row2 becomes

0x1+0x2+(1+3)x3+(21)x4a1+a2=44=0, i.e. 4x3+x4a1+a2=0.0\cdot x_1+0\cdot x_2+(1+3)x_3+(2-1)x_4 -a_1+a_2=4-4=0,\ \text{i.e. } 4x_3+x_4-a_1+a_2=0.

Iteration 2. Remaining artificial a2=0a_2=0 (degenerate). Phase-I objective now a2a_2; its row has 4x3+x44x_3+x_4 with positive entries but RHS 00, so any pivot keeps the value at 00; Phase-I optimum =0=0 is reached — feasibility achieved with a1=a2=0a_1=a_2=0. Drop artificials. Basic feasible solution: x2=2, x1=x3=x4=0x_2=2,\ x_1=x_3=x_4=0 (the row-2 relation 4x3+x4=0x3=x4=04x_3+x_4=0\Rightarrow x_3=x_4=0 as found in Step 1).

Step 3 — Phase-II (optimize Z=x1+2x23x32x4Z=x_1+2x_2-3x_3-2x_4)

Current basis {x2}\{x_2\} with the second (reduced) row 4x3+x4=04x_3+x_4=0 pinning x3,x4x_3,x_4. Express ZZ in nonbasic variables using x2=212x1+32x312x4x_2=2-\tfrac12x_1+\tfrac32x_3-\tfrac12x_4 (from the pivoted row 1) and x3=14(x4)x_3=\tfrac14(-x_4), i.e. on the feasible set x3=x4=0x_3=x_4=0:

Z=x1+2x23x32x4=x1+2(212x1)=x1+4x1=4.Z=x_1+2x_2-3x_3-2x_4 = x_1+2\big(2-\tfrac12x_1\big)=x_1+4-x_1=4.

All reduced costs are 00 along feasible directions (and the only feasible directions keep x3=x4=0x_3=x_4=0, x1+2x2=4x_1+2x_2=4). No entering variable improves ZZ: optimal.

Answer

  Zmin=4, attained for every feasible point, e.g. (x1,x2,x3,x4)=(0,2,0,0) or (4,0,0,0).  \boxed{\;Z_{\min}=4,\ \text{attained for every feasible point, e.g. }(x_1,x_2,x_3,x_4)=(0,2,0,0)\text{ or }(4,0,0,0).\;}
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.