haulplan is a complete haulage-planning toolkit for
open-pit truck–shovel operations. It answers the three questions every
shift planner and mine scheduler asks:
-
How many trucks does this circuit need? - the
finite-source queue/bunching model (
finite_source_queue(),queue_curve()). -
Where should my trucks go? - the fleet deployment
optimiser (
deploy_fleet()). -
How did we actually perform? - the KPI engine
(
haul_kpis()) fed by raw cycle logs.
Everything is also available interactively via
run_haulplan_app().
Five-minute tour
1. Model one circuit
Seven 90-tonne trucks feeding two shovels; 18.5 minutes of back-cycle (haul + dump + return) and 3 minutes to load:
q <- finite_source_queue(n_trucks = 7, n_shovels = 2,
cycle_min = 18.5, load_min = 3, payload_t = 90)
q
#> <haul_queue> finite-source M/M/c//N truck-shovel model
#> Trucks: 7 | Shovels: 2 | Back-cycle: 18.5 min | Load: 3.0 min
#> Production : 1721.8 t/h (19.1 loads/h)
#> Queue per truck : 0.45 min (Lq = 0.14 trucks)
#> Shovel util : 47.8 %
#> Bunching eff. : 97.9 %
#> Match factor : 0.49The model tells you production, queueing per cycle, shovel utilisation, the match factor, and bunching efficiency - how close the circuit runs to its queue-free ideal.
2. Find the sweet spot
curve <- queue_curve(max_trucks = 14, n_shovels = 2,
cycle_min = 18.5, load_min = 3, payload_t = 90)
plot_queue_curve(curve, target_tph = 1500)
#> Warning: Use of `curve$prod_tph` is discouraged.
#> ℹ Use `prod_tph` instead.
#> Warning: Use of `curve$queue_min` is discouraged.
#> ℹ Use `queue_min` instead.
Production saturates while queue time keeps climbing: each truck past
the knee of the curve buys mostly waiting, not tonnes. The
marginal_tph column quantifies exactly what the last truck
added.
3. Deploy a fleet across routes
routes <- haul_example("routes")
routes
#> route_id material n_shovels cycle_min load_min payload_t
#> 1 PIT1-CRUSHER ore 2 18.5 3.0 90
#> 2 PIT1-WASTE-N waste 1 24.0 3.4 90
#> 3 PIT2-CRUSHER ore 1 15.0 2.8 90
#> 4 PIT2-WASTE-S waste 2 28.5 3.6 140
#> 5 STOCKPILE-REHANDLE ore 1 9.5 2.2 60
#> distance_km min_trucks max_trucks priority_tph
#> 1 3.2 2 10 900
#> 2 4.6 1 6 NA
#> 3 2.4 1 6 500
#> 4 5.8 2 10 NA
#> 5 1.1 0 4 NA
dep <- deploy_fleet(routes, n_trucks = 18)
dep
#> <haul_deployment>
#> Trucks assigned : 18
#> Total production: 4725.5 t/h
#>
#> route_id trucks prod_tph queue_min shovel_util bunching_eff
#> PIT1-CRUSHER 4 1000.6 0.09 0.278 0.996
#> PIT1-WASTE-N 1 197.1 0.00 0.124 1.000
#> PIT2-CRUSHER 3 861.9 0.99 0.447 0.947
#> PIT2-WASTE-S 7 1812.1 0.35 0.388 0.989
#> STOCKPILE-REHANDLE 3 853.8 0.95 0.522 0.925
#> match_factor
#> 0.28
#> 0.12
#> 0.47
#> 0.39
#> 0.56
plot_deployment(dep)
4. Measure a real shift
log <- haul_example("cycles") # one 12-h shift, ~620 cycles
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.05Where next
-
vignette("queueing-model")- the mathematics of bunching. -
vignette("fleet-deployment")- the optimiser, constraints and targets. -
vignette("kpis")- every KPI, its formula and how to read it. -
vignette("dashboard")- dashboard guide and CSV formats.