Constant¶
A fixed duration that never varies, for a deterministic service time, transit time or interval.
Params: value (fixed duration) >= 0.
Category: continuous. Arrival: yes. Delay: yes. Support lower bound: 0.0.
Parameters¶
| Parameter | Default | Hint |
|---|---|---|
value |
1.0 |
fixed duration, >= 0 |
Draws¶
With value=5, 10,000 draws from a stream seeded 0:
| Mean (formula) | Mean of the draws | Variance of the draws |
|---|---|---|
| 5 | 5 | 0 |
Example¶
In a model file, on any block or section that takes a duration:
{"distribution": "Constant", "dist_params": {"value": 5}}
In the Python builder:
nb.Constant(value=5)
Used in¶
Bundled models: Biogas digester, holder and CHP, Chance-based branching (DECIDE).
Guides: Python API, How do I write a plugin block?, How do I model handling times with an occasional very long one?, How do I run arrivals from a fixed timetable?, How do I model a machine that wears out?, Model file format.