Finite-source queueing model for a truck-shovel system
Source:R/queue_model.R
finite_source_queue.RdComputes steady-state performance of a truck-shovel circuit modelled as a
finite-source (machine-repair) queue, M/M/c//N: N trucks cycle between a
"back-cycle" (haul loaded, dump, return empty) and c identical loading
units (shovels/excavators/loaders). Queueing at the shovel is the dominant
source of bunching losses in truck-shovel haulage, and this model
quantifies it analytically.
Arguments
- n_trucks
Number of trucks assigned to the circuit (N >= 1).
- n_shovels
Number of identical loading units (c >= 1).
- cycle_min
Mean truck back-cycle time in minutes (haul + dump + return + spot), excluding loading and queueing.
- load_min
Mean loading (service) time in minutes.
- payload_t
Truck payload in tonnes (used for production KPIs). Default
100.
Value
An object of class haul_queue (a list) with elements:
- inputs
The call inputs.
- p_n
Vector of steady-state probabilities
P_0 ... P_N.- L, Lq
Mean trucks at loading area / waiting in queue.
- W_min, Wq_min
Mean time at loading area / in queue (minutes).
- loads_per_hr
Effective loading (departure) rate, loads/hour.
- prod_tph
Production in tonnes per hour.
- shovel_util
Shovel utilisation (0-1).
- truck_eff
Truck efficiency: share of truck time not spent queueing.
- bunching_eff
Realised / ideal (queue-free) production, 0-1.
- match_factor
Match factor for the circuit.
Details
Each truck, after finishing its back-cycle (mean cycle_min minutes,
exponential in the model), joins the shovel queue and is served (loaded) in
mean load_min minutes. With per-truck "arrival" rate
\(\lambda = 1/\text{cycle\_min}\) and service rate
\(\mu = 1/\text{load\_min}\), the steady-state probability of n trucks
at the loading area is
$$P_n = \binom{N}{n} n!\, /\, (c!\, c^{\,n-c}) \; \rho^n P_0, \quad n \ge c$$
with the usual binomial form for \(n < c\), where \(\rho = \lambda/\mu\).
From \(P_n\) the function derives the expected number of trucks at the
shovel (L), in queue (Lq), the effective arrival (loading) rate, waiting
times via Little's law, shovel utilisation, hourly loads and production, and
a bunching efficiency — the ratio of realised production to the
queue-free ideal \(\min(N/(T_c+T_l),\; c/T_l)\) loads per hour.
Examples
q <- finite_source_queue(n_trucks = 7, n_shovels = 2,
cycle_min = 18, load_min = 3, payload_t = 90)
q$prod_tph
#> [1] 1760.095
summary(q)
#> kpi value
#> 1 production_tph 1760.095
#> 2 loads_per_hr 19.557
#> 3 queue_min_per_cycle 0.476
#> 4 trucks_in_queue 0.155
#> 5 shovel_utilisation 0.489
#> 6 truck_efficiency 0.978
#> 7 bunching_efficiency 0.978
#> 8 match_factor 0.500