Linear programming: formulation, geometry and duality
A linear programme (LP) chooses activity levels under linear resource limits. Formulate the model before selecting a solution method. Continuous divisibility, proportional contributions, additivity and known coefficients are the standard LP assumptions.
4.1 Objective and resource constraints
Let be quantity of decision , its objective contribution per unit, its consumption of resource per unit, and the available amount of that resource.
Minimum-cost diet/blending problems use a minimisation objective and lower/upper quality or quantity bounds. A percentage requirement must first be multiplied by the total mixture quantity; it is linear if the ingredient fractions are constants. Distinguish availability from compulsory use. When products must be whole units, an ordinary LP is a relaxation unless the question explicitly permits fractions or integrality follows from the model.
Capacity and inventory balances in aggregate production plans are applications of this formulation; see the Production Planning and Control handbook for the planning model.
4.2 Feasible region and graphical optimisation
Past papers · ME 2020–2026 (10 papers): 3 questions, 5 marks
Each linear inequality is a half-plane in two variables. Test a point to choose the correct side of its boundary; include sign restrictions. Their intersection is convex. An active constraint holds at equality; a redundant constraint removes no feasible point.
For two variables, list feasible intersections of boundary lines, evaluate the objective at each, and inspect any unbounded direction. If a nonempty standard-form LP has a finite optimum, at least one basic feasible solution is optimal. A bounded polygon therefore has an optimal vertex. Multiple optimal vertices imply that every convex combination on the connecting face is also optimal.
| Outcome | Diagnostic |
|---|---|
| Unique optimum | One feasible vertex gives the best objective and no optimal edge extends from it |
| Alternate optima | Objective is constant along a feasible edge or face at the best value |
| Infeasible | No point satisfies all constraints |
| Unbounded objective | A feasible direction improves the objective without limit |
| Unbounded region, finite optimum | Region extends indefinitely but no such improving direction exists |
The optimum occurs at a feasible corner where the objective line last touches the region.
4.3 Standard form and variable conversions
This handbook calls standard form; the objective may be either maximised or minimised. Some texts use “standard” for inequality form, so read the equations rather than the label.
A slack variable has zero objective coefficient unless the question explicitly assigns a cost to unused capacity. A surplus variable alone does not provide a feasible positive unit-column starting basis for a constraint.
4.4 Constructing the dual
Past papers · ME 2020–2026 (10 papers): 1 question, 2 marks
The dual places values on resource constraints. Primal constraint rows become dual variables; primal variable columns become dual constraints. Transpose the coefficient matrix, keeping row/column identities intact.
For a maximisation primal, use this sign table. For a minimisation primal, reverse the dual inequality directions associated with nonnegative/nonpositive variables and reverse the sign assignments associated with primal constraints.
| Maximisation-primal item | Corresponding minimisation-dual item |
|---|---|
| Constraint | |
| Constraint | |
| Constraint | unrestricted |
| Variable | |
| Variable | |
| Variable unrestricted |
A feasible primal and dual with equal objective values certify optimality. An unbounded primal implies an infeasible dual. An infeasible primal does not by itself prove that the dual is unbounded; both can be infeasible.
4.5 Complementary slackness and shadow prices
Past papers · ME 2020–2026 (10 papers): 1 question, 1 mark
Use the max- pair in Section 4.4. A shadow price is the local increase in optimal objective per extra unit of resource, while the relevant optimal basis remains valid.
Unused resource means positive slack and hence zero shadow price. The converse is false: a binding constraint may have zero shadow price through redundancy or degeneracy. Sensitivity can be one-sided at a change of optimal basis; do not extrapolate a price indefinitely.
Last-minute recall
- Define decision units before writing coefficients.
- Distinguish resource upper bounds from minimum requirements.
- Check all feasible corners and any improving unbounded direction.
- Add slack to and subtract surplus from .
- Duality swaps variable and constraint roles and transposes the matrix.
- Feasible equal primal/dual values certify the optimum.
- Positive primal slack forces zero corresponding dual value.
- Shadow prices are local and have objective/resource units.