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 constraints, add a slack variable to each constraint. The objective becomes . The initial tableau lists each equation as a row:
- gives row :
- gives row :
- gives row : The starting solution has the slack variables as the basic variables (, ) and , with .
Writing the objective row as . It must be .
Check the starting tableau by substituting : each basic variable should equal the right-hand side.
Section 2
One iteration: choosing the pivot
- Pivot column: the column with the most negative entry in the row (here , with ). This variable enters the basis.
- Pivot row: do the ratio test: for each row with a positive entry in the pivot column, calculate . The smallest ratio gives the pivot row (, , so row ). This variable leaves.
- The pivot element is where they meet (the 2 in row , column ). 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.
Including negative or zero entries in the ratio test, or picking the largest ratio.
Write the ratios next to the tableau so the examiner can see the pivot choice.
Section 3
Row operations
After choosing the pivot:
- Divide the pivot row by the pivot element so the pivot becomes 1: row becomes (now row ).
- For every other row (including ), subtract a multiple of the new pivot row so that the pivot column becomes 0. Row minus row : . Row plus row : . The pivot column is now a unit column, so is basic. The solution is , , and , better than 0.
Forgetting to update the row and the value column. Every number in each row changes.
Check: the new value of should be at least as large as before.
Section 4
Optimality and reading the solution
Repeat iterations until the row has no negative entries. Then the tableau is optimal. Continuing the example, (with ) enters. Ratios: and , so row is the pivot row. The result is row: ; row: ; row: . Reading the answer: basic variables take the value in their row, non-basic variables are 0. So , , and . Check: and , both constraints binding, and .
Always substitute back into the original constraints to check your final answer.
Stopping after one iteration because P has increased. Stop only when the row has no negatives.
Section 5
Minimising problems
The Simplex algorithm as set out maximises. To minimise , maximise instead, then give the minimum as . Example: minimise subject to , . Maximise , i.e. . After two iterations the optimum is , , with , so the minimum of is . With three or four variables the process is the same: just more columns. Keep fractions exact and check each row operation.
Reporting as the minimum cost. The minimum of is .
That's the notes covered.
Carry on to the next subtopic.
Exam questions on The Simplex algorithm
- A firm makes units of product X and units of product Y. It wishes to maximise the profit subject to and , with and . Slack variables and 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
- A maximising problem in and , with slack variables and , has been partly solved by the Simplex algorithm. The current tableau has columns in the order , , , , then the value:
r row: , , , |
y row: , , , |
P row: , , , | Perform the next iteration and state the optimal values of , and .2 marks
- A firm makes , and units of three products each day. Three resources give the constraints , and , with . The profit is and the firm wishes to maximise it. Slack variables , and are added to the three constraints in order.Write down the initial Simplex tableau.3 marks
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).