Skip to main content
Examonaut

Topic 5

Linear programming

Linear programming finds the best value of something, a profit, a cost, a time, when the choices are limited by resources. A factory with limited machine time, a farmer with limited land, a diet that must meet nutritional targets at the lowest cost: each becomes a set of linear inequalities and a linear objective. With two variables you can solve the problem on a graph; with more, the simplex algorithm does the job, one tableau at a time.

What you need to know

  • Formulate a problem in words as a linear programming problem: decision variables, objective function and constraints, including non-negativity.
  • Solve two-variable problems graphically: draw the feasible region and use the objective line (ruler) method or the vertex method, for maximising and minimising.
  • Find optimal solutions when the variables must be integers.
  • Use slack variables to write constraints as equations, and set up a simplex tableau.
  • Carry out the simplex algorithm: choose the pivot, perform row operations, recognise an optimal tableau and interpret it.
  • Use the two-stage simplex method and the big-M method for problems with ≥\geq constraints, using surplus and artificial variables.

Key points

  • Formulate: define variables, write the objective, and simplify every constraint, including ratios and x,y≥0x, y \geq 0.
  • Graphically, the optimum is at a vertex: use the objective line (ruler) or evaluate every vertex; for integers, test nearby integer points.
  • Simplex: pivot column = most negative in the objective row; pivot row = smallest positive ratio; optimal when no negatives remain.
  • Slack variables measure unused resources; read basic variables from the Value column, non-basic ones are 0.
  • For ≥\geq constraints use surplus and artificial variables: two-stage (maximise I=−∑aI = -\sum a first) or big-M (penalise with −Ma-Ma).

Practise this topic

Both are part of Premium.

Next lesson1. Formulating linear programming problems