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 1332 results
This model extends Schelling’s segregation model with mobility sharing. Agents of two groups occupy cells of a 32 × 32 grid and repeatedly choose activity destinations subject to a preference threshold, the minimum share of ingroup neighbours they accept. Trips are matched into shared rides between members of different groups, using one of four matching algorithms on a shareability network (maximal cross-group matching, maximum weight matching on contact time, maximum cardinality matching, or random greedy matching) with a maximum detour constraint. After each trip, an agent’s preference threshold changes with the time spent in contact with outgroup members.
Starting from complete segregation, the model examines under which conditions contact during shared trips leads to integration. Besides the main scenario, in which contact always lowers the threshold, it includes two extensions. In the first, a share of adversarial agents becomes less tolerant with contact, and this share grows or shrinks with the current level of segregation, governed by a branching dissimilarity index and a conversion rate. In the second, each contact raises or lowers the threshold with a probability that depends on the agent’s current attitude relative to a compatibility threshold.
Segregation is measured with the index of dissimilarity and the Gini coefficient. The model file includes BehaviorSpace experiments for each analysis in the associated article. The matching step uses the NetworkX library through the Python extension of NetLogo (requires Python 3 with numpy and networkx 3.x).
This model represents individuals from two different groups interacting and sharing attitudes toward both groups. Through these interactions, individuals adjust their attitudes, which can lead to different outcomes in opinion dynamics. The model can study both intra-group and inter-group opinion dynamics. Under certain conditions, agents with initially moderate attitudes might enter a negative spiral, leading to increasingly extreme intergroup attitudes. Alternatively, these moderate attitudes can foster consensus between groups, resulting in agreement on intergroup attitudes. This model serves as a tool for exploring opinion polarization, particularly in contexts where attitudes evolve through interaction rather than remaining static.
By adjusting different parameters, one can examine the effects of variations in attitude distributions; group size and relative group size; contributions of xenophobia, opinion distance, and individual attitudes towards the outgroup; as well as ratio between xenophobia and attitudinal bias to the overall intergroup bias.
The model accompanies the paper When contact backfires, and when it does not: A computational model of the opinion dynamics of intergroup attitudes.
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.
…
This model couples a two-asset heterogeneous-agent New Keynesian macroeconomy with a household layer that can be driven in two ways. One is a conventional calibration. The other is a set of large-language-model persona agents built from real survey households in Korea (NaSTaB), the United States (PSID) and Italy (SHIW). Each persona is given its balance sheet, income and prices, and reports consumption, saving and labour supply. A feasibility layer enforces the budget constraint. A conditional-mean surrogate then turns these decisions into a propensity surface. That surface reaches the macroeconomic block through a single channel, the intertemporal marginal propensity to consume matrix. Because of this, a calibrated “twin” can be aligned with the generative layer exactly, and the two can be compared policy by policy.
Both layers are then scored against the held-out consumption of the same households. The model’s role is to serve as a benchmark: it tests whether generative agents add information beyond the balance sheet, and whether that information matches real behaviour.
The deposit contains:
…
Viking Sailing is a spatially explicit agent-based simulation for conditional exploration of how rasterized coastlines, wind, and
surface-current conditions interact with simplified ship movement, sailing, rowing, navigation, and land-avoidance rules. The
model compares simulated route trajectories and terminal outcomes for hypothetical Viking-era small-ship voyages. It includes an example dataset representing sea surface winds and currents from June 1000 CE. Additional data can are downloaded from Zenodo: https://zenodo.org/records/23213147.
This agent-based aquaponics simulation models the biological resilience and complex dynamics of a closed-loop agricultural system. Designed for educational use and agricultural research, the model helps aquaponic designers, farmers, and hobbyists understand systemic dynamics and stress-test species configurations prior to a physical build. The simulation dynamically models the nitrogen cycle by tracking aquatic bio-loads, bacterial filtration, and plant nutrient uptake. Utilizing real-world biological metrics from the Loyola Global Aquatic Excrement Dataset, the model calculates species-specific ammonia excretion rates (toxicity) for various aquatic life, including Trout, Tilapia, and Goldfish. Nitrifying bacteria agents convert this toxicity into usable nitrates, which are then absorbed by specific crop agents—such as Tomatoes, Swiss Chard, or Lettuce—at variable rates. Key features include dynamic stochastic harvesting, measurable agent health, vermaculture and crawdad integration, and reactive biological mitigators like emergency duckweed buffering. The system also introduces chaotic environmental variables, allowing users to test the agricultural setup’s resilience against random shocks like bio-filter pump failures and temperature crashes. This model is released under the GNU General Public License v3.0 (GPL-3.0) to encourage collaborative improvement within the academic and farming communities.
Replication package for a network diffusion model of how Protestant belief spreads through a
signed social network, used to compare three versions of balance theory.
Artificial Anasazi is an agent-based model of farming households in the Long House Valley, Arizona, from 800 to 1350 CE. Each household chooses where to farm and settle based on expected harvest, water sources and stored maize, and simulated household counts are compared with the archaeological record.
This release adapts the NetLogo Models Library version (Stonedahl & Wilensky 2010) of Janssen’s (2009) NetLogo replication of the original Ascape model (Dean et al. 2000; Axtell et al. 2002). It contains four configurations in one NetLogo 7.0.4 file, selected with two switches:
soil-on?: dynamic soil quality that depletes under cultivation and regrows, following Janssen (2010, eq. 4). Displaying 10 of 1332 results