Skip to content

Examples

ABMForge includes several example models.

Wealth Model

python3 examples/wealth_model/run.py

Demonstrates:

  • basic agents
  • model-level recording
  • scenario execution

Schelling Segregation

python3 examples/schelling/run.py

Demonstrates:

  • GridWorld
  • neighborhood effects
  • emergent segregation

SIR Epidemic

python3 examples/sir_epidemic/run.py

Demonstrates:

  • local contagion
  • agent state transitions
  • time-series recording

Sugarscape

python3 examples/sugarscape/run.py

Demonstrates:

  • resource landscape
  • movement
  • wealth accumulation

Parameter Sweep

python3 examples/parameter_sweep/run.py

Demonstrates:

  • Experiment
  • ParameterGrid
  • multiple seeds
  • result aggregation

GIS Example

python3 examples/gis_space/run.py

Demonstrates:

  • GISSpace
  • geographic distance
  • GeoJSON export