Game theory online calculator with steps

Solution comments
Without description (answer only)

a

b

c

d

x

y

z

AC

i

ab
x2
xn

Randomize

Number format
313131313135151515151552188552198585858586
Round to
Digits after decimal point
10
=Solve

  About Game theory calculator

Solve matrix games via game theory online — minimax, maximin, mixed strategies via linear programming, with detailed step-by-step solution. with complete, detailed, step-by-step description of solutions, that solves linear-programming problems up to 20×20 in size with coefficients of this type: decimal numbers and fractions.

To start the calculation, you need to first enter the problem dimensions in the input fields at the very top of the screen, and also choose the desired operation from the side menu.

A little below you will find an input window where you need to enter the coefficients, constraints, and right-hand-side values using the keyboard. The input control panel is also located here, which simplifies work with LP problems and contains the following control elements:

  • The first element allows you to expand the input window. This can be especially useful when the tableau does not fit completely on the screen. If the table is still not fully visible after expanding the window, you can change the scale using the + / - buttons;
  • The second element copies the current problem input to the memory buffer. This can be useful when you frequently solve the same LP problem or need to transfer data between operations;
  • And the last element pastes the previously copied input, which allows you to restore problem data in just a few clicks instead of re-entering it manually;

And further down you will find a toolbar that allows you to customize the calculator and make it easier to work with. It is visually divided into three parts, each of which is responsible for the following functionality:

  • The first part lets you select the number format used when displaying the solution result. You can also turn off step-by-step comments if you already understand the method and only need to check your own calculations, or hide the step-by-step solution entirely if you only need the final answer;
  • The second part contains buttons that let you modify the input table dimensions, clear individual coefficients or the entire input, and the main button with an equal sign that takes you to the solution screen. All these buttons are duplicated by keyboard shortcuts. Hover over a button to see the corresponding key in a tooltip. You can also use the arrow keys to move the cursor between input fields;
  • And the last part allows you to choose the number of digits after the decimal point for rounding non-integer results. A live preview shows how the rounded values will appear;

  What is a matrix game (Game theory)?

A matrix game is a finite two-player zero-sum game where Player 1 chooses a row and Player 2 simultaneously chooses a column of a payoff matrix; Player 1 receives the corresponding entry and Player 2 pays it. The minimax theorem guarantees that every finite zero-sum game has a value — the amount Player 1 can guarantee regardless of Player 2's strategy — achieved either in pure strategies (a saddle point) or in mixed strategies (probability distributions over rows and columns).

  How to find a solution in pure strategies (saddle point)?

For each row, find the row minimum (the worst payoff Player 1 can guarantee by choosing that row). For each column, find the column maximum (the worst Player 2 can guarantee by choosing that column). If the maximum of the row minima equals the minimum of the column maxima, a saddle point exists at that entry; the game value equals this common number and both players should use the corresponding pure strategy.

  How to find a solution in mixed strategies?

When no saddle point exists, both players must randomize. The problem is converted to a linear program: shift the payoff matrix by a constant to ensure all entries are positive, then Player 1's optimal mixed strategy solves a standard LP whose variables are the (normalized) strategy probabilities. Our calculator solves the inner LP with the simplex method, running on the transposed payoff matrix (swapping player roles as in the Angular source), and recovers both Player 1 and Player 2 mixed strategies from the primal and dual solutions respectively.

  Example of solving a matrix game

B1B2B3min
A12432t1
A23141t2
A34322t3
max444
Lower value (maximin)
α = 2
Upper value (minimax)
β = 4
α ≠ β — no saddle point. Solve the matrix game by reducing to a linear program.
F(x) = x1+x2+x3 → min
F(x) = x1+x2+x3+0x4+0x5+0x6+Mx7+Mx8+Mx9 → min
2x1+3x2+4x31
2x1+3x2+4x3-x4+x7 = 1
4x1+x2+3x31
4x1+x2+3x3-x5+x8 = 1
3x1+4x2+2x31
3x1+4x2+2x3-x6+x9 = 1

The preliminary stage begins with the need to get rid of negative values in the right part of the restrictions. For what the corresponding restrictions are multiplied by -1. After this manipulation, the sign of inequality is reversed.

Next, you need to get rid of inequalities, for which we introduce compensating variables in the left-hand side of the inequalities. If an inequality of the form ≤, then the compensating variable has the sign +, if the inequality of the form ≥, then the compensating variable has the sign -. Compensating variables are included in the objective function of the problem with a zero coefficient.

Now in the constraint system it is necessary to find a sufficient number of basis variables. Each constraint must have one basis variable. The basic is a variable that has a coefficient of 1 with it and is found only in one constraint. If there are no basis variables in some restriction, then we add them artificially, and artificial variables enter the objective function with the coefficient -M if the objective function tends to max and M, if the objective function tends to min.

Description
2
Iteration 1
BCbPx1x2x3x4x5x6x7x8x9Q
111000MMM
x7M1234-10010012
x8M14130-1001014
x9M134200-100113
min3M9M-18M-19M-1-M-M-M000

Elements of the column basis (B)

Transfer to the table the basic elements that we identified in the preliminary stage:

B1 = x7;

B2 = x8;

B3 = x9;

Cb column items

Each cell of this column is equal to the coefficient, which corresponds to the base variable in the corresponding row.

Cb1 = M;

Cb2 = M;

Cb3 = M;

Values of variable variables and column P

At this stage, no calculations are needed, just transfer the values from the preliminary stage to the corresponding table cells:

P1 = 1;

P2 = 1;

P3 = 1;

x1,1 = 2;

x1,2 = 3;

x1,3 = 4;

x1,4 = -1;

x1,5 = 0;

x1,6 = 0;

x1,7 = 1;

x1,8 = 0;

x1,9 = 0;

x2,1 = 4;

x2,2 = 1;

x2,3 = 3;

x2,4 = 0;

x2,5 = -1;

x2,6 = 0;

x2,7 = 0;

x2,8 = 1;

x2,9 = 0;

x3,1 = 3;

x3,2 = 4;

x3,3 = 2;

x3,4 = 0;

x3,5 = 0;

x3,6 = -1;

x3,7 = 0;

x3,8 = 0;

x3,9 = 1;

Objective function value

We calculate the value of the objective function by elementwise multiplying the column Cb by the column P, adding the results of the products.

MinP = (Cb1 * P1) + (Cb2 * P2) + (Cb3 * P3) = (M * 1) + (M * 1) + (M * 1) = 3M;

Evaluated Control Variables

We calculate the estimates for each controlled variable, by element-wise multiplying the value from the variable column, by the value from the Cb column, summing up the results of the products, and subtracting the coefficient of the objective function from their sum, with this variable.

Minx1 = ((Cb1 * x1,1) + (Cb2 * x2,1) + (Cb3 * x3,1)) - kx1 = ((M * 2) + (M * 4) + (M * 3)) - 1 = 9M-1;

Minx2 = ((Cb1 * x1,2) + (Cb2 * x2,2) + (Cb3 * x3,2)) - kx2 = ((M * 3) + (M * 1) + (M * 4)) - 1 = 8M-1;

Minx3 = ((Cb1 * x1,3) + (Cb2 * x2,3) + (Cb3 * x3,3)) - kx3 = ((M * 4) + (M * 3) + (M * 2)) - 1 = 9M-1;

Minx4 = ((Cb1 * x1,4) + (Cb2 * x2,4) + (Cb3 * x3,4)) - kx4 = ((M * -1) + (M * 0) + (M * 0)) - 0 = -M;

Minx5 = ((Cb1 * x1,5) + (Cb2 * x2,5) + (Cb3 * x3,5)) - kx5 = ((M * 0) + (M * -1) + (M * 0)) - 0 = -M;

Minx6 = ((Cb1 * x1,6) + (Cb2 * x2,6) + (Cb3 * x3,6)) - kx6 = ((M * 0) + (M * 0) + (M * -1)) - 0 = -M;

Minx7 = ((Cb1 * x1,7) + (Cb2 * x2,7) + (Cb3 * x3,7)) - kx7 = ((M * 1) + (M * 0) + (M * 0)) - M = 0;

Minx8 = ((Cb1 * x1,8) + (Cb2 * x2,8) + (Cb3 * x3,8)) - kx8 = ((M * 0) + (M * 1) + (M * 0)) - M = 0;

Minx9 = ((Cb1 * x1,9) + (Cb2 * x2,9) + (Cb3 * x3,9)) - kx9 = ((M * 0) + (M * 0) + (M * 1)) - M = 0;

Q column items

Since there are positive values among the estimates of the controlled variables, the current table does not yet have an optimal solution. Therefore, in the basis we introduce the variable with the highest positive estimate.

The number of variables in the basis is always constant, so it is necessary to choose which variable to derive from the basis, for which we calculate Q.

The elements of the Q column are calculated by dividing the values from column P by the value from the column corresponding to the variable that is entered in the basis:

Q1 = P1x1,1 = 12 = 12;

Q2 = P2x2,1 = 14 = 14;

Q3 = P3x3,1 = 13 = 13;

We deduce from the basis the variable with the least positive value of Q.

At the intersection of the line that corresponds to the variable that is derived from the basis, and the column that corresponds to the variable that is entered into the basis, is the resolving element.

This element will allow us to calculate the elements of the table of the next iteration.

Description
3
Iteration 2
BCbPx1x2x3x4x5x6x7x8x9Q
111000MMM
x7M120212212-11201-12015
x1114114340-14001401
x9M140314-14034-10-341113
min34M+140534M-34214M-14-M114M-14-M0-214M+140

Elements of the column basis (B)

For the results of the calculations of the previous iteration, we remove the variable from the basis x8 and put in her place x1. All other cells remain unchanged.

Cb column items

Each cell of this column is equal to the coefficient, which corresponds to the base variable in the corresponding row.

Cb1 = M;

Cb2 = 1;

Cb3 = M;

Values of variable variables and column P

(The data from the previous iteration is taken as the initial data)

Fill all cells with zeros corresponding to the variable that has just been entered into the basis:

(The resolution element remains unchanged)

x1,1 = 0;

x3,1 = 0;

We transfer the row with the resolving element from the previous table into the current table, elementwise dividing its values into the resolving element:

x2,1 = x2,1x2,1 = 44 = 1;

x2,2 = x2,2x2,1 = 14 = 14;

x2,3 = x2,3x2,1 = 34 = 34;

x2,4 = x2,4x2,1 = 04 = 0;

x2,5 = x2,5x2,1 = -14 = -14;

x2,6 = x2,6x2,1 = 04 = 0;

x2,7 = x2,7x2,1 = 04 = 0;

x2,8 = x2,8x2,1 = 14 = 14;

x2,9 = x2,9x2,1 = 04 = 0;

P2 = P2x2,1 = 14 = 14;

The remaining empty cells, except for the row of estimates and the column Q, are calculated using the rectangle method, relative to the resolving element:

x1,2 = (x1,2 * x2,1) - (x1,1 * x2,2)x2,1 = (3 * 4) - (2 * 1)4 = 212;

x1,3 = (x1,3 * x2,1) - (x1,1 * x2,3)x2,1 = (4 * 4) - (2 * 3)4 = 212;

x1,4 = (x1,4 * x2,1) - (x1,1 * x2,4)x2,1 = (-1 * 4) - (2 * 0)4 = -1;

x1,5 = (x1,5 * x2,1) - (x1,1 * x2,5)x2,1 = (0 * 4) - (2 * -1)4 = 12;

x1,6 = (x1,6 * x2,1) - (x1,1 * x2,6)x2,1 = (0 * 4) - (2 * 0)4 = 0;

x1,7 = (x1,7 * x2,1) - (x1,1 * x2,7)x2,1 = (1 * 4) - (2 * 0)4 = 1;

x1,8 = (x1,8 * x2,1) - (x1,1 * x2,8)x2,1 = (0 * 4) - (2 * 1)4 = -12;

x1,9 = (x1,9 * x2,1) - (x1,1 * x2,9)x2,1 = (0 * 4) - (2 * 0)4 = 0;

P1 = (P1 * x2,1) - (x1,1 * P2)x2,1 = (1 * 4) - (2 * 1)4 = 12;

x3,2 = (x3,2 * x2,1) - (x3,1 * x2,2)x2,1 = (4 * 4) - (3 * 1)4 = 314;

x3,3 = (x3,3 * x2,1) - (x3,1 * x2,3)x2,1 = (2 * 4) - (3 * 3)4 = -14;

x3,4 = (x3,4 * x2,1) - (x3,1 * x2,4)x2,1 = (0 * 4) - (3 * 0)4 = 0;

x3,5 = (x3,5 * x2,1) - (x3,1 * x2,5)x2,1 = (0 * 4) - (3 * -1)4 = 34;

x3,6 = (x3,6 * x2,1) - (x3,1 * x2,6)x2,1 = (-1 * 4) - (3 * 0)4 = -1;

x3,7 = (x3,7 * x2,1) - (x3,1 * x2,7)x2,1 = (0 * 4) - (3 * 0)4 = 0;

x3,8 = (x3,8 * x2,1) - (x3,1 * x2,8)x2,1 = (0 * 4) - (3 * 1)4 = -34;

x3,9 = (x3,9 * x2,1) - (x3,1 * x2,9)x2,1 = (1 * 4) - (3 * 0)4 = 1;

P3 = (P3 * x2,1) - (x3,1 * P2)x2,1 = (1 * 4) - (3 * 1)4 = 14;

Objective function value

We calculate the value of the objective function by elementwise multiplying the column Cb by the column P, adding the results of the products.

MinP = (Cb1 * P1) + (Cb2 * P2) + (Cb3 * P3) = (M * 12) + (1 * 14) + (M * 14) = 34M+14;

Evaluated Control Variables

We calculate the estimates for each controlled variable, by element-wise multiplying the value from the variable column, by the value from the Cb column, summing up the results of the products, and subtracting the coefficient of the objective function from their sum, with this variable.

Minx1 = ((Cb1 * x1,1) + (Cb2 * x2,1) + (Cb3 * x3,1)) - kx1 = ((M * 0) + (1 * 1) + (M * 0)) - 1 = 0;

Minx2 = ((Cb1 * x1,2) + (Cb2 * x2,2) + (Cb3 * x3,2)) - kx2 = ((M * 212) + (1 * 14) + (M * 314)) - 1 = 534M-34;

Minx3 = ((Cb1 * x1,3) + (Cb2 * x2,3) + (Cb3 * x3,3)) - kx3 = ((M * 212) + (1 * 34) + (M * -14)) - 1 = 214M-14;

Minx4 = ((Cb1 * x1,4) + (Cb2 * x2,4) + (Cb3 * x3,4)) - kx4 = ((M * -1) + (1 * 0) + (M * 0)) - 0 = -M;

Minx5 = ((Cb1 * x1,5) + (Cb2 * x2,5) + (Cb3 * x3,5)) - kx5 = ((M * 12) + (1 * -14) + (M * 34)) - 0 = 114M-14;

Minx6 = ((Cb1 * x1,6) + (Cb2 * x2,6) + (Cb3 * x3,6)) - kx6 = ((M * 0) + (1 * 0) + (M * -1)) - 0 = -M;

Minx7 = ((Cb1 * x1,7) + (Cb2 * x2,7) + (Cb3 * x3,7)) - kx7 = ((M * 1) + (1 * 0) + (M * 0)) - M = 0;

Minx8 = ((Cb1 * x1,8) + (Cb2 * x2,8) + (Cb3 * x3,8)) - kx8 = ((M * -12) + (1 * 14) + (M * -34)) - M = -214M+14;

Minx9 = ((Cb1 * x1,9) + (Cb2 * x2,9) + (Cb3 * x3,9)) - kx9 = ((M * 0) + (1 * 0) + (M * 1)) - M = 0;

Q column items

Since there are positive values among the estimates of the controlled variables, the current table does not yet have an optimal solution. Therefore, in the basis we introduce the variable with the highest positive estimate.

The number of variables in the basis is always constant, so it is necessary to choose which variable to derive from the basis, for which we calculate Q.

The elements of the Q column are calculated by dividing the values from column P by the value from the column corresponding to the variable that is entered in the basis:

Q1 = P1x1,2 = 12212 = 15;

Q2 = P2x2,2 = 1414 = 1;

Q3 = P3x3,2 = 14314 = 113;

We deduce from the basis the variable with the least positive value of Q.

At the intersection of the line that corresponds to the variable that is derived from the basis, and the column that corresponds to the variable that is entered into the basis, is the resolving element.

This element will allow us to calculate the elements of the table of the next iteration.

Description
4
Iteration 3
BCbPx1x2x3x4x5x6x7x8x9Q
111000MMM
x7M413002913-1-11310131113-1013435
x113131010130-4131130413-113310
x2111301-1130313-4130-313413
min413M+413002913M-413-M-113M-1131013M-3130-1213M+113-11013M+313

Elements of the column basis (B)

For the results of the calculations of the previous iteration, we remove the variable from the basis x9 and put in her place x2. All other cells remain unchanged.

Cb column items

Each cell of this column is equal to the coefficient, which corresponds to the base variable in the corresponding row.

Cb1 = M;

Cb2 = 1;

Cb3 = 1;

Values of variable variables and column P

(The data from the previous iteration is taken as the initial data)

Fill all cells with zeros corresponding to the variable that has just been entered into the basis:

(The resolution element remains unchanged)

x1,2 = 0;

x2,2 = 0;

We transfer the row with the resolving element from the previous table into the current table, elementwise dividing its values into the resolving element:

x3,1 = x3,1x3,2 = 0314 = 0;

x3,2 = x3,2x3,2 = 314314 = 1;

x3,3 = x3,3x3,2 = -14314 = -113;

x3,4 = x3,4x3,2 = 0314 = 0;

x3,5 = x3,5x3,2 = 34314 = 313;

x3,6 = x3,6x3,2 = -1314 = -413;

x3,7 = x3,7x3,2 = 0314 = 0;

x3,8 = x3,8x3,2 = -34314 = -313;

x3,9 = x3,9x3,2 = 1314 = 413;

P3 = P3x3,2 = 14314 = 113;

The remaining empty cells, except for the row of estimates and the column Q, are calculated using the rectangle method, relative to the resolving element:

x1,1 = (x1,1 * x3,2) - (x1,2 * x3,1)x3,2 = (0 * 314) - (212 * 0)314 = 0;

x1,3 = (x1,3 * x3,2) - (x1,2 * x3,3)x3,2 = (212 * 314) - (212 * -14)314 = 2913;

x1,4 = (x1,4 * x3,2) - (x1,2 * x3,4)x3,2 = (-1 * 314) - (212 * 0)314 = -1;

x1,5 = (x1,5 * x3,2) - (x1,2 * x3,5)x3,2 = (12 * 314) - (212 * 34)314 = -113;

x1,6 = (x1,6 * x3,2) - (x1,2 * x3,6)x3,2 = (0 * 314) - (212 * -1)314 = 1013;

x1,7 = (x1,7 * x3,2) - (x1,2 * x3,7)x3,2 = (1 * 314) - (212 * 0)314 = 1;

x1,8 = (x1,8 * x3,2) - (x1,2 * x3,8)x3,2 = (-12 * 314) - (212 * -34)314 = 113;

x1,9 = (x1,9 * x3,2) - (x1,2 * x3,9)x3,2 = (0 * 314) - (212 * 1)314 = -1013;

P1 = (P1 * x3,2) - (x1,2 * P3)x3,2 = (12 * 314) - (212 * 14)314 = 413;

x2,1 = (x2,1 * x3,2) - (x2,2 * x3,1)x3,2 = (1 * 314) - (14 * 0)314 = 1;

x2,3 = (x2,3 * x3,2) - (x2,2 * x3,3)x3,2 = (34 * 314) - (14 * -14)314 = 1013;

x2,4 = (x2,4 * x3,2) - (x2,2 * x3,4)x3,2 = (0 * 314) - (14 * 0)314 = 0;

x2,5 = (x2,5 * x3,2) - (x2,2 * x3,5)x3,2 = (-14 * 314) - (14 * 34)314 = -413;

x2,6 = (x2,6 * x3,2) - (x2,2 * x3,6)x3,2 = (0 * 314) - (14 * -1)314 = 113;

x2,7 = (x2,7 * x3,2) - (x2,2 * x3,7)x3,2 = (0 * 314) - (14 * 0)314 = 0;

x2,8 = (x2,8 * x3,2) - (x2,2 * x3,8)x3,2 = (14 * 314) - (14 * -34)314 = 413;

x2,9 = (x2,9 * x3,2) - (x2,2 * x3,9)x3,2 = (0 * 314) - (14 * 1)314 = -113;

P2 = (P2 * x3,2) - (x2,2 * P3)x3,2 = (14 * 314) - (14 * 14)314 = 313;

Objective function value

We calculate the value of the objective function by elementwise multiplying the column Cb by the column P, adding the results of the products.

MinP = (Cb1 * P1) + (Cb2 * P2) + (Cb3 * P3) = (M * 413) + (1 * 313) + (1 * 113) = 413M+413;

Evaluated Control Variables

We calculate the estimates for each controlled variable, by element-wise multiplying the value from the variable column, by the value from the Cb column, summing up the results of the products, and subtracting the coefficient of the objective function from their sum, with this variable.

Minx1 = ((Cb1 * x1,1) + (Cb2 * x2,1) + (Cb3 * x3,1)) - kx1 = ((M * 0) + (1 * 1) + (1 * 0)) - 1 = 0;

Minx2 = ((Cb1 * x1,2) + (Cb2 * x2,2) + (Cb3 * x3,2)) - kx2 = ((M * 0) + (1 * 0) + (1 * 1)) - 1 = 0;

Minx3 = ((Cb1 * x1,3) + (Cb2 * x2,3) + (Cb3 * x3,3)) - kx3 = ((M * 2913) + (1 * 1013) + (1 * -113)) - 1 = 2913M-413;

Minx4 = ((Cb1 * x1,4) + (Cb2 * x2,4) + (Cb3 * x3,4)) - kx4 = ((M * -1) + (1 * 0) + (1 * 0)) - 0 = -M;

Minx5 = ((Cb1 * x1,5) + (Cb2 * x2,5) + (Cb3 * x3,5)) - kx5 = ((M * -113) + (1 * -413) + (1 * 313)) - 0 = -113M-113;

Minx6 = ((Cb1 * x1,6) + (Cb2 * x2,6) + (Cb3 * x3,6)) - kx6 = ((M * 1013) + (1 * 113) + (1 * -413)) - 0 = 1013M-313;

Minx7 = ((Cb1 * x1,7) + (Cb2 * x2,7) + (Cb3 * x3,7)) - kx7 = ((M * 1) + (1 * 0) + (1 * 0)) - M = 0;

Minx8 = ((Cb1 * x1,8) + (Cb2 * x2,8) + (Cb3 * x3,8)) - kx8 = ((M * 113) + (1 * 413) + (1 * -313)) - M = -1213M+113;

Minx9 = ((Cb1 * x1,9) + (Cb2 * x2,9) + (Cb3 * x3,9)) - kx9 = ((M * -1013) + (1 * -113) + (1 * 413)) - M = -11013M+313;

Q column items

Since there are positive values among the estimates of the controlled variables, the current table does not yet have an optimal solution. Therefore, in the basis we introduce the variable with the highest positive estimate.

The number of variables in the basis is always constant, so it is necessary to choose which variable to derive from the basis, for which we calculate Q.

The elements of the Q column are calculated by dividing the values from column P by the value from the column corresponding to the variable that is entered in the basis:

Q1 = P1x1,3 = 4132913 = 435;

Q2 = P2x2,3 = 3131013 = 310;

Q3 = P3x3,3 = 113-113 = ;

We deduce from the basis the variable with the least positive value of Q.

At the intersection of the line that corresponds to the variable that is derived from the basis, and the column that corresponds to the variable that is entered into the basis, is the resolving element.

This element will allow us to calculate the elements of the table of the next iteration.

Description
5
Iteration 4
BCbPx1x2x3x4x5x6x7x8x9Q
111000MMM
x31435001-1335-135271335135-27
x111710027-27-17-272717
x21335010-135835-27135-83527
min1235000-435-335-17-M+435-M+335-M+17

Elements of the column basis (B)

For the results of the calculations of the previous iteration, we remove the variable from the basis x7 and put in her place x3. All other cells remain unchanged.

Cb column items

Each cell of this column is equal to the coefficient, which corresponds to the base variable in the corresponding row.

Cb1 = 1;

Cb2 = 1;

Cb3 = 1;

Values of variable variables and column P

(The data from the previous iteration is taken as the initial data)

Fill all cells with zeros corresponding to the variable that has just been entered into the basis:

(The resolution element remains unchanged)

x2,3 = 0;

x3,3 = 0;

We transfer the row with the resolving element from the previous table into the current table, elementwise dividing its values into the resolving element:

x1,1 = x1,1x1,3 = 02913 = 0;

x1,2 = x1,2x1,3 = 02913 = 0;

x1,3 = x1,3x1,3 = 29132913 = 1;

x1,4 = x1,4x1,3 = -12913 = -1335;

x1,5 = x1,5x1,3 = -1132913 = -135;

x1,6 = x1,6x1,3 = 10132913 = 27;

x1,7 = x1,7x1,3 = 12913 = 1335;

x1,8 = x1,8x1,3 = 1132913 = 135;

x1,9 = x1,9x1,3 = -10132913 = -27;

P1 = P1x1,3 = 4132913 = 435;

The remaining empty cells, except for the row of estimates and the column Q, are calculated using the rectangle method, relative to the resolving element:

x2,1 = (x2,1 * x1,3) - (x2,3 * x1,1)x1,3 = (1 * 2913) - (1013 * 0)2913 = 1;

x2,2 = (x2,2 * x1,3) - (x2,3 * x1,2)x1,3 = (0 * 2913) - (1013 * 0)2913 = 0;

x2,4 = (x2,4 * x1,3) - (x2,3 * x1,4)x1,3 = (0 * 2913) - (1013 * -1)2913 = 27;

x2,5 = (x2,5 * x1,3) - (x2,3 * x1,5)x1,3 = (-413 * 2913) - (1013 * -113)2913 = -27;

x2,6 = (x2,6 * x1,3) - (x2,3 * x1,6)x1,3 = (113 * 2913) - (1013 * 1013)2913 = -17;

x2,7 = (x2,7 * x1,3) - (x2,3 * x1,7)x1,3 = (0 * 2913) - (1013 * 1)2913 = -27;

x2,8 = (x2,8 * x1,3) - (x2,3 * x1,8)x1,3 = (413 * 2913) - (1013 * 113)2913 = 27;

x2,9 = (x2,9 * x1,3) - (x2,3 * x1,9)x1,3 = (-113 * 2913) - (1013 * -1013)2913 = 17;

P2 = (P2 * x1,3) - (x2,3 * P1)x1,3 = (313 * 2913) - (1013 * 413)2913 = 17;

x3,1 = (x3,1 * x1,3) - (x3,3 * x1,1)x1,3 = (0 * 2913) - (-113 * 0)2913 = 0;

x3,2 = (x3,2 * x1,3) - (x3,3 * x1,2)x1,3 = (1 * 2913) - (-113 * 0)2913 = 1;

x3,4 = (x3,4 * x1,3) - (x3,3 * x1,4)x1,3 = (0 * 2913) - (-113 * -1)2913 = -135;

x3,5 = (x3,5 * x1,3) - (x3,3 * x1,5)x1,3 = (313 * 2913) - (-113 * -113)2913 = 835;

x3,6 = (x3,6 * x1,3) - (x3,3 * x1,6)x1,3 = (-413 * 2913) - (-113 * 1013)2913 = -27;

x3,7 = (x3,7 * x1,3) - (x3,3 * x1,7)x1,3 = (0 * 2913) - (-113 * 1)2913 = 135;

x3,8 = (x3,8 * x1,3) - (x3,3 * x1,8)x1,3 = (-313 * 2913) - (-113 * 113)2913 = -835;

x3,9 = (x3,9 * x1,3) - (x3,3 * x1,9)x1,3 = (413 * 2913) - (-113 * -1013)2913 = 27;

P3 = (P3 * x1,3) - (x3,3 * P1)x1,3 = (113 * 2913) - (-113 * 413)2913 = 335;

Objective function value

We calculate the value of the objective function by elementwise multiplying the column Cb by the column P, adding the results of the products.

MinP = (Cb1 * P1) + (Cb2 * P2) + (Cb3 * P3) = (1 * 435) + (1 * 17) + (1 * 335) = 1235;

Evaluated Control Variables

We calculate the estimates for each controlled variable, by element-wise multiplying the value from the variable column, by the value from the Cb column, summing up the results of the products, and subtracting the coefficient of the objective function from their sum, with this variable.

Minx1 = ((Cb1 * x1,1) + (Cb2 * x2,1) + (Cb3 * x3,1)) - kx1 = ((1 * 0) + (1 * 1) + (1 * 0)) - 1 = 0;

Minx2 = ((Cb1 * x1,2) + (Cb2 * x2,2) + (Cb3 * x3,2)) - kx2 = ((1 * 0) + (1 * 0) + (1 * 1)) - 1 = 0;

Minx3 = ((Cb1 * x1,3) + (Cb2 * x2,3) + (Cb3 * x3,3)) - kx3 = ((1 * 1) + (1 * 0) + (1 * 0)) - 1 = 0;

Minx4 = ((Cb1 * x1,4) + (Cb2 * x2,4) + (Cb3 * x3,4)) - kx4 = ((1 * -1335) + (1 * 27) + (1 * -135)) - 0 = -435;

Minx5 = ((Cb1 * x1,5) + (Cb2 * x2,5) + (Cb3 * x3,5)) - kx5 = ((1 * -135) + (1 * -27) + (1 * 835)) - 0 = -335;

Minx6 = ((Cb1 * x1,6) + (Cb2 * x2,6) + (Cb3 * x3,6)) - kx6 = ((1 * 27) + (1 * -17) + (1 * -27)) - 0 = -17;

Minx7 = ((Cb1 * x1,7) + (Cb2 * x2,7) + (Cb3 * x3,7)) - kx7 = ((1 * 1335) + (1 * -27) + (1 * 135)) - M = -M+435;

Minx8 = ((Cb1 * x1,8) + (Cb2 * x2,8) + (Cb3 * x3,8)) - kx8 = ((1 * 135) + (1 * 27) + (1 * -835)) - M = -M+335;

Minx9 = ((Cb1 * x1,9) + (Cb2 * x2,9) + (Cb3 * x3,9)) - kx9 = ((1 * -27) + (1 * 17) + (1 * 27)) - M = -M+17;

Answer

Since there are no positive values among the estimates of the controlled variables, the current table has an optimal solution.

The value of the objective function:

F* = 1235;

The variables that are present in the basis are equal to the corresponding cells of the column P, all other variables are equal to zero:

x1 = 17;

x2 = 335;

x3 = 435;

Description
Answer
v → max min
F* = 1235
X* = (17335435)
Player I strategies3Player II strategies3TypeMixed strategy

  Frequently asked questions

What does this game theory calculator solve?

It solves two-player zero-sum games from a payoff matrix, finding the value of the game and each player's optimal strategy — a pure strategy at a saddle point, or a mixed strategy when no saddle point exists.

What is a saddle point?

A saddle point is an entry that is the minimum of its row and the maximum of its column. When one exists, the game has a solution in pure strategies and the saddle value is the game's value.

How are mixed strategies computed?

When there is no saddle point, the game is converted into a pair of linear programs and solved with the simplex method. The resulting probabilities tell each player how often to play each option to guarantee the game's value on average.

What does the "value of the game" represent?

It is the average payoff the first player can secure — and the second player can hold them to — under optimal play. A positive value favors the row player, a negative value favors the column player.

  Sources