All revision notes topics

The Simplex algorithmEdexcel A-Level Further Maths: Revision notes

Section 1

Setting up the initial tableau

The Simplex algorithm solves a linear program by moving from vertex to vertex of the feasible region, improving the objective each time, without drawing anything. It works for problems in any number of variables (here up to four variables and four constraints). For a maximising problem with ≤\le constraints, add a slack variable to each constraint. The objective P=2x+3yP=2x+3y becomes P−2x−3y=0P-2x-3y=0. The initial tableau lists each equation as a row:

  • x+y+r=10x+y+r=10 gives row rr: 1,1,1,0∣101,1,1,0\mid10
  • x+2y+s=16x+2y+s=16 gives row ss: 1,2,0,1∣161,2,0,1\mid16
  • P−2x−3y=0P-2x-3y=0 gives row PP: −2,−3,0,0∣0-2,-3,0,0\mid0 The starting solution has the slack variables as the basic variables (r=10r=10, s=16s=16) and x=y=0x=y=0, with P=0P=0.
Key termsSimplex algorithmtableaubasic variableslack variable
Common mistake

Writing the objective row as P+2x+3y=0P+2x+3y=0. It must be P−2x−3y=0P-2x-3y=0.

Exam tip

Check the starting tableau by substituting x=y=0x=y=0: each basic variable should equal the right-hand side.

Section 2

One iteration: choosing the pivot

  1. Pivot column: the column with the most negative entry in the PP row (here yy, with −3-3). This variable enters the basis.
  2. Pivot row: do the ratio test: for each row with a positive entry in the pivot column, calculate valueentry\frac{\text{value}}{\text{entry}}. The smallest ratio gives the pivot row (101=10\frac{10}{1}=10, 162=8\frac{16}{2}=8, so row ss). This variable leaves.
  3. The pivot element is where they meet (the 2 in row ss, column yy). Ignore zero and negative entries in the ratio test: they would give an infeasible next solution. Choosing the smallest ratio keeps every value non-negative.
Key termspivot columnratio testpivot rowpivot element
Common mistake

Including negative or zero entries in the ratio test, or picking the largest ratio.

Exam tip

Write the ratios next to the tableau so the examiner can see the pivot choice.

Section 3

Row operations

After choosing the pivot:

  1. Divide the pivot row by the pivot element so the pivot becomes 1: row ss becomes 12,1,0,12∣8\frac12,1,0,\frac12\mid8 (now row yy).
  2. For every other row (including PP), subtract a multiple of the new pivot row so that the pivot column becomes 0. Row rr minus row yy: 12,0,1,−12∣2\frac12,0,1,-\frac12\mid2. Row PP plus 3×3\times row yy: −12,0,0,32∣24-\frac12,0,0,\frac32\mid24. The pivot column is now a unit column, so yy is basic. The solution is y=8y=8, r=2r=2, x=s=0x=s=0 and P=24P=24, better than 0.
Key termsrow operation
Common mistake

Forgetting to update the PP row and the value column. Every number in each row changes.

Exam tip

Check: the new value of PP should be at least as large as before.

Section 4

Optimality and reading the solution

Repeat iterations until the PP row has no negative entries. Then the tableau is optimal. Continuing the example, xx (with −12-\frac12) enters. Ratios: 21/2=4\frac{2}{1/2}=4 and 81/2=16\frac{8}{1/2}=16, so row rr is the pivot row. The result is xx row: 1,0,2,−1∣41,0,2,-1\mid4; yy row: 0,1,−1,1∣60,1,-1,1\mid6; PP row: 0,0,1,1∣260,0,1,1\mid26. Reading the answer: basic variables take the value in their row, non-basic variables are 0. So x=4x=4, y=6y=6, r=s=0r=s=0 and P=26P=26. Check: 4+6=104+6=10 and 4+12=164+12=16, both constraints binding, and 2(4)+3(6)=262(4)+3(6)=26.

Key termsoptimal
Exam tip

Always substitute back into the original constraints to check your final answer.

Common mistake

Stopping after one iteration because P has increased. Stop only when the PP row has no negatives.

Section 5

Minimising problems

The Simplex algorithm as set out maximises. To minimise CC, maximise P=−CP=-C instead, then give the minimum as C=−PC=-P. Example: minimise C=2x−3y−4zC=2x-3y-4z subject to x+y+z≤12x+y+z\le12, 2x+y+3z≤182x+y+3z\le18. Maximise P=−2x+3y+4zP=-2x+3y+4z, i.e. P+2x−3y−4z=0P+2x-3y-4z=0. After two iterations the optimum is x=0x=0, y=9y=9, z=3z=3 with P=39P=39, so the minimum of CC is −39-39. With three or four variables the process is the same: just more columns. Keep fractions exact and check each row operation.

Key termsminimising
Common mistake

Reporting P=39P=39 as the minimum cost. The minimum of CC is −39-39.

That's the notes covered.

Carry on to the next subtopic.

Exam questions on The Simplex algorithm

  1. A firm makes xx units of product X and yy units of product Y. It wishes to maximise the profit P=2x+3yP=2x+3y subject to x+y≤10x+y\le10 and x+2y≤16x+2y\le16, with x≥0x\ge0 and y≥0y\ge0. Slack variables rr and ss are added to the first and second constraints and the Simplex algorithm is used.
    State which variable enters the basis and which leaves, and write down the new pivot row after the first iteration.2 marks
  2. A maximising problem in xx and yy, with slack variables rr and ss, has been partly solved by the Simplex algorithm. The current tableau has columns in the order xx, yy, rr, ss, then the value: r row: 12\frac12, 00, 11, −12-\frac12 | 22 y row: 12\frac12, 11, 00, 12\frac12 | 88 P row: −12-\frac12, 00, 00, 32\frac32 | 2424
    Perform the next iteration and state the optimal values of xx, yy and PP.2 marks
  3. A firm makes xx, yy and zz units of three products each day. Three resources give the constraints 2x+3y+z≤52x+3y+z\le5, 4x+y+2z≤114x+y+2z\le11 and 3x+4y+2z≤83x+4y+2z\le8, with x,y,z≥0x,y,z\ge0. The profit is P=5x+4y+3zP=5x+4y+3z and the firm wishes to maximise it. Slack variables rr, ss and tt are added to the three constraints in order.
    Write down the initial Simplex tableau.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).