The math optional, made finite. Daily Practice

LPP: standard form; basic, basic feasible, optimal solutions

At a Glance

Why This Chapter Matters

This atom covers the foundational vocabulary of LP theory: what a basic solution is, how to count and enumerate them, and how to pose a real problem as a standard-form program. Questions here are purely definitional or formulative — no simplex needed — and they appear almost every time LP appears on Paper 2. The basic-solutions archetype is a guaranteed 10–15 mark question whenever the examiner wants to test LP foundations; the lpp-formulation type appears as a compulsory Q1 sub-part. Mastering the column-singularity shortcut (for counting basic solutions) is the difference between 8 minutes and 18 minutes on the basic-solutions questions.

Minimum Theory

Standard form. A linear program in standard form has all constraints as equalities with non-negative variables: min  cTxs.t.Ax=b,  x0,\min\; c^T x \quad \text{s.t.} \quad Ax = b,\; x \ge 0, where AA is m×nm \times n with mnm \le n. Inequality constraints aiTxbia_i^T x \le b_i become equalities by adding a slack si0s_i \ge 0; inequality aiTxbia_i^T x \ge b_i is converted by subtracting a surplus si0s_i \ge 0.

Basic solution. Choose mm columns of AA forming a non-singular m×mm \times m submatrix BB (the basis matrix). Set the remaining nmn - m variables (non-basic) to zero and solve BxB=bB x_B = b. The resulting solution (with the non-basic variables set to zero) is a basic solution. The maximum number of basic solutions is (nm)\binom{n}{m}; those where the corresponding m×mm \times m submatrix is singular yield no solution and are not counted.

Feasibility and degeneracy. A basic solution is a basic feasible solution (BFS) if xB0x_B \ge 0 (equivalently, all nn variables are non-negative). It is non-degenerate if every basic variable is strictly positive. Geometrically, BFS = extreme points (vertices) of the feasible polytope.

Fundamental theorem of LP. If the feasible region is non-empty and the objective is bounded on it, the optimum is attained at a BFS. This is the license to restrict attention to vertices when proving optimality.

Each BFS is a vertex of the feasible region; extending a constraint boundary beyond the region gives an infeasible basic solution.

Question Archetypes

ArchetypeRecognition cue
basic-solutions”Find all basic solutions”; “classify degenerate/non-degenerate BFS”
lpp-formulation”Pose an LPP”; “formulate in standard form”
optimum-without-simplex”Without solving, show it has an optimal solution”; “which BFS is optimal?“

basic-solutions (3 questions; 2015, 2018, 2025)

Recognition Cues

All three UPSC appearances use the same system: 2x1x2+3x3+x4=62x_1-x_2+3x_3+x_4=6, 4x12x2x3+2x4=104x_1-2x_2-x_3+2x_4=10. The 2015 question uses a different (easier) system; 2018 and 2025 use this one. Know the column-proportionality trick cold.

Solution Template

  1. Identify mm and nn. mm = number of equations, nn = number of variables. Maximum basic solutions: (nm)\binom{n}{m}.
  2. Check for proportional columns. Write out all nn columns as mm-vectors. If any subset of 2\ge 2 columns are scalar multiples of each other, every pair drawn entirely from that subset is singular. Count the singular pairs — subtract from (nm)\binom{n}{m}.
  3. Enumerate non-singular pairs. For each non-singular pair of columns (j1,j2)(j_1, j_2): set all other variables to 0, solve the 2×22 \times 2 system for xj1,xj2x_{j_1}, x_{j_2}.
  4. Classify each. Feasible: all components 0\ge 0. Degenerate: a basic variable equals 0 (non-basic variables are always 0 by definition, so degeneracy is about the basic values only).

Worked Example(s)

2015 Paper 2, 2015-P2-Q3c-i (10 marks)

Find all basic solutions of x1+x2+2x3+3x4=12x_1+x_2+2x_3+3x_4=12, x2+2x3+x4=8x_2+2x_3+x_4=8; classify degenerate vs non-degenerate BFS.

m=2m=2, n=4n=4, so at most (42)=6\binom{4}{2}=6 basic solutions.

Check for singular pairs. Columns of AA: A1=(10),  A2=(11),  A3=(22)=2(11),  A4=(31).A_1=\binom{1}{0},\; A_2=\binom{1}{1},\; A_3=\binom{2}{2}=2\binom{1}{1},\; A_4=\binom{3}{1}. A3=2A2A_3 = 2A_2, so the pair {x2,x3}\{x_2, x_3\} gives det(A2A3)=0\det(A_2|A_3) = 0singular, no basic solution. All other pairs have independent columns.

Five non-singular pairs (and their solutions):

BasisNon-basicSolveSolutionFeasible?Degenerate?
{x1,x2}\{x_1,x_2\}x3=x4=0x_3=x_4=0x1+x2=12,  x2=8x_1+x_2=12,\;x_2=8(4,8,0,0)(4,8,0,0)YesNo
{x1,x3}\{x_1,x_3\}x2=x4=0x_2=x_4=0x1+2x3=12,  2x3=8x_1+2x_3=12,\;2x_3=8(4,0,4,0)(4,0,4,0)YesNo
{x1,x4}\{x_1,x_4\}x2=x3=0x_2=x_3=0x1+3x4=12,  x4=8x_1+3x_4=12,\;x_4=8(12,0,0,8)(-12,0,0,8)No (x1<0x_1<0)
{x2,x4}\{x_2,x_4\}x1=x3=0x_1=x_3=0x2+3x4=12,  x2+x4=8x_2+3x_4=12,\;x_2+x_4=8(0,6,0,2)(0,6,0,2)YesNo
{x3,x4}\{x_3,x_4\}x1=x2=0x_1=x_2=02x3+3x4=12,  2x3+x4=82x_3+3x_4=12,\;2x_3+x_4=8(0,0,3,2)(0,0,3,2)YesNo

Four BFS, all non-degenerate. No basic variable equals 0 in any feasible solution.

(4,8,0,0),  (4,0,4,0),  (0,6,0,2),  (0,0,3,2)—all non-degenerate BFS.\boxed{(4,8,0,0),\; (4,0,4,0),\; (0,6,0,2),\; (0,0,3,2) — \text{all non-degenerate BFS.}}


2018 / 2025 Paper 2 (10–15 marks)

2x1x2+3x3+x4=62x_1-x_2+3x_3+x_4=6, 4x12x2x3+2x4=104x_1-2x_2-x_3+2x_4=10. Find all basic solutions; classify.

m=2m=2, n=4n=4. At most (42)=6\binom{4}{2}=6.

Key observation: columns c1,c2,c4c_1, c_2, c_4 are all multiples of (1,2)T(1,2)^T: c1=2(1,2)T,c2=(1,2)T,c4=(1,2)T.c_1=2(1,2)^T,\quad c_2=-(1,2)^T,\quad c_4=(1,2)^T. Any pair from {c1,c2,c4}\{c_1,c_2,c_4\} is singular. That accounts for 3 singular pairs: {x1,x2}\{x_1,x_2\}, {x1,x4}\{x_1,x_4\}, {x2,x4}\{x_2,x_4\}.

The remaining 3 pairs all contain c3c_3, which is not parallel to (1,2)T(1,2)^T, so each is non-singular. Exactly 3 basic solutions exist.

BasisSolutionFeasible?Degenerate?
{x1,x3}\{x_1,x_3\}(187,0,27,0)\left(\tfrac{18}{7},0,\tfrac{2}{7},0\right)YesNo
{x2,x3}\{x_2,x_3\}(0,367,27,0)\left(0,-\tfrac{36}{7},\tfrac{2}{7},0\right)No (x2<0x_2<0)
{x3,x4}\{x_3,x_4\}(0,0,27,367)\left(0,0,\tfrac{2}{7},\tfrac{36}{7}\right)YesNo

3 basic solutions: 2 feasible (both non-degenerate), 1 infeasible.\boxed{3 \text{ basic solutions: 2 feasible (both non-degenerate), 1 infeasible.}}

The 2025 version of this question additionally asks to count non-degenerate solutions: all 3 are non-degenerate (no basic variable is zero in any of the three solutions).

Common Traps


lpp-formulation (2 questions; 2018, 2020)

Recognition Cues

Solution Template

  1. Name the decision variables. What does the candidate control? Typically: number of units of each type produced/purchased.
  2. Objective function. Profit (maximise) or cost (minimise) per unit × number of units.
  3. Constraints. For each resource/requirement: (usage per unit of type 1)x1x_1 + (usage per unit of type 2)x2x_2 \le (available). Add non-negativity xi0x_i \ge 0.
  4. Standard form. Convert \le to == by adding slacks si0s_i \ge 0.
  5. Check. Units consistent; constraints are \le (not ==) unless exhaustion is mandated.

Worked Example(s)

2018 Paper 2, 2018-P2-Q1e (10 marks)

An agricultural firm has 180 t nitrogen, 250 t phosphate, 220 t potash. Mixture I (ratio 3:3:4) yields Rs 1500/t profit; Mixture II (ratio 2:4:2) yields Rs 1200/t. Pose the LP.

Variables: x1x_1 = tonnes of Mixture I, x2x_2 = tonnes of Mixture II.

Per-tonne resource use: Ratio 3:3:4 sums to 10, so Mixture I uses 3/103/10 t nitrogen, 3/103/10 t phosphate, 4/104/10 t potash per tonne. Ratio 2:4:2 sums to 8, so Mixture II uses 1/41/4, 1/21/2, 1/41/4 respectively.

LPP (cleared of fractions by multiplying constraints by 20):

Maximise Z=1500x1+1200x2Z = 1500x_1 + 1200x_2 subject to:

6x1+5x23600(nitrogen×20)6x_1+5x_2 \le 3600 \qquad\text{(nitrogen} \times 20) 6x1+10x25000(phosphate×20)6x_1+10x_2 \le 5000 \qquad\text{(phosphate} \times 20) 8x1+5x24400(potash×20)8x_1+5x_2 \le 4400 \qquad\text{(potash} \times 20) x1,x20.x_1,x_2 \ge 0.

The question only asks to pose the LP; solving is not required.


2020 Paper 2, 2020-P2-Q1e (10 marks)

Stock pieces are 17 ft. Requirements: 5 ft (700), 9 ft (400), 7 ft (300). Minimise trim loss; give a BFS.

This is a cutting-stock problem. Decision variables: xjx_j = number of pieces cut to pattern PjP_j.

Maximal cutting patterns (no more curtain of any length fits):

Pattern5 ft7 ft9 ftTrim loss
P1P_10111 ft
P2P_20203 ft
P3P_31013 ft
P4P_42100 ft
P5P_53002 ft

Objective: min  z=x1+3x2+3x3+0x4+2x5.\min\; z = x_1 + 3x_2 + 3x_3 + 0\,x_4 + 2x_5.

Demand constraints (standard form with surplus sis_i and artificial AiA_i): x3+2x4+3x5s1+A1=700(5-ft)x_3+2x_4+3x_5 - s_1 + A_1 = 700 \quad(5\text{-ft}) x1+2x2+x4s2+A2=300(7-ft)x_1+2x_2+x_4 - s_2 + A_2 = 300 \quad(7\text{-ft}) x1+x3s3+A3=400(9-ft)x_1+x_3 - s_3 + A_3 = 400 \quad(9\text{-ft})

A BFS: use P5P_5 for 5-ft demand, P2P_2 for 7-ft, P1P_1 for 9-ft: x5=700/3,x2=150,x1=400;x3=x4=0,  s1=s2=0,  s3=0.x_5 = 700/3,\quad x_2 = 150,\quad x_1 = 400;\quad x_3=x_4=0, \; s_1=s_2=0,\; s_3=0. Trim loss =400+450+1400/31317= 400 + 450 + 1400/3 \approx 1317 ft. (This is a valid BFS, not necessarily optimal.)

Common Traps


optimum-without-simplex (1 question; 2015)

Recognition Cues

Solution Template

  1. Existence. Quote the fundamental theorem: feasible region non-empty (cite a known BFS) + objective bounded on the region \Rightarrow optimum attained at a BFS.
  2. Bound the objective. Substitute the equality constraints to eliminate variables. Express ZZ in terms of the free (non-basic) variables, all of which are 0\ge 0. A coefficient of 7-7 on x3x_3 with x30x_3 \ge 0 immediately gives ZZ0Z \le Z_0.
  3. Identify the optimal BFS. Plug each BFS into the simplified ZZ-formula; the one achieving Z0Z_0 is optimal.

Worked Example

2015 Paper 2, 2015-P2-Q3c-ii (10 marks)

(Continuation of Q3c-i above.) Without solving, show the LPP has an optimal solution; find which BFS are optimal.

LPP: Maximise Z=x1+2x23x3+4x4Z = x_1+2x_2-3x_3+4x_4 subject to x1+x2+2x3+3x4=12x_1+x_2+2x_3+3x_4=12, x2+2x3+x4=8x_2+2x_3+x_4=8, xi0x_i \ge 0.

Step 1 — Existence. From Q3c-i, (4,8,0,0)(4,8,0,0) is a BFS, so the feasible region is non-empty.

Step 2 — Bound ZZ. From the two constraints, express x4=8x22x3x_4 = 8-x_2-2x_3 and x1=2x2+4x312x_1 = 2x_2+4x_3-12. Substitute into ZZ: Z=(2x2+4x312)+2x23x3+4(8x22x3)=207x3.Z = (2x_2+4x_3-12)+2x_2-3x_3+4(8-x_2-2x_3) = 20-7x_3. Since x30x_3 \ge 0, we have Z20Z \le 20. So ZZ is bounded above, and by the fundamental theorem the LPP has a finite optimal solution.

Step 3 — Find optimal BFS. Z=207x3Z=20-7x_3 is maximised when x3=0x_3=0:

BFSx3x_3ZZ
(4,8,0,0)(4,8,0,0)020
(4,0,4,0)(4,0,4,0)48-8
(0,6,0,2)(0,6,0,2)020
(0,0,3,2)(0,0,3,2)31-1

Two BFS are optimal: (4,8,0,0)(4,8,0,0) and (0,6,0,2)(0,6,0,2), both achieving Zmax=20Z_{\max}=20.

The entire line segment between them is also optimal (alternative optima).

Common Traps

Marks-Aware Writing

10-mark answer (basic-solutions): Write the (nm)\binom{n}{m} count up front; identify singular column pairs with a one-line determinant check; tabulate all non-singular solutions (basis, solution, feasible Y/N, degenerate Y/N). State the answer. No more, no less.

15-mark answer (basic-solutions): Same structure, but add a brief explanation of why certain pairs are singular (proportional columns), verify at least one solution by back-substitution, and explicitly state the count of feasible vs infeasible basic solutions.

10-mark formulation: Variables → objective → constraints → non-negativity → standard form. Each on its own line; dimensions/units checked in one sentence. The question says “pose” — do not solve.

Practice Set

We've mapped all 13 years of this exam. Get new chapters, tools, and solutions as we release them — free.