Wyższa Szkoła Zarządzania i Bankowości
LECTURESNOTEBOOKSPACKAGES
9 Population Dynamics in Vensim®PLA
9.2 Stock and Flows

1 Introduction to Simulation and Modeling
2 Discrete Medeling (L-Systems)
3 Population Dynamics
4 Number Representation and Error Propagation
5 Modeling with Random Numbers
6 Heat Transfer in a Rod (Connection Mathematica and C: MathLink)
7 Special Topics in Stochastic Finance
8 Appendix: Introduction to Mathematica
9 Population Dynamics in Vensim®PLE
Casual Loop Diagrams
Stock and Flows
The Vensim User Interface
Building Simulation Models
     
 

Stocks are fundamental to generating behavior in a system. Stocks are also known as levels, accumulations, or state variables. Stocks change their value continuously over time.
Flows, also known as rates, cause stocks to change.

Stock and Flow Diagrams

Stock and flow diagrams are ways of representing the structure and dynamics of a system. The stock and flow diagramming conventions (originated by Forrester 1961) were based on a hydraulic metaphor - the flow of water into and out of reservoirs.

Hydraulic Metaphor:

Rozmiar: 9177 bajtów

The quantity of water in the bathtub at any time is the accumulation of the water flowing in through the tap less the water flowing out through the sink (assume no splashing or evaporation). In exactly the same way, the quantity of material in any stock is the accumulation of the flows of material in less the flows of the material out.

An equivalent representation of stock and flow structure is shown on the diagram below:

Stock and Flow Diagram:

Rozmiar: 7948 bajtów

Sources and sinks for the flows in a system have infinite capacity.

The stock and flow diagram has a precise mathematical meaning. Stocks accumulate (integrate) their inflows less their outflows. The rate of change of a stock is the total inflow less the total outflow. Thus a stock and flow map corresponds to a system of integral or differential equations. However, stock and flows are much easier to work with and explain.

Integral Equation:

Rozmiar: 8164 bajtów

or in Vensim notation

Rozmiar: 5788 bajtów

Differential Equation:

Rozmiar: 8501 bajtów

Mathematical description of a system requires only the stocks and their rates of change. However, it is often helpful to define intermediate or auxiliary variables. Auxiliaries consist of functions of stocks and constants.

There are several ways to identify the stocks in the systems. In the snapshot test you imagine freezing the system at a moment of time - the measurable quantities are the stocks, while flows are not instantaneously observable or measurable. Units of measure can also help identify stocks and flows. If a stock is measured in units, its flows must be measured in units per time period.


 
     
  Lectures | Notebooks | Packages

 
  Copyright © 2003 Wyższa Szkoła Zarządzania i Bankowości. Wszystkie prawa zastrzeżone
webmaster@wszib.edu.pl