System Dynamics Modeling in Python
Simulating System Dynamics Models in Python
This project is a simple library for running System Dynamics models in python, with the purpose of improving integration of Big Data and Machine Learning into the SD workflow.
The current version needs to run at least Python 3.7. If you need support for Python 2, please use the release here: https://github.com/JamesPHoughton/pysd/releases/tag/LastPy2
table2py feature was dropped in version 2.0.0, please use the release here if you want to build PySD model from a tabular file: https://github.com/JamesPHoughton/pysd/releases/tag/v1.11.0
See the project documentation for information about:
For standard methods for data analysis with SD models, see the PySD Cookbook, containing (for example):
- Model Fitting
- Surrogating model components with machine learning regressions
- Multi-Scale geographic comparison of model predictions
If you use PySD in any published work, consider citing the PySD Introductory Paper:
Houghton, James; Siegel, Michael. "Advanced data analytics for system dynamics models using PySD." Proceedings of the 33rd International Conference of the System Dynamics Society. 2015.
Why create a new SD simulation engine?
There are a number of great SD programs out there (Vensim, iThink, AnyLogic, Insight Maker, and others). In order not to waste our effort, or fall victim to the Not-Invented-Here fallacy, we should have a very good reason for starting a new project.
That reason is this: There is a whole world of computational tools being developed in the larger data science community. System dynamicists should directly use the tools that other people are building, instead of replicating their functionality in SD specific software. The best way to do this is to bring specific SD functionality to the domain where those other tools are being developed.
This approach allows SD modelers to take advantage of the most recent developments in data science, and focus our efforts on improving the part of the stack that is unique to System Dynamics modeling.
Cloning this repository
If you'd like to work with this repository directly, you'll need to use a recursive git checkout in order to properly load the test suite (sorry..)
The command should be something like:
git clone --recursive https://github.com/JamesPHoughton/pysd.git
Many people have contributed to developing this project - by submitting code, bug reports, and advice.
Special thanks to the sdCloud.io development team, who have made great contributions to XMILE support, and for integrating PySD into their cloud-based model simulation environment.
Extra special thanks to @enekomartinmartinez for dramatically pushing forward subscript capabilities (and many other attributes).
Release history Release notifications | RSS feed
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size pysd-2.0.0-py3-none-any.whl (84.5 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size pysd-2.0.0.tar.gz (79.3 kB)||File type Source||Python version None||Upload date||Hashes View|