Skip to contents

haulplan computes a compact, opinionated KPI set. This vignette is the canonical reference: every KPI, its formula, target guidance and - most importantly - how to read it. The same dictionary is available at runtime via kpi_reference() and in the dashboard’s Reference tab.

The dictionary

kpi formula unit good_range interpretation
prod_tph sum(payload) / operating hours t/h vs plan Primary output KPI; compare against the shift plan and budget rate.
loads_per_hr completed cycles / operating hours loads/h vs plan Rate of completed haul cycles; sensitive to cycle time drift.
match_factor (n_trucks x load_min) / (n_loaders x full_cycle_min) ratio 0.85 - 1.05 <1 loader waits (under-trucked); >1 trucks queue (over-trucked).
queue_pct sum(queue_min) / sum(total cycle min) % < 10% Share of truck time destroyed by queueing - the bunching signature.
avg_queue_min mean(queue_min) min < 2 min Average waiting time at the loader per cycle.
p90_queue_min 90th percentile of queue_min min < 5 min Tail of the queue distribution; spikes reveal dispatch problems.
shovel_utilisation loader busy time / (n_loaders x period) % 85 - 95% Loader busy share; ~90% is healthy, >97% starves trucks of capacity.
truck_efficiency (travel + load) / (travel + load + queue) % > 90% Share of truck time doing useful work (not queueing).
bunching_efficiency actual production / queue-free ideal production % > 90% How close the circuit runs to its theoretical no-queue output.
tonnes_per_truck_hr sum(payload) / truck-hours consumed t/truck-h vs fleet class Normalises production for fleet size; best cross-route comparator.
avg_cycle_min mean(queue + load + travel) min vs route standard Full cycle duration; the denominator of every haulage rate.
avg_payload_t mean(payload_t) t 95 - 105% of rated Payload discipline; chronic underloading silently caps production.

KPI-by-KPI guidance

Production rate - prod_tph

The headline number: tonnes per operating hour. Always read it against plan and alongside queue_pct; a good prod_tph with a high queue share means you are buying tonnes with wasted truck hours.

Match factor - match_factor

MF=Ntrucks×TloadNloaders×TcycleMF = \frac{N_{trucks} \times T_{load}}{N_{loaders} \times T_{cycle}} The oldest KPI in haulage and still the fastest diagnostic. Below ~0.85 the loader waits (add trucks or shorten the haul); above ~1.05 trucks queue (remove trucks, add a loader, or split the route). MF is a mean-value indicator: it ignores variance, which is exactly what the queue model adds.

Queue share - queue_pct

queue_pct=∑queue∑(queue+load+travel)\text{queue\_pct} = \frac{\sum \text{queue}}{\sum(\text{queue}+\text{load}+\text{travel})} The bunching signature. Under ~10% is healthy; 15%+ means the marginal truck on that route is mostly parked. Track the p90 queue too - a fat tail with a modest mean points at dispatch or blending interruptions rather than structural over-trucking.

Shovel utilisation

Loader busy time over available time. Chase 85–95%. Persistent 98%+ looks efficient but is a warning: a fully saturated loader has no headroom, so every disturbance propagates straight into lost tonnes.

Truck efficiency & bunching efficiency

Truck efficiency is the share of a truck’s cycle doing useful work (travel + load, not queue). Bunching efficiency compares realised production with the deterministic queue-free ideal - it isolates the cost of variability itself and is the KPI to quote when justifying dispatch systems or payload-variance reduction programmes.

Tonnes per truck-hour - tonnes_per_truck_hr

The best cross-route and cross-shift comparator because it normalises for fleet size. Falling t/truck-h with stable cycle times almost always means creeping queue or payload erosion.

Payload discipline - avg_payload_t

Aim for 95–105% of rated payload. Chronic 90% loading silently caps the whole operation at 90% of its plan - no queueing analysis will find those tonnes.

Computing KPIs from a cycle log

log <- haul_example("cycles")
str(log)
#> 'data.frame':    624 obs. of  7 variables:
#>  $ shift_id  : chr  "2026-07-13-D" "2026-07-13-D" "2026-07-13-D" "2026-07-13-D" ...
#>  $ route_id  : chr  "STOCKPILE-REHANDLE" "PIT1-CRUSHER" "PIT2-WASTE-S" "PIT2-WASTE-S" ...
#>  $ truck_id  : chr  "HT-08" "HT-20" "HT-15" "HT-03" ...
#>  $ queue_min : num  0.84 0.85 0.39 0.91 1.34 1.36 0 0.66 1.86 1.32 ...
#>  $ load_min  : num  1.11 3.39 3.04 3.11 2.84 2.3 2 3.04 2.4 4.25 ...
#>  $ travel_min: num  8.23 14.78 26.62 29.87 19.83 ...
#>  $ payload_t : num  62.5 87.7 159.1 145.9 100.3 ...

k <- haul_kpis(log, shift_hours = 12)
round(t(k$fleet), 2)
#>                         [,1]
#> loads                 624.00
#> production_t        58138.60
#> prod_tph             4844.88
#> loads_per_hr           52.00
#> avg_payload_t          93.17
#> avg_cycle_min          22.63
#> avg_queue_min           1.22
#> p90_queue_min           2.71
#> queue_pct               0.05
#> truck_hours           235.33
#> tonnes_per_truck_hr   247.05

Per-route split - this is where problems localise:

num <- vapply(k$by_route, is.numeric, logical(1))
out <- k$by_route
out[num] <- lapply(out[num], round, 2)
knitr::kable(out)
route_id loads production_t prod_tph loads_per_hr avg_payload_t avg_cycle_min avg_queue_min p90_queue_min queue_pct truck_hours tonnes_per_truck_hr
PIT1-CRUSHER 203 18353.5 1529.46 16.92 90.41 22.81 1.32 2.76 0.06 77.18 237.80
PIT1-WASTE-N 75 6600.2 550.02 6.25 88.00 29.37 0.77 1.68 0.03 36.71 179.79
PIT2-CRUSHER 132 11767.8 980.65 11.00 89.15 19.22 2.03 4.64 0.11 42.29 278.27
PIT2-WASTE-S 107 15080.0 1256.67 8.92 140.93 31.97 0.51 1.18 0.02 57.02 264.48
STOCKPILE-REHANDLE 107 6337.1 528.09 8.92 59.23 12.41 1.08 2.44 0.09 22.13 286.36

Note how PIT2-CRUSHER carries the highest queue share in the sample data - cross-check with the queue model and you’ll find it is over-trucked for a single-shovel face.

A worked triage recipe

  1. prod_tph below plan? →
  2. Check avg_payload_t (loading discipline) →
  3. Check avg_cycle_min vs route standard (haul conditions, speeds) →
  4. Check queue_pct and match_factor (fleet balance) →
  5. If all healthy, the losses are time-based (availability, standby, delays) - outside the cycle log, in the time-usage model.