Skip to content

Plotting a simplex for three player evolutionary games with python

License

Notifications You must be signed in to change notification settings

marvinboe/egtsimplex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

egtsimplex

Plotting a simplex for three player evolutionary games with python.

!Needs python 3.5 or higher!

Takes an arbitrary 3d function of 3 parameters of the form $dx/dt=f(x,t)$ with the frequencies of the three types adding up to one, that is $x_0+x_1+x_2=1$. From this a simplex plot with arrows pointing into the direction of the dynamics and color codes denoting the strength of change is created. As a bonus, the fixed points of the dynamics are also shown (without stability, though).

basic usage:

  1. initialize egtsimplex-object with function f(x,t)
  2. use the plot_simplex() method to plot the simplex

see file "./plot_example.py" for an example

About

Plotting a simplex for three player evolutionary games with python

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages