Skip to main content
EnglandFurther MathsSyllabus dot point

How do you formulate a linear programming problem and solve it graphically or with the simplex method?

Formulating linear programming problems, the feasible region and graphical solution, the vertex (objective line) method, slack variables, and the simplex algorithm for maximisation.

A focused answer to the AQA A-Level Further Mathematics linear programming content, covering formulating problems, the feasible region and graphical solution, the vertex and objective line methods, slack variables, and the simplex algorithm for maximisation.

Generated by Claude Opus 4.811 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this dot point is asking
  2. Formulating and the feasible region
  3. Graphical solution
  4. Slack variables and the simplex algorithm
  5. Reading the final tableau
  6. Minimisation problems

What this dot point is asking

AQA wants you to formulate a linear programming problem with an objective function and constraints, draw the feasible region, solve graphically using the vertex method or an objective line, introduce slack variables to form equations, and carry out the simplex algorithm to maximise an objective.

Formulating and the feasible region

The hardest marks in a linear programming question often come from the formulation, not the solving. Define the decision variables precisely (say what xx and yy count and in what units), write the objective function to maximise or minimise, and translate each restriction in the wording into a linear inequality. Resource limits give \leq constraints, minimum-requirement conditions give \geq constraints, and the non-negativity conditions x0x \geq 0 and y0y \geq 0 are almost always implied. Reading the constraints carefully and simplifying them (for example dividing 4x+2y404x + 2y \leq 40 down to 2x+y202x + y \leq 20) makes the graphical work cleaner.

Graphical solution

The objective-line (or profit-line) method is the alternative to testing every vertex: draw one line ax+by=cax + by = c for a convenient cc, then slide it parallel across the region in the direction of increasing objective; the last vertex it touches is the optimum.

Slack variables and the simplex algorithm

When there are more than two variables you cannot draw the region, so you add a slack variable to each \leq constraint to make it an equation, then build the simplex tableau and pivot algebraically. The slack variables measure the unused amount of each resource, and they are non-negative because you cannot use more than is available.

Each simplex iteration chooses a pivot column (the most negative entry in the objective row, the variable that raises PP fastest), then a pivot row (the smallest non-negative ratio of constraint value to pivot-column entry, so no constraint is violated). You then divide the pivot row to make the pivot element 11 and add multiples of it to the other rows to clear the pivot column. The algorithm stops when the objective row has no negative entries, at which point the basic variables read off the optimal solution. The simplex method effectively walks from vertex to vertex of the feasible region, improving the objective each step, which is why it always lands on the optimal corner.

Reading the final tableau

When the simplex algorithm halts, the answer is read directly from the tableau rather than recomputed. A variable is basic (non-zero) if its column is a unit column, that is a single 11 with zeros elsewhere; its value is the number in the value column of the row holding that 11. Every other variable is non-basic and equals zero. The objective row's value entry is the optimal value of PP. The numbers sitting in the objective row above the slack columns also carry meaning: they are the shadow prices, telling you how much PP would rise per extra unit of each resource, which is the standard way an exam asks you to interpret the solution.

A practical point that trips students is the ratio test for the pivot row. You only form ratios for strictly positive entries in the pivot column; a zero or negative entry is skipped, because increasing that variable would not bind against the corresponding constraint. If no entry in the pivot column is positive, the problem is unbounded and the objective can grow without limit, which signals a mistake in the formulation for a normal exam question. Keeping the arithmetic in exact fractions until the final step avoids rounding errors that would otherwise accumulate across several pivots.

Minimisation problems

AQA problems are usually phrased as maximisation, but a minimisation can be handled by maximising the negative of the objective, since minimising CC is the same as maximising C-C. Alternatively, for a graphical minimisation you slide the objective line in the direction of decreasing value and take the first vertex it touches. Either way the optimum still sits at a vertex of the feasible region, so the vertex-testing method works unchanged: list the corner points, evaluate the objective at each, and select the smallest. The skill the marks reward is correct formulation followed by systematic vertex evaluation, not clever shortcuts.

Exam-style practice questions

Practice questions written in the style of AQA exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

AQA 20207 marksA factory makes xx tables and yy chairs. Each table needs 44 hours of labour and 22 units of wood; each chair needs 22 hours of labour and 11 unit of wood. There are 4040 hours of labour and 2424 units of wood available. The profit is GBP 30 per table and GBP 20 per chair. Formulate the linear program and find the production that maximises profit.
Show worked answer →

Objective: maximise P=30x+20yP = 30x + 20y.

Constraints: labour 4x+2y404x + 2y \leq 40 (so 2x+y202x + y \leq 20); wood 2x+y242x + y \leq 24; and x0x \geq 0, y0y \geq 0.

Notice 2x+y202x + y \leq 20 is tighter than 2x+y242x + y \leq 24, so the wood constraint is non-binding once labour is satisfied. The feasible region has vertices (0,0)(0, 0), (10,0)(10, 0) and (0,20)(0, 20).

Evaluate PP at each vertex: (0,0)(0, 0) gives 00; (10,0)(10, 0) gives 300300; (0,20)(0, 20) gives 400400.

The maximum profit is GBP 400, making 00 tables and 2020 chairs.

Markers reward the objective, both resource constraints with non-negativity, identifying the vertices, and testing each to find the maximum.

AQA 20225 marksA maximising linear program has been written with slack variables as the simplex tableau objective row P3x5y=0P - 3x - 5y = 0, with constraint rows for x+y+s1=4x + y + s_1 = 4 and x+3y+s2=6x + 3y + s_2 = 6. Identify the first pivot column and the pivot row, giving your reasoning.
Show worked answer →

The pivot column is the one with the most negative entry in the objective row, because that variable increases PP fastest. The entries are 3-3 for xx and 5-5 for yy, so the pivot column is yy.

For the pivot row, take the ratio of each constraint's value to its positive entry in the yy column. Row 1: 41=4\frac{4}{1} = 4. Row 2: 63=2\frac{6}{3} = 2.

Choose the smallest non-negative ratio, which is 22 in row 2, so the pivot row is the x+3y+s2=6x + 3y + s_2 = 6 row and the pivot element is the 33 in the yy column.

Markers reward selecting the most negative objective entry for the column, computing the ratios, and choosing the smallest ratio for the row.

Related dot points

Sources & how we know this