BAM Engine#
Agent-based macroeconomic simulation in Python
A Python implementation of the BAM (Bottom-Up Adaptive Macroeconomics) model by Delli Gatti et al. (2011). Simulate households, firms, and banks interacting across labor, credit, and goods markets; macroeconomic dynamics emerge from individual agent decisions.
For researchers, students, and practitioners in computational economics.
pip install bamengine
Install the package, run your first simulation, and explore the results in under five minutes.
Learn how the BAM model’s agents, markets, and simulation pipeline work, and how to configure and extend them.
Complete reference for all components, events, operations, and configuration options.
Runnable examples covering basic usage, advanced customization, and model extensions.
Extend the base model with R&D / Growth+, buffer-stock consumption, and taxation.
Reproduce the book’s scenarios and verify model behavior with robustness and sensitivity analysis.
Find optimal parameters through screening, grid search, and stability testing.