26
GraphHopper Route Optimization Stefan Schröder

Wherecamp Navigation Conference 2015 - GraphHopper Route Optimization

Embed Size (px)

Citation preview

Page 1: Wherecamp Navigation Conference 2015 - GraphHopper Route Optimization

GraphHopper Route Optimization

Stefan Schröder

Page 2: Wherecamp Navigation Conference 2015 - GraphHopper Route Optimization

● Fast and Flexible Directions API

● Lightweight API to solve heavy routing problems

What is GraphHopper?

Page 3: Wherecamp Navigation Conference 2015 - GraphHopper Route Optimization

● 04/2012 – Peter Karich published OS GraphHopper routingbased on OSM

● 06/2013 – Stefan Schröder published jsprit, a toolkit to solvevehicle routing problems

● 04/2015 – we joined forces to develop the GraphHopperDirections API

Brief history

Page 4: Wherecamp Navigation Conference 2015 - GraphHopper Route Optimization

Directions API

Page 5: Wherecamp Navigation Conference 2015 - GraphHopper Route Optimization

Route Optimization API

● Difference between Routing and RouteOptimization API

Least cost path from A to B

Least cost paths withvia points

A

B

A

B

C

D

E

A

B

C

D

E

Least cost route byordering of via points

Page 6: Wherecamp Navigation Conference 2015 - GraphHopper Route Optimization

Route Optimization API

1. Geocode

2. Snap Geocodes tonetworks

3. Calculate n x n traveltimes/distances

4. Optimize

Friedrichstraße 52lon,lat

1

n

1 n

Page 7: Wherecamp Navigation Conference 2015 - GraphHopper Route Optimization

Vehicle Routing Problem

● VRP: Given m vehicles with capacity restrictions and ncustomers, find vehicle routes that minimizetransportation costs.

● TSP: Round trip visiting every location once

● Last mile deliveries, health care, garbage collection,technicians, ...

● Challenges: Search space, Example 50 L-TSP

Page 8: Wherecamp Navigation Conference 2015 - GraphHopper Route Optimization

Search algorithms

● Exact methods – Branch & Bound

● Meta-Heuristics – Tabu Search, SimulatedAnnealing, etc.

● Ruin and Recreate – Large NeighborhoodSearch Threshold Acceptance and SimulatedAnnealing

Page 9: Wherecamp Navigation Conference 2015 - GraphHopper Route Optimization

Route Optimization Editor

● Switch to Route Editor and solve problems live

● TSP● TSP-Relation● VRP● VRP-Relation● VRP-Bike● VRP-Min-Max

Page 10: Wherecamp Navigation Conference 2015 - GraphHopper Route Optimization

Problem Berlin

Page 11: Wherecamp Navigation Conference 2015 - GraphHopper Route Optimization

Sufficient capacity - TSP

Page 12: Wherecamp Navigation Conference 2015 - GraphHopper Route Optimization

Direct sequence of 37 & 38

Page 13: Wherecamp Navigation Conference 2015 - GraphHopper Route Optimization

VRP

Page 14: Wherecamp Navigation Conference 2015 - GraphHopper Route Optimization

VRP with relation

Page 15: Wherecamp Navigation Conference 2015 - GraphHopper Route Optimization

VRP – min-max compl. time

Page 16: Wherecamp Navigation Conference 2015 - GraphHopper Route Optimization

VRP – min-max by foot

Page 17: Wherecamp Navigation Conference 2015 - GraphHopper Route Optimization

Shortest route throughDublin avoiding pubs?

Page 18: Wherecamp Navigation Conference 2015 - GraphHopper Route Optimization

Dublin – “avoid pubs”

Page 19: Wherecamp Navigation Conference 2015 - GraphHopper Route Optimization

Dublin – “avoid pubs”

Page 20: Wherecamp Navigation Conference 2015 - GraphHopper Route Optimization

Publicity?

● handful retweets

● <100 blog readers

● pointer to this: “there's someone trying to drink inevery pub in Dublin, might be another interestingdemo for you.”

Page 21: Wherecamp Navigation Conference 2015 - GraphHopper Route Optimization

Shortest route throughDublin visiting all pups?

Page 22: Wherecamp Navigation Conference 2015 - GraphHopper Route Optimization

Dublin – “visit all pubs”

Page 23: Wherecamp Navigation Conference 2015 - GraphHopper Route Optimization

Publicity?● many retweets from all over the world

● >3000 readers

● on reddit

● a day on the front page of hacker news with 84points

Page 24: Wherecamp Navigation Conference 2015 - GraphHopper Route Optimization

Dublin – “visit all pubs”

Page 25: Wherecamp Navigation Conference 2015 - GraphHopper Route Optimization

GraphHopper.com

[email protected]

Page 26: Wherecamp Navigation Conference 2015 - GraphHopper Route Optimization