Chapter 4

Linear programming: formulation, geometry and dualityME

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 constraintsME

Let xjx_j be quantity of decision jj, cjc_j its objective contribution per unit, aija_{ij} its consumption of resource ii per unit, and bib_i 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 optimisationME

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.

OutcomeDiagnostic
Unique optimumOne feasible vertex gives the best objective and no optimal edge extends from it
Alternate optimaObjective is constant along a feasible edge or face at the best value
InfeasibleNo point satisfies all constraints
Unbounded objectiveA feasible direction improves the objective without limit
Unbounded region, finite optimumRegion extends indefinitely but no such improving direction exists

The optimum occurs at a feasible corner where the objective line last touches the region.The optimum occurs at a feasible corner where the objective line last touches the region.

4.3 Standard form and variable conversionsME

This handbook calls Ax=b, x≥0Ax=b,\ x\ge0 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 ≥\ge constraint.

4.4 Constructing the dualME

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 ≤/≥\le/\ge primal constraints.

Maximisation-primal itemCorresponding minimisation-dual item
Constraint aiTx≤bia_i^Tx\le b_iyi≥0y_i\ge0
Constraint aiTx≥bia_i^Tx\ge b_iyi≤0y_i\le0
Constraint aiTx=bia_i^Tx=b_iyiy_i unrestricted
Variable xj≥0x_j\ge0(ATy)j≥cj(A^Ty)_j\ge c_j
Variable xj≤0x_j\le0(ATy)j≤cj(A^Ty)_j\le c_j
Variable xjx_j unrestricted(ATy)j=cj(A^Ty)_j=c_j

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 pricesME

Past papers · ME 2020–2026 (10 papers): 1 question, 1 mark

Use the max-≤\le 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 ≤\le and subtract surplus from ≥\ge.
  • 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.

Revise offline: the whole Operations Research handbook as one PDF

45 pages · 2.0 MBFree to read online. Sign in to download the PDF.We save the handbook, version and request time in My downloads. Privacy policy

All chapters · Corrections