Skip to main content

System Dynamics Modeling in Python

Project description

PySD

Coverage Status Anaconda-Server Badge PyPI version PyPI status Py version DOI Docs

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

Resources

See the project documentation for information about:

For standard methods for data analysis with SD models, see the PySD Cookbook, containing (for example):

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.

You can also cite the library using the DOI provided by Zenodo. It is recomendable to specify the used PySD version and its correspondent DOI. If you want to cite all versions you can use the generic DOI for PySD instead:

DOI

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

Extensions

You can use PySD in R via the PySD2R package, also available on cran.

Contributors

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).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pysd-2.2.0.tar.gz (85.2 kB view details)

Uploaded Source

Built Distribution

pysd-2.2.0-py3-none-any.whl (92.2 kB view details)

Uploaded Python 3

File details

Details for the file pysd-2.2.0.tar.gz.

File metadata

  • Download URL: pysd-2.2.0.tar.gz
  • Upload date:
  • Size: 85.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.9.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12

File hashes

Hashes for pysd-2.2.0.tar.gz
Algorithm Hash digest
SHA256 53b07179fb63988bdb8d313d1781b9599ee424938f92ae2f420b35c965acbf47
MD5 576a3ab9f83c470faaf19a8eb39929aa
BLAKE2b-256 12827e9d979b57a5cc62501ba3857c898cf39b31659a9e2524162fed52f4d1fe

See more details on using hashes here.

File details

Details for the file pysd-2.2.0-py3-none-any.whl.

File metadata

  • Download URL: pysd-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 92.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.9.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12

File hashes

Hashes for pysd-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 95cd1f4eb9b4ce0f276ef012c2417b3580ac3316d2af1b02bc96dcd3e645d53d
MD5 b62f6f56550b0e9d072d67f4e96b4c83
BLAKE2b-256 247e6dfa97bb4748fb5c4c8096d8658778df64c3977ddf592049514e10f07b5f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page