All revision notes topics

Formulating and graphical solution of LPsAQA A-Level Further Maths: Revision notes

Section 1

Formulating a linear programme

Linear programming finds the best value of a linear objective function subject to linear constraints. To formulate a problem: (1) define the decision variables, e.g. xx tables and yy chairs; (2) write the objective function to be maximised (profit) or minimised (cost), e.g. P=50x+30yP=50x+30y; (3) write each constraint as an inequality using the same units on both sides, e.g. 4x+2y≤404x+2y\leq40 for 40 hours of carpentry when a table takes 4 hours and a chair takes 2; (4) include non-negativity constraints x≥0x\geq0, y≥0y\geq0. Phrases translate as follows: 'at most' is ≤\leq, 'at least' is ≥\geq, 'at least twice as many chairs as tables' is y≥2xy\geq2x.

Key termsdecision variablesobjective functionconstraintnon-negativity
Common mistake

Swapping the coefficients, so that the hours per table appear against chairs. Check each constraint against the wording.

Section 2

Drawing the feasible region

For each constraint, draw its boundary line: find two points, often the axis intercepts, by setting x=0x=0 then y=0y=0. For 2x+y≤142x+y\leq14 the intercepts are (7,0)(7,0) and (0,14)(0,14). Test a point such as the origin to see which side satisfies the inequality, and shade the unwanted side so the feasible region is left clear. The feasible region is the set of points satisfying every constraint. Its corners are called vertices. A vertex is found either as an axis intercept or by solving two boundary equations simultaneously, for example 2x+y=142x+y=14 and x+2y=10x+2y=10 meet where x=6x=6 and y=2y=2.

Key termsfeasible regionvertex
Exam tip

Label every line with its equation and shade the unwanted side, so the feasible region is clear and the examiner can follow it.

Section 3

The objective line method

Write the objective as ax+by=kax+by=k. It is a line of gradient −ab-\frac ab, and different values of kk give parallel lines. Draw one such line through the feasible region, then slide it parallel to itself. For a maximum, move it away from the origin until the last point of the feasible region it touches, which is an optimal vertex. For a minimum, move it towards the origin until the first point it touches. Example: P=3x+2yP=3x+2y has gradient −32-\frac32. It lies between the gradients −2-2 of 2x+y=142x+y=14 and −12-\frac12 of x+2y=10x+2y=10, so the optimum is where those two lines meet, (6,2)(6,2), giving P=22P=22.

Key termsobjective lineoptimal vertex
Common mistake

Moving the objective line the wrong way. Maximise: away from the origin. Minimise: towards the origin.

Section 4

The vertex testing method

The optimal value of a linear objective over a feasible region always occurs at a vertex. So an alternative to the ruler method is to list every vertex, evaluate the objective function at each, and choose the greatest (maximise) or least (minimise). Example: for P=3x+2yP=3x+2y the vertices (0,0)(0,0), (7,0)(7,0), (6,2)(6,2), (0,5)(0,5) give 00, 2121, 2222, 1010, so the maximum is 22. For a minimum cost over (6,3)(6,3), (4,6)(4,6), (8,2)(8,2) with C=3x+4yC=3x+4y, the values are 3030, 3636, 3232, so the minimum is 30 at (6,3)(6,3). This method is reliable, and it also shows near-optimal vertices.

Exam tip

Do both when you can. The objective line shows why a vertex is best and the vertex values check your arithmetic.

Section 5

Solving and interpreting in context

Give the answer in the language of the problem, with units: say how many of each item to make, and the maximum profit or minimum cost. Adding or changing a constraint can move the optimum. Example: in a school shop with 3x+2y≤1203x+2y\leq120, x+y≤50x+y\leq50, y≥15y\geq15 and profit 4x+3y4x+3y, the optimum is (20,30)(20,30) with profit £170. Adding x≥yx\geq y makes (20,30)(20,30) infeasible, and the new optimum is (24,24)(24,24) with profit £168. To check a point is feasible, substitute it into every constraint. A point such as (5,4)(5,4) in a feed problem requiring protein 3x+2y≥243x+2y\geq24 gives 2323, so it fails.

Common mistake

Stopping at the coordinates. State the value of the objective function as well when the question asks for it.

That's the notes covered.

Carry on to the next subtopic.

Exam questions on Formulating and graphical solution of LPs

  1. A workshop makes xx tables and yy chairs each week. Each table needs 4 hours of carpentry and 2 hours of finishing. Each chair needs 2 hours of carpentry and 3 hours of finishing. There are 40 hours of carpentry and 30 hours of finishing available each week. The workshop must make at least twice as many chairs as tables. The profit is £50 per table and £30 per chair, and the workshop wants to maximise its weekly profit.
    Write down the objective function and explain why x≥0x\geq0 and y≥0y\geq0 must be included as constraints.2 marks
  2. A farmer mixes xx kg of feed XX and yy kg of feed YY for each day. Each kilogram of XX has 3 units of protein and 1 unit of fibre and costs £3. Each kilogram of YY has 2 units of protein and 2 units of fibre and costs £4. Each day the mixture must contain at least 24 units of protein and at least 12 units of fibre, and it must weigh at most 10 kg. The farmer wants to minimise the daily cost.
    Explain why a mixture of 5 kg of XX and 4 kg of YY is not allowed.2 marks
  3. Maximise P=3x+2yP=3x+2y subject to 2x+y≤142x+y\leq14, x+2y≤10x+2y\leq10, x≥0x\geq0 and y≥0y\geq0.
    Find the coordinates of the vertices of the feasible region.3 marks
See the full worksheet

Written by the Exaim team, led by Shaun Daswani (Head of Upper Secondary, Improve ME Institute; MSc Financial Mathematics, Imperial College London; BSc, UCL) and Jason Daswani (operational lead, Improve ME Institute; LSE).