Allocates a fixed number of trucks across multiple haul routes to maximise total production, using a greedy marginal-productivity algorithm on top of the finite-source queueing model. Because production is concave in fleet size on each route (each extra truck queues more), the greedy allocation is optimal for this class of problem.
Arguments
- routes
A data.frame describing the routes, with columns:
- route_id
Unique route identifier (character).
- n_shovels
Loading units on the route.
- cycle_min
Mean truck back-cycle time (minutes).
- load_min
Mean loading time (minutes).
- payload_t
Truck payload on this route (tonnes).
- max_trucks
(optional) Cap on trucks for the route.
- min_trucks
(optional) Minimum trucks that must be assigned.
- priority_tph
(optional) Target tonnes/hour; routes below target are served first.
- n_trucks
Total trucks available for deployment.
- payload_t
Default payload used if
routes$payload_tis absent.
Value
An object of class haul_deployment: a list with
- allocation
data.frame with per-route trucks assigned, production, queue time, shovel utilisation, bunching efficiency and match factor.
- total_tph
Total fleet production (t/h).
- trucks_used
Trucks actually assigned.
- log
Step-by-step assignment log (which truck went where and the marginal tonnes it added).
Examples
routes <- haul_example("routes")
dep <- deploy_fleet(routes, n_trucks = 18)
dep$allocation
#> route_id trucks prod_tph queue_min shovel_util bunching_eff
#> 1 PIT1-CRUSHER 4 1000.5792 0.08749607 0.2779387 0.9959469
#> 2 PIT1-WASTE-N 1 197.0803 0.00000000 0.1240876 1.0000000
#> 3 PIT2-CRUSHER 3 861.9382 0.99485031 0.4469309 0.9470679
#> 4 PIT2-WASTE-S 7 1812.1038 0.34847251 0.3883080 0.9892607
#> 5 STOCKPILE-REHANDLE 3 853.7985 0.94935441 0.5217658 0.9249484
#> match_factor
#> 1 0.2790698
#> 2 0.1240876
#> 3 0.4719101
#> 4 0.3925234
#> 5 0.5641026