The Best of Both Worlds: Hybrid ABM and SD Models
Combining agent-based and System Dynamics modeling in one hybrid BPTK model.
Keywords
hybrid modeling, agent-based modeling, system dynamics, bptk, bptk-py, python, business simulation
The Best of Both Worlds: Hybrid ABM and SD Models
Hybrid models are agent based models that “contain” a System Dynamics model. The agents can call the elements of the SD model. The SD model elements can also call properties on the agent-based model via user defined sd functions.
Setting Up The Model
The following code illustrates how to set up a system dynamics model as a Python class.
Setting Up Scenarios
NOTE: especially for larger models it is much better to keep the model and the scenario definitions in separate files, which of course is also possible. See the Scenarios document to learn more about this.