Skip to content

The master program for my thesis simulations. Recreates a structured population with a number of possible social features and traits

Notifications You must be signed in to change notification settings

ClaireGuerin/institution-evolution

Repository files navigation

institution-evolution

Branch travis ci logo codecov logo
master Build Status codecov
develop Build Status codecov

Installation

Download the repository institution-evolution on your local machine.

Launch simulation

⚠️ Non-values are marked with -99 in output files: Be mindful there when analyzing data! For instance, when technology level is not recorded in the simulation, the corresponding output file will show a mean technology level of -99 for every generation.

Requirements

Scipy and Numpy for running simulations, Pytest to test code. To install all requirements, run: pip install -r requirements.txt

This code is written under Python 3.7.3

Parameters

Set parameters as desired in pars folder:

  • fitness_parameters.txt: specific to fitness function used. For now, only Public Goods Games (PGG)
  • initial_phenotypes.txt: \n for each new trait
  • parameters.txt: general parameters
    • mutation rate,
    • mutation variance,
    • migration rate
  • initialisation.txt:
    • number of demes (i.e. sub-populations)
    • initial size of demes (number of individuals in each sub-population)
    • number of generations (iterations) to run.

Command line

Run a single simulation

python script_single_simulation.py

Test parameter space

python script_parameter_space.py

About

The master program for my thesis simulations. Recreates a structured population with a number of possible social features and traits

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published