Skip to content

Code for our paper "Diversity enables the jump towards cooperation for the Traveler's Dilemma"

License

Notifications You must be signed in to change notification settings

MA-Ramirez/Travelers_Dilemma_Code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Title Paper DOI

Travelers Dilemma Code

Code for the simulations and numerical solutions accompanying the paper:

Diversity enables the jump towards cooperation for the Traveler's Dilemma by M.A.Ramirez, M.Smerlak, A.Traulsen & J.Jost

See the published paper here

Using the code

The code is divided in the 3 different methods used for analysing the Traveler's Dilemma

  1. Replicator Mutator Equation

The code to numerically solve the equation, and to graph and analyse the results is available at:

https://github.com/MA-Ramirez/Replicator_Mutator_Eq

  1. Wright-Fisher Model

Julia sub-project to simulate the Wright-Fisher model. It uses Agents.jl, a Julia framework for agent-based modeling.

  1. Introspection Dynamics

Python scripts to simulate the dynamics, obtain the stationary distribution numerically and graph the results.

Reproducing the code

The project contains code in Python and Julia, each method contains the corresponding files to locally reproduce them: environment.yml (Python) - Manifest.toml and Project.toml (Julia)

About

Code for our paper "Diversity enables the jump towards cooperation for the Traveler's Dilemma"

Resources

License

Stars

Watchers

Forks

Packages

No packages published