Converting games to linear programming problemsAQA A-Level Further Maths: Revision notes
Section 1
Why convert a game to a linear programme
A graphical solution only works when one player has two strategies. For a higher order game (for example ), Rowan's optimal mixed strategy is found by turning the game into a linear programming problem and solving it with the simplex algorithm.
The idea: Rowan chooses probabilities for his rows. Against each of Colin's columns his expected pay-off is a linear expression in the . Colin will choose the column that is worst for Rowan, so Rowan wants to maximise the smallest of these expected pay-offs. Calling that smallest value , this becomes a linear programme.
Write down who is choosing probabilities and what stands for before writing any inequality.
Section 2
Making every entry non-negative
The simplex algorithm requires , so first make the value of the game non-negative by adding a constant to every entry. The usual choice is the least integer that makes every entry non-negative (the negative of the smallest entry).
- Adding to every entry raises every expected pay-off by (because the probabilities sum to 1), so Rowan's optimal strategy does not change.
- The value of the game increases by . After solving, subtract to get the value of the original game.
Example: if the smallest entry is , add . If the adjusted game has value , the original game has value , which means Colin wins per play on average.
Forgetting to subtract the constant at the end, or adding it again instead of subtracting.
Changing only the negative entries. The same constant must be added to every entry.
Section 3
Formulating the linear programme
For the adjusted matrix with entries (row , column ), Rowan plays row with probability .
- Against column his expected pay-off is , and this, so each column gives a constraint .
- The probabilities cannot total more than 1: .
- All variables are non-negative: and .
- Maximise .
Example: adjusted matrix gives: maximise subject to , , . (Solving gives , , .)
Some questions use instead: minimise subject to for every column, and then . Use the form the question asks for.
Writing the constraints along the rows of the matrix. There is one constraint for each column of Colin's, using the entries of that column.
Check a constraint by testing it on a column: the coefficients of must be the entries down that column.
Section 4
Solving and interpreting the solution
Introduce a slack variable for each constraint, set up the initial simplex tableau, and pivot until there are no negative entries in the objective row. The final tableau gives and each .
- The value of the original game is .
- Rowan's optimal strategy is the set of probabilities (a probability of means that row is never played).
- To find the number of times to play a row in plays, calculate .
- Colin's optimal strategy can be read from the objective row of the final tableau, under the slack variables of the column constraints. A column whose constraint is not tight (its expected pay-off is greater than ) is never played by Colin.
Check the answer: with Rowan's strategy, the expected pay-off against every column should be at least , and equal to for the columns Colin does play.
State the final answer in context: the value of the game, the probabilities for each row, and what the sign of the value says about who is favoured.
That's the notes covered.
Carry on to the next subtopic.
Exam questions on Converting games to linear programming problems
- Rowan and Colin play a zero-sum game with pay-off matrix for Rowan . Rowan wants to convert the game into a linear programming problem to find his optimal mixed strategy, and first adds the same constant to every entry.State the effect of adding the constant on Rowan's optimal strategy and on the value of the game, giving a reason.2 marks
- Rowan and Colin play a zero-sum game. After a constant has been added, Rowan's pay-off matrix is , with rows 1, 2, 3 for Rowan and columns 1, 2 for Colin. Rowan plays rows 1, 2, 3 with probabilities , , , and is the value of this game. Rowan wishes to maximise .Explain, in context, why must be no greater than Rowan's expected pay-off against each of Colin's columns.2 marks
- Rowan and Colin play a zero-sum game with pay-off matrix for Rowan . Two is added to every entry, giving . Rowan plays rows 1, 2, 3 with probabilities , , , and is the value of the adjusted game.Formulate Rowan's problem as a linear programming problem, in the form of an objective function and constraints, ready to be solved by the simplex algorithm.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).