Skip to content

xtt28/strategy_engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

strategy_engine

Description

strategy_engine is a C program that computes the mixed strategy Nash equilibrium for a given payoff matrix. Consider the following table:

P2 \ P1x1-x
ya, bc, d
1-ye, fg, h

Given values for variables a through h, strategy_engine calculates x and y by creating utility functions from the payoff matrix and taking partial derivatives.

Usage

# Clone from Git
git clone https://github.com/xtt28/strategy_engine.git
cd strategy_engine

# Compile and run
# Note that on some systems you may need to add parameter -std=gnu99
gcc main.c
./a.out

Enter the cells of the payoff matrix with payoff values in each cell separated by one space

License

GNU GPL v3.0 or later

About

C Algorithm for finding Mixed Strategy Nash Equilibria

Topics

Resources

License

Stars

Watchers

Forks

Languages