Skip to main content

Advertisement

Log in

A hybrid generational genetic algorithm for the periodic vehicle routing problem with time windows

  • Published:
Journal of Heuristics Aims and scope Submit manuscript

Abstract

We propose a new population-based hybrid meta-heuristic for the periodic vehicle routing problem with time windows. This meta-heuristic is a generational genetic algorithm that uses two neighborhood-based meta-heuristics to optimize offspring. Local search methods have previously been proposed to enhance the fitness of offspring generated by crossover operators. In the proposed method, neighborhood-based meta-heuristics are used for their capacity to escape local optima, and deliver optimized and diversified solutions to the population of the next generation. Furthermore, the search performed by the neighborhood-based meta-heuristics repairs most of the constraint violations that naturally occur after the application of the crossover operators. The genetic algorithm we propose introduces two new crossover operators addressing the periodic vehicle routing problem with time windows. The two crossover operators are seeking the diversification of the exploration in the solution space from solution recombination, while simultaneously aiming not to destroy information about routes in the population as computing routes is NP-hard. Extensive numerical experiments and comparisons with all methods proposed in the literature show that the proposed methodology is highly competitive, providing new best solutions for a number of large instances.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6

Similar content being viewed by others

References

  • Aiex, R.M., Resende, M.G.C., Ribeiro, C.C.: TTTPLOTS: a perl program to create time-to-target plots. Optim. Lett. 1, 355–366 (2007)

    Article  MATH  MathSciNet  Google Scholar 

  • Barbosa, H., Lemonge, A.: An adaptive penalty scheme in genetic algorithms for constrained optimization problems. In: Proceedings of the Genetic and Evolutionary Computation Conference, San Francisco, pp. 287–294. Morgan Kaufmann Publishers Inc. (2002)

  • Bräysy, O., Gendreau, M.: Vehicle routing problem with time windows, Part I: route construction and local search algorithms. Transp. Sci. 39(1), 104–118 (2005a)

    Article  Google Scholar 

  • Bräysy, O., Gendreau, M.: Vehicle routing problem with time windows, Part II: metaheuristics. Transp. Sci. 39(1), 119–139 (2005b)

    Article  Google Scholar 

  • Cordeau, J.-F., Maischberger, M.: A parallel iterated tabu search heuristic for vehicle routing problems. Comput. Oper. Res. 39(9), 2033–2050 (2012)

    Article  Google Scholar 

  • Cordeau, J.-F., Laporte, G., Mercier, A.: A unified tabu search heuristic for vehicle routing problems with time windows. J. Oper. Res. Soc. 52, 928–936 (2001)

    Article  MATH  Google Scholar 

  • Cordeau, J.-F., Desaulniers, G., Desrosiers, J., Solomon, M.M., Soumis, F.: The VRP with time windows. In: Toth, P., Vigo, D. (eds.) The Vehicle Routing Problem. SIAM Monographs on Discrete Mathematics and Applications, pp. 129–154. SIAM, Philadelphia (2002a)

    Google Scholar 

  • Cordeau, J.-F., Gendreau, M., Laporte, G., Potvin, J.-Y., Semet, F.: A guide to vehicle routing heuristics. J. Oper. Res. Soc. 53, 512–522 (2002b)

    Article  MATH  Google Scholar 

  • Cordeau, J.-F., Laporte, G., Mercier, A.: An improved tabu search algorithm for the handling of route duration constraints in vehicle routing problems with time windows. J. Oper. Res. Soc. 55, 542–546 (2004)

    Article  MATH  Google Scholar 

  • Cordeau, J.-F., Laporte, G., Savelsbergh, M.W.F., Vigo, D.: Vehicle routing. In: Barnhart, C., Laporte, G. (eds.) Transportation. Handbooks in Operations Research and Management Science, pp. 367–428. North-Holland, Amsterdam (2007)

    Google Scholar 

  • Crainic, T.G., Gendreau, M.: Towards an evolutionary method—cooperating multi-thread parallel tabu search hybrid. In: Voß, S., Martello, S., Roucairol, C., Osman, I.H. (eds.) Meta-Heuristics 98: Theory & Applications, pp. 331–344. Kluwer Academic Publishers, Norwell (1999)

    Google Scholar 

  • Crainic, T.G., Gendreau, M., Potvin, J.-Y.: Parallel Tabu Search. Wiley, New York (2005)

    Google Scholar 

  • Crainic, T.G., Toulouse, M.: Parallel meta-heuristics. In: Gendreau, M., Potvin, J.-Y. (eds.) Handbook of Metaheuristics, pp. 497–541. Springer, New York (2010)

    Chapter  Google Scholar 

  • Dongarra, J.J.: Performance of various computers using standard linear equations software. Technical Report, University of Tennessee (2013)

  • El-Mihoub, T.A., Hopgood, A.A., Nolle, L., Battersby, A.: Hybrid genetic algorithms: a review. Eng. Lett. 13(2), 124–137 (2006)

    Google Scholar 

  • García-Martínez, C., Lozano, M.: Local search based on genetic algorithms. In: Siarry, P., Michalewicz, Z. (eds.) Advances in Metaheuristics for Hard Optimization. Natural Computing Series, pp. 199–221. Springer, Berlin (2008)

    Chapter  Google Scholar 

  • Gendreau, M., Potvin, J.-Y.: Metaheuristics in combinatorial optimization. Ann. Oper. Res. 140(1), 189–213 (2005)

    Article  MATH  MathSciNet  Google Scholar 

  • Gendreau, M., Laporte, G., Potvin, J.-Y.: Metaheuristics for the vehicle routing problem. In: Toth, P., Vigo, D. (eds.) The Vehicle Routing Problem. SIAM Monographs on Discrete Mathematics and Applications, pp. 129–154. SIAM, Philadelphia (2002)

    Google Scholar 

  • Golden, B.L., Assad, A.A., Wasil, E.A.: Routing vehicles in the real world: applications in the solid waste, beverage, food, dairy, and newspaper industries. In: Toth, P., Vigo, D. (eds.) The Vehicle Routing Problem, pp. 245–286. SIAM, Philadelphia (2002)

    Chapter  Google Scholar 

  • Golden, B.L., Raghavan, S., Wasil, E.A.: The Vehicle Routing Problem: Latest Advances and New Challenges. Springer, Berlin (2008)

    Book  Google Scholar 

  • Hartl, R., Hasle, G., Jansens, G.E.: Special issue on rich vehicle routing problems. Cent. Eur. J. Oper. Res. 13(2), 103–104 (2006)

    Article  Google Scholar 

  • Ishibuchi, H., Narukawa, K.: Some issues on the implementation of local search in evolutionary multiobjective optimization. In: Proceedings of Genetic and Evolutionary Computation Conference, LNCS, pp. 1246–1258 (2004)

  • Knowles, J., Corne, D.: Memetic algorithms for multiobjective optimization: issues, methods and prospects. In: Krasnogor, N., Smith, J.E., Hart, W.E. (eds.) Recent Advances in Memetic algorithms, pp. 325–332. Springer, Berlin (2000)

    Google Scholar 

  • Laporte, G., Semet, F.: Classical heuristics for the vehicle routing problem. In: Toth, P., Vigo, D. (eds.) The Vehicle Routing Problem. SIAM Monographs on Discrete Mathematics and Applications, pp. 109–128. SIAM, Philadelphia (2002)

    Google Scholar 

  • Laporte, G., Gendreau, M., Potvin, J.-Y., Semet, F.: Classical and modern heuristics for the vehicle routing problem. Int. Trans. Oper. Res. 7(4/5), 285–300 (2000)

    Article  MathSciNet  Google Scholar 

  • Lenstra, J.K., Rinnooy Kan, A.H.G.: Complexity of vehicle routing and scheduling problems. Networks 11(2), 221–227 (1981)

    Article  Google Scholar 

  • Lin, S.: Computer solutions of the traveling salesman problem. Bell Syst. Tech. J. 44, 2245–2269 (1965)

    Article  MATH  Google Scholar 

  • Lü, Z., Glover, F., Hao, J.-K.: A hybrid metaheuristic approach to solving the UBQP problem. Eur. J. Oper. Res. 207(3), 1254–1262 (2010)

    Article  MATH  Google Scholar 

  • Merz, P., Katayama, K.: Memetic algorithms for the unconstrained binary quadratic programming problem. BioSystems 99–118, 2004 (2004)

    Google Scholar 

  • Or, I.: Traveling Salesman-Type Combinatorial Problems and Their Relation to the Logistics of Blood Banking. PhD Thesis, Department of Industrial Engineering and Management Science, Northwestern University, Evanston (1976)

  • Osman, I.H.: Metastrategy simulated annealing and tabu search algorithms for the vehicle routing problem. Ann. Oper. Res. 41, 421–452 (1993)

    Article  MATH  Google Scholar 

  • Pirkwieser, S., Raidl, G.R.: A variable neighborhood search for the periodic vehicle routing problem with time windows. In: Proceedings of the 9th EU/MEeting on Metaheuristics for Logistics and Vehicle Routing, Troyes (2008)

  • Pirkwieser, S., Raidl, G.R.: Boosting a variable neighborhood search for the periodic vehicle routing problem with time windows by ILP techniques. In: Proceedings of the 8th Metaheuristic International Conference (MIC 2009), Hamburg (2009a)

  • Pirkwieser, S., Raidl, G.R.: Multiple variable neighborhood search enriched with ILP techniques for the periodic vehicle routing problem with time windows. In: Proceedings of Hybrid Metaheuristics—Sixth International Workshop, Udine, vol. 5818 of LNCS, pp. 45–59. Springer, New York (2009b)

  • Pirkwieser, S., Raidl, G.R.: Matheuristics for the periodic vehicle routing problem with time windows. In: Proceedings of the 3rd International Workshop on Model-Based Metaheuristics (Metaheuristics 2010), Vienna (2010)

  • Potvin, J.-Y., Rousseau, J.-M.: A parallel route building algorithm for the vehicle routing and scheduling problem with time windows. Eur. J. Oper. Res. 66(3), 331–340 (1993)

    Article  MATH  Google Scholar 

  • Potvin, J.-Y., Rousseau, J.-M.: An exchange heuristic for routing problems with time windows. J. Oper. Res. Soc. 46, 1433–1446 (1995)

    Article  MATH  Google Scholar 

  • Solomon, M.M.: Algorithms for the vehicle routing and scheduling problems with time window constraints. Oper. Res. 35, 254–265 (1987)

    Article  MATH  MathSciNet  Google Scholar 

  • Taillard, E.D., Badeau, P., Gendreau, M., Guertin, F., Potvin, J.-Y.: A tabu search heuristic for the vehicle routing problem with soft time windows. Transp. Sci. 31, 170–186 (1997)

    Article  MATH  Google Scholar 

  • Toth, P., Vigo, D.: The Vehicle Routing Problem. Society for Industrial and Applied Mathematics, Philadelphia (2002)

    Book  MATH  Google Scholar 

  • Vidal, T., Crainic, T.G., Gendreau, M., Prins, C.: A hybrid genetic algorithm with adaptive diversity management for a large class of vehicle routing problems with time-windows. Comput. Oper. Res. 40(1), 475–489 (2013)

    Article  MathSciNet  Google Scholar 

Download references

Acknowledgments

While working on this project, the second author was the NSERC Industrial Research Chair in Logistics Management, ESG UQAM, and Adjunct Professor with the Department of Computer Science and Operations Research, Université de Montréal, and the Department of Economics and Business Administration, Molde University College, Norway. Partial funding for this project has been provided by the Natural Sciences and Engineering Council of Canada (NSERC), through its Industrial Research Chair, Collaborative Research and Development and Discovery Grants programs. We also gratefully acknowledge the support of Fonds de recherche du Québec through their infrastructure grants and of Calcul Québec and Compute Canada through access to their high-performance computing infrastructure.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Michel Toulouse.

Appendices

Appendix 1: The UTS and RVNS meta-heuristics

This Appendix briefly presents the two meta-heuristics that have been implemented for the offspring education procedure.

1.1 Unified tabu search

UTS (Cordeau et al. 2004) uses its own penalty coefficients, \(\alpha _1,\,\alpha _2\), and \(\alpha _3\), for violations of vehicle capacity, route duration and customer service time window constraints, respectively. The cost function of a solution \(s\) then becomes \(f(s)\) = \(c(s)\) + \(\alpha _1 q(s)\) + \(\alpha _2 d(s)\) + \(\alpha _3 w(s)\).

An attribute set \(B(s) =\) {\((i,k,l):\) customer \(i\) is visited by vehicle \(k\) on day \(l\)} is associated to each solution \(s\). Let \(b_{rl}\) be a binary constant equal to 1 if and only if day \(l\) belongs to pattern \(r\), for each pattern \(r \in R\) and every day \(l \in \mathcal{T}\) of solution \(s\). The neighborhood \(N(s)\) of a solution \(s\) is then defined by two transformations to (1) relocate a customer within a day (routing modification), and (2) replace the pattern of a customer (pattern modification):

  1. (1)

    Remove customer \(i\) from route \(k\) on day \(l\) and insert it into another route \(k'\).

  2. (2)

    Replace pattern \(r\) currently assigned to customer \(i\) with another pattern \(r' \in R_i\); Then, for \(l=1, \ldots ,t\) do

    • If \(b_{rl}\) = 1 and \(b_{r'l}\) = 0, remove customer \(i\) from its route of day \(l\);

    • If \(b_{rl}\) = 0 and \(b_{r'l}\) = 1, insert customer \(i\) into the route of day \(l\) minimizing the increase in fitness \(f(s)\).

UTS starts from a given offspring \(s\) and chooses, at each iteration, the best non-tabu solution in \(N(s)\). After each iteration, the values of the parameters \(\alpha _1,\,\alpha _2\), and \(\alpha _3\) are modified by a factor \(1+ \delta \); multiplied by the factor if the solution is feasible with respect to the respective constraint, divided, otherwise. We set \(\delta = 0.5\), the best value reported by the authors (Cordeau et al. 2004).

To diversify the search, any solution \(\overline{s} \in N(s)\) such that \(f(\overline{s}) \ge f(s)\) is penalized by a factor \(p(\overline{s})\) proportional to the addition frequency of its attributes, \(p(\overline{s}) = \lambda c(\overline{s})\sqrt{nm}\sum _{(i,k,l) \in B(\overline{s})} {\rho _{ikl}}\), where \(\rho _{ikl}\) is the number of times attribute \((i,k,l)\) has been added to the solution during the search process and \(\lambda = 0.015\).

The tabu length was adjusted to a smaller number of iterations performed and set to \(\theta \) = \(1.5log_{10}(n)\). The post-optimization heuristic is not implemented in the education procedure. The UTS procedure returns the best feasible solution \(s_1\) if it exists, the best infeasible solution \(s_2\), otherwise. The procedure is summarized in Algorithm 3.

figure c

1.2 Random Variable Neighborhood Search (RVNS)

RVNS (Pirkwieser and Raidl 2008) uses three different neighborhood structures. For each of these structures, the authors defined six moves, hence resulting in a total of 18 neighborhoods: (1) randomly changing patterns of customers, (2) moving a random segment of customers of a route to another route on the same day, and (3) exchanging two random segments of customers between two routes on the same day. In the latter two cases, the segments are reversed with a small probability, \(p_{rev} = 0.1\). The neighborhoods are summarized in Table 10.

Table 10 Neighborhood structures of RVNS

RVNS starts with a random neighborhood ordering and generates a new ordering each time a full VNS iteration is completed. For intensification, RVNS applies 2-opt in a best-improvement fashion. Additionally, each new incumbent solution is subject to a 2-opt*. RVNS accepts solutions which degrade the objective value under the Metropolis criterion, like in simulated annealing. Thus, an inferior solution \(s'\) is accepted with probability \(e^{-(f(s') - f(s))/T}\), depending on the cost difference to the current solution \(s\) relative to the temperature \(T\). A linear cooling scheme is applied, \(T\) being decreased every \(\tau \) iterations by an amount of \((T*\tau )/\tau _{max}\), where \(\tau _{max}\) denoted the maximal VNS iterations. The value of \(\tau \) was adjusted to the smaller number of iterations performed and set to \(\tau =10\), the initial temperature value \(T_0 = 10\), and \(\tau _{max}\) = [100, 800]. The detailed description of the implementation is given in Algorithms 4 and 5.

figure d
figure e

Appendix 2: Detailed results

Table 11 summarizes the HGGA results for the Pirkwieser and Raidl (2009a) instances with and without travel cost truncation. The algorithm was run 10 times per instance. Best results, average results, standard deviations, and computation time are reported. Vidal et al. (2013) are the only one to provide the best solutions for their algorithm (VCGP13), and for the truncation case only.

Table 11 HGGA results on Pirkwieser and Raidl (2009a) instances with and without travel cost truncation

We therefore also include these best results of the truncation case in the column VCGP13 for comparison purposes. The “GAP Best-to-Best” column displays the gaps of the best solutions obtained by HGGA with respect to those of VCGP13.

Rights and permissions

Reprints and permissions

About this article

Cite this article

Nguyen, P.K., Crainic, T.G. & Toulouse, M. A hybrid generational genetic algorithm for the periodic vehicle routing problem with time windows. J Heuristics 20, 383–416 (2014). https://doi.org/10.1007/s10732-014-9244-3

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s10732-014-9244-3

Keywords

Navigation