EnglishFrenchSpanish

Ad


OnWorks favicon

2nash - Online in the Cloud

Run 2nash in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command 2nash that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

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]

Use 2nash online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Phaser
    Phaser
    Phaser is a fast, free, and fun open
    source HTML5 game framework that offers
    WebGL and Canvas rendering across
    desktop and mobile web browsers. Games
    can be co...
    Download Phaser
  • 2
    VASSAL Engine
    VASSAL Engine
    VASSAL is a game engine for creating
    electronic versions of traditional board
    and card games. It provides support for
    game piece rendering and interaction,
    and...
    Download VASSAL Engine
  • 3
    OpenPDF - Fork of iText
    OpenPDF - Fork of iText
    OpenPDF is a Java library for creating
    and editing PDF files with a LGPL and
    MPL open source license. OpenPDF is the
    LGPL/MPL open source successor of iText,
    a...
    Download OpenPDF - Fork of iText
  • 4
    SAGA GIS
    SAGA GIS
    SAGA - System for Automated
    Geoscientific Analyses - is a Geographic
    Information System (GIS) software with
    immense capabilities for geodata
    processing and ana...
    Download SAGA GIS
  • 5
    Toolbox for Java/JTOpen
    Toolbox for Java/JTOpen
    The IBM Toolbox for Java / JTOpen is a
    library of Java classes supporting the
    client/server and internet programming
    models to a system running OS/400,
    i5/OS, o...
    Download Toolbox for Java/JTOpen
  • 6
    D3.js
    D3.js
    D3.js (or D3 for Data-Driven Documents)
    is a JavaScript library that allows you
    to produce dynamic, interactive data
    visualizations in web browsers. With D3
    you...
    Download D3.js
  • More »

Linux commands

  • 1
    2to3-3.5
    2to3-3.5
    2to3-3.3 - Python2 to Python3 converter
    ...
    Run 2to3-3.5
  • 2
    2to3
    2to3
    2to3-2.7 - Python2 to Python3 converter
    ...
    Run 2to3
  • 3
    cpan-uploadp
    cpan-uploadp
    cpan-upload - upload a distribution to
    the CPAN VERSION: version 0.103012
    USAGE: usage: cpan-upload [options]
    file-to-upload-1 [ file-to-upload-2.. ]
    -v --verb...
    Run cpan-uploadp
  • 4
    cpan
    cpan
    cpan - easily interact with CPAN from
    the command line ...
    Run cpan
  • 5
    gbirthday
    gbirthday
    gbirthday - a birthday reminder
    application that helps you to remember
    your contacts' birthdays OPTIONS:
    gbirthday does not have parameters for
    the command lin...
    Run gbirthday
  • 6
    gbker
    gbker
    gbker - Produce kernel density
    estimation ...
    Run gbker
  • More »

Ad