Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

nash(1) [debian man page]

NASH(1) 							   lrslib 0.42b 							   NASH(1)

NAME
nash - find nash equilibria of two person noncooperative games SYNOPSIS
setupnash input game1.ine game2.ine setupnash2 input game1.ine game2.ine nash game1.ine game2.ine 2nash game1.ine game2.ine DESCRIPTION
All Nash equilibria (NE) for a two person noncooperative game are computed using two interleaved reverse search vertex enumeration steps. The input for the problem are two m by n matrices A,B of integers or rationals. The first player is the row player, the second is the column player. If row i and column j are played, player 1 receives Ai,j and player 2 receives Bi,j. If you have two or more cpus available run 2nash instead of nash as the order of the input games is immaterial. It runs in parallel with the games in each order. (If you use nash, the program usually runs faster if m is <= n , see below.) The easiest way to use the program nash or 2nash is to first run setupnash or ( setupnash2 see below ) on a file containing: m n matrix A matrix B eg. the file game is for a game with m=3 n=2: 3 2 0 6 2 5 3 3 1 0 0 2 4 3 % setupnash game game1 game2 produces two H-representations, game1 and game2, one for each player. To get the equilibria, run % nash game1 game2 or % 2nash game1 game2 Each row beginning 1 is a strategy for the row player yielding a NE with each row beginning 2 listed immediately above it.The payoff for player 2 is the last number on the line beginning 1, and vice versa. Eg: first two lines of output: player 1 uses row probabilities 2/3 2/3 0 resulting in a payoff of 2/3 to player 2.Player 2 uses column probabilities 1/3 2/3 yielding a payoff of 4 to player 1. If both matrices are nonnegative and have no zero columns, you may instead use setupnash2: % setupnash2 game game1 game2 Now the polyhedra produced are polytopes. The output of nash in this case is a list of unscaled probability vectors x and y. To normalize, divide each vector by v = 1^T x and u=1^T y.u and v are the payoffs to players 1 and 2 respectively. In this case, lower bounds on the payoff functions to either or both players may be included. To give a lower bound of r on the payoff for player 1 add the options to file game2 (yes that is correct!)To give a lower bound of r on the payoff for player 2 add the options to file game1 minimize 0 1 1 ... 1 (n entries to begiven) bound 1/r; ( note: reciprocal of r) If you do not wish to use the 2-cpu program 2nash, please read the following. If m is greater than n then nash usually runs faster by transposing the players. This is achieved by running: % nash game2 game1 If you wish to construct the game1 and game2 files by hand, see the lrslib user manual[1] SEE ALSO
For information on H-representation file formats, see the man page for lrslib or the lrslib user manual[2] NOTES
1. lrslib user manual http://cgm.cs.mcgill.ca/%7Eavis/C/lrslib/USERGUIDE.html#Nash%20Equilibria 2. lrslib user manual http://cgm.cs.mcgill.ca/%7Eavis/C/lrslib/USERGUIDE.html#File%20Formats July 2009 03/30/2011 NASH(1)

Check Out this Related Man Page

ggz-wrapper(6)							  GGZ Gaming Zone						    ggz-wrapper(6)

NAME
ggz-wrapper - GGZ Gaming Zone command line core client SYNOPSIS
ggz-wrapper [--gametype GAMENAME] [--user NAME] [--destnick NAME] [OPTION...] DESCRIPTION
The GGZ Gaming Zone allows people to play many games online using so-called GGZ core clients which are chat clients with integrated game launchers. The ggz-wrapper tool is a small special GGZ core client for the command line. It does not support chat or display of rooms, tables and players, but instead is useful for fast launching of online games. Therefore, its main purpose is to be invoked from instant messengers such as gaim or kopete. It currently supports all two-player games, as human against human or human against bot. If no options are given, ggz-wrapper will invoke a Tic-Tac-Toe game client on the default GGZ server, live.ggzgamingzone.org, logging in as guest user. OPTIONS
--gametype=GAMENAME The name of the game to play, e.g. TicTacToe or Chess. This option expects a case-sensitive argument which must match one of the available game modules in ggz.modules. If the game type is not supported by the specified GGZ server, the invocation will fail. --user=NAME The name of the player who is running the client. The default is to run with an automatically generated guest user name. In order to use a registered name, the option --password is implied. --destnick=NAME The name of the other player. If omitted or empty, the player running the client will launch the table (game host). If empty, other player will be the bot. If not empty, player will join the table which the other player already launched. --password=PASSWORD Password to use in case of playing as a registered user. Note that on a multi-user systems, other users might see the password, which is a security risk. --server=SERVER The server to play on. If not specified, the default server is ggz://live.ggzgamingzone.org. --port=PORT The port to use to connect to the GGZ server. PORT is almost always 5688, so this option is rarely needed. AUTHORS
The GGZ Development Team <ggz-dev@mail.ggzgamingzone.org> SEE ALSO
ggz.modules(5), ggz(7) The GGZ Development Team 0.0.14 ggz-wrapper(6)
Man Page