DelayN

Material delay of n-th Order

Diagram

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 inflow stock port.
  • The parameter init in the Advanced tab allows to select →InitializationOptions:

    • FixedValue (default) will use the parameter initialValue to determine the initial value for all n hidden states as initialValue/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.

See also

MaterialStock, PureDelay, Converters.DiscreteDelay

Parameters (6)

init

Value: modelSettings.init

Type: InitializationOptions

Description: Provide InitializationOptions (Free, FixedValue, SteadyState)

hasStockInfoOutput

Value: false

Type: Boolean

Description: = true, if a StockInfoOutput should be added to the stock

n

Value: 3

Type: Integer

Description: Order of the exponential delay

initialValue

Value: 0

Type: OutputType

Description: Initial stock

delayTime

Value: 1

Type: Time (s)

Description: Constant time of delay (optional)

hasConstantDelayTime

Value: true

Type: Boolean

Description: = true, if DelayTime is to be set by a constant parameter

Connectors (7)

y

Type: RealOutput

Description: Level or rate information

y1

Type: RealOutput

Description: Level or rate information

y2

Type: RealOutput

Description: Level or rate information

inflow

Type: StockPort

Description: Inflow port of the stock

outflow

Type: StockPort_Special

Description: Special outflow port of the stock (stock sets rate)

y_stockInfo

Type: StockInfoOutput

Description: Optional StockInfoOutput

u

Type: RealInput

Description: Delay time input (optional)

Components (4)

modelSettings

Type: ModelSettings

Description: Setting important global variables within a model

dynamicStockInfo

Type: DynamicStockInfo

Description: Generate information for StockInfoOutput

parDelayTime

Type: ConstantConverterTime

Description: Constant delay time (optional)

actualDelayTime

Type: ClipProcessTime

Description: Delay time

Used in Examples (5)

SimpleProductionChain

BusinessSimulation.Examples

A first example

SimpleProductionChainII

BusinessSimulation.Examples

Extending the first example to include replacement purchases

SimpleProductionChainIII

BusinessSimulation.Examples

Further extending the first example to explain new product diffusion

SIR

BusinessSimulation.Examples

Classical epidemic model by Kermack and McKendrick

ManagingEmployment

BusinessSimulation.Examples

Human resource planning

Used in Components (1)

ExponentialDelay

BusinessSimulation.CausalLoop

Exponential delay of input flow