Demand model

Policy inputs

Playback

Policy (recomputed live)

Order quantity Q (EOQ)—
Reorder point R—
Safety stock—
Order-up-to (R+Q)—

Live simulation stats

Day0
On-hand inventory—
Fill rate achieved—
Stockout days0
Orders placed0
Holding cost so far$0
Ordering cost so far$0
Total cost so far$0
Daily demand is sampled from a real normal distribution (mean/std above, floored at 0 and rounded). When the inventory position (on hand + on order) drops to or below R, a real order of size Q is placed and arrives exactly one lead time later. Stockout days (red markers) occur when demand exceeds available stock.