Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 849 Bytes

File metadata and controls

34 lines (24 loc) · 849 Bytes

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