StochSD
Script error: No such module "Draft topics".
Script error: No such module "AfC topic".
Developer(s) | Leif, Erik and Magnus Gustafsson |
---|---|
Initial release | June 16, 2017 |
Stable release | 2022.01.02
/ January 2, 2022 |
Repository | github |
Written in | Javascript |
Engine | |
Operating system | Windows, macOS, Linux |
Type | System Dynamics software |
License | Affero General Public License |
Website | https://stochsd.sourceforge.io |
Search StochSD on Amazon.
StochSD[1] (Stochastic System Dynamics) is a free, open-source Continuous System Simulation (CSS) package intended for small and medium-sized models in education, self-studies and research. Technically, StochSD is based on the Insight Maker[2] engine with its DE-solver, function library, error checker, macro facility, etc., while the design, graphical user’s interface, construction elements, result presentation, file handling, link checking, etc. are different. Also, tools for sensitivity analysis, and optimisation with or without constraints are included. In particular, StochSD includes features for stochastic modelling, post-analysis of multiple simulations, and presentation of the results in statistical form.
The design and development of StochSD were done during 2017-2022 with support from Uppsala University, Karolinska Institute, and the Swedish University of Agricultural Sciences.
StochSD was designed to fulfil the two purposes:
- To provide an open-source CSS language based on the System Dynamics[3][4][5] philosophy, where a system is described in terms of stocks (compartments) and flows, and where pedagogic aspects, ease of use and understanding are prioritised.
- To enable Full Potential[6] CSS modelling and simulation. This means that a macro (CSS) model in StochSD can produce results that are fully consistent (i.e.,contradiction-free) with those from a micro (Discrete Event Simulation (DES) or Agent-Based Simulation) model of a well-defined system under study.
Education and self-studies[edit]
To support the use in education and self-studies, the StochSD package as well as material to enable courses in classical CSS and Full Potential CSS modelling and simulation are provided at the StochSD Website. This course material contains lectures, laboratory exercises, instructive models, and StochSD manuals, which mainly are based on material developed at Uppsala University and the Swedish University of Agricultural Sciences for courses in modelling and simulation.
Full Potential CSS modelling[edit]
The Full Potential CSS concept is an extension of classical Continuous System Simulation that provides the rules so that the results from macro-modelling can become consistent with those from micro-modelling[6][7][8] Here, in addition to modelling and simulating continuous flows between stocks represented by ‘real numbers’, it can also handle transitions of discrete entities by integer numbers. But in contrast to including individual entities into a CSS model, StochSD preserves the lumped macro approach for discrete entities by transferring integer number of entities (e.g., arrivals, accidents, deaths) during a time-step. However, such transitions may happen irregularly over time, so stochasticity often plays a crucial role in their modelling. Therefore, StochSD contains powerful random functions to model uncertainties of different kinds, as well as devices to collect statistics during a simulation and from multiple replications of the same stochastic model. In particular, StochSD enables the construction and simulation in a straightforward way of e.g. queuing models[9] as well as macro models consistent with combined discrete and continuous models.
The Full Potential concept also includes rules about how a stage has to be expanded to a structure of stocks and flows in order to reproduce a specific sojourn time distribution (if not exponential), how attributes are to be handled, and where and how different types of uncertainty (structural, transition, initial value, parameter, and signal uncertainties) should be implemented.[6]
Example: Continuous vs. Combined discrete and continuous models[edit]
A continuous prey-predator model[10][11] and a combined model with continuous prey (e.g. X = Grass) and discrete predators (e.g. Y = Sheep), as well as a replication of the combined model are shown below.
Continuous model
Now assume that the births and deaths of the sheep are discrete random events with the expected rate d⋅X⋅Y and e⋅Y, respectively, then the number of events per time interval is Poisson distributed. The StochSD function PoFlow(expected_value) handles this by drawing a random number for each DT. The modification to obtain a combined model is shown in red, below.
Combined discrete and continuous model
In the replication shown, the discrete predators became extinct at around 235 time units (e.g., months). The continuous prey then increases logistically to an equilibrium without further stochastic variations.
Comparing a continuous prey-predator model with the combined model reveals that the continuous model, starting at the equilibrium state (as in this example), will only produce two straight horizontal lines. Starting the continuous model outside the equilibrium state will make it approach the equilibrium for both species without lasting variations. Further, a phenomenon such as extinction cannot occur for a continuous model.
Creating the combined model, shown above, is straightforward. The traditional alternative of constructing a combined continuous and discrete model, with its mixture of disparate DES and CSS concepts, synchronisation of two different time-handling methods, and requiring a special combined simulation language is not an attractive option for a macro study.
References[edit]
- ↑ "StochSD User's Manual and Tutorial" (PDF). 2022-01-01.
- ↑ Fortmann-Roe, Scrott (2014). "Insight Maker: A general-purpose tool for web-based modeling & simulation". Simulation Modelling Practice and Theory. 47: 28–45. doi:10.1016/j.simpat.2014.03.013.
- ↑ Forrester, Jay W. (1961). Industrial Dynamics. Pegasus Communications. ISBN 978-1-883823-36-8. Search this book on
- ↑ Forrester, Jay W. (1968). Principles of Systems. Pegasus Communications. ISBN 978-1-883823-41-2. Search this book on
- ↑ Meadows, Donella (2008). Thinking In Systems: A Primer. Chelsea Green Publishing. ISBN 978-1-844077-25-0. Search this book on
- ↑ 6.0 6.1 6.2 Gustafsson, Leif; Sternad, Mikael; Gustafsson, Erik (2017). "The Full Potential of Continuous System Simulation Modelling". Open Journal of Modelling and Simulation. 5 (4): 253–299. doi:10.4236/ojmsi.2017.54019.
- ↑ Gustafsson, Leif (2010). "Consistent micro, macro and state-based population modelling". Mathematical Biosciences. 225 (2): 94–107. doi:10.1016/j.mbs.2010.02.003. PMID 20171974.
- ↑ "Evaluation of StochSD for Epidemic Modelling, Simulation and Stochastic Analysis" (PDF). Diva-portal.org. 2020. Retrieved 2022-08-27.
- ↑ Gustafsson, Leif (2003). "Poisson Simulation as an Extension of Continuous System Simulation for the Modeling of Queuing Systems". Simulation. 79 (9): 528–541. doi:10.1177/003759703040234. Unknown parameter
|s2cid=
ignored (help) - ↑
Volterra, Vito (1926). "Fluctuations in the Abundance of a Species Considered Mathematically". Nature. 118 (2972): 558–560. Bibcode:1926Natur.118..558V. doi:10.1038/118558a0. Unknown parameter
|s2cid=
ignored (help) - ↑ Braun, Martin (1993). Differential Equations and Their Applications: An Introduction to Applied Mathematics. Texts in Applied Mathematics. 11. Springer Verlag. doi:10.1007/978-1-4612-4360-1. ISBN 978-0-387-97894-9. Search this book on
External links[edit]
This article "StochSD" is from Wikipedia. The list of its authors can be seen in its historical and/or the page Edithistory:StochSD. Articles copied from Draft Namespace on Wikipedia could be seen on the Draft Namespace of Wikipedia and not main one.