Distance Metrics and Fitness Distance Analysis for the Capacitated Vehicle Routing Problem

Similar documents
Algorithms and Complexity theory

Multi-objective Quadratic Assignment Problem instances generator with a known optimum solution

Combinatorial Optimization

Intuitionistic Fuzzy Estimation of the Ant Methodology

AN ANT APPROACH FOR STRUCTURED QUADRATIC ASSIGNMENT PROBLEMS

7.1 Basis for Boltzmann machine. 7. Boltzmann machines

2 Notation and Preliminaries

Week Cuts, Branch & Bound, and Lagrangean Relaxation

3.4 Relaxations and bounds

Analysis of Algorithms. Unit 5 - Intractable Problems

Methods for finding optimal configurations

Chapter 3: Discrete Optimization Integer Programming

Unit 1A: Computational Complexity

Transportation II. Lecture 16 ESD.260 Fall Caplice

A Recourse Approach for the Capacitated Vehicle Routing Problem with Evidential Demands

Models and Cuts for the Two-Echelon Vehicle Routing Problem

Branch-and-Bound. Leo Liberti. LIX, École Polytechnique, France. INF , Lecture p. 1

Session-Based Queueing Systems

Optimisation and Operations Research

Introduction to integer programming III:

Introduction to Mathematical Programming IE406. Lecture 21. Dr. Ted Ralphs

NP Completeness and Approximation Algorithms

In complexity theory, algorithms and problems are classified by the growth order of computation time as a function of instance size.

Chapter 3: Discrete Optimization Integer Programming

Sensitive Ant Model for Combinatorial Optimization

Totally unimodular matrices. Introduction to integer programming III: Network Flow, Interval Scheduling, and Vehicle Routing Problems

The Traveling Salesman Problem with Pickup and Delivery. A polyhedral approach. IBM Research - Australia. Irina Dumitrescu

Capacitor Placement for Economical Electrical Systems using Ant Colony Search Algorithm

Bounds on the Traveling Salesman Problem

ANT/OR. Risk-constrained Cash-in-Transit Vehicle Routing Problem. Luca Talarico, Kenneth Sörensen, Johan Springael. 19 June 2012

Permutation distance measures for memetic algorithms with population management

ON COST MATRICES WITH TWO AND THREE DISTINCT VALUES OF HAMILTONIAN PATHS AND CYCLES

Generalization of Dominance Relation-Based Replacement Rules for Memetic EMO Algorithms

Single Solution-based Metaheuristics

Metaheuristics and Local Search

e - c o m p a n i o n

Finding optimal configurations ( combinatorial optimization)

Topics in Complexity Theory

15.083J/6.859J Integer Optimization. Lecture 2: Efficient Algorithms and Computational Complexity

Vehicle Routing and Scheduling. Martin Savelsbergh The Logistics Institute Georgia Institute of Technology

Regression Clustering

NP-Completeness. Andreas Klappenecker. [based on slides by Prof. Welch]

Constraint satisfaction search. Combinatorial optimization search.

Geometric Steiner Trees

Spatial Thinking and Modeling of Network-Based Problems

Combinatorial optimization problems

Design and Analysis of Algorithms

Applied Integer Programming: Modeling and Solution

New Integer Programming Formulations of the Generalized Travelling Salesman Problem

PROBLEM SOLVING AND SEARCH IN ARTIFICIAL INTELLIGENCE

The Multiple Traveling Salesman Problem with Time Windows: Bounds for the Minimum Number of Vehicles

Artificial Intelligence Methods (G5BAIM) - Examination

Practical Tips for Modelling Lot-Sizing and Scheduling Problems. Waldemar Kaczmarczyk

Solving the Homogeneous Probabilistic Traveling Salesman Problem by the ACO Metaheuristic

Approximation Algorithms for Re-optimization

Inventory optimization of distribution networks with discrete-event processes by vendor-managed policies

Motivation, Basic Concepts, Basic Methods, Travelling Salesperson Problem (TSP), Algorithms

P P P NP-Hard: L is NP-hard if for all L NP, L L. Thus, if we could solve L in polynomial. Cook's Theorem and Reductions

A new ILS algorithm for parallel machine scheduling problems

Metaheuristics and Local Search. Discrete optimization problems. Solution approaches

Cut-First Branch-and-Price-Second for the CARP Workshop on Large Scale Optimization 2012 Vevey, Switzerland

A.I.: Beyond Classical Search

More on Unsupervised Learning

5. Simulated Annealing 5.1 Basic Concepts. Fall 2010 Instructor: Dr. Masoud Yaghini

Complexity of local search for the p-median problem

Lecture 8: Column Generation

Traveling Salesman Problem

k-protected VERTICES IN BINARY SEARCH TREES

International ejournals

15.081J/6.251J Introduction to Mathematical Programming. Lecture 24: Discrete Optimization

Evolutionary Algorithms How to Cope With Plateaus of Constant Fitness and When to Reject Strings of The Same Fitness

NP, polynomial-time mapping reductions, and NP-completeness

Evolutionary Computation Theory. Jun He School of Computer Science University of Birmingham Web: jxh

Havrda and Charvat Entropy Based Genetic Algorithm for Traveling Salesman Problem

Zebo Peng Embedded Systems Laboratory IDA, Linköping University

Data Structures and Algorithms (CSCI 340)

Improved methods for the Travelling Salesperson with Hotel Selection

VNS for the TSP and its variants

The minimum G c cut problem

Metropolitan Delivery with Time Windows as a Scheduling Problem

Introduction to Integer Programming

CS264: Beyond Worst-Case Analysis Lecture #11: LP Decoding

Vehicle Routing and MIP

Lecture H2. Heuristic Methods: Iterated Local Search, Simulated Annealing and Tabu Search. Saeed Bastani

A Multi-Exchange Local Search Algorithm for the Capacitated Facility Location Problem

A Randomized Rounding Approach to the Traveling Salesman Problem

Outline. 15. Descriptive Summary, Design, and Inference. Descriptive summaries. Data mining. The centroid

A Mixed-Integer Linear Program for the Traveling Salesman Problem with Structured Time Windows

Adaptive Generalized Crowding for Genetic Algorithms

Exact and Approximate Equilibria for Optimal Group Network Formation

Self-Adaptive Ant Colony System for the Traveling Salesman Problem

Minimizing the Service Cost of Mobile Chargers while Maintaining the Perpetual Operations of WRSNs

Geometric Semantic Genetic Programming (GSGP): theory-laden design of semantic mutation operators

Una descrizione della Teoria della Complessità, e più in generale delle classi NP-complete, possono essere trovate in:

Cable Trench Problem

Introduction. Genetic Algorithm Theory. Overview of tutorial. The Simple Genetic Algorithm. Jonathan E. Rowe

Modeling with Integer Programming

Maximum Flow Problem (Ford and Fulkerson, 1956)

Equality of P-partition Generating Functions

STA 4273H: Statistical Machine Learning

Transcription:

MIC2005. The 6th Metaheuristics International Conference 603 Metrics and Analysis for the Capacitated Vehicle Routing Problem Marek Kubiak Institute of Computing Science, Poznan University of Technology Piotrowo 3A, 60-965 Poznan, Poland Marek.Kubiak@cs.put.poznan.pl 1 Introduction Metaheuristics, usually inspired by nature, define schemes of algorithms which have to be further adapted to a given problem in order to be practically useful (e.g. crossover operators have to be designed for an evolutionary algorithm). One of the conclusions which may be derived from the No Free Lunch theorem [12] states that there is no algorithm which performs better than any other on all possible optimisation problems. Thus, an algorithm may be efficient only on a certain subclass of all problems, while in other cases it will perform worse than others, even a random search or a complete enumeration of solutions. This conclusion applies to metaheuristics as well. In this context the process of adaptation of a metaheuristic may be viewed as a means of moving the efficient (for this algorithm) subclass of problems in the space of all possible problems. This process of adaptation, the design of components of a metaheuristic, may profoundly influence the efficiency of an algorithm. For a class of metaheuristics, namely evolutionary algorithms, this phenomenon was even observed experimentally [8]. Thus, the adaptation of a metaheuristic to the problem is a crucial operation which should be well justified and carefully performed. In many cases, however, this adaptation is done by a designer based on intuition and experience. It may result, of course, in an efficient algorithm for the problem, which is quite often the case, but the algorithm may just as well be a poorly performing one, which happens not so rarely. In addition, this way of adaptation provides neither justification for the choices made by the designer, nor gives knowledge which might be useful for others in the future. A different way of adaptation of a metaheuristic algorithm to a given problem has received some attention recently. It is based on statistical analyses of the search space (fitness landscape) of instances of the problem. Such analyses, e.g. fitness distance analysis [2, 3, 5, 7], random walk correlation measurement [7], estimation of the size of atractor of local optima [7], provide objective information about certain properties of the fitness landscape and justify the design or choice of components for a metaheuristic algorithm [3, 5, 7].

604 MIC2005. The 6th Metaheuristics International Conference Therefore, the first goal of this paper is to present results of statistical analysis, namely the fitness distance analysis, of some instances of the Capacitated Vehicle Routing Problem (CVRP) taken from literature. Such analysis may be further used to justify certain designs of metaheuristics to the problem and to provide explanation for efficiency of existing algorithms. The second goal of this work is to present distance metrics for solutions of the CVRP. In the author s opinion many publications about algorithms for combinatorial optimisation problems describe fitness landscapes using the notion of distance without actually providing its definition; moves in the landscape are told to be near of far jumps, search strategies are said to intensify the search in a promising region of the search space or to diversify the search by identifying new regions with good solutions. However, accurate, objective, quantitative information about what is near or what is a region is rarely provided, with few exceptions [9, 11]. Thus, distance metrics for the CVRP, presented in this paper, demonstrate that distance may be defined strictly and become a useful tool for verification of research intuition. 2 The Capacitated Vehicle Routing Problem The CVRP [1, 5, 10] is a very basic formulation of a problem which a transportation company might face in its everyday operations. The goal is to find the shortest possible set of routes for the company s vehicles in order to satisfy demands of customers for certain goods. Each of identical vehicles starts and finishes its route at the company s depot, and must not carry more goods than its capacity specifies. All customers have to be serviced, each exactly once by one vehicle. s between the depot and customers are given. The version of CVRP considered here does not fix the number of vehicles (it is a decision variable); also the distance to be travelled by a vehicle is not constrained. Names of instances used in this study are provided in table 1, in section 4.1. In order to properly define distance metrics in the next section, some basic definitions related to solutions of the CVRP have to be given. A solution s of the CVRP is a set of T (s) routes: s = {t 1, t 2,..., t T (s) }. A route is a sequence of customers (nodes) starting with the depot, v 0, and has the form: t i = (v 0, v i,1, v i,2,..., v i,n(ti )) for i = 1,..., T (s), where n(t i ) is the number of customers on route t i. Some additional specific constraints should also be satisfied by a feasible solution, but they are not provided here. Refer to [1, 5, 10] for more information about the CVRP. 3 metrics for solutions of the CVRP The distance metrics presented in this section correspond to certain properties of solutions of the CVRP which are deemed to be important for their quality: existence of certain edges (or even paths) or specific way of partition of the set of customers into routes (clusters).

MIC2005. The 6th Metaheuristics International Conference 605 3.1 in terms of edges: d e The idea of this metric is based on a very similar concept formulated for the travelling salesman problem (TSP): the number of common edges in TSP tours [2]. In the research cited it was found that good solutions of the TSP have many common edges and are, thus, very similar (close) to each other. Due to similarity between solutions of the TSP (one tour) and the CVRP (a set of disjoint tours/routes) the idea of common edges may be easily adapted to the latter. In order to properly define the distance metric some definitions are required: E(t i ) = { } {v 0, v i,1 } ( n(t i) 1 j=1 { }) { } {v i,j, v i,j+1 } {v i,n(ti ), v 0 } E(s) = E(t i ) t i s E(t i ) is a multiset of undirected edges appearing in route t i. E(s) is a multiset of edges in solution s. The notion of a multiset is required here, because routes in some solutions of the CVRP may include certain edges twice. Using the general concept of distance between subsets of the same universal set, as defined by Marczewski and Steinhaus [6] (cited after [4]), the distance d e between two solutions s 1, s 2 of the same CVRP instance may be defined as: d e (s 1, s 2 ) = E(s 1) E(s 2 ) E(s 1 ) E(s 2 ) E(s 1 ) E(s 2 ) Due to the fact that d e is only a special case of the Marczewski Steinhaus distance, it inherits all its properties of a metric; its values are also normalized to the interval [0,1]. This distance metric perceives solutions of the CVRP as multisets of edges: solutions close to each other will have many common edges; distant solutions will have few common ones. However, closer investigation of the metric reveals that it is not intuitively linear (although it is monotonic ), e.g. d e = 0.5 does not mean that exactly half of each E(s i ) is common; 50% of common edges implies d e 2/3. 3.2 in terms of partitions of customers: d pc The concept behing the second distance metric is based on the cluster first route second heuristic approach to the CVRP [1]: first find a good partition of customers into clusters and ther try to find routes (solve TSPs) within these clusters, separately. According to this idea the distance metric should identify dissimilarities between solutions perceived as partitions of the set of customers. An example of a distance metric for partitions of a given set may be found in [4] (it is even more generally defined there, for hypergraphs or binary trees). This example is easily adaptable to solutions of the CVRP. Let us define: C(s) = {c 1 (s), c 2 (s),..., c T (s) (s)}

606 MIC2005. The 6th Metaheuristics International Conference c i (s) = {v i,1, v i,2,..., v i,n(ti )} σ(c i (s 1 ), c j (s 2 )) = c i(s 1 ) c j (s 2 ) c i (s 1 ) c j (s 2 ) c i (s 1 ) c j (s 2 ) C(s) is a partition of the set of customers into clusters; one cluster, c i (s), holds customers from route t i of s; σ( ) is the distance between two clusters. According to [4], the distance between solutions may be defined as: d pc (s 1, s 2 ) = 1/2 { T (s1 ) max i=1 T (s 2 ) min σ(c i(s 1 ), c j (s 2 )) + T (s 2) max j=1 i=1 T (s 1 ) } min σ(c i(s 1 ), c j (s 2 )) j=1 (1) This function is a distance metric for partitions; it is also normalized. It is not exactly a metric for solutions of the CVRP, because d pc (s 1, s 2 ) = 0 does not imply s 1 = s 2 (the number of solutions which are not discriminated by d pc may be exponentially large). Formula 1 has the following sense: firstly, the best possible assignment of clusters from C(s 1 ) to clusters from C(s 2 ) is made (the one which minimizes σ( )), and vice versa; that is the idea behind internal min operators. Secondly, two worst assignments are chosen among those pairs (the max operators), and distance in those assignments is averaged to form the overall distance between partitions. Thus, it may be concluded that d pc is somehow pessimistic in the choice of optimistic matches of clusters. This mixture of max and min operators in d pc makes interpretation of its values difficult. Certainly, values near to 0 indicate great similarity of solutions. However, larger values do not necessarily indicate very dissimilar partitions; it is sufficient that there are outliers in partitions, which can hardly be well assigned to clusters in the other solution, and the max operator will result in large values, implying distant solutions. 3.3 in terms of pairs of nodes: d pn The third distance metric, d pn, is based on the same idea as d pc : distance between solutions viewed as partitions of the set of customers. However, this idea has a different, more straightforward, mathematical formulation in d pn. Here, the Marczewski Steinhaus [6] concept of distance is applied to sets of pairs of nodes (customers). Lets define: P N(t i ) = n(t i ) 1 j=1 n(t i ) k=j+1 P N(s) = P N(t i ) t i s { } {v i,j, v i,k } P N(t i ) is the set of undirected pairs of nodes (customers) which are assigned to the same route t i (it is similar to a clique). P N(s) is the set of all such pairs in solution s. The distance d pn between solutions is defined as: d pn (s 1, s 2 ) = P N(s 1) P N(s 2 ) P N(s 1 ) P N(s 2 ) P N(s 1 ) P N(s 2 ) (2)

MIC2005. The 6th Metaheuristics International Conference 607 Similarly to d pc, this function is not exactly a metric for solutions of the CVRP, but for partitions implied by those solutions. Formula 2 has a more straighforward sense than 1; here, the value of distance roughly indicates how large are parts of sets of pairs which are not shared by two compared solutions. If d pn = 0 then two solutions imply identical partitions; d pn = 1 implies completely different partitions (not even one pair of nodes is assigned to a route in the same way in s 1 and s 2 ). 4 distance analysis of the CVRP 4.1 Random solutions vs. local optima The first stage of the fitness distance analysis focuses on possible differences between sets of local optima and random solutions of a given instance in terms of distance in these sets. In order to check these differences, large random samples of 2000 different solutions of each type were generated: a random solution: a number of routes was randomly drawn and then these routes were randomly filled with customers (uniform probability whenever possible); if a route could not be continued due to the capacity constraint, the vehicle returned to the depot and a new route was started; a local optimum: a random solution was subject to a greedy local search with a neighbourhood of 3 joined operators: 2 opt, exchange of 2 customers, joining of 2 routes [5]. Finally, statistics on values of distance in these samples were computed, as shown in table 1. It may be seen in the table that average values of each type of distance in samples of local optima are usually much lower than values of distance for the best random solutions. It is d e which usually results in the highest gains. It might be concluded that local optima are clustered together in some parts of the fitness landscapes rather than scattered all over it. This also means that they usually share many common properties: edges or assignments of customers to same routes. 4.2 Trends in sets of local optima The second stage of the fitness distance analysis is an attempt to find trends in the sets of local optima themselves: if when solutions become better they tend to be more similar (close) to each other [2, 3, 5, 7, 9]. This hypothesis was tested in the following manner: first, each type of distance was computed for each of 1000 pairs of local optima from the previously generated samples. Then, pairs of solutions with roughly the same quality (max. 5% difference) were arranged on scatter plots of fitness versus distance. Finally, lines of regression were added and correlations computed.

608 MIC2005. The 6th Metaheuristics International Conference Table 1: Values of distance for the best random solutions and average distance for local optima (differences with the values for random solutions). Also the squares of fitness distance correlation (FDC) values are shown. name best rnd best rnd best rnd avg lopt avg lopt avg lopt ρ 2 f,d e ρ 2 f,d pc ρ 2 f,d pn d e d pc d pn d e d pc d pn c100 0.977 0.908 0.950-0.304-0.142-0.219 0.197 0.062 0.126 c100b 0.959 0.904 0.963-0.419-0.201-0.374 0.347 0.211 0.468 c120 0.976 0.902 0.937-0.262-0.108-0.191 0.020 0.091 0.152 c150 0.972 0.917 0.958-0.293-0.107-0.199 0.296 0.015 0.232 c199 0.972 0.929 0.970-0.271-0.103-0.179 0.237 0.014 0.242 c50 0.946 94 0.935-0.341-0.151-0.276 0.167 0.069 0.173 c75 0.909 82 0.948-0.221-0.083-0.196 0.117 0.012 0.113 f134 0.972 0.929 0.952-0.339-0.147-0.243 0.160 0.099 0.045 f71 0.962 0.908 0.926-0.485-0.262-0.588 0.237 0.046 0.378 tai100a 0.949 0.911 0.951-0.354-0.126-0.261 0.083 0.036 0.113 tai100b 0.907 0.900 0.978-0.297-0.094-0.280 0.238 0.032 0.233 tai100c 0.978 0.902 0.963-0.352-0.093-0.256 0.246 0.036 0.380 tai100d 0.944 94 0.933-0.335-0.070-0.256 0.178 0.082 0.272 tai150a 0.932 0.947 0.992-0.305-0.128-0.261 0.009 0.003 0.000 tai150b 0.961 0.921 0.981-0.298-0.095-0.250 0.072 0.035 0.223 tai150c 0.958 0.928 0.975-0.329-0.116-0.239 0.190 0.046 0.217 tai150d 0.979 0.901 0.958-0.343-0.072-0.208 0.042 0.011 0.057 tai385 0.950 0.938 0.989-0.205-0.060-0.128 0.122 0.047 0.158 tai75a 0.907 87 0.968-0.286-0.092-0.253 0.165 0.021 0.156 tai75b 0.902 91 0.956-0.284-0.083-0.224 0.025 0.026 0.075 tai75c 0.945 89 0.918-0.364-0.101-0.236 0.187 0.034 0.258 tai75d 0.944 75 0.950-0.425-0.112-0.401 0.244 0.059 0.277 Samples of such plots, which are representative to the instances listed in table 1, are presented in figures 1 and 2. In these plots one might notice some (not very strong; see table 1) correlation between fitness and distance, which indicates that better local optima tend to be even closely clustered than worse ones. The strongest tendencies are observed generally for d e and d pn ; d pc is worse perhaps due to its pessimistic nature mentioned in section 3.2. 5 Conclusions The study presented in the paper revealed a certain structure existing in the fitness landscapes of instances of the CVRP. This structure might explain why efficient algorithms for this problem have to include local search components and also why the intensification technique presented in [10], which has been extremely conservative in changing good edges or routes, has been so successful.

MIC2005. The 6th Metaheuristics International Conference 609 1 0.9 0.5 0.4 0.3 0.5 0.4 0.3 0.2 0.1 240 260 280 300 0.2 0.1 0 240 250 260 270 280 290 300 0.5 0.4 0.3 0.2 0.1 0 240 250 260 270 280 290 300 Figure 1: distance plots with local optima for instance f71 and 3 distance types: d e, d pc, d pn, together with lines of regression. The paper also confirms that fitness distance analysis should become a tool widely used by designers of metaheuristic algorithms, because once the notion of distance is clearly and unambiguously defined, the analysis may provide objective information about properties of solutions which are important to the overall fitness. A research intuition might be, therefore, confirmed or rejected by this kind of analysis [3, 5, 7]. Acknowledgements This research has been supported by the Polish State Committee for Scientific Research (KBN) through grant no. 3T11F00426. References [1] Aronson, L. D. (1996): Algorithms for Vehicle Routing a Survey. Technical Report [96-21]. Delft University of Technology, Holland. [2] Boese, K. D. (1995): Cost Versus in the Traveling Salesman Problem. Technical Report [TR-950018]. UCLA CS Department, California. [3] Jaszkiewicz, A., and Kominek, P. (2003): Genetic Local Search with Preserving Recombination Operator for a Vehicle Routing Problem. In: European Journal of Operational Research 151, 352 364.

610 MIC2005. The 6th Metaheuristics International Conference 1 0.9 0.5 1350 1400 1450 1500 1 1350 1400 1450 1500 0.9 1350 1400 1450 1500 Figure 2: distance plots with local optima for instance c199 and 3 distance types: d e, d pc, d pn, together with lines of regression. [4] Karonski, M., and Palka, Z. (1977): On Marczewski Steinhaus Type between Hypergraphs. In: Applicationes Mathematicae 16 (1), 47 57. [5] Kubiak, M. (2004): Systematic Construction of Recombination Operators for the Vehicle Routing Problem. In: Foundations of Computing and Decision Sciences 29 (3), 205 226. [6] Marczewski, E., and Steinhaus, H. (1958): On a Certain of Sets and the Corresponding of Functions. In: Coll. Math. 6. [7] Merz, P. (2004): Advanced Landscape Analysis and the Performance of Memetic Algorithms. In: Evolutionary Computation 12 (3), 303 325. [8] Michalewicz, Z. (1993): A Hierarchy of Evolution Programs: An Experimental Study. In: Evolutionary Computation 1 (1), 51 76. [9] Reeves, C. R. (1999): Landscapes, Operators and Heuristic Search. In: Annals of Operations Research 86, 473 490. [10] Rochat, Y., and Taillard, É. D. (1995): Probabilistic Diversification and Intensification in Local Search for Vehicle Routing. In: Journal of Heuristics 1, 147 167. [11] Sorensen, K. (2003): Measures Based on the Edit for Permutation type Representations. Presented at The Adoro Workshop, GECCO 2003, Chicago. [12] Wolpert, D. H., and Macready, W. G. (1997): No Free Lunch Theorem for Optimization. In: IEEE Transactions on Evolutionary Computation 1 (1), 67 82.