Why a finite-source queue?
A haul circuit is not a shop with infinite customers. The “customers”
are the trucks themselves, and there are only N of them: a
truck queueing at the shovel is a truck not generating
the next arrival. Ordinary M/M/c formulas (infinite population)
overstate congestion badly for small fleets. The correct object is the
machine-repair / finite-source model
M/M/c//N:
-
Ntrucks alternate between a back-cycle (haul loaded → dump → return empty → spot), meancycle_min, and service at one ofcidentical loaders, meanload_min; - per-truck arrival rate , service rate .
The steady-state probability that trucks are at the loading area is
From everything follows: mean trucks at the loader , in queue , the effective loading rate , waiting times through Little’s law, and production t/h.
Bunching, made quantitative
“Bunching” is the operational name for variance-driven queueing:
trucks with identical mean cycle times still arrive
irregularly, so they cluster and wait. haulplan reports
this as bunching efficiency:
i.e. realised output over the deterministic, queue-free ideal (whichever of truck supply or loader capacity binds).
q <- finite_source_queue(7, 2, 18.5, 3, 90)
summary(q)
#> kpi value
#> 1 production_tph 1721.802
#> 2 loads_per_hr 19.131
#> 3 queue_min_per_cycle 0.454
#> 4 trucks_in_queue 0.145
#> 5 shovel_utilisation 0.478
#> 6 truck_efficiency 0.979
#> 7 bunching_efficiency 0.979
#> 8 match_factor 0.488The saturation curve
curve <- queue_curve(max_trucks = 16, n_shovels = 2,
cycle_min = 18.5, load_min = 3, payload_t = 90)
plot_queue_curve(curve)
#> Warning: Use of `curve$prod_tph` is discouraged.
#> ℹ Use `prod_tph` instead.
#> Warning: Use of `curve$queue_min` is discouraged.
#> ℹ Use `queue_min` instead.
| n_trucks | prod_tph | queue_min | shovel_util | bunching_eff | match_factor | marginal_tph |
|---|---|---|---|---|---|---|
| 1 | 251.16 | 0.00 | 0.07 | 1.00 | 0.07 | 251.16 |
| 2 | 502.33 | 0.00 | 0.14 | 1.00 | 0.14 | 251.16 |
| 3 | 752.47 | 0.03 | 0.21 | 1.00 | 0.21 | 250.14 |
| 4 | 1000.58 | 0.09 | 0.28 | 1.00 | 0.28 | 248.11 |
| 5 | 1245.62 | 0.18 | 0.35 | 0.99 | 0.35 | 245.04 |
| 6 | 1486.45 | 0.30 | 0.41 | 0.99 | 0.42 | 240.83 |
| 7 | 1721.80 | 0.45 | 0.48 | 0.98 | 0.49 | 235.35 |
| 8 | 1950.24 | 0.65 | 0.54 | 0.97 | 0.56 | 228.44 |
| 9 | 2170.14 | 0.89 | 0.60 | 0.96 | 0.63 | 219.90 |
| 10 | 2379.66 | 1.19 | 0.66 | 0.95 | 0.70 | 209.52 |
| 11 | 2576.78 | 1.55 | 0.72 | 0.93 | 0.77 | 197.12 |
| 12 | 2759.38 | 1.98 | 0.77 | 0.92 | 0.84 | 182.60 |
| 13 | 2925.32 | 2.50 | 0.81 | 0.90 | 0.91 | 165.94 |
| 14 | 3072.67 | 3.10 | 0.85 | 0.87 | 0.98 | 147.36 |
| 15 | 3199.97 | 3.81 | 0.89 | 0.89 | 1.05 | 127.29 |
| 16 | 3306.42 | 4.63 | 0.92 | 0.92 | 1.12 | 106.46 |
Three regimes are visible:
- Under-trucked (match factor well below 1): near-linear production gains, idle shovel time.
- Balanced (MF ≈ 0.85-1.05): the economic sweet spot; marginal tonnes are still meaningful and queues are short.
-
Over-trucked (MF > 1.1): the shovel is
saturated; the model’s
marginal_tphcollapses and every additional truck converts almost entirely into queue time.
Validating against simulation
The analytic model assumes exponential times. Real cycles are closer
to lognormal - so simulate_shift() provides a
discrete-event cross-check and a way to study distributional
effects:
q <- finite_source_queue(7, 2, 18.5, 3, 90)
set.seed(42)
sim_exp <- simulate_shift(7, 2, 18.5, 3, 90, shift_hours = 500, dist = "exp")
sim_ln <- simulate_shift(7, 2, 18.5, 3, 90, shift_hours = 500,
dist = "lnorm", cv = 0.35)
data.frame(
source = c("analytic", "DES exponential", "DES lognormal cv=0.35"),
prod_tph = round(c(q$prod_tph, sim_exp$kpis$prod_tph,
sim_ln$kpis$prod_tph), 1),
mean_queue_min = round(c(q$Wq_min, sim_exp$kpis$mean_queue_min,
sim_ln$kpis$mean_queue_min), 2)
)
#> source prod_tph mean_queue_min
#> 1 analytic 1721.8 0.45
#> 2 DES exponential 1707.3 0.43
#> 3 DES lognormal cv=0.35 1728.7 0.27Two things to notice:
- The exponential DES reproduces the analytic answer (it should - same assumptions).
- Lower-variance lognormal cycles queue less than exponential ones, so the analytic model is a mildly conservative planning tool - a useful property for committing to production targets.
Practical guidance
- Use
cycle_minexcluding load and queue time - measure it from “depart loader full” to “arrive loader queue empty”. - Calibrate
load_minfrom the fleet-management system’s first-bucket to last-bucket timestamps plus truck exchange time. - Re-run the model whenever the haul profile changes materially (new bench, ramp closure, crusher move); cycle time is the dominant sensitivity.