Log inStart free
LESSON 21.14 · 6 STAGES · 3 CONTROLS · 2 CHECKSPRO · PREVIEW

Inventory and queueing simulators

Watch a shop's shelf, a supplier's dock and a truck run as an RL environment.


Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 2 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 21.14 · SUPPLY BAYDEMAND 79 UNITS · MEAN 4 A DAY
01
Stage 1 of 6 · Demand
Each day, customers ask for a random number of units. This demand has a mean of 4 units a day.
Explain it simply

Each teal bar is one day of customers. Some days bring 1 unit of demand, some bring 8. Over the 20 days the shop gets 79 requests. The shop can't see tomorrow's bar, so it plans for the mean.

Twenty demand bars, one per day. They add up to 79 units, a mean of 4 a day.

demandstock, truck spaceorders, shipmentswaiting, cost
day 05101519demandd ~ Poisson(λ)14312378722357525543hub2 days4 daystruck: 5 a daysupplier dockshop shelfcustomersdemand4 a daythe supply mapthe demandday 05101519demandd ~ Poisson(λ)14312378722357525543hub2 days4 daystruck: 5 a daysupplier dockshop shelfcustomersdemand4 a daythe supply mapthe demand
Toy: 1 shop, 20 days, seeded demand; cost 1 per unit held, 4 per unit waiting
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
dt∼Poisson(λ)\sy{d}{data}{d_t} \sim \mathrm{Poisson}(\sy{lam}{param}{\lambda})
λ=4,∑tdt=79\lambda = 4,\quad \textstyle\sum_t d_t = 79

Each day's demand is a random count with mean λ.

Common mix-ups

MYTHAn order refills the shelf on the same day.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
2 CHECKS · PRO
Q01On the direct road, demand rises from 4 to 4.5 units a day. How does the mean dock wait change?

Make your guess, then test it in the diagram. All 2 checks come with Pro.

PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
  • 5 more stages and 3 live controls
  • 2 mix-up cards and 2 predict-then-reveal checks
  • Watch it as a narrated video, in three voices
  • Every Pro lesson and capstone · 656 in total

$99 a year, or $15 a month. Cancel any time.