Part VII: VRP - advanced topics

Similar documents
A Memory Integrated Artificial Bee Colony Algorithm with Local Search for Vehicle Routing Problem with Backhauls and Time Windows

Vehicle routing problems with road-network information

Undirected Capacitated Arc Routing Problems in Debris Collection Operation After Disaster

Approches basées sur les métaheuristiques pour la gestion de flotte en temps réel

Tabu search for the single row facility layout problem using exhaustive 2-opt and insertion neighborhoods

Scheduling. Radek Mařík. April 28, 2015 FEE CTU, K Radek Mařík Scheduling April 28, / 48

Column Generation. A short Introduction. Martin Riedler. AC Retreat

A Unified Solution Framework for Multi-Attribute Vehicle Routing Problems

Two-stage column generation and applications in container terminal management

Schedule-Based Integrated Inter-City Bus Line Planning for Multiple Timetabled Services via Large Multiple Neighborhood Search

Transportation Timetabling

Solving Assembly Line Balancing Problem using Genetic Algorithm with Heuristics- Treated Initial Population

The School Bus Routing and Scheduling Problem with Transfers

COMPARISON OF OPTIMIZING MODELS FOR AMBULANCE LOCATION PROBLEM FOR EMERGENCY MEDICAL SERVICE

Chapter 12. Cross-Layer Optimization for Multi- Hop Cognitive Radio Networks

Shuffled Complex Evolution

The Path Restoration Version of the Spare Capacity Allocation Problem with Modularity Restrictions: Models, Algorithms, and an Empirical Analysis

Control of the Contract of a Public Transport Service

Bibliography. [8] BEKTAŞ, T.; ERDOĞAN, G.; RØPKE, S.. Formulations and Branchand-Cut Algorithms for the Generalized Vehicle Routing Prob-

TRAFFIC SIGNAL CONTROL WITH ANT COLONY OPTIMIZATION. A Thesis presented to the Faculty of California Polytechnic State University, San Luis Obispo

A GRASP HEURISTIC FOR THE COOPERATIVE COMMUNICATION PROBLEM IN AD HOC NETWORKS

A GRASP heuristic for the Cooperative Communication Problem in Ad Hoc Networks

On-demand high-capacity ride-sharing via dynamic trip-vehicle assignment - Supplemental Material -

Time-Dependent Multiple Depot Vehicle Routing Problem on Megapolis Network under Wardrop s Traffic Flow Assignment

Research Article ACO-Based Sweep Coverage Scheme in Wireless Sensor Networks

Mathematical Formulation for Mobile Robot Scheduling Problem in a Manufacturing Cell

Tutorial: Constraint-Based Local Search

10/5/2015. Constraint Satisfaction Problems. Example: Cryptarithmetic. Example: Map-coloring. Example: Map-coloring. Constraint Satisfaction Problems

Relay Placement in Sensor Networks

A Greedy Approach for Vehicle Routing when Rebalancing Bike Sharing Systems

Optimization of On-line Appointment Scheduling

Research Article A New Iterated Local Search Algorithm for Solving Broadcast Scheduling Problems in Packet Radio Networks

Routing ( Introduction to Computer-Aided Design) School of EECS Seoul National University

Column generation heuristic for a rich arc routing problem

Using Nested Column Generation & Generic Programming to solve Staff Scheduling Problems:

An Optimization Approach for Real Time Evacuation Reroute. Planning

Neighborhood based heuristics for a Two-level Hierarchical Location Problem with modular node capacities

CCO Commun. Comb. Optim.

Traffic Grooming for WDM Rings with Dynamic Traffic

Aircraft routing for on-demand air transportation with service upgrade and maintenance events: compact model and case study

Wire Layer Geometry Optimization using Stochastic Wire Sampling

Computers & Industrial Engineering

Chapter 4 Heuristics & Local Search

Improvement of Robot Path Planning Using Particle. Swarm Optimization in Dynamic Environments. with Mobile Obstacles and Target

Heuristic Search with Pre-Computed Databases

Creative Commons: Attribution 3.0 Hong Kong License

Gateways Placement in Backbone Wireless Mesh Networks

Local search algorithms

Fast Placement Optimization of Power Supply Pads

Lectures: Feb 27 + Mar 1 + Mar 3, 2017

Optimized Periodic Broadcast of Non-linear Media

The Wireless Network Jamming Problem Subject to Protocol Interference

Cross-Layer Optimization for Routing Data Traffic in UWB-based Sensor Networks

A HYBRID GENETIC ALGORITHM FOR THE WEIGHT SETTING PROBLEM IN OSPF/IS-IS ROUTING

1) Complexity, Emergence & CA (sb) 2) Fractals and L-systems (sb) 3) Multi-agent systems (vg) 4) Swarm intelligence (vg) 5) Artificial evolution (vg)

A New Space-Filling Curve Based Method for the Traveling Salesman Problems

Metaheuristics in network design

A TREE-SEARCH BASED HEURISTIC FOR A COMPLEX STACKING PROBLEM WITH CONTINUOUS PRODUCTION AND RETRIEVAL

Eric J. Nava Department of Civil Engineering and Engineering Mechanics, University of Arizona,

Rating and Generating Sudoku Puzzles Based On Constraint Satisfaction Problems

Optimal Multicast Routing in Ad Hoc Networks

A new mixed integer linear programming formulation for one problem of exploration of online social networks

A Hybrid Evolutionary Programming Algorithm for Spread Spectrum Radar Polyphase Codes Design

Delay Aware Link Scheduling for Multi-hop TDMA Wireless Networks

An applied optimization based method for line planning to minimize travel time

TABLE OF CONTENTS CHAPTER NO. TITLE PAGE NO. LIST OF TABLES LIST OF FIGURES LIST OF SYMBOLS AND ABBREVIATIONS

A Retrievable Genetic Algorithm for Efficient Solving of Sudoku Puzzles Seyed Mehran Kazemi, Bahare Fatemi

Scheduling workover rigs for onshore oil production

MITOCW watch?v=-qcpo_dwjk4

Games and Adversarial Search II

Grey Wolf Optimization Algorithm for Single Mobile Robot Scheduling

FOUR TOTAL TRANSFER CAPABILITY. 4.1 Total transfer capability CHAPTER

Joint Ground/Air EMS Coverage Models. May 2008

Optimization in container terminals

Optical Networks with Limited Wavelength Conversion.

Combinatorial Problems in Multi-Robot Battery Exchange Systems

Optimizing Client Association in 60 GHz Wireless Access Networks

An efficient and robust approach to generate high quality solutions for the Traveling Tournament Problem

The Multiple Part Type Cyclic Flow Shop Robotic Cell Scheduling Problem: A Novel and Comprehensive Mixed Integer Linear Programming Approach

Outline for today s lecture Informed Search Optimal informed search: A* (AIMA 3.5.2) Creating good heuristic functions Hill Climbing

Programming an Othello AI Michael An (man4), Evan Liang (liange)

Genetic Algorithm for Routing and Spectrum Allocation in Elastic Optical Networks

Constraint-based approaches for Balancing Bike Sharing Systems

Rolling Partial Rescheduling with Dual Objectives for Single Machine Subject to Disruptions 1)

A Time-Dependent ATSP With Time Window and Precedence Constraints in Air Travel

A Bandit-Inspired Memetic Algorithm for Quadratic Assignment Problems

Near Optimal Joint Channel and Power Allocation Algorithms in Multicell Networks

The Capability of Error Correction for Burst-noise Channels Using Error Estimating Code

Solving and Analyzing Sudokus with Cultural Algorithms 5/30/2008. Timo Mantere & Janne Koljonen

Computing Explanations for the Unary Resource Constraint

22c:145 Artificial Intelligence

Automated Software Engineering Writing Code to Help You Write Code. Gregory Gay CSCE Computing in the Modern World October 27, 2015

Optimized Schedule Synthesis under Real-Time Constraints for the Dynamic Segment of FlexRay

Branch-and-cut for a real-life highly constrained soccer tournament scheduling problem

Mobile Base Stations Placement and Energy Aware Routing in Wireless Sensor Networks

Routing Messages in a Network

Optimal Traffic Resource Allocation and Management

Machine Translation - Decoding

ESE535: Electronic Design Automation. Previously. Today. Precedence. Conclude. Precedence Constrained

Graphs and Network Flows IE411. Lecture 14. Dr. Ted Ralphs

Transcription:

Part VII: VRP - advanced topics c R.F. Hartl, S.N. Parragh 1/32

Overview Dealing with TW and duration constraints Solving VRP to optimality c R.F. Hartl, S.N. Parragh 2/32

Dealing with TW and duration constraints The VPP with Time Windows (VRPTW) Decision variables Parameters x k ij = { 1, if arc (ij) is traversed by vehicle k, 0, otherwise. B i = beginning of service at i by vehicle k c ij = the costs to traverse arc (i,j) d i = demand of customer i C = vehicle capacity t ij = time needed to traverse arc (i,j) s i = the service time at i a i = beginning of the time window i b i = end of the time window i K... set of vehicles, V... set of all vertices, A... set of arcs, N... set of customers n... number of customers, 0... start depot, n+1... end depot c R.F. Hartl, S.N. Parragh 3/32

Dealing with TW and duration constraints min c ij x k ij (1) k K i V j V subject to: x k ij = 1 i N, (2) k K j V \{n+1} x k 0j = 1 k K, (3) j V x k ji x k ji = 0 k K,i N, (4) j V \{n+1} j V \{0} x k i,n+1 = 1 k K, (5) i V (Bi k +s i +t ij )x k ij Bk j k K,i V \{n+1},j V \{0}, (6) a i Bi k b i k K,i V, (7) d i x k ji C k K, (8) i N j V \{n+1} x k ij {0,1} k K,i,j V. (9) c R.F. Hartl, S.N. Parragh 4/32

Dealing with TW and duration constraints VRPTW with duration constraints Notation T... maximum route duration Constraints Bn+1 k Bk 0 T k K (10) c R.F. Hartl, S.N. Parragh 5/32

Dealing with TW and duration constraints VRPTW with duration constraints Scheduling: Forward Time Slack Savelsbergh, M. (1995) The Vehicle Routing Problem with Time Windows: Minimizing Route Duration, ORSA Journal on Computing 4:146 154 )) l 0 l 1t1,2 + t 0,1 W 1 W 2 e 0 0 e 1 1 e 2 2 l 2... F 0 W sum A 1 B 1 A 2 B 2 = e 2 A 0 = B 0 = e 0 S F2 0 = min {W2 sum, S 2 }, W2 sum = W1 sum + W 2, S 2 = min {S 1, W2 sum + l 2 B 2 } c R.F. Hartl, S.N. Parragh 6/32

Because metaheuristics for the CVRP outperform classical methods in terms of solution quality (sometimes now in terms of computing time), we believe there is little room left for significant improvement in the area of classical heuristics. The time has come to turn the page. [Concluding words of Laporte and Semet s chapter on Classical Heuristics for the CVRP (2002) in Toth and Vigo (eds): The VRP ]. However, classical heuristics/operators are important ingredients/building blocks for advanced methods, such as metaheuristics! c R.F. Hartl, S.N. Parragh 7/32

The metaheuristic idea Definition metaheuristic A top-level general strategy which guides other heuristics to search for feasible solutions in domains where the task is hard. from: http://encyclopedia2.thefreedictionary.com/metaheuristic Whenever there is no additional improving solution in the neighborhood defined by a local search operator (more, swap,...), classical local search algorithms stop. The obtained solution is called a local optimum. Metaheuristics provide a means to escape from local optima by, e.g., allowing intermediate infeasible or deteriorating solutions, solution perturbations, searching larger neighborhoods etc. c R.F. Hartl, S.N. Parragh 8/32

Several different types (more or less in chronological order, not exhaustive) Simulated/Deterministic Annealing (allows intermediate deteriorations) Tabu Search (allows intermediate deteriorations (tabu list) and sometimes infeasible solutions) Genetic/Memetic Algorithms (populations of solutions) Ant Colony Algorithms (randomized pheromone updates) Variable Neighborhood Search (perturbations/shaking, may allow intermediate deteriorations and sometimes infeasible solutions) (Adaptive) Large Neighborhood Search (may allow intermediate deteriorations) c R.F. Hartl, S.N. Parragh 9/32

(Adaptive) Large Neighborhood Search Frist introduced by Shaw (1998). The idea destroy parts of the current solution and then repair it again. The name Large Neighborhood Search indicates that a larger neighborhood is searched than typically employed in other neighborhood search based metaheuristics (e.g., tabu search often uses single vertex moves). The combination of a destroy and a repair operator consitutes such a larger neighborhood. c R.F. Hartl, S.N. Parragh 10/32

Adaptive Large Neighborhood Search 1 generate a starting solution s; s best s 2 repeat the following for 25.000 iterations 1 choose a destroy operator d and a repair r operator 2 apply d to s yielding s 3 apply r to s yielding s 4 decide if s is accepted as new incumbent solution; if yes s s 5 check if s is better than s best ; if yes, s best s 6 update the scores and weights of the operators 3 return s best Ropke, S. and Pisinger D. (2006) An Adaptive Large Neighborhood Search Heuristic for the Pickup and Delivery Problem with Time Windows. Transportation Science 40:455 472. c R.F. Hartl, S.N. Parragh 11/32

Destroy and Repair operators used by Ropke and Pisinger (2006): random removal worst removal related removal greedy heuristic 2-regret 3-regret 4-regret m-regret c R.F. Hartl, S.N. Parragh 12/32

Destroy operators q...number of nodes/requests to be removed Random removal randomly remove q requests from the solution s c R.F. Hartl, S.N. Parragh 13/32

Destroy operators q...number of nodes/requests to be removed Worst removal repeat while q > 0 L = array of all planned requests sorted by descending costs cost(i, s) choose a random number y from the interval [0,1) r = L[y p L ] remove r from solution s q = q 1 cost(i,s) = difference in costs if i removed from s c R.F. Hartl, S.N. Parragh 14/32

Destroy operators q...number of nodes/requests to be removed Related removal r = a randomly selected request from s; set of requests: D = {r}; repeat while D < q r = a randomly selected request from D L = an array containing all request from s not in D sort L such that i < j R(r,L[i]) < R(r,L[j]) choose a random number y from the interval [0,1) D = D {L[y p L ]}; remove the requests in D from s R(i,j) = relatedness of i and j; weighted combination of, e.g. time and distance c R.F. Hartl, S.N. Parragh 15/32

Repair operators Greedy insertion In each iteration insert the node/request that can be inserted the cheapest. Regret insertion Insert the request with the largest regret value i at its best position. Repeat until no further requests can be inserted. (l {2,3,4,m}) i := argmax i V o min(l,m) k=2 ( ) f (i,k) f (i,1), c R.F. Hartl, S.N. Parragh 16/32

The adaptive mechanism define a weight w i for each heuristic i roulette wheel selection: heuristic j is chosen with probability w j i w i c R.F. Hartl, S.N. Parragh 17/32

The adaptive mechanism adaptive weight adjustment in the beginning of each time segment (100 it), the score π i of each heuristic is set to 0. the counter how often i is applied in a given segment is θ i scores are increased by σ 1, σ 2, σ 3 : σ 1 destroy repair operation yielded a new global best solution. σ 2 destroy repair operation yielded a new current solution (never accepted before) σ 3 destroy repair operation yielded an accepted a worse solution (never accepted) w ij weight of heuristic i in segment j w i,j+1 = w ij (1 r)+r π i θ i c R.F. Hartl, S.N. Parragh 18/32

Acceptance scheme the acceptance scheme is based on a simulated annealing criterion: a solution is accepted with a probability of e (f(s ) f(s))/t T is called the temperature in each iteration it is decreased by a cooling rate c: T = T c (0 < c < T) s is the current solution s is the new solution c R.F. Hartl, S.N. Parragh 19/32

Adaptive Large Neighborhood Search 1 generate a starting solution s; s best s 2 repeat the following for 25.000 iterations 1 choose a destroy operator d and a repair r operator 2 apply d to s yielding s 3 apply r to s yielding s 4 decide if s is accepted as new incumbent solution; if yes s s 5 check if s is better than s best ; if yes, s best s 6 update the scores and weights of the operators 3 return s best Ropke, S. and Pisinger D. (2006) An Adaptive Large Neighborhood Search Heuristic for the Pickup and Delivery Problem with Time Windows. Transportation Science 40:455 472. c R.F. Hartl, S.N. Parragh 20/32

(A)LNS variants have been applied successfully to The pickup and delivery problem with TW (Ropke and Pisinger, Transportation Science, 2006) Different variants of the VRPB (Ropke and Pisinger, EJOR, 2006) VRPTW, CVRP, MDVRP, site-dependent VRP, OVRP (Pisinger and Ropke, Computers & OR, 2007) PDP with multiple loading stacks (Coté, Gendreau, Potvin, 2009) Service technician routing and scheduling (Kovacs, Parragh, Doerner, Hartl, J Scheduling, 2011) Two-echelon VRP (Hemmelmayr, Cordeau, Crainic, 2011)... c R.F. Hartl, S.N. Parragh 21/32

Solving VRP to optimality Formulating the VRP in terms of a set partitioning problem (SP) min r Ωc r x r (11) subject to a ir x r = 1 i N (12) r Ω x r {0,1} r Ω (13) N... set of customers Ω... set of all routes a ir 1 if i on route r, 0, otherwise. c R.F. Hartl, S.N. Parragh 22/32

Solving VRP to optimality The set Ω is hard to identify; it is potentially very, very large! So, how can the problem be solved? By means of column generation embedded into a branch and bound framework. c R.F. Hartl, S.N. Parragh 23/32

Solving VRP to optimality Column generation...... is a technique to solve large scale linear programs involving a huge number of variables.... is based on the idea that only very few variables will be part of the basis (x ij > 0) in the solution to the LP. So, it suffices to only consider those that are likely to be part of the basis. c R.F. Hartl, S.N. Parragh 24/32

Solving VRP to optimality The linear relaxation of SP (LSP) min r Ωc r x r (14) subject to a ir x r = 1 i N π i (15) r Ω x r 0 r Ω (16) π i is the dual variable associated with constraint (15). c R.F. Hartl, S.N. Parragh 25/32

Solving VRP to optimality The dual of LSP max i N π i (17) subject to a ir π i c r r Ω (18) i N π i unrestricted i N (19) reduced cost (shadow price) of route r: c r = c r i N a irπ i 0 (for routes part of the basis, the reduced cost is 0) c R.F. Hartl, S.N. Parragh 26/32

Solving VRP to optimality The restricted LSP (RLSP) min r Ω c r x r (20) subject to r Ω a ir x r = 1 i N π i (21) x r 0 r Ω (22) Ω... set of variables (columns) generated so far. What s a promising new variable (column)? A variable (column) for which the reduced cost c r = c r i N a irπ i 0 c R.F. Hartl, S.N. Parragh 27/32

Solving VRP to optimality Column generation Initialization populate Ω with a set of columns such that a feasible solution is possible (e.g. a heuristic solution to the VRP or all single customer routes) Step 1 solve RLSP on Ω (called master problem) Step 2 retrieve dual information (π i values) Step 3 solve the subproblem: try to find columns (routes) of negative reduced cost c r = c r i N a irπ i 0 (usually this can be done by solving a shortest path problem with additional constraints - based on Dijkstra/Bellman!) if no additional routes with negative reduced cost exist STOP. The optimal solution to LSP has been found. (if this solution is integer it is also the optimal solution to SP) else add the new column(s) to Ω and go to step 1 c R.F. Hartl, S.N. Parragh 28/32

Solving VRP to optimality Observations If we solve the standard CVRP, the suproblem corresponds to solving a shortest path problem with a capacity constraint. If we solve the standard VRPTW, the subproblem corresponds to solving a shortest path problem with time windows and a capacity constraint. Also the subproblems are usually still NP-hard. In general, the more restrictive the constraints (e.g. the tighter the time windows) the smaller the number of feasible routes and the faster the solution of the subproblem. c R.F. Hartl, S.N. Parragh 29/32

Solving VRP to optimality Many state-of-the-art exact methods...... combine column generation with branch and cut (aka branch and cut and price methods) (for the CVRP: Fukasawa, Longo, Lysgaard, Poggi de Aragao, Reis, Uchoa, Werneck, 2006)... a very recent successful exact algorithmic framework combines several bounding procedures using ideas from column generation as well as cutting plane generation. Then, based on the obtained lower and upper bound, they solve a restricted version of SP, containing only routes whose reduced cost is smaller than the gap between the upper and the lower bound. (for the CVRP: Baldacci, Christofides, Mingozzi, 2008) Largest CVRP instance solved to optimality: around 120 customers (<1h computation time - 2.6 GHz PC with 3 GB of RAM) c R.F. Hartl, S.N. Parragh 30/32

Solving VRP to optimality... the latest trends Hybrid methods Algorithms that combine ideas from MIP (branch and cut, column generation, etc.) with metaheuristics. More complex problems Integration of several planning levels/decisions. More complex data The integration of time-dependent or real time travel times/information. c R.F. Hartl, S.N. Parragh 31/32

Solving VRP to optimality References Paolo Toth, and Daniele Vigo (2002) The Vehicle Routing Problem, SIAM. (Chapters 1 and 5) W. Domschke (1997) Logistik: Rundreisen und Touren Oldenbourg. c R.F. Hartl, S.N. Parragh 32/32