Topic 5 · Lesson 4 of 5
Two-stage simplex and big-M
Constraints with
A constraint such as needs a surplus variable: with . At the origin this would make , which is not allowed, so there is no starting solution. The fix is an artificial variable : . At the origin, . An artificial variable has no meaning in the problem, so the method must drive it to 0. There are two ways.
Worked example
Problem
Maximise subject to , , . The equations are and .
The two-stage simplex method
Stage 1: minimise the sum of the artificial variables, by maximising (the negative of their sum). Write in terms of the non-basic variables: , so , giving the row . Add this as an extra objective row below , and carry out the simplex algorithm using the row to choose pivots:
The column has in the row; ratios 6 and 2, so the pivot is in row . After the iteration:
, so the artificial variable is 0 and the first stage is complete. The current solution, , , is a vertex of the real feasible region.
Stage 2: delete the column and the row, and continue with the row as normal:
The most negative entry is , in the column; the only positive entry in that column is in row , so enters and leaves:
Optimal: , , .
If stage 1 ends with , the artificial variable cannot be removed and the problem has no feasible solution.
The big-M method
Instead of two stages, give the artificial variable a huge penalty: maximise , where is a very large positive number. Substitute :
Entries in the objective row are now of the form . To compare them, compare the coefficients of first; only if those are equal compare the numbers. So is more negative than .
The pivot is in the column, row (ratios 6 and 2):
Then enters (entry ) and leaves:
There are no negative entries ( is positive and large), is non-basic so , and the solution is again , , .
Practise this topic
Both are part of Premium.