130 likes | 304 Views
Cyted-Harosa Int. Workshop Valparaiso, Chile. November 12-13, 2012. Development and assessment of the SHARP and RandSHARP algorithms for the arc routing problem. Sergio González a , Alejandra Pérez-Bonilla a , Angel A.Juan a , Daniel Riera a
E N D
Cyted-Harosa Int. Workshop Valparaiso, Chile. November 12-13, 2012 Development and assessment of the SHARP and RandSHARP algorithms for the arc routing problem Sergio Gonzáleza, Alejandra Pérez-Bonillaa, Angel A.Juana, Daniel Rieraa {sgonzalezmarti, aperezbon, ajuanp, drierat, jcastellav}@uoc.edu aDepartment of Computer Science, Multimedia and Telecommunication, IN3 – Open University of Catalonia, Barcelona, Spain. http://dpcs.uoc.edu
4 3 5 2 0 6 1 7 1. The Capacitated ARP (deterministic) Edges withdemands Nodes • The Capacitated Arc Routing Problem (CARP) is a well-known NP-hard problem Golden et al. (1981): • The set of edges constitute an undirected, non-complete graph or network. • A set of edges’ demands must be supplied by a fleet of (homogeneous) vehicles. • Resources are available from a depot. • Moving a vehicle from one node i to another j has associated (symmetric) costsc(i, j) > 0. • An edge might be traversed several times by different vehicles, but it is served by just one vehicle. • Additional constraints must be considered: maximum load capacity per vehicle, service times, etc. Depot (resources) • Goal: to obtain an ‘optimal’ solution, i.e. a set of routes satisfying all constraints with minimum costs
4 3 5 2 0 6 1 7 2. Variants of the CARP • Different ARP variants have been proposed: • Directed CARP (DCARP): A version of the CARP where the Arcs can be traversed in a single direction (Maniezzo & Roffilli, 2008). • Mixed CARP (MCARP): A version of the CARP with mixed graphs (Belenguer, Benavent, Lacomme, & Prins, 2006). • Min-Max k-CPP: CARP-like problem excluding capacity constraints on vehicles (Ulusoy, 1985). • Periodic CARP (PCARP): CARP extended to the planning of P days (Lacomme, Prins, Ramdane-Chérif, 2002). • CARP with Stochastic demands (ARPSD): CARP where the demand to be served is not known beforehand (Fleury, Lacomme, & Prins, 2005). • Etcetera.
4 3 5 2 0 6 1 7 3. Practical Applications • Some ARP practical applications are: • Refuse collection(Almeida & Mourão, 2000). • Snow removal (Eglese, 1994). • Inspection of distributed systems (Lee, 1989). • Routing of electric meter readers (Stern & Dror, 1979). • School bus routing (Ferland & Gudnette, 1990).
4. Mathematical Model • The first ILP formulation was probably the one presented by Golden and Wong in 1981. (B. L. Golden and R. T. Wong 1981). • A formulation using undirected variables is presented by Belenguer and Benavent. In his PhD • dissertation, Letchford gives several ILP formulations of the CARP, and derives additional valid inequalities and separation algorithms for the problem. • Other mathematical formulations are due to Welz [22] and Eglese [23], all of them for the undirected case.
5. Solving Approaches (1/2) • Exact Methods (optimal solutions for small-scale problems): • Branch and Bound techniques (Kiuchi, Hirabayashi, Saruwatari, & Shinano, 1995). • Tour construction algorithms (Hirabayashi, Nishida, & Saruwatari, 1992). • Subtour elimination algorithms (Saruwatari, Hirabayashi, & Nishida, 1992). • ILP formulations (Belenguer & Benavent, 1992). • Heuristics (fast, ‘good’ solutions) : • Path Scanning algorithm, Augment-Merge algorithm, Construct-Strike algorithm (Golden, DeArmon, & Baker, 1983). • Node duplication heuristic (Wøhlk, 2005). • The Cycle Assignment algorithm (Benavent, Campos, Corberan, & Mota, 1990). • Parallel insert algorithm (Chapleau, Ferland, Lapalme, & Rousseau,1984).
6. Solving Approaches (2/2) • Meta-heuristics (pseudo-optimal solutions): • Tabu Search algorithms (Hertz, Laporte, & Mittaz, 2000; Greistorfer, 2003). • Simulated Annealing (Eglese, 1994). • Genetic Algorithms (Lacomme, Prins, & Ramdane-Chérif, 2001). • Ant Colony Optimization (Lacomme, Prins, & Tanguy, 2004). • Memetic Algorithms (Lacomme, Prins, & Ramdane-Chérif, 2004).
7. Our SHARP procedure for the CARP • Based on the savings heuristic for the CVRP (Clarke & Wright, 1964). • Designed to provide a ‘good’ starting point for CARP metaheuristics. • SHARP main steps: • Use the Floyd-Warshall algorithm to compute the shortest paths for all pairs of nodes in the network. This allows to treat the graph as if it was a complete one. • Compute the savings associated with demanding edges (real or virtual) connecting any two nodes and create a sorted savings list. • Create a dummy (initial) solution by assigning a route to each demanding arc. • Iterate over the list of savings and look at each node in the selected arc to see which routes (if any) have that node as an exterior node, attempting to merge these routes if possible. • Reconstruct the final solution by computing the shortest path between the edges in the route. González, S.; Juan, A.; Riera, D.; Castellà, Q.; Muñoz, R.; Pérez, A. (2012): ”Development and Assessment of the SHARP and RandSHARP Algorithms for the Arc Routing Problem”. AI Communications, Volume 25, pp. 173-189 (indexed in ISI SCI, 2011 IF = 0.500, Q4). ISSN: 0921-7126.
8. RandSHARP: a Multi-Start approach • SHARP the first edge (the one with the most savings) is the one selected. • RandSHARP introduces randomness in this process by using a quasi-geometric statistical distribution edges with more savings will be more likely to be selected at each step, but all edges in the list are potentially eligible. • Notice: Each time RandSHARP is run, a random feasible solution is obtained. By construction, chances are that this solution outperforms the SHARP one hundreds of ‘good’ solutions can be obtained after some seconds/minutes. Good results with 0.10 < α < 0.20 Juan, A.; Faulin, J.; Jorba, J.; Riera, D.; Masip; D.; Barrios, B. (2011): “On the Use of Monte Carlo Simulation, Cache and Splitting Techniques to Improve the Clarke and Wright Savings Heuristics”. Journal of the Operational Research Society, Vol. 62, pp. 1085-1097.
9. Computational Experiments RandSHARP >> RandPSH >> SHARP >> PSH
9. Computational Experiments RandSHARP >> RandPSH >> SHARP >> PSH
18. Conclusions • We have presented the SHARP procedure solving the CARP. This procedure is based on the savings heuristic for the CVRP. • We have introduced the RandSHARP algorithm for the CARP. This algorithm uses biased randomization to improve the SHARP procedure. • We have also proposed an approach for solving the ARPSD. This approach combinesMCSwithparallel computing and theRandSHARPalgorithm. • The basic idea is to consider a vehicle capacity lower than the actual VMC when constructing CARP solutions. This way, this capacity surplusorsafety stockscan be used when necessary to significantly reduce the expected costs due to expensiveroute failures. • Our approach provides the decision-maker with a set of alternative solutions with different properties (number of routes, fixed and expected variable costs, reliability indices, etc.) • It offers flexibility since it does not assume any particular behavior of the customers’ stochastic demands. Therefore, the probabilistic distributions which describe demands can be generic. • The randomized algorithm is easily parallelizable, which allows to generate pseudo-optimal solutions in ‘reasonable’ clock times.
Cyted-Harosa Int. Workshop Valparaiso, Chile. November 12-13, 2012 Development and assessment of the SHARP and RandSHARP algorithms for the arc routing problem Thanks for your attention! Sergio Gonzáleza, Alejandra Pérez-Bonillaa, Angel A.Juana, Daniel Rieraa {sgonzalezmarti, aperezbon, ajuanp, drierat, jcastellav}@uoc.edu aDepartment of Computer Science, Multimedia and Telecommunication, IN3 – Open University of Catalonia, Barcelona, Spain. http://dpcs.uoc.edu | http://ajuanp.wordpress.com