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 48 results opinion dynamics clear search

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.

Peer reviewed Epistemic Bubbles in Adaptive Social Networks

Omar al-Magharebi | Published Monday, November 16, 2026 | Last modified Sunday, November 29, 2026

How can people come to agree with their neighbors while remaining divided across a social network?

Epistemic Bubbles is an exploratory NetLogo model in which people revise their beliefs and change their social ties. Agents start in a randomly connected network. At each time step, they move toward their neighbors’ average belief according to their openness to influence. A tie can dissolve when disagreement exceeds either agent’s tolerance. Agents can also form new ties with people whose beliefs fall within their tolerance.

To try the model, open Epistemic_Bubbles.nlogox in NetLogo 7.0.4. Click SETUP and GO to run the saved settings. Then set mean-tolerance to 0.15, click SETUP again, and rerun with the same seed. Compare the number of connected components, the spread of beliefs across the population, and the average belief gap between people who are directly connected.

…

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.

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.

An agent-based model in which fourteen European Union member states each carry a cooperation
propensity in [0,1], updated by a logistic link applied to a latent index that combines the unit’s
own previous state, a weighted average of the other units’ states, and four min-max normalised
exogenous indicators (cooperative benefit, opportunistic temptation, systemic exit cost,
intertemporal confidence). The logistic centres are anchored so that the observed 2024
configuration is an exact fixed point of the baseline map, the device that makes such models
…

This entry provides an Agent-Based Model (ABM) of opinion and tolerance dynamics in artificial societies, implemented in the frame of the Concord/Partial Antagonism (C/PA) model. This version is specifically designed to investigate the impact of asymmetric influence through two leadership archetypes—Dictator and Democrat—within networked societies.
The model is highly modular, allowing the user to simulate three distinct social scenarios:
Baseline C/PA: Self-organization of a society without external influence.
Stubborn Leadership: Introduction of a “solid conviction” leader (Dictator or Democrat) who exerts constant pressure without changing their own stance.
Feedback Leadership: A democratic leader receptive to social feedback, where the leader’s opinion evolves based on interactions with the population.
Theoretical Foundations:
…

We combine a model of parties adjusting their position to recruit voters, and voters adjusting their opinions due to social influence and party positions.

Basic Opinion Dynamics model

Marco Janssen | Published Sunday, June 28, 2026

Demo model that shows how continuous opinions change due to interactions with other agents. Agents move towards similar opinions and repel away from intolerable opinions.

A reproducible NetLogo implementation of a spatial attraction-repulsion opinion model with eviction-driven relocation. Agents interact locally, converge with similar neighbors, diverge from dissimilar neighbors, and may evict the most dissimilar neighbor to a random empty location. Parameter sweeps reveal transitions among extremist, mixed, and consensus regimes, with outputs including phase diagrams, opinion distributions, and Moran’s I. The model is intended to reproduce and extend results on how exclusion frequency changes polarization outcomes.

This model implements a coupled opinion-mobility agent-based framework in NetLogo, extending Attraction-Repulsion Model (ARM) dynamics with endogenous migration in continuous 2D space.

Each agent has an opinion s in [0,1] and a spatial position (x,y). Agents interact locally within an interaction radius, with exposure-controlled interaction probability. Opinion updates follow ARM rules: attraction for small opinion distance and repulsion for large distance (tolerance threshold T). After social interaction, agents move according to a social-force mechanism that balances attraction to similar neighbors and avoidance of dissimilar neighbors, controlled by orientation bias (approaching goods vs leaving bads). The model also includes an optional exposure-mobility coupling setting.

Main outputs include polarization (P), spatial assortativity (Moran’s I), mixed-neighbor fraction (f_mix), and good-component count (N_g). The model is designed to study phase behavior of polarization and segregation under mobility and tolerance heterogeneity.

…

Displaying 10 of 48 results opinion dynamics 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