Carpooling: the 2 Synchronization Points Shortest Paths Problem - - PowerPoint PPT Presentation

carpooling the 2 synchronization points shortest paths
SMART_READER_LITE
LIVE PREVIEW

Carpooling: the 2 Synchronization Points Shortest Paths Problem - - PowerPoint PPT Presentation

Carpooling: the 2 Synchronization Points Shortest Paths Problem Arthur Bit-Monnot Christian Artigues Marie-Jos e Huguet Marc-Olivier Killijian September 5, 2013 1 of 20 Carpooling Two users: a passenger a driver With their own


slide-1
SLIDE 1

Carpooling: the 2 Synchronization Points Shortest Paths Problem

Arthur Bit-Monnot Christian Artigues Marie-Jos´ e Huguet Marc-Olivier Killijian September 5, 2013

1 of 20

slide-2
SLIDE 2

Carpooling

Two users:

  • a passenger
  • a driver

With their own origin and destination

Goal

Find paths minimizing the travel time Including:

  • pick-up point
  • drop-off point

2 of 20

slide-3
SLIDE 3

Outline

Shortest Paths: pre-requisites Solving our carpooling problem Experiments Conclusion

3 of 20

slide-4
SLIDE 4

Multi-modal graph

  • Mixed car, foot and public transportation edges
  • FIFO
  • Public transportation → time-dependent

4 of 20

slide-5
SLIDE 5

Shortest Path Problem

Dijkstra Shortest Path from one node to all (One-to-All)

Properties

  • Nodes are settled only once
  • Nodes are settled with increasing cost
  • Time-independent: backward search (All-to-One)

5 of 20

slide-6
SLIDE 6

Best Origin Problem (BOP)

Given several origins with initial cost and arrival times, select the

  • rigin minimizing the cost at the arrival

6 of 20

slide-7
SLIDE 7

Best Origin Problem (BOP)

Given several origins with initial cost and arrival times, select the

  • rigin minimizing the cost at the arrival
  • 1
  • 2

x d

t = 2 → ∆ = 2 t = 0 → ∆ = 2 t = 4 → ∆ = 14 t = 2 → ∆ = 10

(c = 2, t = 2) (c = 0, t = 0)

slide-8
SLIDE 8

Best Origin Problem (BOP)

Given several origins with initial cost and arrival times, select the

  • rigin minimizing the cost at the arrival
  • 1
  • 2

x d

t = 2 → ∆ = 2 t = 0 → ∆ = 2 t = 4 → ∆ = 14 t = 2 → ∆ = 10

(c = 2, t = 2) (c = 0, t = 0) (c = 2, t = 2)

slide-9
SLIDE 9

Best Origin Problem (BOP)

Given several origins with initial cost and arrival times, select the

  • rigin minimizing the cost at the arrival
  • 1
  • 2

x d

t = 2 → ∆ = 2 t = 0 → ∆ = 2 t = 4 → ∆ = 14 t = 2 → ∆ = 10

(c = 2, t = 2) (c = 0, t = 0) (c = 2, t = 2) (c = 4, t = 4)

slide-10
SLIDE 10

Best Origin Problem (BOP)

Given several origins with initial cost and arrival times, select the

  • rigin minimizing the cost at the arrival
  • 1
  • 2

x d

t = 2 → ∆ = 2 t = 0 → ∆ = 2 t = 4 → ∆ = 14 t = 2 → ∆ = 10

(c = 2, t = 2) (c = 0, t = 0) (c = 2, t = 2)

slide-11
SLIDE 11

Best Origin Problem (BOP)

Given several origins with initial cost and arrival times, select the

  • rigin minimizing the cost at the arrival
  • 1
  • 2

x d

t = 2 → ∆ = 2 t = 0 → ∆ = 2 t = 4 → ∆ = 14 t = 2 → ∆ = 10

(c = 2, t = 2) (c = 0, t = 0) (c = 2, t = 2) (c = 12, t = 12)

slide-12
SLIDE 12

Best Origin Problem (BOP)

Given several origins with initial cost and arrival times, select the

  • rigin minimizing the cost at the arrival
  • 1
  • 2

x d

t = 2 → ∆ = 2 t = 0 → ∆ = 2 t = 4 → ∆ = 14 t = 2 → ∆ = 10

(c = 5, t = 2) (c = 6, t = 0)

slide-13
SLIDE 13

Best Origin Problem (BOP)

Given several origins with initial cost and arrival times, select the

  • rigin minimizing the cost at the arrival
  • 1
  • 2

x d

t = 2 → ∆ = 2 t = 0 → ∆ = 2 t = 4 → ∆ = 14 t = 2 → ∆ = 10

(c = 5, t = 2) (c = 6, t = 0) (c = 7, t = 4)

slide-14
SLIDE 14

Best Origin Problem (BOP)

Given several origins with initial cost and arrival times, select the

  • rigin minimizing the cost at the arrival
  • 1
  • 2

x d

t = 2 → ∆ = 2 t = 0 → ∆ = 2 t = 4 → ∆ = 14 t = 2 → ∆ = 10

(c = 5, t = 2) (c = 6, t = 0) (c = 7, t = 4) (c = 21, t = 18)

slide-15
SLIDE 15

Best Origin Problem (BOP)

Given several origins with initial cost and arrival times, select the

  • rigin minimizing the cost at the arrival
  • 1
  • 2

x d

t = 2 → ∆ = 2 t = 0 → ∆ = 2 t = 4 → ∆ = 14 t = 2 → ∆ = 10

(c = 5, t = 2) (c = 6, t = 0) (c = 7, t = 4) (c = 21, t = 18) (c = 8, t = 2)

slide-16
SLIDE 16

Best Origin Problem (BOP)

Given several origins with initial cost and arrival times, select the

  • rigin minimizing the cost at the arrival
  • 1
  • 2

x d

t = 2 → ∆ = 2 t = 0 → ∆ = 2 t = 4 → ∆ = 14 t = 2 → ∆ = 10

(c = 5, t = 2) (c = 6, t = 0) (c = 7, t = 4) (c = 21, t = 18) (c = 8, t = 2) (c = 18, t = 12)

6 of 20

slide-17
SLIDE 17

Best Origin Problem (BOP)

Consistency between cost and arrival time

Given 2 labels (c, t) et (c′, t′), Consistency if : c < c′ ⇔ t < t′

7 of 20

slide-18
SLIDE 18

Best Origin Problem (BOP)

Consistency between cost and arrival time

Given 2 labels (c, t) et (c′, t′), Consistency if : c < c′ ⇔ t < t′ Need to take cost and arrival time into account Mono-objective variant of Martins’ algorithm

7 of 20

slide-19
SLIDE 19

Best Origin Problem (BOP)

Consistency between cost and arrival time

Given 2 labels (c, t) et (c′, t′), Consistency if : c < c′ ⇔ t < t′ Need to take cost and arrival time into account Mono-objective variant of Martins’ algorithm

Properties

  • Finds best origin for all nodes
  • Labels settled by increasing cost
  • Node’s best cost → first settled label

7 of 20

slide-20
SLIDE 20

Best Origin Problem (BOP)

Dominance rules (cx, tx) dominates (c′

x, t′ x) if and only if: .

8 of 20

slide-21
SLIDE 21

Best Origin Problem (BOP)

Dominance rules (cx, tx) dominates (c′

x, t′ x) if and only if: .

Exact tx ≤ t′

x and cx − c′ x ≤ tx − t′ x

8 of 20

slide-22
SLIDE 22

Best Origin Problem (BOP)

Dominance rules (cx, tx) dominates (c′

x, t′ x) if and only if: .

Exact tx ≤ t′

x and cx − c′ x ≤ tx − t′ x

Heuristic tx ≤ t′

x and cx ≤ c′ x

8 of 20

slide-23
SLIDE 23

Best Origin Problem (BOP)

Dominance rules (cx, tx) dominates (c′

x, t′ x) if and only if: .

Exact tx ≤ t′

x and cx − c′ x ≤ tx − t′ x

Heuristic tx ≤ t′

x and cx ≤ c′ x

Complexity O(|E| · |V |2)

8 of 20

slide-24
SLIDE 24

Outline

Shortest Paths: pre-requisites Solving our carpooling problem Experiments Conclusion

9 of 20

slide-25
SLIDE 25

Problem definition

Oc r s Dc Op Dp

P

1

P

2

P3 P

4

P

5

Cost to be minimized

arrival(pedestrian) - departure(pedestrian) + arrival(driver) - departure(driver) cost = c(P1) + c(P2) + waiting time + 2 × c(P3) + c(P4) + c(P5)

10 of 20

slide-26
SLIDE 26

Solving principle

cost = c(P1) + c(P2) + wait + 2 × c(P3) + c(P4) + c(P5) Oc Dc Op Dp

11 of 20

slide-27
SLIDE 27

Solving principle

Oc Dc Op Dp r1 r2 r3

P1

cost = c(P1) + c(P2) + wait + 2 × c(P3) + c(P4) + c(P5)

11 of 20

slide-28
SLIDE 28

Solving principle

Oc Dc Op Dp r1 r2 r3

P1

r4

P2

cost = c(P1) + c(P2) + wait + 2 × c(P3) + c(P4) + c(P5)

11 of 20

slide-29
SLIDE 29

Solving principle

Oc Dc Op Dp r1 r2 r3

P1

r4

P2

r2 r3 cost = c(P1) + c(P2) + wait + 2 × c(P3) + c(P4) + c(P5)

11 of 20

slide-30
SLIDE 30

Solving principle

Oc Dc Op Dp r1 r2 r3

P1

r4

P2

r2 r3 s1 s2 s3

P3

cost = c(P1) + c(P2) + wait + 2 × c(P3) + c(P4) + c(P5)

11 of 20

slide-31
SLIDE 31

Solving principle

Oc Dc Op Dp r1 r2 r3

P1

r4

P2

r2 r3 s1 s2 s3

P3

s4

P4

cost = c(P1) + c(P2) + wait + 2 × c(P3) + c(P4) + c(P5)

11 of 20

slide-32
SLIDE 32

Solving principle

Oc Dc Op Dp r1 r2 r3

P1

r4

P2

r2 r3 s1 s2 s3

P3

s4

P4

cost = c(P1) + c(P2) + wait + 2 × c(P3) + c(P4) + c(P5) s2 s3

11 of 20

slide-33
SLIDE 33

Solving principle

Oc Dc Op Dp r1 r2 r3

P1

r4

P2

r2 r3 s1 s2 s3

P3

s4

P4

s2 s3 cost = c(P1) + c(P2) + wait + 2 × c(P3) + c(P4) + c(P5)

P5

11 of 20

slide-34
SLIDE 34

Solving principle

Oc Dc Op Dp r1 r2 r3

P1

r4

P2

r2 r3 s1 s2 s3

P3

s4

P4

s2 s3 cost = c(P1) + c(P2) + wait + 2 × c(P3) + c(P4) + c(P5)

P5

s3 r3

11 of 20

slide-35
SLIDE 35

Solving principle

Algo Source Dest. Settled Nodes Problem A1

  • p

All N1 SPP A2

  • c

All N2 SPP A3 Xin = N1 ∩ N2 All N3 Best Orig. (Dijkstra) A4 dc All N4 SPP (backward) A5 Xoff = N3 ∩ N4 dp N5 Best Orig. (Martins)

12 of 20

slide-36
SLIDE 36

Solving principle

Algo Source Dest. Settled Nodes Problem A1

  • p

All N1 SPP A2

  • c

All N2 SPP A3 Xin = N1 ∩ N2 All N3 Best Orig. (Dijkstra) A4 dc All N4 SPP (backward) A5 Xoff = N3 ∩ N4 dp N5 Best Orig. (Martins) Integrated approach: select the algorithm with lowest cost in heap.

12 of 20

slide-37
SLIDE 37

Restrictions on pick-up and drop-off points

Integrating knowledge of the problem Goal: restrain the considered pick-up and drop-off point Oc Dc Op Dp r2 r3 r4 s2 s3 s4

A1 A2 A3 A4 A5

Zup Zoff Stop conditions:

  • Zup explored → stop A1 and A2
  • Zoff explored → stop A3 and A4

13 of 20

slide-38
SLIDE 38

A*: guided search Guiding towards a node d

Principle

Explore nodes close to the destination first Heuristic hd(n) : lower bound of the distance n → d

14 of 20

slide-39
SLIDE 39

A*: guided search Guiding towards a node d

Principle

Explore nodes close to the destination first Heuristic hd(n) : lower bound of the distance n → d

Guiding towards an area Z

HZ(n) = minz∈Zhz(n) Guiding towards the closest node in the area

14 of 20

slide-40
SLIDE 40

A*: guided search Guiding towards a node d

Principle

Explore nodes close to the destination first Heuristic hd(n) : lower bound of the distance n → d

Guiding towards an area Z

HZ(n) = minz∈Zhz(n) Guiding towards the closest node in the area Landmarks: HZ(n) computed only once.

14 of 20

slide-41
SLIDE 41

Outline

Shortest Paths: pre-requisites Solving our carpooling problem Experiments Conclusion

15 of 20

slide-42
SLIDE 42

Experiments : Data

Instances Carpooling Bordeaux-Toulouse-Albi Graph South West of France

  • 639 765 nodes
  • 21 439 public transportation nodes
  • 5 millions edges

Restrictions Pick-up/Drop-off areas

  • Entire cities
  • Nodes accessible in 10 minutes

16 of 20

slide-43
SLIDE 43

Experimental Results

Settled Labels/node Restrictions Runtime (ms) labels in A5 Cost (s)

  • 48 377

5 610 354 21.52 24 607

  • 4 316

1 793 205 1.17 24 621

17 of 20

slide-44
SLIDE 44

Experimental Results

Settled Labels/node Restrictions Runtime (ms) labels in A5 Cost (s)

  • 48 377

5 610 354 21.52 24 607

  • 4 316

1 793 205 1.17 24 621 cities-guided 5 910 928 487 13.99 24 610 cities-guided 853 378 404 1.26 24 623

17 of 20

slide-45
SLIDE 45

Experimental Results

Settled Labels/node Restrictions Runtime (ms) labels in A5 Cost (s)

  • 48 377

5 610 354 21.52 24 607

  • 4 316

1 793 205 1.17 24 621 cities-guided 5 910 928 487 13.99 24 610 cities-guided 853 378 404 1.26 24 623 10-min-guided 220 122 706 4.54 24 881 10-min-guided 195 120 126 1.15 24 881

17 of 20

slide-46
SLIDE 46

Outline

Shortest Paths: pre-requisites Solving our carpooling problem Experiments Conclusion

18 of 20

slide-47
SLIDE 47

Conclusion

  • Study of the Best Origin Problem
  • Efficient method to solve the carpooling problem
  • Integration of user preferences to provide a further speed up

19 of 20

slide-48
SLIDE 48

Questions?

?

20 of 20