Computational Model Library

Our mission is to help computational modelers develop, document, and share their computational models in accordance with community standards and good open science and software engineering practices. Model authors can publish their model source code in the Computational Model Library with narrative documentation as well as metadata that supports open science and emerging norms that facilitate software citation, computational reproducibility / frictionless reuse, and interoperability. Model authors can also request private peer review of their computational models. Models that pass peer review receive a DOI once published.

All users of models published in the library must cite model authors when they use and benefit from their code.

Please check out our model publishing tutorial and feel free to contact us if you have any questions or concerns about publishing your model(s) in the Computational Model Library.

Displaying 10 of 146 results Python clear search

BDPD (Be Different Play Differential) is an open-source computational laboratory for the study of common-pool resource dilemmas, governance under heterogeneous agents, and Seneca-type asymmetric collapse dynamics.

The platform comprises a Node.js multi-agent simulation engine (the Arena) with three swappable physics engines (logistic growth, ladder-perturbation, Bardi/Seneca three-variable ODE), a polycentric World layer for cross-arena treaties and meta-agent governance, a unified message bus on which both deterministic heuristic agents (aggressive, conservative, adaptive, conditional, reactive) and LLM agents (DeepSeek-class, others via HTTP) interact, and an experiments runner with sweep, perturbation, and OFAT-robustness pipelines.

Across a four-paper series the platform has produced and documented: (i) a discontinuous fragility threshold — a single aggressive agent suffices to doom the commons under realistic slow-regeneration; (ii) the reactive < conservative effect — locally reactive strategies are collectively inferior to unconditional cooperation; (iii) graduated sanctioning where the escalation shape of the ladder, not the absolute magnitude, is the load-bearing parameter; (iv) a governance inversion — rule-bound heuristics and signal-adaptive LLM agents produce qualitatively opposite outcomes on nested commons under identical institutional design; (v) leading-indicator regulation Pareto-dominates lagging-indicator regulation in preventing a polycentric Seneca cascade.

…

Trust, but Verify: an agent-based model of how university grading shapes whether students use generative AI and check its answers. Students in a network of study groups update their stance through graded work and peer influence. Includes NumPy and Mesa implementations, and an interactive Solara dashboard.

An agent-based model of how a source that repeatedly publishes false news can gain audience by imitating the presentation of established media without becoming more accurate. Five hundred users repeatedly choose which of the sources they know to share from; choices follow the evidence each user has accumulated about a source’s presentation (13 attributes such as credibility, information quality, proximity and sensationalism) and recommendations from contacts. User preferences, source profiles and initial reach are derived from a survey of 507 Chilean users of X. An experimental source can copy the engagement, proximity, informational or credibility attributes of traditional media while its probability of publishing false items is held fixed. The model compares imitation strategies, campaign timing, limits on reach, and warning labels on recommended or shared items, and separates two outcomes: the source’s share of sharing decisions and the share of shared items that are false. It includes robustness variants (memory, choice rule, network, survey coding, nine-outlet ecology) and an adaptive source that learns its presentation from audience feedback.

In this model, we build a hierarchical firm that searches an NK performance landscape. The firm is formed by two kinds of boundedly rational agents: the CEO and the employees. While CEO compensation is based on long-term firm performance maximisation, employees are paid based on their short-term contributions to firm performance.

An agent-based model of a sports league, a public Elo forecaster and a bookmaker. Teams have hidden true strengths that drift between seasons; the forecaster updates Elo ratings after every game; the bookmaker prices each game from the Elo forecast plus a margin (overround), spread either proportionally or loaded onto longshot prices. The model asks where the favourite-longshot pattern in betting prices comes from. With a forecaster whose ratings lag true strength, longshots win more often than their de-vigged price implies; a bookmaker that loads its margin onto longshots cancels that bias, so favourite and longshot bets both lose roughly the margin. Outputs: a calibration table (de-vigged price band vs. observed win rate) and the average return of flat bets on favourites and longshots. Python 3 standard library only; all parameters are command-line arguments; the README documents the model with a short ODD protocol and an example run. Companion empirical study and open data (CC BY 4.0): Bet Better market calibration study. Teaching model, not a betting system.

Shared vocabularies are not designed by any central authority; they emerge from the bottom up as communities of speakers repeatedly try to understand one another. We study this process with an agent-based Naming Game in which a population that begins with no common vocabulary self-organises a shared language through local pairwise interaction, and we ask how the social network governs the outcome under communication noise and under selection on communicative strategy. The study combines baseline experiments with an extended suite built specifically to meet the standards of replication and statistical inference: every reported quantity is averaged over many independent seeded runs with confidence intervals, and the central claim is tested with a formal interaction statistic. Convergence time scales with population size as a power law with exponent close to four-thirds, matching analytical results for the Naming Game on networks. Restricted networks sustain many coexisting regional dialects, which we quantify with a cluster-based metric and show to be metastable, decaying to a single language as the interaction budget grows. Our central methodological contribution concerns noise robustness. A naive comparison suggests that denser networks simply tolerate more noise, but by comparing topologies at matched mean degree and by sweeping degree directly we separate two effects: connectivity raises robustness with sharply diminishing returns, while at identical degree locally clustered topologies remain significantly less robust than well-mixed ones. The effect of topology therefore survives the removal of the degree confound. Finally, an evolutionary extension shows that selection for communicative success drives inventiveness towards a low level that a frequency-dependent reward for useful innovation raises only slightly, so conservatism is robust rather than an artefact of the fitness function.

An agent-based model of one community whose members meet every week. Members decide whether to attend the community’s gatherings, meet partners there, reveal or withhold their views on two topics, and judge each partner as “like me” or as one of “those people”. Views move toward accepted voices and are held by each member’s starting view. Each conversation has a feeling, which updates the member’s warmth toward her own side and toward the other side and strengthens or weakens the tie between the two partners; ties decide belonging, and belonging decides attendance. Listening enters as one trait, conversational receptiveness. The release includes the BehaviorSpace setup file and the output of every run reported in the accompanying paper.

Green Consumption ABM – Version 2.0.0

This release presents an updated agent-based modelling (ABM) framework developed to investigate social tipping dynamics in green consumption markets.

The model integrates heterogeneous consumer preferences, social influence, firm-level economic decision-making, endogenous pricing, and environmental policy interventions to examine how individual behavioural responses can generate collective market transitions.

…

Outgroup Aversion on a Network

Bruce Miller | Published Wednesday, November 04, 2026

This model builds on Smaldino et al (2017) by using the outgroup aversion model on a network platform and analyzing the results.

A holistic, agent-based model of scientific knowledge production to simulate large-scale collaborative research processes. The model represents the scientific process as a stochastic, cooperative task-completion game where agents repeatedly collaborate on projects that can yield publications.

The model is implemented in Python as an environment in the popular Gymnasium reinforcement learning library.

Displaying 10 of 146 results Python clear search

This website uses cookies and Google Analytics to help us track user engagement and improve our site. If you'd like to know more information about what data we collect and why, please see our data privacy policy. If you continue to use this site, you consent to our use of cookies.
Accept