BPTK-Py: System Dynamics and Agent-based Modeling In Python¶
The Business Prototyping Toolkit for Python (BPTK-Py) is a computational modeling framework that enables you to build simulation models using System Dynamics (SD) and/or agent-based modeling (ABM) and manage simulation scenarios with ease.
Next to providing the necessary SD and ABM language constructs to build models directly in Python, the framework also includes a compiler for transpiling System Dynamics models conforming to the XMILE standard into Python code.
The best way to get started with BPTK-Py is our tutorial, which contains a number of simulation models and Jupyter notebooks to get you started – you can clone or download the tutorial from our git repository on Github.
The BPTK-Py framework supports System Dynamics models in XMILE Format, native SD models and native Agent-based models. You can also build hybrid SD-ABM-Models natively in Python.
The objective of the framework is to let the modeller concentrate on building simulation models by providing a seamless interface for managing model settings and scenarios and for plotting simulation results.
All plotting is done using Matplotlib.
Simulation results are returned as Pandas dataframes.
Model settings and scenarios are kept in JSON files. These settings are automatically loaded by the framework upon initialization, as are the model classes themselves. This makes interactive modeling, coding and testing very painless, especially if using the Jupyter notebook environment.
BPTK-Py is developed and maintained by transentis labs.
The best place to ask questions about the framework is our Business Prototyping Toolkit Meetup, which meets online regularly.
You can also contact us any time at email@example.com, we are always happy to help.
- General Information
- Agent-based Modeling
- System Dynamics using XMILE
- System Dynamics using SD DSL
- BPTK APIs