You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/examples/nash.md
+16-16Lines changed: 16 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,7 +103,7 @@ This results gives us that there are 10 such partitions. This is also the maxima
103
103
104
104
How do we calculate this in Julia using `HomotopyContinuation.jl`? We do not need to eliminate our system to 6 equations as before, since the calculation is already very fast. However, the observation was crucial in order to observe the relation to product of simplices and mixed volume.
105
105
106
-
Let us choose $81$ rational number for payoff matrices of three players and declare the variables and the system of 12 multilinear equations.
106
+
Let us choose $81$ rational numbers for the payoff matrices of three players and declare the variables and the system of 12 multilinear equations.
This is actually a rational solution. We use a chained fraction approximation to find the rational approximation and evaluate it to see if this is the correct one. It turns out that this specific 3-person game has exactly one totally mixed Nash equilibrium.
174
174
```julia
175
175
rat =rationalize.(valid_real_solutions[1], tol =1e-8)
176
-
12-element Array{Rational{Int64},1}:
176
+
12-element Vector{Rational{Int64}}:
177
177
1//7
178
178
2//7
179
179
4//7
@@ -188,19 +188,19 @@ rat = rationalize.(valid_real_solutions[1], tol = 1e-8)
0 commit comments