Culture and cooperation in a spatial public goods game

Software

Source code: culture_cooperation_model_code.tar.gz

This software is free under the terms of the GNU General Public License. It is derived from code developed for an earlier publication Ultrametric distribution of culture vectors in an extended Axelrod model of cultural dissemination. It uses Python and parallelization using MPI (with mpi4py). It also requires the Python libraries NumPy (part of the SciPy package) and igraph.

The Python code was run with NumPy version 1.9.1, SciPy version 0.14.1, igraph version 0.6 and mpi4py version 1.3.1 under Python version 2.7.9 on a Lenovo x86 cluster (992 Intel Haswell compute cores running at 2.3GHz) running Linux (RHEL 6) with Open MPI version 1.10.0. The C++ code was compiled with gcc version 4.9.2.

Running the models

The model can be run with a command line such as: mpirun --mca mpi_warn_on_fork 0 python ./lattice-python-mpi/src/axelrod/geo/expphysicstimeline/multiruninitmain.py m:100 F:5 strategy_update_rule:fermi culture_update_rule:fermi ./lattice-jointactivity-simcoop-social-noise-constantmpcr-cpp-end/model 10000

Animated snapshots

Animations of the cultures (left) and cooperators (right) on the lattice, starting at initial state and ending after 1e09 iterations, also with a snapshot at times 10000000,110000000,210000000,310000000,410000000,510000000,610000000,710000000,810000000,910000000. Each distinct culture vector is shown in a different color in the left figure, and in the right figure, (conditional) cooperators are shown in green and defectors in orange. In all animations, F = 5, L = 100, radius = 2, MPCR = 0.6.

Reference

If you use our software, data, or results in your research, please cite:

Contact

Alex Stivala

This page, its contents and style, are the responsibility of the author and do not necessarily represent the views, policies or opinions of The University of Melbourne.
Last Modified: