Heuristic methods for vehicle routing problem with time windows

https://doi.org/10.1016/S0954-1810(01)00005-XGet rights and content

Abstract

This paper documents our investigation into various heuristic methods to solve the vehicle routing problem with time windows (VRPTW) to near optimal solutions. The objective of the VRPTW is to serve a number of customers within predefined time windows at minimum cost (in terms of distance travelled), without violating the capacity and total trip time constraints for each vehicle. Combinatorial optimisation problems of this kind are non-polynomial-hard (NP-hard) and are best solved by heuristics. The heuristics we are exploring here are mainly third-generation artificial intelligent (AI) algorithms, namely simulated annealing (SA), Tabu search (TS) and genetic algorithm (GA). Based on the original SA theory proposed by Kirkpatrick and the work by Thangiah, we update the cooling scheme and develop a fast and efficient SA heuristic. One of the variants of Glover's TS, strict Tabu, is evaluated and first used for VRPTW, with the help of both recency and frequency measures. Our GA implementation, unlike Thangiah's genetic sectoring heuristic, uses intuitive integer string representation and incorporates several new crossover operations and other advanced techniques such as hybrid hill-climbing and adaptive mutation scheme. We applied each of the heuristics developed to Solomon's 56 VRPTW 100-customer instances, and yielded 18 solutions better than or equivalent to the best solution ever published for these problems. This paper is also among the first to document the implementation of all the three advanced AI methods for VRPTW, together with their comprehensive results.

Introduction

Logistics may be defined as ‘the provision of goods and services from a supply point to various demand points’ [2]. A complete logistic system involves transporting raw materials from a number of suppliers or vendors, delivering them to the factory plant for manufacturing or processing, movement of the products to various warehouses or depots and eventually distribution to customers. Both the supply and distribution procedures require effective transportation management. Good transportation management can practically save a private company a considerable portion of its total distribution cost. Potential cost savings constitute: lowered trucking cost due to more optimal routes and shorter distances, reduced in-house space and related costs, less penalty incurred due to untimely delivery. One of the most significant measures of transportation management is effective vehicle routing. Optimising of routes for vehicles given various constraints is the origin of vehicle routing problems (VRPs).

Fig. 1 describes a typical VRP. The solution includes two routes: Depot→7→8→9→11→12→Depot; Depot→2→3→1→4→5→6→10→Depot. Sometimes the depot is denoted as 0. The vehicle routing problem with time windows (VRPTW) is a well-known non-polynomial-hard (NP-hard) problem, which is an extension of normal VRPs, encountered very frequently in making decisions about the distribution of goods and services. The problem involves a fleet of vehicles set off from a depot to serve a number of customers, at different geographic locations, with various demands and within specific time windows before returning to the depot. The objective of the problem is to find routes for the vehicles to serve all the customers at a minimal cost (in terms of travel distance, etc.) without violating the capacity and travel time constraints of the vehicles and the time window constraints set by the customers. To date, there is no consistent optimising algorithm that solves the problem exactly using mathematical programming. Instead, many heuristic methods have been designed to solve VRPTW to near optima.

In Marshall Fisher's survey [4], he categorised vehicle routing methods into three generations. The first generation was simple heuristics developed in the 1960s and 1970s, which were mainly based on local search or sweep. Since these earlier studies were not well documented, it is hard to compare the results they obtained 30 years ago with the more recent solutions. The second generation, mathematical programming based heuristics, were near-optimisation algorithms that are very different from normal heuristics. These include the generalised assignment problems and set partitioning to approximate the VRP. Their results are usually superior to that of simple heuristics [4], [20]. In fact for linear objective functions, some of these techniques are able to stretch to the optima. The third generation, or the one that is currently undergoing heavy research is exact optimisation algorithms and artificial intelligence methods. Among these, the most successful optimisation algorithms are K-tree, Lagrangian relaxation, etc., while the top AI representatives in VRPTW are simulated annealing (SA), Tabu search (TS) and genetic algorithms (GAs). These algorithms are discussed briefly as follows:

Kolen et al. [10] presented the method of branch and bound, which is among the first optimisation algorithms for VRPTW. The method calculates lower bounds using dynamic programming and state space relaxation. Branching decisions are taken on route-customer allocations. The method has successfully solved the problem involving 15 customers. Fisher [3] introduces an optimisation algorithm in which lower bounds are obtained from a relaxation based on a generalisation of spanning trees called K-trees. Capacity constraints are handled by introducing a constraint requiring that some set S, SC, of the set of customers must be served by at least k(S) vehicles. This constraint is Lagrangian relaxed and the resulting problem is still a K-tree problem with modified arc costs. Time window constraints are treated similarly. A constraint, requiring that not all arcs in a time violating path can be used, is generated and Lagrangian relaxed. The method has solved some of the 100-customer Solomon benchmark problems [18].

One of the effective approaches at present is the shortest path composition. The fundamental observation is, the only constraint which ‘links’ the vehicles together is that each customer in the network must be visited only once. The problem that consists of the rest of the constraints is an elementary shortest path problem with time windows and capacity constraints (ESPPTWCC) for each vehicle. Although this problem is strictly NP-hard, there are a few efficient dynamic programming algorithms for the slightly relaxed programs. Two decompositions have been investigated computationally, namely DantzigWolfe decomposition and variable splitting. Desrochers et al. [25] implemented Dantzig–Wolfe decomposition, and solved up to some of the 100-customer Solomon benchmark problems. Researchers at Technical University of Denmark [9], on the other hand, suggested using variable splitting to solve the VRPTW with similar performance.

Thangiah et al. [21] developed a λ-interchange local search descent (LSD) method that uses a systematic insertion and swapping of customers between routes, defined as λ-interchange operators. Due to computation burden, only 1-interchange and 2-interchange are commonly used, which allows up to one or two customers to be inserted or swapped at one time. Although it is a fast algorithm, the performance is poor without the help from other heuristics. SA, first proposed by Kirkpatrick [8], searches the solution space by simulating the annealing process in metallurgy. The algorithm jumps to distant location in the search space initially. The step of the jumps is reduced as time goes on or as the temperature ‘cools’. Eventually, the process will turn into a LSD method. Osman [14] has applied SA to solve the VRP by moving one customer from one route to another or exchanging two customers from two routes. TS is a memory-based search strategy that chooses the best solution contained in N(S) that does not violate certain restrictions that prevent cycling. Usually, these restrictions are stored as queues in a structure called a Tabu list. Typical restrictions prevent making a move that has been done within the last t iterations, and a solution that has been encountered in the last t iterations is usually forbidden as well. TS stops after a fixed number of iterations. Gerdreau et al. applied TS using a neighbourhood that can be constructed by moving a single customer from one route to another. Osman and Talliard [14] used a neighbourhood that consists of all solutions obtained from inserting a customer and swapping two customers.

Holland developed the GA [7] method that codes the VRPTW solutions in forms of bit strings or chromosomes. The method starts with a population of random chromosomes. Fitter chromosomes are then selected to undergo a crossover and mutation process, as to produce children which are different from the parents but inherit certain genetic traits from the parents. This process is continued until a fixed number of generations has been reached or the evolution has converged. Thangiah [22] devised a genetic sectoring heuristic with special genetic representation that keeps the polar angle offset in the genes. The algorithm follows a cluster-first, route-second philosophy and solved 100-customer Solomon problems to near optima. Prinetto et al. [16] proposed a hybrid GA for the travelling salesman problem (TSP) in which 2-opt and Or-opt were incorporated with the GA. Blanton and Wainwright [1] presented two new crossover operators, merge cross #1 and merge cross #2, which are superior to traditional crossover operators. Shaw [17] presented large neighbourhood search (LNS), a method in constraint programming, to solve VRPTW. Relatedness plays a very important part in the selection of customer to remove and re-insert into the configuration using a constraint-based tree search. Shaw applied limited discrepancy search during the tree search to re-insert visits. The results were competitive to those obtained using operations research meta-heuristics.

In this paper, we further investigate and develop various advanced AI techniques including SA, TS and GA to effectively solve the VRPTW to near optimal solutions. Based on the original SA theory proposed by Kirkpatrick [8] and the work by Thangiah [21], we update the cooling scheme and develop a fast and efficient SA heuristic. One of the variants of Glover's TS, strict Tabu, is evaluated and first used for VRPTW, with the help of both recency and frequency measures. Our GA implementation, unlike Thangiah's genetic sectoring heuristic [21], uses an intuitive integer string representation and incorporates several new crossover operations and other advanced techniques such as hybrid hill-climbing and adaptive mutation scheme. We have tested our heuristics with all 56 Solomon's VRPTW instances and obtained complete results for these problem sets. There are totally four heuristics tested on the instances: 2-interchange method, SA, Tabu and GA. Their average performances are compared with the best-known solutions in the literature. From the result analysis, our TS and GA are already close to the best ways of solving VRPTW. Totally, we found 18 solutions better than or equivalent to the best-known results. The discussion of results is given in Section 8. In this paper, we give a mathematical model of VRPTW, followed by the design and implementation of the heuristics. The computational results are presented and discussed in the final part of the paper.

Section snippets

Problem formulation

This section describes the notation and features that are common through this paper. The VRPTW constraints consist of a set of identical vehicles, a central depot node, a set of customer nodes and a network connecting the depot and customers. There are N+1 customers and K vehicles. The depot node is denoted as customer 0. Each arc in the network represents a connection between two nodes and also indicates the direction it travels. Each route starts from the depot, visits customer nodes and then

An initial solution

Most heuristic search strategies involve finding an initial feasible solution and then improving on that solution using local or global optimisation techniques. Here, we make use of the push forward insertion heuristic (PFIH), first introduced by Solomon [18] in 1987 as a method to create an initial route configuration. PFIH is an efficient method to insert customers into new routes.

The procedure is easy and straightforward. The method tries to insert the customer between all the edges in the

Local search with λ-interchange

The effectiveness of any iterative local search method is determined by the efficiency of the generation mechanism and the way the neighbourhood is searched. A λ-interchange generation mechanism was introduced by Osman and Christofides [13] for the capacitated clustering problem. It is based on customer interchange between sets of vehicle routes and has been successfully implemented with a special data structure to other problems by Osman [14], Thangiah [20], etc.

The local search procedure is

Simulated annealing

SA is a stochastic relaxation technique that finds its origin in statistical mechanics [11]. The SA methodology is analogous to the annealing processing of solids. In order to avoid the meta-stable states produced by quenching, metals are often cooled very slowly, which allows them time to order themselves into stable, structurally strong, low energy configurations. This process is called annealing. This analogy can be used in combinatorial optimisation with the states of the solids

Tabu search

TS is a memory-based search strategy, originally proposed by Glover [6], to guide the local search method to continue its search beyond a local optimum. The algorithm keeps a list of moves or solutions that have been made or visited in the past. This list, known as a Tabu list, is a queue of fixed or variable size. The purpose of the Tabu list is to record a number of most recent moves and prohibit any repetition or cycling. The memory can be recency or frequency based. In case of recency-based

Genetic algorithm

GA, originally developed by Holland [7], is an adaptive heuristic that simulates the optimisation process with the natural evolution of genes in a population of organisms as shown in Fig. 3. The GA maintains a population of candidate members over many generations. The population members are string entities of artificial chromosomes. Chromosomes are usually fixed length binary or integer strings. A special selection mechanism will pick up parents to go though crossover and mutation procedures

Computation results and comparisons

We conducted most of the tests on a Pentium II 266 MMX industrial Personal Computer with 32M RAM. Because of the varying nature of the algorithms developed, the duration of tests is also varying. For λ-interchange LSD (GB), the algorithm goes up to 20 iterations, but may terminate earlier if the local optimum is encountered. We did not specify the number iterations for the SA to run, instead we specify the number of resets that can be made before the program terminates. The parameter for SA is

Conclusion

The implementations of λ-interchange is a basic cornerstone of all the more complex heuristic algorithms. It clearly defines the meaning of λ-neighbourhood and the operators to explore such a neighbourhood. The method is simple and straightforward but useful in almost all kinds of local search procedures. Theoretically, a sequence of 2-interchange operations is able to bring the current solution to anywhere in the solution space.

We next studied SA and TS, two of the most talked-about

Acknowledgements

The authors wish to thank the editor J.C. Kunz and the anonymous reviewers for their valuable comments and helpful suggestions, which greatly improved the paper.

References (25)

  • Blanton Jr JL, Wainwright RL. Multiple vehicle routing with time and capacity constraints using genetic algorithms. In:...
  • S Eilon et al.

    Distribution management: mathematical modeling and practical analysis

    (1971)
  • Fisher ML, Jornsten KO, Madsen OBG. Vehicle routing with time windows. Working Paper,...
  • Fisher ML. Vehicle routing, Handbooks in operations research and management science, vol. 8. Amsterdam, New York:...
  • M Gendreau et al.

    A Tabu search heuristic for the vehicle routing problem

    Mgmt Sci

    (1994)
  • F Glover

    Manuel laguna, Tabu search

    (1997)
  • J.H Holland

    Adaptation in natural and artificial systems

    (1975)
  • S Kirkpatrick et al.

    Optimization by simulated annealing

    Science

    (1983)
  • Kohl N, Madson O. An optimization algorithm for the vehicle routing problem with time windows based on Lagrangian...
  • Kolen AWJ, Kan A.H.G.R., Trienekens HWJM. Vehicle routing with time windows Oper Res...
  • N Metropolis et al.

    Equations of state calculations by fast computing machines

    J Chem Phys

    (1953)
  • Oliver IM, Smith DJ, Holland JRC. A study of permutation crossover operations on the traveling salesman problem. In:...
  • Cited by (240)

    • Ant colony optimization for Chinese postman problem

      2024, Neural Computing and Applications
    View all citing articles on Scopus
    View full text