Concepts
Delays
Updated 3 November 2026 · 2 min read
Almost nothing happens the moment it is caused. Orders arrive after a lead time, students graduate after a course, symptoms appear after an infection. How a model represents that wait changes its behaviour more than most people expect.
A delay is a stock#
Whatever is in transit has to be somewhere while it waits: orders placed and not yet delivered, students enrolled and not yet graduated. That is a stock. A delay is a stock with an inflow, the things entering it, and an outflow that releases them later.
The simplest is the first-order delay, which the Delay (τ) component adds. Its outflow is
Pipeline / DelayTime
so on average things leave one delay time after they enter. But only on average. The outflow is largest the moment something arrives and trails off after, so some of it comes out almost at once and some takes three or four times as long.
One stage or several#
Put a pulse of one unit in at time 0, with an average delay of 10, and watch what comes out:
- One stage
- Four stages
Show the numbers
| time | One stage | Four stages |
|---|---|---|
| 0 | 0.1 | 0 |
| 5 | 0.0607 | 0.0722 |
| 10 | 0.0368 | 0.0781 |
| 15 | 0.0223 | 0.0357 |
| 20 | 0.0135 | 0.0115 |
| 25 | 0.0082 | 0.003 |
| 30 | 0.005 | 0.0007 |
| 35 | 0.003 | 0.0002 |
| 40 | 0.0018 | 0 |
With one stage, the outflow starts at its highest and decays: 10% of the pulse a unit of time at first, falling away. With four stages in a chain, each holding things for a quarter of the delay, almost nothing comes out at first, the outflow peaks at time 7.5, and it trails off after. The average is 10 both ways.
The peak of an n-stage delay comes at (n − 1)/n of the delay time: 0 for one stage, 7.5 for four, and closer to 10 the more stages there are. With enough stages it becomes a pipeline that releases everything exactly one delay later.
Build a chain with the Array component, set to a chain of stages: each stage drains into the next at a rate of its contents divided by a share of the delay.
Which to use#
- One stage where the time to leave really is spread out from zero: water draining from a soil, a drug cleared from the blood, customers who might leave at any time.
- Several stages where nothing can come out until something has happened first: a pregnancy, a construction project, a course of study, an incubation period.
Why it matters#
A delay inside a balancing loop is the usual cause of overshoot and oscillation. The loop corrects for where the system was, not where it is: a manager orders more stock because the shelves look empty, not knowing the last orders are about to arrive. The longer the delay, and the more stages it has, the larger the overshoot. If a model oscillates and you don’t expect it to, look for a delay in a balancing loop.
See also