Selective Depolarization by Endogenous Migration in Attraction-Repulsion Opinion Dynamics (NetLogo) (1.0.0)
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.
This upload provides the primary NetLogo model code and parameter settings used for the manuscript’s main simulations.
Release Notes
Version 1.0.0 (Initial public release)
This is the first public CoMSES release of the NetLogo model for selective depolarization via endogenous migration in attraction-repulsion opinion dynamics.
Included in this release:
- Primary NetLogo model code (ARM + local spatial interaction + orientation-driven migration)
- Parameter settings used for the manuscript’s main simulations
- Narrative documentation (ODD-style): equations, pseudocode, scheduling, and metrics
Core model features:
- Local interaction probability decays with ideological distance (exposure-controlled)
- Attraction/repulsion opinion update based on tolerance threshold
- Movement combines “approach good neighbors” and “leave bad neighbors”
- Optional heterogeneity in movement orientation and exposure-orientation coupling
Main outputs:
- Polarization (variance of ideology)
- Moran’s I
- Good-component count
- Mixed-neighborhood fraction
- Additional diagnostics (extremity fraction, giant component, join-count metrics)
Software:
- NetLogo 6.4.0
- No external data dependencies
Known scope/limitations:
- One-dimensional ideology ([0,1])
- Global fixed tolerance within each run
- Spatial local-contact channel only (no explicit online social-network layer)
Associated Publications
Selective Depolarization by Endogenous Migration in Attraction-Repulsion Opinion Dynamics (NetLogo) 1.0.0
Submitted by
poyeker
Published Feb 17, 2026
Last modified Feb 17, 2026
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.
This upload provides the primary NetLogo model code and parameter settings used for the manuscript’s main simulations.
Release Notes
Version 1.0.0 (Initial public release)
This is the first public CoMSES release of the NetLogo model for selective depolarization via endogenous migration in attraction-repulsion opinion dynamics.
Included in this release:
- Primary NetLogo model code (ARM + local spatial interaction + orientation-driven migration)
- Parameter settings used for the manuscript’s main simulations
- Narrative documentation (ODD-style): equations, pseudocode, scheduling, and metrics
Core model features:
- Local interaction probability decays with ideological distance (exposure-controlled)
- Attraction/repulsion opinion update based on tolerance threshold
- Movement combines “approach good neighbors” and “leave bad neighbors”
- Optional heterogeneity in movement orientation and exposure-orientation coupling
Main outputs:
- Polarization (variance of ideology)
- Moran’s I
- Good-component count
- Mixed-neighborhood fraction
- Additional diagnostics (extremity fraction, giant component, join-count metrics)
Software:
- NetLogo 6.4.0
- No external data dependencies
Known scope/limitations:
- One-dimensional ideology ([0,1])
- Global fixed tolerance within each run
- Spatial local-contact channel only (no explicit online social-network layer)