← 2016 Paper 2

UPSC 2016 Maths Optional Paper 2 Q2c — Step-by-Step Solution

20 marks · Section A

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

Question

Maximize z=2x1+3x2+6x3z=2x_1+3x_2+6x_3 subject to

2x1+x2+x3≤53x2+2x3≤6x1≥0, x2≥0, x3≥0.\begin{aligned}2x_1+x_2+x_3&\le 5\\ 3x_2+2x_3&\le 6\\ x_1\ge0,\ x_2\ge0,\ x_3&\ge0.\end{aligned}

Is the optimal solution unique? Justify your answer.

Technique

Simplex (two iterations: enter x3x_3 then x1x_1); uniqueness via strict negativity of all non-basic reduced costs at the optimal table.

Solution

We solve by the simplex method, then test uniqueness via the reduced costs of the non-basic variables at the optimal table: a maximization optimum is unique iff every non-basic variable has a strictly negative reduced cost (cj−zj<0c_j-z_j<0); a zero reduced cost on a non-basic variable signals alternative optima.

Step 1 — Standard form with slacks

Add slacks s1,s2≥0s_1,s_2\ge0:

2x1+x2+x3+s1=52x1+3x2+2x3 +s2=6max⁡z=2x1+3x2+6x3.\begin{aligned} 2x_1+x_2+x_3+s_1&=5\\ \phantom{2x_1+}3x_2+2x_3\ +s_2&=6 \end{aligned} \qquad\max z=2x_1+3x_2+6x_3.

Initial basis {s1,s2}\{s_1,s_2\}, z=0z=0. Row-0 (reduced costs cj−zjc_j-z_j, since all zj=0z_j=0 initially): x1:2, x2:3, x3:6x_1:2,\ x_2:3,\ x_3:6.

Step 2 — Iteration 1: enter x3x_3 (largest positive reduced cost 66)

Ratios (RHS / column of x3x_3): row s1s_1: 5/1=55/1=5; row s2s_2: 6/2=36/2=3 (min). So s2s_2 leaves, x3x_3 enters; pivot on the s2s_2-row coefficient 22.

Pivot row (÷2\div2):  32x2+x3+12s2=3\ \tfrac32x_2+x_3+\tfrac12 s_2=3. Update s1s_1-row (−1×-1\times pivot row):  2x1+x2+x3+s1=5⇒2x1+(1−32)x2+s1−12s2=5−3\ 2x_1+x_2+x_3+s_1=5\Rightarrow 2x_1+(1-\tfrac32)x_2+s_1-\tfrac12 s_2=5-3, i.e.

2x1−12x2+s1−12s2=2.2x_1-\tfrac12 x_2+s_1-\tfrac12 s_2=2.

New z=6⋅3=18z=6\cdot3=18. Reduced costs cj−zjc_j-z_j (zj=cB⋅(column)z_j=c_B\cdot(\text{column}), cB=(0,6)c_B=(0,6) for basis {s1,x3}\{s_1,x_3\}):

x1x_1 still positive ⇒\Rightarrow not optimal.

Step 3 — Iteration 2: enter x1x_1

Ratios (RHS / x1x_1-column (2,0)(2,0)): row s1s_1: 2/2=12/2=1 (min); row x3x_3: column entry 00, skip. So s1s_1 leaves, x1x_1 enters; pivot on 22 in the s1s_1-row.

Pivot row (÷2\div2):  x1−14x2+12s1−14s2=1.\ x_1-\tfrac14 x_2+\tfrac12 s_1-\tfrac14 s_2=1. x3x_3-row unchanged in x1x_1 (coefficient 00):  32x2+x3+12s2=3.\ \tfrac32 x_2+x_3+\tfrac12 s_2=3.

Basic solution: x1=1, x3=3, x2=0, s1=s2=0x_1=1,\ x_3=3,\ x_2=0,\ s_1=s_2=0.

z=2(1)+3(0)+6(3)=2+18=20.z=2(1)+3(0)+6(3)=2+18=20.

Step 4 — Optimality check (reduced costs)

Basis {x1,x3}\{x_1,x_3\}, cB=(2,6)c_B=(2,6). Compute cj−zjc_j-z_j for non-basic x2,s1,s2x_2,s_1,s_2 using B−1B^{-1}:

B=(2102),B−1=(12−14012).B=\begin{pmatrix}2&1\\0&2\end{pmatrix},\quad B^{-1}=\begin{pmatrix}\tfrac12&-\tfrac14\\[1mm]0&\tfrac12\end{pmatrix}.

All non-basic reduced costs are strictly negative, so the table is optimal and

  zmax⁡=20 at (x1,x2,x3)=(1,0,3).  \boxed{\;z_{\max}=20\ \text{at}\ (x_1,x_2,x_3)=(1,0,3).\;}

Step 5 — Uniqueness

A maximization LP at an optimal basic feasible solution has alternative optima iff some non-basic variable has reduced cost exactly 00 (it could enter without changing zz). Here every non-basic reduced cost is strictly negative (−5.5, −1, −2.5-5.5,\,-1,\,-2.5). Bringing any of them in would strictly decrease zz. Hence

Answer

  The optimal solution is unique.  \boxed{\;\text{The optimal solution is }\textbf{unique}.\;}
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 — 14 years, mapped. Get the take-away PDF free.