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 741 results agent based clear search

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.

This model compares rules for allocating a fixed budget of opportunity (places, training, funding) among people who differ in potential and will. Each agent’s effective potential, its denatotita, is potential multiplied by will. Realisation is denatotita multiplied by the opportunity received, and an agent succeeds when realisation reaches a threshold. Nine allocation regimes are compared: equal shares; shares proportional to denatotita; three threshold rules that reclaim and redistribute the allocations of those who would fail; an efficient benchmark that maximises successes; and three forward-looking rules (foresight, will-aware foresight and hindsight). A mixed regime blends targeting with equal shares. Over time, opportunity develops potential through a skill-formation technology, and will rises with success and falls when an agent is passed over. The model reproduces the article’s results: a closed-form crossover between equal and proportional allocation; a reversal in favour of broad allocation when development is productive; a hollowing-out of potential under success-maximising allocation; and the failure of mixtures of targeting and equal shares. Written in Python (NumPy, pandas, Matplotlib), with fixed random seeds so results are exactly reproducible.

This agent-based model is supporting a simulation that has been used in participatory workshop in Vietnam. It was designed to foster discussion about the joint reading of territorial evolutions and the decrease of investment in the maintenance of hydraulic works, especially irrigation pumping station in a case study territory in the Red River Delta.
The code comprises a number of different experiment to facilitate discussion on specific variables during workshops. One of the experiment has been developped to allow users to interact with hydraulic works and decide to prioritise or de-prioritise their maintenance.
This model has been implemented using the GAMA platform, relying on the gaml language.

This study separates operational interoperability, fare integration and revenue-sharing governance in a stylised multi-operator bus network. An agent-based model implemented in NetLogo 7.0.3 represents passengers, buses and stations across 14 stations, nine routes and three operators. A 2 × 2 institutional design is complemented by financial clearing comparisons and 43,200 robustness runs: behavioural sensitivity (E1), a 243-configuration operational factorial (E2), and targeted joint behavioural–operational stress testing (E3). The audited experiment records show favourable interoperability effects on waiting, total travel time, transfers and realised generalised cost in all 1,944 E2 and 768 E3 configuration-level primary comparisons. Fare integration substantially reduces passenger expenditure but produces an aggregate deficit under the assumed accounting coefficients. Revenue-sharing rules redistribute operator-level outcomes without changing aggregate profit or passenger trajectories by construction. The model is intended to identify mechanisms and test conditional robustness, not predict city-specific policy effects. The paper contributes an explicit separation of access, pricing and settlement mechanisms coupled with reproducible factorial and stress-test comparisons.

This archive contains the SAFE-ABM computational model developed to evaluate targeted intervention strategies for protecting essential workers during epidemic conditions, accompanying the published article “Essential Workers at Risk: An Agent-Based Model (SAFE-ABM) with Uncertainty Quantification” in the Journal of Artificial Societies and Social Simulation, 29(4), Article 7 (2026). https://doi.org/10.18564/jasss.6276. SAFE-ABM is an agent-based model that simulates disease transmission through structured interactions across households, workplaces, and schools, while incorporating stochastic disease progression and uncertainty in transmission, recovery, and mortality parameters.

The model evaluates five intervention scenarios: Scenario 1, no restrictions; Scenario 2, school-from-home; Scenario 3, essential-workers-only movement; Scenario 4, rotational shifts among essential workers with quarantine of symptomatic active workers; and Scenario 5, rotational shifts among essential workers without quarantine. The archive includes scenario-specific simulation scripts, comparison-analysis scripts, saved derived outputs, README documentation, software requirements, and reproducibility notes.

The included comparison scripts reproduce the main numerical summaries and manuscript outputs, including median epidemic trajectories, predictive-uncertainty plots, cumulative recovery and death summaries, inflection-point summaries, Welch-test comparisons, and mutual-information sensitivity rankings. Saved derived outputs are included so that the main figures and tables can be reproduced without rerunning all large-scale simulations.

…

This Python agent-based model simulates the diffusion of instructional practices among primary-school science teachers connected through within-school and cross-school networks. It represents teachers as agents nested in schools and compares five adoption mechanisms: simple contagion, proportion thresholds, count thresholds, adaptive norm conformity, and an individual-only baseline. The model evaluates fixed-budget training allocations, including concentrated and distributed policies, and estimates when school-level dose-response evidence can support targeted allocation. Experiments examine peer interference, cross-school contact intensity, global critical transitions, allocation stability, and the distinction between participant-level and system-level outcomes. Teacher attributes are informed by a de-identified Beijing questionnaire, whereas team sizes and contact networks are explicit model assumptions. The package includes executable Python scripts, ODD documentation, parameter tables, experiment metadata, simulation outputs, and the authorized questionnaire workbook required to reproduce the questionnaire-informed analyses. Results are intended as model-based design evidence for future longitudinal research rather than forecasts of adoption rates.

This repository contains a Python simulation script for studying network-based linguistic diversity. The model extends the classic Greenberg Diversity Index by introducing diversity measures defined over social ties rather than only over population shares. It also includes two extensions: a competence-conditioned version and a multilayer version.

Given the importance of experiencing fulfilling and productive workdays, scholars have focused on ways to boost employees’ daily engagement and performance, suggesting this may be accomplished by increasing meaningfulness of their work tasks. However, an alternative approach may be needed in multifaceted work contexts where employees need to complete sets of varied tasks each day, including tasks that lack meaningfulness. To address this issue, we integrate the workday design perspective with research on residual engagement to examine implications of strategically sequencing tasks in terms of their meaningfulness. We theorize that because of a process we refer to as engagement cascade, performing the day’s most highly meaningful tasks earlier and in a concentrated manner will tend to produce higher levels of daily engagement relative to sequences in which the most highly meaningful tasks occur later or are disbursed. We use agent-based modeling to formalize the engagement cascade process and generate specific predictions regarding how daily engagement is impacted by different task meaningfulness sequences. Findings from an intensive longitudinal design study with NASA and ROSCOSMOS crew members (Study 1), an experience sampling field experiment with full-time employees (Study 2), and two controlled laboratory experiments with undergraduates (Study 3 and Supplement to Study 3) provide support for our hypotheses. Specifically, the decreasing task meaningfulness sequence engendered higher levels of daily engagement, and in turn, daily performance, relative to increasing, inverted U-shaped, and U-shaped sequences.

HOSS(-5) is an exploratory agent-based prototype of a small artificial society, written in Python. Each agent is a “ph” (punto humano, “human point”) that is born, is educated, works, consumes and dies. Its yearly decisions depend on a psychological profile (archetype × character), its economic status and its intentionality. Agents interact indirectly through families, firms in 10 sectors, a labour market with about 200 job categories, and a State that provides public services, employment and a Universal Basic Income, adjusting taxes and UBI each year to seek fiscal balance.

The model simulates a few thousand agents over decades of virtual time and records yearly aggregates (population, GDP, income, Gini index, HDI). A separate analysis script explores the results and fits Gamma distributions to individual incomes, comparing the shape parameter with Gini and HDI.

HOSS does not aim to predict real societies or claim empirical validation. It is a sandbox for comparing scenarios and thinking about the organizational design of society from an engineering perspective. Known limitations: no direct social relations between agents, prices and production follow simple rules rather than supply-demand dynamics, and organizations are black boxes.

…

Displaying 10 of 741 results agent based 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