Official Examples
Official Examples露
Built-in examples showcasing ABSESpy features for agent-based modeling.
About These Examples露
These examples demonstrate core ABSESpy features through classic ABM models. Each includes complete source code, documentation, and tests.
Available Examples露
-
Fire Spread
Demonstrates spatial modeling, raster attributes, and visualization.
Features:
@raster_attribute, dynamic plotting, enum-based states, indexed grid access -
Wolf-Sheep Predation
Agent lifecycle, movement, and ecological interactions.
Features:
move.random(),at.agents,die(), reproduction -
Schelling Segregation
Mesa framework integration and social dynamics modeling.
Features:
shuffle_do(),self.p, Mesa compatibility -
Hotelling's Law
Decision-making framework and spatial competition.
Features: Links between Actors and PatchCells
Framework Advantages露
These examples highlight how ABSESpy reduces development effort:
- Spatial modeling made easy: Built-in grid, raster attributes, neighbor queries
- Agent lifecycle management: Automatic handling of birth/death, movement
- Mesa compatibility: Use existing Mesa models with minimal changes
- Type safety: Full type hints for better IDE support
- Testing support: Comprehensive test utilities