game_gambit_solve: Solve equilibria of a game using Gambit

Description Usage Arguments See Also

View source: R/game.r

Description

You need to install Gambit http://www.gambit-project.org to use this function.

Usage

1
2
3
4
5
game_gambit_solve(game, gambit.command = NULL, mixed = FALSE,
  just.spe = TRUE, qre.lambda = NULL,
  gambit.dir = first.non.null(getOption("gtree.gambit.dir"), ""),
  efg.dir = NULL, efg.file = NULL, verbose = isTRUE(game$options$verbose
  >= 1), add.q.flag = TRUE, ...)

Arguments

game

the game object created with new_game

gambit.command

A Gambit command line command with options but not file name. For example "gambit-enummixed -q" to compute all extreme point mixed equilibria. The different Gambit command line solvers are described here: http://www.gambit-project.org/gambit16/16.0.0/tools.html If left as NULL a default gambit command line solver with appropriate arguments will be chosen, depending on your arguments for mixed and just.spe

mixed

relevant if no explicit gambit.command is given. If FALSE (default) only pure strategy equilibria will be computed, otherwise try to compute one mixed equilibrium.

just.spe

if TRUE compute only SPE. If FALSE all NE will be computed.

qre.lambda

if not NULL compute a logit QRE equilibrium using the gambit-logit solver and the specified value of lambda.

gambit.dir

The directory where to find the Gambit command line solvers. Ideally, you put this directory into the search path of your system and can keep the default gambit.dir = "". To globally change the default directory adapt the following code options(gtree.gambit.dir = "/PATH/TO/GAMBIT")

efg.dir

To solve via Gambit we first write the game tree into an .efg file. If efg.dir is NULL (default), the file will be written to a temporary directory. But you can also specify a custom directory here, e.g. if you want to take a look at the file.

efg.file

If NULL a default file name for the efg file will be generated based on the name of the game and the specified preferences. But you can specify a custom name here.

verbose

if TRUE show some extra information

add.q.flag

The gambit command line solver should always be called with the option "-q" for gtree to be able to parse the returned output. If add.q.flag is TRUE we will add this flag if you have not yet added it to your gambit.command

See Also

Other eq: eq_cond_expected_outcomes, eq_cond_outcomes, eq_expected_outcomes, eq_li, eq_outcomes, eq_tables, game_gambit_solve_qre, game_solve_spe

Other Gambit: game_write_efg


skranz/gtree documentation built on March 27, 2021, 6:03 a.m.