Lab · Level 400 · goes with Constraints, Queues, and Flow

Flow and Queues

Change the load, the variation, and the work-in-progress limit. See wait time grow as load nears capacity.

How to use this lab. Panel A uses formulas for one station that serves one kind of work in the order it arrives. Type how many items arrive each hour and how many the station can serve each hour (its capacity). Then type how much arrivals vary and how much service times vary. A value of 1 means random, like calls to a help line. A value of 0 means no variation at all, like a machine that takes the same time every time. The lab shows how long work waits, how much work is in the system, and a curve that shows how the wait climbs as the load nears capacity. Panel B runs a small simulation with the same numbers, so you can watch a queue form. Press a Fernhill button to see a worked case.

Panel A. The formulas

1. Load and capacity
2. Variation

The coefficient of variation is the standard deviation divided by the mean.

Panel B. A small simulation

This panel uses the numbers from panel A: the arrivals each hour, the capacity, and the two variations. It makes up a list of arrival times and service times with a fixed random number generator. The same seed gives the same list every time. Change the seed to see a different run. The queue starts empty. Orders are served in the order they arrive. A work-in-progress limit caps the number of orders in the system at one time (the order in service and the orders waiting). Choose what happens to an order that arrives when the system is full.

Simulation settings

What this lab does not show

The lab covers one station with one server and one kind of work. Real flows have many steps that feed each other, several servers, rush orders, breaks, and rework. Kingman’s formula is an approximation. It is best when the load is high. The simulation draws times from a smooth, skewed pattern (a gamma distribution) that has the mean and the variation that you type. Real arrivals and service times can have other patterns. A short simulation run is noisy. Do not treat one run as a forecast. The lab assumes that service times stay the same as load rises. In real work, people often speed up under load and slow down when tired. The lab does not tell you whether to add capacity, cap the work in process, or change how people are measured. It shows what each would do to the queue.