modelDelayN
Extends from Icons.DelayN (Icon for DelayN), Interfaces.Basics.GenericStock_Special (Generic Stock with internal dynamics).
Information
This information is part of the Business Simulation Library (BSL). Please support this work and ► donate.
The DelayN is a →MaterialStock with inherent dynamic behavior that will result in a delay—which may have a constant (delayTime) or a variable delay time (u). Internally a material delay of order n is made up of a sequence of n first-order delays (→Decay ) each having a delay time of delayTime/n.
To better grasp the behavior of a DelayN, it helps to be aware of the fact, that given a single pulse input (e.g., a Dirac delta function) as inflow to a DelayN with constant delay time, its outflow will correspond to an Exponential distribution for n = 1 and more generally to an Erlang distribution of order k = n for n ≥ 1. In other words, the time of residence within the stock is distributed according to an Erlang distribution with the mean residence time corresponding to the delay time and a diminishing variance as n increases—in the limit, as n approaches infinity, the DelayN will be equivalent to the →PureDelay (aka pipeline delay). For more detail, see Sterman [3, Chapter 11].
Notes
- The DelayN can only be filled (not drained) via its
inflowstock port.
- The parameter
initin the Advanced tab allows to select →InitializationOptions:
- FixedValue (default) will use the parameter
initialValueto determine the initial value for all n hidden states asinitialValue/n. - SteadyState will use Little's Law to determine the equilibrium start value for all n hidden states as
inflow.rate * delayTime / n - Free there will be no initial equation and thus the solver is free in solving the initial value problem using the FixedValue solutions as
startValue.
- FixedValue (default) will use the parameter
- There is an optional →StockInfoOutput connector.
See also
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| OutputType | initialValue | 0 | Initial stock |
| Time | delayTime | 1 | Constant time of delay (optional) |
| Advanced | |||
| InitializationOptions | init (from GenericStock_Special) | InitializationOptions.FixedValue | Provide InitializationOptions (Free, FixedValue, SteadyState) |
| Structural Parameters | |||
| Boolean | hasStockInfoOutput (from GenericStock_Special) | false | = true, if a StockInfoOutput should be added to the stock |
| Integer | n | 3 | Order of the exponential delay |
| Boolean | hasConstantDelayTime | true | = true, if DelayTime is to be set by a constant parameter |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| StockPort | inflow (from GenericStock_Special) | Inflow port of the stock | |
| StockPort_Special | outflow (from GenericStock_Special) | Special outflow port of the stock (stock sets rate) | |
| StockInfoOutput | y_stockInfo (from GenericStock_Special) | Optional StockInfoOutput | |
| Interfaces.Connectors.RealInput | u | Delay time input (optional) |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| RealOutput | y (from ThreeSO) | Level or rate information | |
| RealOutput | y1 (from ThreeSO) | Level or rate information | |
| RealOutput | y2 (from ThreeSO) | Level or rate information | |
| ModelSettings | modelSettings |