Unit 01 — Linear Programming

Formulating an LPP, solving it graphically, the five special cases, the simplex tableau, duality, and reading a sensitivity report. This is the largest unit in the portion and the one every paper draws from most heavily.

SESSIONS: 8 TEXTBOOK: ANDERSON & SWEENEY — SEC. 2.1–2.6, CH. 17–18 SCOPE: FORMULATION · GRAPHICAL · SIMPLEX · DUAL · SENSITIVITY Full PPT: LPP deck 25 Graphical deck 8 Special cases 7 Sensitivity & Duality 24
◆ What the papers actually ask from this unit

Across both 2025-26 papers, Unit 1 supplied 4 of the 5 compulsory-plus marks in Q1 and at least two full 5-mark questions. The pattern is remarkably stable:

  • Q1A (2.5 marks) — Primal → Dual conversion. Appeared in both papers, worded identically. See it solved →
  • Q3B / Q3B (5 marks) — Formulate an LPP. Appeared in both papers. Never asks you to solve it — formulation only. Solved →
  • Q4A / Q4B (5 marks) — Interpret a sensitivity report. Appeared in both papers, five sub-parts each. Solved →
  • Q7A (5 marks) — Identify the special case from a final simplex tableau. Solved →

1. What Is Linear Programming? Core syllabus concept

1Understand the Concept

Linear Programming is a mathematical technique for allocating limited resources among competing activities in the best possible way. "Linear" because the relationship between raw materials and consumption is linear; "programming" in the older sense of planning, not computer code Class notes p. 2.

Every LPP has exactly four building blocks. If your answer is missing one, you lose marks — so write all four every single time, with headings:

#BlockWhat it isWhy it exists
1Decision variablesThe quantities you control — X₁, X₂, …They represent the availability/allocation of resources you are choosing.
2Objective functionMax Z or Min Z, a linear expression in the decision variablesThe single thing being optimised — profit, cost, time.
3ConstraintsLinear inequalities/equations limiting the variablesResources are always constrained — there is never unlimited labour or material.
4Non-negativity restriction (NNC)X₁, X₂ ≥ 0A production model must not give negative output. Stated explicitly, always.

2General mathematical structure

Optimise (Max or Min) Z = c₁X₁ + c₂X₂ + … + cₙXₙ Subject to a₁₁X₁ + a₁₂X₂ + … + a₁ₙXₙ (≤ , = , ≥) b₁ a₂₁X₁ + a₂₂X₂ + … + a₂ₙXₙ (≤ , = , ≥) b₂ ⋮ aₘ₁X₁ + aₘ₂X₂ + … + aₘₙXₙ (≤ , = , ≥) bₘ and X₁, X₂, …, Xₙ ≥ 0

Here cⱼ are the objective coefficients (profit/cost per unit), aᵢⱼ the technological coefficients (how much of resource i one unit of activity j consumes), and bᵢ the RHS or resource availability Notes p. 4.

3The four assumptions that must hold

  • Proportionality — doubling an activity doubles its contribution and its resource use. No bulk discounts, no economies of scale.
  • Additivity — total profit is the sum of individual profits; activities do not interact.
  • Divisibility — variables may take fractional values. When this fails you need Integer Programming — that is exactly why Unit 2 exists.
  • Certainty — all coefficients cⱼ, aᵢⱼ, bᵢ are known constants. When you want to test how safe that assumption is, you do sensitivity analysis — concept 6 below.
Why this list is worth memorising: a 2.5-mark "briefly answer" question can ask for it directly, and it also gives you the one-line justification for why ILP and sensitivity analysis are separate topics at all.

4Solution vocabulary you must be able to define

TermMeaning
Feasible solutionA set of values of the decision variables that satisfies all constraints and the non-negativity restriction.
Infeasible solutionA set of values that violates at least one constraint or the NNC p. 3.
Feasible regionThe set of all feasible solutions — the shaded polygon in a graphical solution.
Basic solutionFor m equations in n variables (n > m), a solution obtained by setting (n − m) variables to zero and solving for the remaining m.
Basic feasible solutionA basic solution that is also feasible. Corner points of the feasible region are exactly the basic feasible solutions — this is why the graphical and simplex methods agree.
Optimal solutionThe feasible solution that gives the best (max or min) value of Z.
Unbounded solutionZ can be increased (or decreased) infinitely without violating any constraint.
Sources
Primary QT Complete Study Notes — building blocks, structure, properties, definitions pp. 3–7
Lecture Linear Programming Problem deck pp. 1–4 · Class notes p. 2

2. Formulating an LPP Core syllabus concept

1The four-step method

Formulation is the single highest-yield skill in this paper: it appeared as a 5-mark question in both 2025-26 papers, and formulation also underlies the Unit 2 and Unit 3 questions. The method never changes Notes p. 8:

StepWhat to writeTrap to avoid
1. Decision variables"Let X₁ be the number of tables to be made", "Let X₂ be the number of chairs to be made"Never just write "X₁ = tables". State the unit — number of units, litres, hours, boxes.
2. Objective functionMax Z = 200X₁ + 90X₂  (profit)  or  Min Z = … (cost)Decide Max vs Min from the wording: profit/revenue/contribution → Max; cost/time/waste → Min.
3. ConstraintsOne inequality per resource, each labelled: "6X₁ + 4X₂ ≤ 1200  (man-hour constraint)"Getting the direction wrong. Available/capacity/at most → ≤. Requirement/at least/minimum → ≥.
4. Non-negativityX₁, X₂ ≥ 0Forgetting it. It is a separate marked line in the synoptic key.

2Worked formulation — chairs and tables

This is the exact 2025-26 Final Exam Q3B, 5 marks QP p. 3

A small-scale manufacturer produces wooden chairs and tables. Each chair requires 4 hours of carpentry and 2 hours of finishing; each table requires 3 hours of carpentry and 3 hours of finishing. Profit is ₹200 per chair and ₹300 per table. Total carpentry time per week is 120 hours and finishing time is 90 hours. Formulate the LPP to maximise profit.

Solution — written the way the examiner wants it

Step 1 — Decision variables. The two things the manufacturer chooses are how many chairs and how many tables to make.

Let X₁ = number of chairs to be produced per week Let X₂ = number of tables to be produced per week

Step 2 — Objective function. "Profit" and "maximise" ⟹ Max.

Max Z = 200X₁ + 300X₂ (total weekly profit in ₹)

Step 3 — Constraints. Build a small table first — it prevents almost every formulation error:

ResourcePer chair (X₁)Per table (X₂)Available
Carpentry (hrs)43120
Finishing (hrs)2390

Now read each row straight off the table. Both are available times, so both are ≤.

4X₁ + 3X₂ ≤ 120 (carpentry hours constraint) 2X₁ + 3X₂ ≤ 90 (finishing hours constraint)

Step 4 — Non-negativity.

X₁, X₂ ≥ 0

The complete answer is those four blocks written out with their headings. The question says "Formulate" — so stop here. Do not solve it graphically, do not build a simplex tableau. You earn nothing for it and you lose time.

⚠ The resource table trick

Whenever a formulation question gives you prose rather than a table, draw the resource table first — rows are resources, columns are decision variables, last column is availability. Every row then becomes one constraint, read left to right. It takes twenty seconds and it is the difference between a clean 5/5 and a transposed matrix.

3Formulation patterns that recur

Signal in the questionWhat it becomes
"total available", "capacity", "not exceed", "at most"≤ constraint
"must contain at least", "minimum requirement", "no less than"≥ constraint
"exactly", "all workers must be assigned", "total = "= constraint
"weekly production cannot exceed 25 units of P1"A single-variable bound: X₁ ≤ 25 p. 2
Diet / blending / "at least 4000 units of vitamins"Min objective with ≥ constraints p. 5
Multiple plants × multiple productsDouble-subscript variables X₁…X₄, one constraint per plant and per product p. 6

Practice A1–A5 — 5 formulation problems solved step by step →

Sources
Primary QT Complete Study Notes — step-by-step formulation pp. 8–12
Lecture Worked formulations #1–#4 pp. 4–7 · Class notes pp. 2–4
Exam Final Q3B QP p. 3 · Re-Exam Q3B QP p. 3

3. Graphical Solution Method Core syllabus concept

1Understand the Concept

The graphical method works for exactly two decision variables. Its value is not that it is practical — it is that it makes visible why the optimum is always at a corner, which is the idea the simplex method automates.

2The six-step procedure

StepDo this
1Turn every constraint into an equation (replace ≤ or ≥ with =).
2Find two points on each line: set X₁ = 0 and solve for X₂, then set X₂ = 0 and solve for X₁. Tabulate them.
3Plot the lines and shade the feasible region — the area satisfying all constraints simultaneously.
4Identify every corner point of the feasible region. Where two lines cross, solve the pair simultaneously to get exact coordinates.
5Evaluate Z at every corner point. Lay it out as a table.
6Pick the largest Z (Max problem) or smallest Z (Min problem). State the optimal X₁, X₂ and the optimal Z with units.

3Worked example — the tables-and-chairs graph

Max Z = 200X₁ + 90X₂  (the standing class example)
Max Z = 200X₁ + 90X₂ s.t. 35X₁ + 10X₂ ≤ 3500 (line 1) 6X₁ + 4X₂ ≤ 1200 (line 2) X₁, X₂ ≥ 0
Solution

Steps 1–2 — intercepts.

LineSet X₁ = 0Set X₂ = 0
35X₁ + 10X₂ = 3500X₂ = 350 → (0, 350)X₁ = 100 → (100, 0)
6X₁ + 4X₂ = 1200X₂ = 300 → (0, 300)X₁ = 200 → (200, 0)

Step 3–4 — feasible region is OAEC, with corner points O(0,0), A(0,300), E(25,260) and C(100,0) Graphical deck p. 1. Point E is where the two lines intersect; you get it by solving the pair simultaneously.

Step 5 — evaluate Z at each corner. Always lay this out as a table; the examiner is looking for it.

Corner point(X₁, X₂)Z = 200X₁ + 90X₂
O(0, 0)0
A(0, 300)200(0) + 90(300) = ₹27,000
E(25, 260)200(25) + 90(260) = ₹28,400 ← maximum
C(100, 0)200(100) + 90(0) = ₹20,000

Step 6 — answer. Produce 25 tables and 260 chairs for a maximum profit of ₹28,400.

Hand-drawn graphical solution on graph paper: two constraint lines plotted, feasible region shaded, corner points A and B marked in red
The same problem drawn out on graph paper in class — note the labelled corner points
Class notes p. 8
⚠ Graphical method — where marks are lost
  • Reading the intersection off the graph instead of solving it. Corner E is (25, 260), not "about (25, 260)". Solve the two equations simultaneously and show that working.
  • Forgetting the origin. O(0,0) is a corner point of the feasible region whenever all constraints are ≤. Include it in the table.
  • Shading the wrong side. Test the origin in each constraint: if (0,0) satisfies it, shade toward the origin. For a ≥ constraint it usually will not.
  • Stopping at the corner point. The answer is the decision and the value of Z, with units — "25 tables and 260 chairs, profit ₹28,400".

Practice B1–B4 — 4 graphical problems with full corner-point tables →

Sources
Primary QT Complete Study Notes — graphical method pp. 13–19
Lecture LPP Graphical 2025 — problems #1–#5 pp. 1–8 · Class notes with plotted graphs pp. 7–15

4. The Five Special Cases Core syllabus concept

1Understand the Concept

Most LPPs have one clean optimum. Five things can go differently — and the exam asks you to recognise which one has happened from a tableau or a graph. Final Exam Q7A was exactly this, for 5 marks QP p. 5. Learn the identification signal for each; that is what is being marked.

CaseWhat it meansSignal in the simplex tableauSignal on the graph
1. Unique optimum Exactly one optimal solution. All Cⱼ − Zⱼ < 0 for non-basic variables (Max problem). Objective line touches the region at exactly one corner.
2. Multiple optimal solutions More than one combination gives the same best Z. Management gets a free choice. A non-basic variable has Cⱼ − Zⱼ = 0 in the optimal table. Objective line is parallel to a binding constraint — it touches along a whole edge.
3. Unbounded solution Z can grow infinitely. Always means the problem was formulated wrongly — no real business earns infinite profit. No positive replacement ratio — all ratios are negative or infinite, so there is no outgoing variable. Feasible region is open in the direction of improvement.
4. Infeasible solution No point satisfies all constraints at once. An artificial variable stays in the basis at a non-zero value when the optimality condition is already met. No common shaded region exists.
5. Degenerate solution A basic variable equals zero. Causes cycling risk. At least one basic variable has value 0 in the Quantity column — caused by a tie in the replacement ratio. Three or more constraints pass through the same corner point.

2The class example for each case

Memorise one example per case — they get reused as exam stems
DEGENERATE UNBOUNDED Max Z = 3X₁ + 9X₂ Max Z = 5X₁ + 4X₂ X₁ + 4X₂ ≤ 8 X₁ ≤ 7 X₁ + 2X₂ ≤ 4 X₁ − X₂ ≤ 8 X₁, X₂ ≥ 0 X₁, X₂ ≥ 0 → tie in replacement ratio → replacement ratios are ∞ and −1 INFEASIBLE MULTIPLE OPTIMA Max Z = 200X₁ − 300X₂ Max Z = 4X₁ + 10X₂ 2X₁ + 3X₂ ≥ 7 2X₁ + X₂ ≤ 10 X₁ + X₂ ≤ 400 2X₁ + 5X₂ ≤ 20 2X₁ + 1.5X₂ ≥ 900 2X₁ + 3X₂ ≤ 18 X₁, X₂ ≥ 0 X₁, X₂ ≥ 0 → artificial variable stays → a non-basic variable has Cⱼ−Zⱼ = 0

All four are from the Special Cases deck pp. 1–7, and the infeasible one is reproduced in the class notes p. 19.

⚠ Do not confuse these two

Degenerate = a basic variable is zero (look in the Quantity column). Multiple optima = a non-basic variable has Cⱼ − Zⱼ = 0 (look in the index row). Different column, different row, different diagnosis. Q7A of the Final paper turns exactly on telling them apart.

Practice D1–D4 — identify the case from four tableaux →

Sources
Primary QT Complete Study Notes — special cases pp. 20–24
Lecture Special Cases in LPP deck pp. 1–7 · Class notes p. 19
Exam Final Q7A — identify the case from a final tableau QP p. 5

5. The Simplex Method Core syllabus concept

1Understand the Concept

The graphical method dies at three variables. The simplex method is an algebraic procedure that walks from one basic feasible solution (corner point) to a better adjacent one, and stops when no further improvement is possible.

2Step 1 — convert inequalities into equations

Constraint typeAddMeaning
+ Slack variable (S)The unused amount of that resource.
− Surplus variable, then + Artificial variable (A)Surplus = the amount by which you exceed the requirement. The artificial variable only exists to give a starting basis.
=+ Artificial variable (A)Again purely to start the algorithm.
6X₁ + 4X₂ ≤ 1200 becomes 6X₁ + 4X₂ + S₁ = 1200 2X₁ + 3X₂ ≥ 900 becomes 2X₁ + 3X₂ − S₂ + A₁ = 900

Setting X₁ = X₂ = 0 then gives the initial basic feasible solution: the slack variables equal the RHS values, and Z = 0 Notes p. 25.

3Step 2 — the tableau vocabulary

TermWhat it is
Cⱼ rowObjective coefficient of each variable.
Basic variablesThe variables currently in the solution (non-zero). Listed down the left.
Quantity (Qty) columnThe current values of the basic variables — and Z at the bottom.
Zⱼ rowFor each column: Σ (C of basic variable × that column's entry in the row).
Cⱼ − Zⱼ (index row)Net contribution per unit if that variable enters the solution. This row drives every decision.
Key/pivot columnThe entering variable — most positive Cⱼ − Zⱼ (Max problem).
Replacement ratioQty ÷ corresponding pivot-column entry, computed for every row.
Key/pivot rowThe leaving variable — smallest non-negative replacement ratio.
Pivot elementThe number where the pivot row and pivot column intersect.

4Step 3 — the iteration loop

The algorithm, in the order you execute it
  1. Build the initial table with slack variables as the starting basis.
  2. Compute Zⱼ for every column, then Cⱼ − Zⱼ.
  3. Optimality test: for a Max problem, stop when all Cⱼ − Zⱼ ≤ 0. For a Min problem, stop when all Cⱼ − Zⱼ ≥ 0.
  4. Entering variable = most positive Cⱼ − Zⱼ ⟹ that is the pivot column.
  5. Leaving variable = smallest non-negative replacement ratio (Qty ÷ pivot-column entry) ⟹ that is the pivot row.
  6. The intersection is the pivot element.
  7. New pivot row = Old pivot row ÷ pivot element.
  8. Every other new row = Old row − (that row's pivot-column entry × New pivot row).
  9. Recompute Zⱼ and Cⱼ − Zⱼ. Go back to step 3.

Full three-iteration worked example (Tables & Chairs) in the notes pp. 26–29, and step by step in the lecture deck pp. 19–25.

⚠ Simplex — the three errors that cost most
  • Using a negative or zero replacement ratio. Only positive ratios are candidates. If none exist, the problem is unbounded — say so.
  • Flipping the optimality test. Max stops at all Cⱼ − Zⱼ ≤ 0; Min stops at all Cⱼ − Zⱼ ≥ 0. Write which one you are doing at the top of the answer.
  • Row operations on the pivot row last. Always compute the new pivot row first, then use it to update every other row.

Practice C1–C2 — two full simplex runs, every tableau shown →

Sources
Primary QT Complete Study Notes — simplex, all steps and worked example pp. 25–29
Lecture Linear Programming Problem deck — slack/surplus, pivot element, iterations pp. 19–25

6. Duality in Linear Programming Core syllabus concept

1Understand the Concept

Every LPP (the primal) has a mirror-image partner (the dual). If the primal asks "what production plan maximises profit given these resources?", the dual asks "what is each resource worth?" — and its optimal variable values are exactly the shadow prices of the primal. That is why duality and sensitivity analysis are taught together.

◆ Highest-frequency question in the whole paper

"Convert the given LPP primal to its dual" was Q1A in both the Final and the Re-Exam, worth 2.5 marks each time Final QP p. 1 Re-Exam QP p. 1. It is the single most predictable 2.5 marks available. Both versions solved step by step →

2The conversion procedure

StepRule
1. Canonical form firstFor a Max primal, every constraint must be . For a Min primal, every constraint must be . Multiply a wrong-way inequality by −1 to flip it. Split every = constraint into two: one ≤ and one ≥ (then flip the ≥ one).
2. Flip the objectiveMax primal → Min dual. Min primal → Max dual.
3. Swap rolesPrimal with m constraints and n variables gives a dual with m variables (Y₁…Yₘ) and n constraints.
4. Swap RHS and objective coefficientsThe primal's RHS values (b) become the dual's objective coefficients; the primal's objective coefficients (c) become the dual's RHS.
5. Transpose the matrixPrimal rows become dual columns.
6. Flip the constraint directionMax primal (≤) → dual constraints are . Min primal (≥) → dual constraints are .
⚠ The equality-constraint trick — this is what the exam tests

Both exam versions deliberately include an = constraint and a wrong-direction inequality. Here is the mechanical fix:

  • An = constraint becomes two dual variables — one for the ≤ half and one for the ≥ half. They appear in the dual as +Y₃ − Y₄.
  • A ≥ constraint in a Max primal must be multiplied by −1 to become ≤. Every coefficient and the RHS flip sign — which is why the synoptic answer has −10Y₂ and −2Y₂ terms.
  • Count your dual variables before you start: number of primal constraints, with equalities counted twice. The Final's primal had 3 constraints (one of them =), so the dual has 4 variables — matching the key exactly Key p. 1.

3Quick reference — Primal ↔ Dual

Primal (Max)Dual (Min)
MaximiseMinimise
n variablesn constraints
m constraintsm variables
Objective coefficients (c)RHS values
RHS values (b)Objective coefficients
Constraints ≤Constraints ≥
Coefficient matrix ATranspose Aᵀ
One line worth adding to any duality answer: at the optimum, the primal and dual objective values are equal (strong duality), and the optimal dual variables are the shadow prices of the primal constraints. It shows you understand why the conversion matters.

Practice E1–E5 — 5 primal→dual conversions, hardest last →

Sources
Primary QT Complete Study Notes — duality, procedure and two worked examples pp. 34–38
Lecture Sensitivity and Duality deck pp. 19–24 · Class notes pp. 19–21 · Note 2 pp. 11–12
Exam Final Q1A p. 1 · Re-Exam Q1A p. 1

7. Sensitivity Analysis Core syllabus concept

1Understand the Concept

Sensitivity analysis — also called post-optimality analysis — studies the effect on the optimal solution of changes in the problem's parameters Deck p. 2. It answers two questions:

  1. How do changes in the objective function coefficients affect the optimal solution?
  2. How do changes in the right-hand-side values of the constraints affect it?
◆ Guaranteed 5 marks

A "read this sensitivity report and answer five questions" item appeared in both papers — Final Q4A and Re-Exam Q4B Final p. 3 Re-Exam p. 3. You are never asked to produce the report, only to interpret it. Both solved →

2The four things a report tells you

TermDefinitionHow to use it in an answer
Reduced cost How much the objective coefficient of a currently unused variable must improve before that variable enters the optimal solution. Reduced cost = 0 ⟹ the variable is in the solution (it is basic, value > 0). Reduced cost ≠ 0 ⟹ the variable is not produced, and its profit must rise by that amount before it would be.
Objective coefficient range Lower limit = current coefficient − allowable decrease; Upper limit = current coefficient + allowable increase. As long as the coefficient stays inside the range, the optimal quantities do not change. Crucially — the optimal Z value does change.
Shadow price (dual value) The improvement in the optimal objective value from a one-unit increase in that constraint's RHS, provided the change stays within the allowable range. Change in Z = shadow price × change in RHS. Say it in money: "one extra hour of carpentry is worth ₹14.69 of extra profit".
Binding vs non-binding A constraint is binding when it is fully used up. Binding: slack/surplus = 0 and shadow price ≠ 0. Non-binding: slack/surplus ≠ 0 and shadow price = 0. Quote both numbers as your evidence.
⚠ The distinction the examiner is hunting for

"Optimal solution does not change" does NOT mean "objective value does not change" Deck p. 9. If a profit coefficient moves inside its allowable range, you still produce the same quantities — but you earn a different profit. State both halves: "the optimal solution remains X₁ = 60, X₂ = 40, but Z changes to 45(60) + 20(40) = ₹3,500."

3The class worked example — advertising spaces

The standing example the questions are built on Deck p. 4
Let X₁ = large spaces, X₂ = small spaces Max Z = 50X₁ + 20X₂ s.t. 2X₁ + 4X₂ ≤ 400 Advertisement budget 100X₁ + 50X₂ ≤ 8000 Square footage X₁ ≤ 60 Rental limit X₁, X₂ ≥ 0

Optimal: X₁ = 60, X₂ = 40. Shadow price on square footage = 0.4.

The seven questions asked on it — and how each is answered
QuestionAnswerReasoning pattern
How much of the advertisement budget is spent?280Read the "used" value; the constraint is not fully consumed, so it is non-binding.
How much square footage is used?8000Fully consumed ⟹ binding ⟹ it has a non-zero shadow price.
Would the solution change if the budget became 300 instead of 400?No300 lies in the allowable range (280 → ∞), so the basis holds.
What if profit on large space fell from 50 to 45?Quantities unchanged; Z becomes ₹3,50045 lies inside the range (40 → ∞). Then recompute: 45(60) + 20(40) = 3500.
How much do earnings rise if square footage goes 8000 → 9000?+₹1,200Within range, so use the shadow price: 0.4 × 3000 = 1200.
Will the solution change if small-space profit goes 20 → 30?Check against X₂'s allowable rangeSame test as row 4 — compare the new coefficient with the printed bounds.
Will it change if large-space profit goes 50 → 35?35 is below the lower bound of 40 ⟹ yes, the basis changesOutside the range ⟹ you can no longer say the solution holds; it must be re-solved.

Questions and answers from the Sensitivity and Duality deck pp. 15–18; the class notes add the same interpretation in shorthand p. 1.

Answer template for any sensitivity sub-question: (1) name the rule you are using — shadow price / allowable range / reduced cost; (2) quote the number from the table; (3) do the arithmetic; (4) state the business meaning in one sentence. Four steps, every time.

Practice F1–F4 — including a shadow price used beyond its range →

Sources
Primary QT Complete Study Notes — reduced cost, ranges, shadow price, worked example pp. 30–33
Lecture Sensitivity and Duality deck pp. 1–18 · Class notes pp. 1–3
Exam Final Q4A p. 3 · Re-Exam Q4B p. 3