Giter Club home page Giter Club logo

sid230798 / game_theory Goto Github PK

View Code? Open in Web Editor NEW
15.0 3.0 4.0 86 KB

This repository analyses Strategic form games for N-player calculating various Equilibrium's, Calculate MSNE for 2-Player strategic form and zero sum game, Also contains algorithm for N-player finite Mechanism design to check if social choice function is SDSE, Ex-Post-efficient and Non-dictatorial.

Python 100.00%
game-theory game-theory-algorithms nash-equilibrium mixed-nash-equilibrium zero-sum-games linear-programming mechanism-design

game_theory's Introduction

--------------------------------------------------------------------------------------

Name : Siddharth Nahar
Entry No : 2016csb1043
Date : 21/4/20

---------------------------------------------------------------------------------------

* To Run the code

python main.py -p $(PROBLEM_ID) -f $(File_to_be_inputed)

Examples.

python main.py -p 4 -f Problem4/Test_Cases/strategic_info2.ini

-- Above runs 4th problem with specified file as input.

python main.py -p 1 -f Problem1/Test_Cases/strategic_info1.ini

-- Above runs 1st problem with specified file.

---------------------------------------------------------------------------------------

* Folder Structure

-- Folder consists of Problem1,2,3,4, main.py and Readme. Each Problem is appended by it's number.
-- Test case files for each Probelm is in its respective folder/Test_Cases
-- Code for each problem is under respective folder/analyse_equilibrium.py
-- Implementation details is under respective folder/Implementation_details.txt

---------------------------------------------------------------------------------------

* How Strategic Form game will be inputed ?

    -   It will be inputed as initialisation file as key value pair.
    
    -   File will contain two section. First section defines number of players and their strategies.
        Next section will contain utilities of indivisual players.

    -   There will be nested list of utilities. For s_i there will be single line of utility for all s_(-i). 
        Ordering will be fixed according to players and strategies as provided in file 1.

        Suppose 3 player game strategic form game

        [Strategies]
        N = 3
        Player1 = [a1, a2, a3]
        Player2 = [b1, b2, b3]
        Player3 = [c1, c2]
        
        [Utilities]
        Player1 = [
        [2, 3, 4, 5, 6, 7],    --> (For a1)(a1, b1, c1), (a1, b1, c2), (a1, b2, c1)......
        [1, 2, 3, 4, 5, 6],    --> (For a2)
        [0, 2, 3, 4, 5, 1]]

        Player2 = [
        [0, 1, 2, 3, 4, 1],    --> (For b1)(a1, b1, c1), (a1, b1, c2), (a2,b1,c1), (a2, b1, c2)......
        [1, 2, 3, 4, 5, 6],    --> (For b2)
        [1, 2, 3, 4, 5, 6]]

        Player3 = [ 
        [1, 2, 3, 4, 5, 6, 7, 8, 9], --->(For c1) (a1,  b1, c1), (a1, b2,c1), (a1, b3, c1), (a2, b1, c1) .......
        [0, 2, -4, -2, -1, -4, -5, -6, 1]]


--------------------------------------------------------------------------------------------

game_theory's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.