1 of 37

A Two-Stage Partitioning Approach for the Min-Max K Windy Rural Postman Problem

Oliver Lum

Carmine Cerrone

Bruce Golden

Edward Wasil

1

2 of 37

OAR Lib Content

  • Single-Vehicle Solvers
    • Un/Directed Chinese Postman (UCPP/DCPP)
    • Mixed Chinese Postman (MCPP)
    • Windy Chinese Postman (WPP)
    • Directed Rural Postman Problem (DRPP)
    • Windy Rural Postman Problem (WRPP)
  • Multi-Vehicle Solvers
    • Min-Max K Windy Rural Postman Problem (MM-k WRPP)

2

3 of 37

OAR Lib Content

  • Well-Known Algorithms
    • Single-Source Shortest Paths
    • All-Pairs Shortest Paths
    • Min-Cost Matching
    • Min-Cost Flow
    • Hierholzer’s Algorithm
    • Minimum Spanning Tree
    • Minimum Spanning Arborescence
    • Connectivity Tests

3

4 of 37

Applications

  • Well-established
    • Package Delivery
    • Snow Plowing
    • Military Patrols
  • Variants
    • Time-Windows
    • Close-Enough
    • Turn Penalties
    • Asymmetric Costs

4

5 of 37

Min-Max K WRPP

  • A natural extension of the WRPP
    • Objective: Minimize the max route cost
    • Homogenous fleet, K vehicles
    • Asymmetric traversal costs
    • Required and unrequired edges
    • Generalization of the directed, undirected, and mixed variants
    • Takes into account route balance and customer satisfaction

5

6 of 37

Min-Max K WRPP

6

Depot

= Required

= Included in route

= Not traversed

7 of 37

Min-Max K WRPP

  • Literature review
    • Benavent, Enrique, et al. “Min-Max K-vehicles windy rural postman problem.” Networks 54:4 (2009): 216-226.
    • Benavent, Enrique, Angel Corberan, Jose M. Sanchis. “A metaheuristic for the min-max windy rural postman problem with K vehicles.” Computational Management Science 7:3 (2010): 269-287.
    • Benavent, Enrique, et al. “A branch-price-and-cut method for the min-max k-windy rural postman problem.” Networks 63:1 (2014): 34-45.

7

8 of 37

Benavent’s Algorithm

  • Solve the single-vehicle variant. This produces a solution that can be represented as an ordered list of required edges (where any gaps are traversed via shortest paths).

8

8

Depot

1

2

3

4

5

6

7

8

9 of 37

Benavent’s Algorithm

  • Set up a directed, acyclic graph (DAG) with m+1 vertices, (0,1,…m) where the cost of the arc (i-1,j) is the cost of the tour starting at the depot, going to the tail of edge i, continuing along the single-vehicle solution through edge j, and then returning to the depot

9

0

2

1

8

10 of 37

Benavent’s Algorithm

  • Calculate a k-edge narrowest path from v0 to vm in the DAG, corresponding to a solution (a simple modification to Dijkstra’s single-source shortest path algorithm)

10

0

2

1

8

3

4

5

6

7

11 of 37

Compactness Metrics

  • In practice, usable routes must often exhibit intuitive properties like connectedness and compactness. Two metrics proposed in Constantino et al. “The mixed capacitated arc routing poblem with non-overlapping routes.” European Journal of Operational Research (2015, under review)
    • Route Overlap Index (ROI)

    • Average Traversal Distance (ATD)

11

12 of 37

Route Overlap Index

12

13 of 37

Average Traversal Distance

13

Depot

6

4

2

1

3

7

5

Depot

6

4

2

1

3

7

5

Compact Routes

Non-compact Routes

14 of 37

Benavent’s Approach

14

15 of 37

Partitioning Scheme

  • Transform the graph into a vertex-weighted graph in the following way
    • Create a vertex for each edge in the original graph
    • Connect two vertices i and j if, in the original graph, edge i and edge j shared an endpoint

15

1

2

3

Depot

4

1

2

3

4

1

2

4

3

5

6

5

6

5

7

7

16 of 37

Partitioning Scheme

  • Set the vertex weights to account for known dead-heading and distance to the depot

16

1

2

3

Depot

4

1

2

3

4

5

6

5

7

if link i must be deadheaded

oth.

17 of 37

Partitioning Scheme

  • Linear weights, chosen empirically

17

18 of 37

Partitioning Scheme

  • Linear weights, chosen empirically, evenly spaced in �[.01, .03]

18

19 of 37

Partitioning Scheme

  • Partition the transformed graph into k approximately equal parts.

19

1

2

3

Depot

4

1

2

3

4

5

6

5

7

20 of 37

Partitioning Scheme

  • Route the subgraphs induced by each partition using a single-vehicle solver.

20

1

2

3

Depot

4

5

1

2

3

Depot

4

5

1

2

3

Depot

4

5

21 of 37

Partitioning Approach

21

22 of 37

Benavent’s Approach

22

23 of 37

Results

  • Tested on a 64-bit PC running an Intel i5 4690K 3.5 GHz CPU, with 8 GB RAM
  • Two sets of benchmark instances
    • Real street networks taken from cities using the crowd-sourced Open Street Networks database
      • Trimmed to largest connected component
      • ~50% of links randomly assigned to be required
    • Artificial rectangular networks
      • ~50% of links randomly assigned to be required

23

24 of 37

Results: Street Networks

24

Instance

|V|

|E|

Partition Obj.

ROI

ATD

Runtime

(s)

Benavent Obj.

ROI

ATD

Runtime

(s)

% Diff

San Francisco

706

845

9875

.15

920.24

75

9309

1.38

1311.7

174

6.0

Washington D.C.

592

662

10694

.09

1121.14

52

10103

3.42

1963.2

108

5.8

London, UK

848

996

6162

.19

544.95

128

5941

2.11

737.82

294

3.7

Istanbul, TR

631

782

7391

.50

569.37

84

7195

2.78

769.59

269

2.7

Perth, AUS

532

592

6776

.12

721.77

43

7039

2.01

919.86

77

-3.8

Auckland, AUS

1149

1234

12785

.09

1166.11

203

13372

2.01

1537.3

664

-4.6

Helsinki, FI

1293

1531

6756

.32

566.30

420

6509

1.78

730.70

858

3.8

Vienna, AU

490

571

3662

.12

459.73

48

3522

1.31

533.63

56

4.0

Paris, FR

1949

2274

14468

.13

899.04

1090

N/A

N/A

N/A

N/A

N/A

Calgary, CA

1733

2282

20676

.24

1177.77

840

N/A

N/A

N/A

N/A

N/A

25 of 37

Results: Rectangular Networks

25

Instance

|V|

|E|

Partition Obj.

ROI

ATD

Runtime

(s)

Benavent Obj.

ROI

ATD

Runtime

(s)

% Diff

Random 1

576

1104

841

.37

49.92

94

833

3.04

83.05

188

.96

Random 2

529

1012

774

.50

50.98

68

766

2.95

75.36

139

1.04

Random 3

484

924

685

.35

45.94

60

688

2.55

70.75

99

-.44

Random 4

441

840

639

.59

42.54

52

635

2.97

67.28

88

.63

Random 5

400

760

583

.47

39.18

45

570

2.99

62.08

69

2.28

Random 6

361

684

527

.51

39.67

37

518

2.45

57.13

46

1.73

Random 7

324

612

500

.52

37.31

32

483

2.60

55.85

38

3.51

Random 8

289

544

472

.55

37.24

28

454

2.47

65.62

31

3.96

Random 9

256

480

381

.46

33.16

25

391

2.43

53.75

21

-2.62

Random 10

225

420

360

.43

31.08

22

361

2.61

49.43

16

-.28

26 of 37

Conclusions and Future Work

  • Advantages of partitioning heuristic
    • Can solve large instances
    • Service contiguity – adjacent links are more likely to be serviced by the same vehicle
    • Memory usage – the widest path calculation in the existing algorithm is extremely memory intensive ( order )
    • Speed – each perturbation takes considerable time
  • Future Work
    • Exploring relationship between number of vehicles, and tuning parameters

26

27 of 37

Large Instance

27

Test Instance:

Cross-Section of Greenland

|V|=3047

|E|=3285

Runtime: 328.3 s

28 of 37

References

  • Ahr, Dino, and Gerhard Reinelt. "New heuristics and lower bounds for the Min-Max k-Chinese Postman Problem." Algorithms|ESA 2002. Springer Berlin Heidelberg, 2002. 64-74.
  • Benavent, Enrique, et al. "New heuristic algorithms for the windy rural postman problem." Computers & Operations Research 32:12 (2005): 3111-3128.
  • Campos, V., and J. V. Savall. "A computational study of several heuristics for the DRPP." Computational Optimization and Applications 4:1 (1995): 67-77.
  • Derigs, Ulrich. Optimization and operations research. Eolss Publishers Company Limited, 2009.
  • Dussault, Benjamin, et al. "Plowing with precedence: A variant of the windy postman problem."Computers & Operations Research (2012).
  • Edmonds, Jack, and Ellis L. Johnson. "Matching, Euler tours and the Chinese postman." Mathematical Programming 5:1 (1973): 88-124.

28

29 of 37

References

  • Eiselt, Horst A., Michel Gendreau, and Gilbert Laporte. "Arc routing problems, part II: The rural postman problem." Operations Research 43:3 (1995): 399-414.
  • Frederickson, Greg N. "Approximation algorithms for some postman problems." Journal of the ACM(JACM) 26:3 (1979): 538-554.
  • Grotschel, Martin, and Zaw Win. "A cutting plane algorithm for the windy postman problem." Mathematical Programming 55:1-3 (1992): 339-358.
  • Hierholzer, Carl, and Chr Wiener. "Uber die Moglichkeit, einen Linienzug ohne Wiederholung und ohneUnterbrechung zu umfahren." Mathematische Annalen 6:1 (1873): 30-32.
  • http://community.topcoder.com/tc?module=Static&d1=tutorials&d2=minimumCostFlow2

29

30 of 37

References

30

31 of 37

References

  • Letchford, Adam N., Gerhard Reinelt, and Dirk Oliver Theis. "A faster exact separation algorithm for blossom inequalities." Integer Programming and Combinatorial Optimization. Springer Berlin Heidelberg, 2004. 196-205.
  • Padberg, Manfred W., and M. Ram Rao. "Odd minimum cut-sets and b-matchings." Mathematics of Operations Research 7:1 (1982): 67-80
  • Thimbleby, Harold. "The directed chinese postman problem." Software: Practice and Experience 33:11(2003): 1081-1096.
  • Win, Zaw. "On the windy postman problem on Eulerian graphs." Mathematical Programming 44:1-3(1989): 97-112.
  • Yaoyuenyong, Kriangchai, Peerayuth Charnsethikul, and Vira Chankong. "A heuristic algorithm for the mixed Chinese postman problem." Optimization and Engineering 3:2 (2002): 157-187

31

32 of 37

Backup

32

33 of 37

OAR Lib Motivation

  • An open-source java library aimed at new operations researchers in the field of arc routing
  • An architecture for future software development in routing and scheduling
  • Design philosophy: Usability first, performance second
  • Open Street Maps Integration
  • Gephi toolkit (open source graph visualization) Integration

33

  • A (perceived) barrier to entry that coding experience in a non-modeling language is required
  • No centralized, standardized implementations of many routing algorithms
  • Existing Application Programming Interfaces (APIs) are frequently developed with graph theoretic research in mind
  • Realistic test data procurement
  • Figure generation for papers

Problem:

Solution:

34 of 37

Interchange

  • Two-Interchange and Or-Interchange move a (string of) required link(s) to a different position in the route

34

1

2

2

1

Two-Interchange

35 of 37

Swap

  • Change 1-to-1, 1-to-0, and 2-to-0 swap or move edges off of a route

35

Change 1-to-0

36 of 37

Compact Representation

  • A route may be represented simply as an ordered list of the required links it traverses, with implied shortest paths taken between them

36

1

2

3

4

5

2

4

37 of 37

A New Objective Function

  • Attempt to incorporate compactness into the measure of solution quality

37