Quodsi Docs

Warm-up

A simulation starts empty: no queues, nobody busy. If your real process never starts empty, those first hours make it look better than it is. A warm-up leaves them out of your results.

Do you need one?

Ask whether your real process starts empty.

What it does to the numbers

Here is a real example, run in Quodsi. One nurse does triage. Patients arrive every 6 minutes on average and triage takes 5 minutes on average, both Exponential. We ran 10 replications at the default seed, three ways, and looked at average time in system: the time from arrival to leaving.

Run LengthWarm-up PeriodTime measuredAverage time in system95% confidence interval
4 hoursNone4 hours14.0 minutes9.4 to 18.6
12 hours8 hours4 hours37.5 minutes11.4 to 63.7
200 hoursNone200 hours29.5 minutes24.0 to 35.0

The first row starts empty and reports 14.0 minutes, well under half of the long-run figure. The second row measures the same length of time, but only after the queue has had 8 hours to build. Its mean moves up past the long-run figure, and its range is very wide. So a warm-up removes the empty-start bias, but it doesn't give you precision. For that, you need longer runs or more replications.

How to set it

  1. Switch to the Intermediate view or higher.
  2. Open the Model editor and stay on the Basic tab.
  3. Expand Advanced Settings and fill in Warm-up Period.

The warm-up is the first part of each replication. It's part of Run Length, not added to it. With a Run Length of 12 hours and a Warm-up Period of 8 hours, the model runs for 12 hours and your statistics cover the last 4. It must be shorter than Run Length, or the model won't run.

A calendar model works the same way. Start Date is the start of the run, statistics begin a warm-up later, and the run ends at Start Date plus Run Length.

Once a warm-up is set, a sentence under Run Length spells out the window. It shows in every view, because a warm-up changes your results even if your view hides the field.

What happens when the warm-up ends

Nothing in the model changes. Entities stay where they are, queues stay full, resources stay busy, and schedules carry on. Only the counting restarts.

How long should it be?

Quodsi doesn't work this out for you. Try a warm-up, then try a longer one. When a longer warm-up stops moving your key results by more than their confidence interval, the first one was long enough. Warm-up length is also a lever, so you can test several values in a study. A longer warm-up measures less of the run, because Run Length stays the same.

If your model reports results by time period, keep the warm-up to a whole number of periods. Otherwise one period straddles the cut and counts as warm-up.

Next