KehlRafael / hyper-rational-games

MIT License
0 stars 0 forks source link

hyper-rational-games DOI

This project is a solver for the Cauchy problem proposed on my master's degree final project, still to be published, and is under the MIT License. hrgames.py is a module with two functions, one that receives the adjacency matrix, payoff matrices, relationship matrix and initial state of the system to return the increments in each strategy for each vertex, the second receives the same parameters plus a time interval and number of steps and returns the state of the system after the game is played through that time interval. examples.py has a collection of examples made by myself and contributors.

Usage

To run the hrgames module you must have Numpy installed. To run any examples from examples.py you'll need Numpy, Matplotlib and the hrgames module. You can import the hyper-rational evolutionary game module using:

  import hrgames as hrg

You can run the examples from examples.py using:

  python examples.py example_name

Where example_name can be any of the following: