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.
Reviewed by: AI editorial process; not yet individually human-reviewed
Have a quick question? Jump to the Q&A page
Jump to a section
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 and 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 constraints, minimum-requirement conditions give constraints, and the non-negativity conditions and are almost always implied. Reading the constraints carefully and simplifying them (for example dividing down to ) makes the graphical work cleaner.
Graphical solution
The objective-line (or profit-line) method is the alternative to testing every vertex: draw one line for a convenient , 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 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 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 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 with zeros elsewhere; its value is the number in the value column of the row holding that . Every other variable is non-basic and equals zero. The objective row's value entry is the optimal value of . The numbers sitting in the objective row above the slack columns also carry meaning: they are the shadow prices, telling you how much 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 is the same as maximising . 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 tables and chairs. Each table needs hours of labour and units of wood; each chair needs hours of labour and unit of wood. There are hours of labour and 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 .
Constraints: labour (so ); wood ; and , .
Notice is tighter than , so the wood constraint is non-binding once labour is satisfied. The feasible region has vertices , and .
Evaluate at each vertex: gives ; gives ; gives .
The maximum profit is GBP 400, making tables and 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 , with constraint rows for and . 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 fastest. The entries are for and for , so the pivot column is .
For the pivot row, take the ratio of each constraint's value to its positive entry in the column. Row 1: . Row 2: .
Choose the smallest non-negative ratio, which is in row 2, so the pivot row is the row and the pivot element is the in the 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
- Graph terminology including vertices, edges, degree, paths and cycles, special graphs such as trees and complete graphs, the adjacency matrix representation, and Eulerian and Hamiltonian graphs.
A focused answer to the AQA A-Level Further Mathematics graphs and networks content, covering graph terminology such as vertices, edges, degree, paths and cycles, special graphs such as trees and complete graphs, the adjacency matrix representation, and Eulerian and Hamiltonian graphs.
- Kruskal's and Prim's algorithms for minimum spanning trees, Dijkstra's algorithm for the shortest path, and the route inspection and travelling salesperson problems.
A focused answer to the AQA A-Level Further Mathematics network algorithms content, covering Kruskal's and Prim's algorithms for minimum spanning trees, Dijkstra's algorithm for the shortest path, and the route inspection and travelling salesperson problems.
- Activity networks, forward and backward passes to find earliest and latest times, the critical path, float, and resource scheduling with Gantt charts.
A focused answer to the AQA A-Level Further Mathematics critical path analysis content, covering activity networks, forward and backward passes to find earliest and latest times, the critical path, float, and resource scheduling with Gantt charts.
- Two-player zero-sum games, the pay-off matrix, play-safe strategies, saddle points and stable solutions, dominance to reduce a game, and mixed strategies including conversion to linear programming.
A focused answer to the AQA A-Level Further Mathematics game theory content, covering two-player zero-sum games, the pay-off matrix, play-safe strategies, saddle points and stable solutions, dominance to reduce a game, and mixed strategies including conversion to a linear programming problem.
Sources & how we know this
- AQA A-level Further Mathematics (7367) specification — AQA (2017)