solve_nfg_char: Find Nash equilibria of a normal-form game.

View source: R/solve_nfg_char.R

solve_nfg_charR Documentation

Find Nash equilibria of a normal-form game.

Description

solve_nfg_char() finds the pair of the best responses of a normal-form game defined with payoff functions as character strings by normal_form().

Usage

solve_nfg_char(
  game,
  plot = TRUE,
  mark_NE = FALSE,
  quietly = FALSE,
  color_palette = "Set1"
)

Arguments

game

A "normal_form" class object created by normal_form().

plot

A logical value to determine whether the figure of the best response correspondences will be displayed. Default is TRUE.

mark_NE

A logical value to control if the NE (if any) will be marked in the best response plot, which will be displayed (only displayed when plot = TRUE). Default is FALSE.

quietly

A logical value to determine if the equilibrium will be kept in the returned list without being printed on screen. Default is FALSE.

color_palette

A color palette to be used. Default is "Set1".

Value

A list containing the pair of the best responses of two players (NE) and the plot of best response correspondences.

Author(s)

Yoshio Kamijo and Yuki Yanai yanai.yuki@kochi-tech.ac.jp

See Also

normal_form


yukiyanai/rgamer documentation built on June 14, 2024, 7:38 p.m.