Skip to content

asanf/social-coordination-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

social-coordination-game

Code which computes approximated equilibrium for Social Coordination Games as shown by E. Anshelevich and S. Sekar.

Usage

Given the number of players and strategies, the code generates a random instance. To create a game with ten players and four strategies, simply type

game = Game(10, 4)

Then you can normalize the weights and find an alpha approximated Nash equilibria with

game.normalize()
result = game.findEquilibria(alpha)

result is a dictionary containing several info. There are utility functions to save the results of a test as a CSV file. Furthermore, a function to make batch test in parallel is available. The function run calls a given function for a given number of test cases. The default test function tries several heuristic developed during my master thesis work. For example, to test 2500 instances of the game, with random number of players and strategies, type

res = saveCSVResults( run(2500) )

this saves the results in a CSV file in the running directory and puts the same results in the variable res.

About

Code which computes approximated equilibrium for Social Coordination Games as shown in http://arxiv.org/abs/1404.4718v1

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages