Slide 1

Slide 1 text

TRAP Tactical Route Assignment Planning Tim Jonker Data Scientist Fleur Doorman Data Scientist Daan Hiemstra Data Scientist Robin Hunteler Engineer Elise van Dam MLOps Mitch Vonk MLOps September 12 2023

Slide 2

Slide 2 text

2 Tim Jonker Data Scientist @ PostNL

Slide 3

Slide 3 text

3 Visit every address every day, no storage > 1 million parcels per day

Slide 4

Slide 4 text

4

Slide 5

Slide 5 text

5

Slide 6

Slide 6 text

Potential savings > 5 million/year By using TRAP 6

Slide 7

Slide 7 text

How does TRAP save money? 7 Initial assignment of areas to routes 1 2 3 4 5 6 7 8 9 10 11 12 Months Parcel volume • Anticipates on fluctuating parcel volume • Automates the planning process • Minimizes operational changes

Slide 8

Slide 8 text

8 Algorithm 1 A geographic data processing step required for route planning Algorithm 3 An algorithm that sorts the delivery areas within a route in delivery order TRAP Algorithm 2 An optimization algorithm for the assignment of areas to routes

Slide 9

Slide 9 text

9 TRAP’s goals and restrictions Algorithm 2 An optimization algorithm for the assignment of areas to routes Three ordered goals: 1. Minimize the number of routes 2. Maximize compactness of each route 3. Fair share of work for each route 5 ✓ Restrictions: • Complete assignment • Capacity • Consistency • Capabilities • Non-crossing

Slide 10

Slide 10 text

10 Algorithm description Restrictions: • Each area should be assigned to a route • Maximum amount of work hours, parcels, stops, volume • Routes maximally deviate x% between iterations • Routes possess the required capabilities (Electric, Permission, Knowledge) • Routes can traverse another route for maximally y minutes Three ordered goals: 1. Minimize the number of routes 2. Maximize compactness of each route 3. Fair share of work for each route ✓ 5

Slide 11

Slide 11 text

11 Available data Internal data: • Area characteristics • Route characteristics Open source data: • Travel times • Area shapes

Slide 12

Slide 12 text

12 Areas are adjacent if there is a road between them that does not cross another area Transfer problem into two graphs TravelTimeGraph: Full connected graph with travel time as edge weights (OSRM) a b c d f e Adjacency graph: Full connected graph with travel time as edge weights (OSRM) Except for adjacent areas: 0 0 b 0 d 0 0

Slide 13

Slide 13 text

Generic term Consequence Graphical representation Capacitated restriction Maximum worktime, volume etc. Minimum Spanning Tree Promote adjacent areas Minimum ball Promote compact routes Spanning Forest Multiple routes 13 Decomposition of the problem definition Capacitated Minimum Ball Shaped Spanning Forest Combined

Slide 14

Slide 14 text

14 Large Neighbourhood heuristic 1. Start with current assignment 2. Execute operations within a randomly selected neighbourhood 3. Terminate at stop criterion 4. Remove a route if solution is feasible or add a route if it is infeasible 5. Repeat 2-5 until no improvement

Slide 15

Slide 15 text

Large Neighbourhood heuristic 15 Iteratively search for neighbouring solutions that improve on the incumbent solution Neighbourhoods: • Insertion • Greedy • K-regret • Assignment • Swap • Edge removal • Shotgun removal

Slide 16

Slide 16 text

16 Insert an unassigned area into a route Insertion Greedy Regret

Slide 17

Slide 17 text

17 Assign one area to a different route Assign

Slide 18

Slide 18 text

18 Swap two areas from different adjacent routes Swap

Slide 19

Slide 19 text

19 Unassign areas at the edge of 2 adjacent routes Edge area removal

Slide 20

Slide 20 text

20 Unassign areas at that are shot Shotgun removal

Slide 21

Slide 21 text

21 Work in progress Results • TRAP requires fewer routes than currently used • TRAP results in more compact routes

Slide 22

Slide 22 text

22 Algorithm 1 A geographic data processing step required for route planning Algorithm 3 An algorithm that sorts the delivery areas within a route in delivery order TRAP TRAP: Potential savings > 5 million/year Algorithm 2 An optimization algorithm for the assignment of areas to routes • Anticipates on fluctuating parcel volume • Automates the planning process • Minimizes operational changes

Slide 23

Slide 23 text

Questions? 23