HOME JOURNALS CONTACT

Information Technology Journal

Year: 2012 | Volume: 11 | Issue: 10 | Page No.: 1490-1495
DOI: 10.3923/itj.2012.1490.1495
A Modified Artificial Bee Colony Algorithm for Vehicle Routing Problems with Time Windows
Yan-Jun Shi, Fan-Wei Meng and Guo-Jiang Shen

Abstract: Vehicle routing problems with time windows (VRPTW for short) is an NP-hard problem and an extension of vehicle routing problems. This study presented a heuristic algorithm (ABC-T) to deal with vehicle routing problems with time windows. The ABC-T algorithm employed the artificial bee colony algorithm (known as ABC) and improved the global search capacity with tournament selection strategy. In this algorithm, the employed bees generated the new solutions by the neighborhood search; then, based on the tournament selection strategy, the food source selection probability was settled. Finally, the new solution was generated by the onlooker bees. The tournament selection strategy was used here to enhance the global search capacity of the ABC. Compared with the state-of-the-art algorithms available in the literature, the effectiveness of this approach was showed on the Solomon’s R102 problem.

Fulltext PDF Fulltext HTML

How to cite this article
Yan-Jun Shi, Fan-Wei Meng and Guo-Jiang Shen, 2012. A Modified Artificial Bee Colony Algorithm for Vehicle Routing Problems with Time Windows. Information Technology Journal, 11: 1490-1495.

Keywords: tournament selection, Vehicle routing, artificial bee colony algorithm and time windows

INTRODUCTION

The Vehicle Routing Problem (VRP) is a classical NP-hard problem in scheduling which is first proposed by Dantzig and Ramser (1959). The problem is widely applicable in modern logistics, such as the post deliver problem, power scheduling problem and production scheduling. The objective here is to find the determination of the optimal set of routes to be performed by a series of vehicles to serve a given set of customers (Solomon, 1987). Previous studies (Sharma et al., 2006; Ibrahim, 2007; Ghoseiri and Ghannadpour, 2009; Chang and Huang, 2011) have proposed several meta-heuristics which have been successfully applied to solve VRP problems with better robustness and higher calculating speed.

Due to the enormous complexity of the constraints in reality, the classical method for the VRP often turns out to be unsatisfactory. As an extension of the VRP, the VRP with Time Windows (VRPTW for short) (Solomon, 1987) which is always considered in practical problems. The VRPTW is a combinatorial optimization problem with constraints. It is customary to resort to heuristic methods to solve such an NP-hard problem (Bramel and Simchi-Levi, 1996) and a satisfactory solution will be obtained within a limited time. Previous studies have proposed several meta-heuristics to solve the VRPTW problems with better robustness and higher calculating speed (such as Genetic Algorithm, Scatter Search, Ant Colony Algorithm, etc.) (Russell and Chiang, 2006; Zhen et al., 2008; Liu and Huang, 2010) are widely used in VRPTW problems for high efficiency. Moccia and Cordeau (2011) proposed an improved Tabu search algorithm for the VRPTW problem and the test results demonstrated the effectiveness of the employed algorithm. Balseiro et al. (2011) presented an hybrid ant colony algorithm for the Time-Dependent Vehicle Routing Problem with Time Windows which was confirmed by the experimental results. In study Chen (2010), a mixed binary integer programming model was developed for solving the job scheduling with delivery vehicles routing problem. Bettinelli et al. (2011) put forward a branch-and-cut-and-price algorithm with different pricing and cutting techniques for the VRPTW. The studies (Sadouni, 2006; Pavone et al., 2009; Baldacci et al., 2011; Cordeau and Maischberger, 2011; Pureza and Morabito, 2011) had presented other strategies for the VRPTW problems. In our previous studies (Wu et al., 2011), fuel consumption optimization based on the common objectives of VRPTW was put forward. A model was built for fuel consumption with two steps for the fuel consumption objective. The test results showed that the suggested method had a better performance for the VRP problems. Different from the previous research, this study attempts to show the feasibility and effectiveness of a modified artificial bee colony algorithm (ABC-T for short) for the VRPTW problems.

Artificial Bee Colony (ABC) Algorithm is proposed by Karaboga (2005) which is a random optimization algorithm based on bee colony intelligent search behavior. With the local searching of each bee, the global optimal solution will be obtained quickly. Rather than deterministic rules, the probabilistic rules employed by the ABC algorithm, achieve great robustness and wide applicability for solving NP-hard problems. In view of characteristic of the ABC algorithm, the ABC algorithms have been used to deal with the constrained optimization problems. Abu-Mouti and El-Hawary (2011) presented a new optimization approach that employed the ABC algorithm to confirm the optimal DG-unit's size, power factor and location in order to minimize the total system real power loss. Zielonka et al. (2011) presented an improved ABC algorithm for solving the inverse heat conduction problems, with the state function and some boundary conditions consisted. Karaboga and Ozturk (2009) successfully applied the ABC algorithm for the neural networks training problem in the machine learning community. Shi et al. (2011) proposed a modified artificial bee colony algorithm (ABC-G for short) to deal with a satellite module layout design problem, with the target for arranging a set of components in the simplified satellite module. The difference from the above research is that this study attempted to provide an improved version of ABC algorithm for the VRPTW problem by employing Tournament Selection. In our proposed ABC-T algorithm, the Tournament Selection strategy was employed to guarantee the global convergence as well as the converging rate and the stability effectively. The experimental tests can show the feasibility and effectiveness of the proposed ABC-T algorithm.

BRIEF DESCRIPTION FOR THE VRPTW PROBLEM

The VRPTW can be formally described as follows: A number of vehicles are assigned to serve for consumers at different positions with different demands for goods and they must arrive at the destinations within the allowed service access time windows (ei, li). At the same time, each consumer can only call for one vehicle but the same vehicle is allowed to serve more than one consumer. All the vehicles must return distribution center before closing time. It’s assumed that all the vehicles are same with the load capacity q. On the conditions above, the objective function of the VRPTW is how to minimize the delivery cost. cij, denotes the travel cost from consumer i to consumer j, i.e. the distance between them; C and A represent the consumer set and the edge set, respectively. V is the vehicle set; the demand of consumer i is di; the travel time from consumer i to consumer j is tij, the start time when vehicle k serve for consumer i is bik. The mathematical model can be described as follows:

Equation (1) gives the objective function that is as follows:

(1)

(2)

It constrains that each consumer can only be served once:

(3)

It makes up the capacity restriction:

(4-6)

Equations 4-6 ensure that each vehicle starts serving from distribution center and returns distribution center after finishing its work:

(7)

It prohibits the vehicle which running from consumer i to consumer j from arriving at the consumer j before the time bik+tij:

(8)

It is the constraint of the time window:

(9)

Eq. 9 is the integer constraint.

THE ABC-T ALGORITHM

The original ABC algorithm
The artificial bee colony consists of the following three parts: Employed bees, onlookers and scouts in the ABC algorithm. The number of employed bees is equal to number of onlookers, the number of scouts is 1 in each cycle. Both the employed bees and the onlookers have the responsibility to execute exploitation; however the responsibility of scouts is to perform exploration. So the ABC algorithm combines the global hunt and local hunt methods which allows the bees in the two aspects of the exploration and exploitation of food sources to achieve a better balance.

When the ABC algorithm is employed for solving problems, the location of food sources is abstract as the point in the solution space and the process of bee seeking honey is the procedure of finding optimal solution. As the global optimization problem (P), min{f(X);XεS⊂Rn}, the set of several feasible solution of the problem (P) is called a population and each element in the population (feasible solution) is known as a food source. The performance of each food source depends on fitness value of the optimization problem and the solution number (SN) is equal to number of employed bees or onlookers. The d-dimensional vector Xi(xi1, x2,....,SN) is adopted to represent the position of the ith food sources. First, the ABC algorithm generates the initial population of containing the SN solutions and each solution Xi (i = 1,2,...,SN) is a d-dimensional vector. Then, the bees make cyclic searching of all the food sources with the number of cycles C (C = 1,2,...,MCN). First of all, the employed bees have a neighborhood search for the corresponding food source (solution). If the nectar’s quality (fitness) of the searched food source (solution) is better than that of the former, then this new food source position is adopted to replace the old food source position; otherwise to maintain the old food source location. After the whole employed bees completed search, they will get back to the dance area and bring the information of nectar’s quality to onlookers via waggle dance. Onlookers will select food source according to the selection probability on the basis of information obtained. The more nectar of food sources, the bigger probability to be selected. Once the onlookers select food source, they also have a neighborhood search and retain a better solution. The ABC algorithm is such a loop search and ultimately obtains the optimal solution.

The original ABC algorithm adopts Proportional Fitness Selection strategy (Karaboga, 2005) as the selection approach. That means the bigger the individual fitness is, the higher the selected probability is and vice versa. However, is rather small, some extraordinary individuals are generated sometimes. These extraordinary individuals are too competitive to control the selection operation and the global search capacity is restricted. Conversely, if the fitness of individuals is equivalent or close, the elite individuals maybe not have a better opportunity, so that the convergence of the algorithm slows down. In order to deal with this drawback, this study proposes a modified the ABC algorithm using the Tournament selection strategy (ABC-T for short) for solving the VRPTW problem.

The ABC-T algorithm
(1) Representation and decoding procedure for the ABC-T algorithm: The VRPTW problem is a kind of combinatorial optimization problem based on sequence. In order to reduce the invalid solutions, the following representation and decoding procedure is adopted: the Natural Number Progression (Tan et al., 2001) is generated at random and then the routes are decoded by employing a route decoding operator based on Greedy approach (Cormen et al., 1990). Take the progression “2 7 6 1 5 8 4 3” as an example. The decoding operator put “2” in the first route to judge, whether it meets the constraints. If “2” meets the constraints, try to put “7” in the first route. Then decoding procedure judges whether “7” meets the constraints, if not, begin to hew out the second route with “7”. Continue the judgment until decoding procedure is finished. Taking N as population size, the initial population is formed by generating N individuals at random. Owing to a mass of constraints in VRPTW problems, most of the randomly generated solutions are infeasible. Using the above representation and decoding procedure not only ensures the number of feasible solutions but also describes the characteristics of VRPTW more intuitively.

(2) Fitness calculation: According to the target function, this study chooses the shortest distance as the target, so the fitness function f (i) is the reciprocal of the distance. The longer the distance is, the lower the fitness value. As for the onlookers, the lower the gains of food source, the smaller probability to choose that food source.

(3) Search strategy: In the original ABC algorithm, based on the traditional neighborhood search, the results usually are numbers with a fraction. Due to the non-integer results are not suitable for Natural Number coding of the VRPTW problem, this paper adopts the neighborhood search approach as follows: an appointed solution firstly generates an interval (k, j) randomly and then the numbers of the interval are poured preface alignment.

(4) Tournament selection strategy: Selection strategy used by the original ABC algorithm requires that fitness function value is bigger than zero. However, in Tournament Selection Miller and Goldberg (1996) adopted the diversified principles. Tournament selection involves running several “tournaments” among a few individuals chosen at random from the population. This selection strategy has been employed for strengthening algorithms performances, such as in of study (Wasan, 2008; Luo et al., 2009; Chiu, 2010; Dong-Feng and Feng, 2010). Its major concept is selecting k individuals in population randomly and selecting the one whose fitness value is the biggest. Parameter k is called the competition size. Using the Tournament selection, this algorithm carries out the multiple comparisons between the fitness values of the two individuals in the tth generation. If the current value of the individual is better than another one, then the individual is awarded one point every time and repeat this process for each individual. The one who gets the highest mark, its weight is also the largest. This selection way makes the individual which has a better fitness has a greater survival opportunity. At the same time, by the reason of the Tournament selection takes the relative value of the fitness as the criteria, therefore, it’s not direct proportional to the fitness value. This treatment reduces the influence of the super individual in algorithm and avoids the premature convergence and stagnation phenomenon to a certain extent. According to the principles above, the selection probability of fi is:

ai is the final mark of ith individual after the comparisons and SN is the number of the whole solutions.

(5) Food source update strategy: If a solution has not reached the requirement after limit times loops, this solution should be abandoned and a new solution will be randomly generate. In order to ensure the convergence of the algorithm, the ABC-T algorithm carries out the following operation in the scout stage. When the abandoned solution is current optimum, if the generated new solution has better fitness value, the new one will replace the abandoned one as the new current optimum. Otherwise, current optimum maintains at present and the inner circulation is reset. When the abandoned solution is not the current optimum, a new solution is randomly generated to replace the abandoned solution. This method ensures that the current optimum solution is not discarded and avoids convergence failure. Furthermore, the scouts have not been confined looking for a new food source to help the algorithm avoid sinking into the local optimal solution.

Main process of the ABC-T algorithm:

Step 1 : Population initialization and the solutions of initial population are xi, i = 1,2,...,SN. Then calculate the fitness value of each solution xi
Step 2 : The employed bees generate the new solutions vi by the neighborhood search and the fitness values of vi are calculated separately
Step 3 : If vi has better fitness value, vi replaced as xi the current optimum, otherwise keeping xi unchanged
Step 4 : Based on the Tournament selection, calculate probability Pi associated with xi
Step 5 : Onlookers choose their food source (solution) on the basis of Pi and generate new solutions ri by the neighborhood search with their fitness values being calculated
Step 6 : Carry out the calculation to judge whether ri should replace xi based on the fitness values
Step 7 : Determine the current solution should be discarded and if necessary, the scouts will produce a new solution ti to replace it
Step 8 : Record the best solution so far
Step 9 : Meeting the end condition and output the best result, otherwise return Step 2

EXPERIMENTS

The ABC-T algorithm was applied to the standard instance R102 from Solomon’s benchmark short horizon problems (Solomon, 1987). The R102 benchmark can be described as follows: there is only one distribution center to serve for 100 consumers at different positions with different demands for goods; all the vehicles are same with the load capacity 200; the earliest departure time of each vehicle is 0 and the latest time is 230; the time for serving each consumer is 10. The detailed data of R102 is listed in Table 1.

The ABC-T algorithm was implemented in MATLAB R2010b and all the experiments were performed on a computer with 1.99 GHz CPU and 2 GB RAM running the Windows XP operating system. In the preliminary experiments, trial-and-error approach was used to obtain suitable control parameters values for the proposed algorithm. Some control parameters were settled as followings: the number of the population, = 100; the number of both the employed bees and the onlooker bees is 25; limit = 10. Running the program for 8 times and Table 2 listed the results of the proposed ABC-T algorithm for R102 problem.

The performances of ABC-T and several approaches from the literature with R102 benchmark were shown in Table 3. This study compared ABC-T with Zhen et al. (2008), Hashimoto et al. (2008), Liu and Huang (2010) and Figliozzi (2010).

Table 1: The detailed data of R102

Table 2: The results of the proposed ABC-T algorithm for R102 problem with 8 times

Table 3: The performances of ABC-T and several approaches

Figliozzi (2010) employed the Iterative Route Construction and Improvement (IRCI) Algorithm for R102 benchmark which obtained the best effect so far. Make comparisons with others’ results, the ABC-T algorithm ranked 2nd with the shortest distance. The ABC-T ranked 2nd for R102 showed that ABC-T can produce better solutions for the VRPTW problems. That is to say, the ABC-T algorithm can solve the large-scale VRPTW problems effectively.

The reason for the improved performance is that ABC-T combines the advantages of the ABC algorithm and the Tournament selection approach. The artificial bee colony algorithm is based on the local optimization of each bee individual behavior and ultimately achieves the global optimum of the group with a fast convergence rate. The positive feedback mechanism between the employed bees and the onlooker bees can accelerate the evolutionary process to a certain extent. Furthermore, with the persisting information exchange among the bees, it is imperative in finding better resolution. What is worth mentioning is that the original ABC algorithm adopts Proportional fitness selection strategy as the selection approach and some extraordinary individuals are generated sometimes. These extraordinary individuals are too competitive to control the selection operation and the global search capacity is restricted. Since using the Tournament selection approach, the ABC-T algorithm has been guaranteed the global convergence as well as the converging rate and the stability effectively.

CONCLUSIONS

This study proposed a heuristic algorithm combining the artificial bee colony algorithm (ABC-T) and the tournament selection strategy to solve the vehicle routing problems with time windows. The computational results of the ABC-T algorithm were compared with the state-of-the-art heuristics on the standard benchmark. The experimental results showed that, ABC-T performed well compared with other algorithms for the VRPTW problems. This study also showed that the ABC-T is a promising method for solving the VRPTW problems. Further studies will focus on such as the theory of convergence, the improvements combining with other algorithms, the application in the complex field and so on. Enhancing the applicability and efficiency of the proposed ABC-T algorithm for various complex real-world scheduling problems still need further research.

ACKNOWLEDGMENT

This work was supported by National Natural Science Foundation of P.R. China (Grant No. 50975039).

REFERENCES

  • Abu-Mouti, F.S. and M.E. El-Hawary, 2011. Optimal distributed generation allocation and sizing in distribution systems via artificial bee colony algorithm. IEEE Trans. Power Delivery, 26: 2090-2101.
    CrossRef    


  • Baldacci, R., E. Bartolini and A. Mingozzi, 2011. An exact algorithm for the pickup and delivery problem with time windows. Oper. Res., 59: 414-426.
    CrossRef    Direct Link    


  • Balseiro, S.R., I. Loiseau and J. Ramonet, 2011. An ant colony algorithm hybridized with insertion heuristics for the time dependent vehicle routing problem with time windows. Comput. Oper. Res., 38: 954-966.
    CrossRef    


  • Bettinelli, A., A. Ceselli and G. Righini, 2011. A branch-and-cut-and-price algorithm for the multi-depot heterogeneous vehicle routing problem with time windows. Transp. Res. Part C Emerg. Technol., 19: 723-740.
    CrossRef    


  • Bramel, J. and D. Simchi-Levi, 1996. Probabilistic analyses and practical algorithms for the vehicle routing problem with time windows. Oper. Res., 44: 501-509.
    Direct Link    


  • Chang, Y.C. and W.T. Huang, 2011. A modification of simplified drum-buffer-rope for re-entrant flow shop scheduling. Inform. Technol. J., 10: 40-50.
    CrossRef    Direct Link    


  • Chen, J.S., 2010. Integration of job scheduling with delivery vehicles routing. Inform. Technol. J., 9: 1202-1206.
    CrossRef    Direct Link    


  • Chiu, M.C., 2010. Numerical assessment of path planning for an autonomous robot passing through multi-layer barrier systems using a genetic algorithm. Inform. Technol. J., 9: 1483-1489.
    CrossRef    Direct Link    


  • Cordeau, J.F. and M. Maischberger, 2011. A parallel iterated tabu search heuristic for vehicle routing problems. Comput. Oper. Res., 39: 2033-2050.
    CrossRef    


  • Dantzig, G.B. and J.H. Ramser, 1959. The truck dispatching problem. Manage. Sci., 6: 80-91.
    CrossRef    Direct Link    


  • Dong-Feng, W. and X. Feng, 2010. Multi-objective optimization problems with arena principle and NSGA-II. Inform. Technol. J., 9: 381-385.
    CrossRef    Direct Link    


  • Figliozzi, M.A., 2010. An iterative route construction and improvement algorithm for the vehicle routing problem with soft time windows. Trans. Res. Part C: Emerging Technol., 18: 668-679.
    CrossRef    


  • Ghoseiri, K. and S.F. Ghannadpour, 2009. Hybrid genetic algorithm for vehicle routing and scheduling problem. J. Applied Sci., 9: 79-87.
    CrossRef    Direct Link    


  • Cormen, T.H., C.E. Leiserson and R.L. Rivest, 1990. Introduction to Algorithms. MIT Press, New York, USA


  • Hashimoto, H., M. Yagiura and T. Ibaraki, 2008. An iterated local search algorithm for the time-dependent vehicle routing problem with time windows. Discrete Optim., 5: 434-456.
    CrossRef    


  • Ibrahim, A.A., 2007. Graph algorithms and shortest path problems: A case of djikstra`s algorithm and the dual carriage ways in Sokoto metropolis. Trends Applied Sci. Res., 2: 348-353.
    CrossRef    Direct Link    


  • Sharma, S., R.C. Jain and S.S. Bhadauria, 2006. Simulation study of congestion adaptive routing algorithm for mobile Ad hoc network. Trends Applied Sci. Res., 1: 368-378.
    CrossRef    Direct Link    


  • Karaboga, D., 2005. An idea based on honey bee swarm for numerical optimization. Technical Report-TR06, Erciyes University, Engineering Faculty, Computer Engineering Department, Kayseri, Turkey, October 2005. http://mf.erciyes.edu.tr/abc/pub/tr06_2005.pdf.


  • Karaboga, D. and C. Ozturk, 2009. Neural networks training by artificial bee colony algorithm on pattern classification. Neural Network World, 19: 279-292.


  • Liu, C.S. and F.H. Huang, 2010. An effective genetic algorithm for the vehicle routing problem with time windows. Key Eng. Mat., 439: 247-250.


  • Luo, H., Y. Lv, X. Deng and H. Zhang, 2009. Optimization of adaptation gains of full-order flux observer in sensorless induction motor drives using genetic algorithm. Inform. Technol. J., 8: 577-582.
    CrossRef    Direct Link    


  • Miller, B.L. and D.E. Goldberg, 1996. Genetic algorithms, selection schemes and the varying effects of noise. Evolut. Comput., 4: 113-131.
    CrossRef    


  • Moccia, L., J.F. Cordeau and G. Laporte, 2011. An incremental tabu search heuristic for the generalized vehicle routing problem with time windows. J. Operat. Res. Soc., 63: 232-244.
    CrossRef    


  • Pavone, M., N. Bisnik, E. Frazzoli and V. Isler, 2009. A stochastic and dynamic vehicle routing problem with time windows and customer impatience. Mobile Networks Applicat., 14: 350-364.
    CrossRef    


  • Pureza, V. and R. Morabito, 2011. Vehicle routing with multiple deliverymen: Modeling and heuristic approaches for the VRPTW. Europ. J. Operat. Res., 211: 35-46.


  • Russell, R.A. and W.C. Chiang, 2006. Scatter search for the vehicle routing problem with time windows. Europ. J. Operat. Res., 169: 606-622.
    CrossRef    


  • Sadouni, K., 2006. Heterogeneous fleet vehicle routing problem with time windows and nonlinearly penalized delays. J. Applied Sci., 6: 1969-1973.
    CrossRef    Direct Link    


  • Shi, Y., B. Li and Z. Zihui, 2011. Layout design of satellite module using a modified artificial bee colony Algorithm. Adv. Sci. Lett., 4: 3178-3181.
    CrossRef    


  • Solomon, M.M., 1987. Algorithms for the vehicle routing and scheduling problems with time window constraints. Operat. Res., 35: 254-265.
    Direct Link    


  • Tan, K.C., L.H. Lee, K.Q. Zhu and K. Qu, 2001. Heuristic methods for vehicle routing problem with time windows. Artificial Intell. Eng., 15: 281-295.
    CrossRef    Direct Link    


  • Wu, X., S. Ma and Y. Shi, 2011. Fuel consumption optimization for vehicle routing problem with time windows. J. Convergence Inform. Technol., 6: 332-338.
    CrossRef    


  • Zhen, T., Q. Zhang, W. Zhang and Z. Ma, 2008. Hybrid ant colony Algorithm for the vehicle routing with time windows. ISECS Int. Colloquium Comput. Commun. Control Manage., 1: 8-12.
    CrossRef    


  • Zielonka, A., E. Hetmaniok and D. Słota, 2011. Using the artificial bee colony algorithm for determining the heat transfer coefficient. Man-Machine Interac. 2, 103: 369-376.
    CrossRef    


  • Wasan, S.A., 2008. Finding linear equivalence of keystream generators using genetic simulated annealing. Inform. Technol. J., 7: 541-544.
    CrossRef    Direct Link    

  • © Science Alert. All Rights Reserved