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
The code is divided in the 3 different methods used for analysing the Traveler's Dilemma
- 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
- Wright-Fisher Model
Julia sub-project to simulate the Wright-Fisher model. It uses Agents.jl
, a Julia framework for agent-based modeling.
- Introspection Dynamics
Python scripts to simulate the dynamics, obtain the stationary distribution numerically and graph the results.
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)