powered by
This function finds the Nash equilibrium in mixed or pure strategies of a 2-person simultaneous game.
sim_nasheq(a, b, type = "pure")
The row player's payoff matrix.
The column player's payoff matrix.
The type of equilibrium to calculate. Can be either "pure" or "mixed". Defaults to ``pure``.
List with all Nash Equilibria
# NOT RUN { a = matrix(c(-8, -10, 0, -1), nrow = 2) b = matrix(c(-8, 0, -10, -1), nrow = 2) sim_nasheq(a, b) sim_nasheq(a, b, "mixed") # }
Run the code above in your browser using DataLab