Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 1.5 KB

README.md

File metadata and controls

30 lines (18 loc) · 1.5 KB

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)