Maintain a stock at a desired level
This information is part of the Business
Simulation Library (BSL). Please support this work and
► donate.
The output y indicates the rate of inflow
required to keep a stock at a desired level. The (perceived)
outflow from the stock will be replaced immediately to keep the
stock at its current level, while the gap between the
current level and the desired level will be closed using a
→CloseGap
component.
Limitations
- The output y can become negative to adjust the
stock to a lower level; one needs to be careful in that case with
using this value as we cannot always drain a stock in a production
process in the same way that we fill it.
Notes
- While often modelers simply adjust the outflow from a stock
that is controlled by this component to
u_outflow one
should be aware of the fact, that in reality there will likely be a
perception lag which may be modeled by a →Smooth
or a more elaborate structure.
- Filling the stock under control may not be possible without
delay, so the modeler may with to explicitly model a supply chain
with explicit delays instead of connecting the output to an
immediate inflow.
- See [6, pp.
38-39] or Jim Hines' Molecules of Structure website
(→First
Order Stock Adjustment) for more details on the use of this
structure in system dynamics.
See also
CloseGap, Smooth, SmoothN
Generated at 2026-04-02T18:18:35Z by OpenModelicaOpenModelica 1.26.3 using
GenerateDoc.mos