Abstract
This study has been motivated from a real western-style food delivery problem in Dalian city, China, which can be described as a vehicle routing problem with time windows. An integer linear model for the problem is developed, and an improved artificial bee colony algorithm, which possesses a new strategy called an adaptive strategy, a crossover operation, and a mutation operation, is proposed to solve the problem. Then, the effectiveness of the proposed improved artificial bee colony is first validated by some benchmark instances. Furthermore, results obtained on a real-case instance for western-style food delivery problem in Dalian city are also discussed. In this case, the results indicate that the improved artificial bee colony algorithm is a feasible method to solve the real vehicle routing problem with time windows such as western-style food delivery.
Keywords
Introduction
In real life, some types of transport have a strict time limit, with which not only the vehicle capacity but also the time requirement should be considered when planning the trips for the carriers. The problem is defined as the vehicle routing problem (VRP) with time windows (VRPTW), and “time windows” is referred to strict time limit. Because of time windows, VRPTW is more complicated compared with conventional VRP and is one of the most significant branches of VRPs.
This study has been motivated from a real western-style food delivery problem in Dalian city, China. And the requirements for the freshness of the food make the delivery time very strict.1–3 Thus, the western-style food delivery routing problem is thought as a VRPTW based on real-life route network. The objective of the VRPTW is to find a minimum cost routes for serving all the customers during their given intervals.4–8
VRPTW is also proved to be NP-hard problem. Heuristic algorithms are the first choice to solve this combinational problem.7–16 Chiang and Russell 17 proposed a simulated annealing metaheuristic for solving the VRPTW. Tan et al. 18 presented a hybrid genetic algorithms (GAs) to solve the VRPs with time window constraints. Ho and Haugland 19 tried to use a tabu search heuristic for solving the VRPTW and split deliveries. Furthermore, due to the complexity of real-life route network, for example, one-way road, the transportation cost is different with different routes between two points. Thus, a western-style food delivery routing problem is more complex than a classical VRPTW. Therefore, this article attempts to find an effective method to solve the western-style food delivery routing problem.
While many heuristics have been widely used and successfully applied to solve the VRPTW for several years, artificial bee colony (ABC) algorithm is a fairly new approach introduced just a few years ago by Karaboga 20 and has been applied to solve some complicated problems. Özbakir et al. 21 presented an ABC algorithm to solve generalized assignment problems with an ejection chain neighborhood mechanism. Koudil et al. 22 attempted to use ABC algorithm to solve integrated partitioning or scheduling problem in codesign. Karaboga et al. 23 proposed a modified ABC algorithm to determine the parameters of the Schottky barrier diode. Cuevas et al. 24 developed an ABC algorithm to solve image segmentation problem by computing threshold selection. Yao et al. 25 used an ABC algorithm to solve the periodic VRP. It is worthwhile to evaluate the ability in applying ABC algorithm to solve the VRPTW. Therefore, these successful applications motivate us to apply ABC algorithm to look for the optimum routes for VRPTW in this article.
The ABC algorithm is a popular optimization algorithm but often easily trapped in local optima before finding the global optimum. Thus, it is necessary to expand the solution space of this algorithm and, equivalently, to expand the diversity of its search information. Many methods have been proposed to improve the performance of the original ABC algorithm. Zhang et al. 26 proposed a hybrid ABC algorithm to solve the job shop scheduling problem. In this article, the authors introduced a tree search algorithm to improve the performance of ABC algorithm. Wang et al. 27 proposed a modified ABC algorithm for solving the order acceptance problem in two-machine flow shops. Yildiz 28 used a new hybrid ABC algorithm for designing a vehicle component and a multi-tool milling optimization problem. Inspired by the GA, in this article, the crossover and mutation operation of GA are introduced to increase the diversity of food sources and speed up the convergence of the ABC algorithm. Finally, in the numerical analysis, the new algorithm effectively accelerated the convergence speed and improved the solutions to VRPTW, relative to original ABC.
The remainder of this article is organized as follows: In section “Mathematical formulations,” we construct a mathematic model for the western-style food delivery problem which is defined as a VRPTW. Section “Improved ABC algorithm” presents the ABC algorithm and some improvement strategies. In section “Numerical examples,” some computational results are discussed, and finally, the conclusions are provided in section “Conclusion.”
Mathematical formulations
The real-life VRPTW in our article is formulated as an integer programming model. And the objective is looking for the least cost while meeting the following constraints: the service time constraint and the vehicle capacity constraint. In addition, one node must be served only once by exactly one vehicle, and all vehicles should start and end at the depot. The total demand of all nodes on one particular route cannot exceed the capacity of the vehicle. Therefore, the formulation can be described as follows
where
The parameters in the model are defined as follows: ti is the time that vehicle k arrives at node i, wi is the wait time at node i, K is the total number of vehicles, N is the sum of notes (the nodes and the depot), cij is the distance between nodes i and j, tij is the travel time from nodes i to j, qi is the requirements of node i, Q is the capacity of a vehicle, ei is the earliest service time at node i, ui is the latest service time at node i, si is the service time at node i, and Tk is the longest time allowed for vehicle k.
In the above model, equation (1) is the optimum cost model for the VRP. Constraint (a) ensures the number of vehicles cannot exceed the maximum number. Constraint (b) makes sure every vehicle starts and ends the depot. Constraints (c) and (d) assume that each node can be served exactly once by one vehicle. Constraint (e) assumes the quantity of the food in a vehicle cannot exceed its capacity. Constraint (f) guarantees that the drive time of a vehicle in the maximum time constraint. Constraints (g)–(i) assure that each service process must be within the time constraint of each node.
The improved ABC algorithm
The principle of ABC
ABC algorithm is a heuristic which simulates the process of bees looking for the honey (food source). 13 ABC algorithm is a bio-mimetic cluster algorithm based on the following principles. First, the bee population is classified into three categories: scouts, leaders, and onlookers. Scouts are the bees which are responsible for looking for new food sources randomly. Leaders with elite features play a role of keeping good food sources. Onlookers will select which food source to follow. When onlookers turn into the following bees, it will increase the number of bees corresponding to better food sources which will speed up the convergence of the algorithm. Based on the intelligent behavior of bees in looking for food sources, ABC algorithm has the ability to look for the feasible routes.
In ABC algorithm, each food source position represents a possible solution of the optimization problem. The amount of honey in each food source corresponds to the fitness of each solution. First, the ABC algorithm will produce SN original solutions randomly. Each solution xi (i = 1, 2, …, SN) is a D-dimensional vector, and D is the number of the optimization parameters. Then, the leaders conduct a neighborhood search on the corresponding food source. In order to produce a candidate food position from the old one in memory, the ABC uses the following expression
among them, 1 ≤ i ≤ SN; Φ i is a parameter which is named as the search factor, and it is a random number within the range of [−1, 1]; it controls the appearance of new solutions in the xi field and represents the comparison of the locations of two visible nectar sources for the bees. After each search, every leader attains the fitness of a new food source. The value of the fitness for each food source is based on the following expression
where di is the total path length of nectar source i.
According to the computing results, if new fi > fi, then the old food sources will be abandoned, and the new ones will be chosen to enter the next iteration; if new fi < fi, the old ones will be reserved. From formula (2), it can be seen that the disturbance to the locations becomes smaller and smaller with the decreasing distance between xi and xk.
When all the leaders have finished their searching and returned to the hive, they shared the information of the food sources with onlookers. The higher the fitness value of a food source, the higher the probability that the food source will be chosen by onlookers. And the probability pi of selecting a food source i is determined by the following expression
Furthermore, if nectar source xi cannot be improved under a limited cycle index, which is defined as a maximum cycle number (MCN), then this location will be given up. A new location will replace the old one by the following formula
In the classical ABC algorithm, the new food source is produced using a perturbation which comes from a randomly chosen bee. However, there are two weaknesses existing in this way. One is that the information exchanged is limited causing the converge speed to be quite slow. The other is that the food sources with high fitness are not utilized.
Improved strategies
In the ABC algorithm, each alternative solution known as food sources and the process of ABC algorithm is looking for the optimal solution. The fitness of the food sources will directly affect the optimization goal of the algorithm. Therefore, to improve the performance of the ABC algorithm, it is important to acquire more feasible solutions during the searching process. Inspired by the idea of crossover and mutation operation in GA, the fitness of solutions can be improved to be more suitable for the problem using the two genetic operations. That is, first, the food source can be put in order based on the information of the food source. Then, a new generation of food source can be acquired by the two genetic operations. Therefore, crossover operation and mutation operation are used to increase the diversity of food sources and speed up the convergence of the ABC algorithm in this article.
Crossover operation
Crossover operation is a reproduction operation in GA, which combines two parents to produce a new offspring at a predefined probability. 6 The idea of crossover operation is the new offspring may be better than both the parents. The operation can help ABC to reach further solution in the search space. In this article, the crossover operation is applied to generate new better food source. Therefore, the child population whose generation is similar to the natural evolution will be more adaptive than the former generation to find the global optimal solution of the problem.
Different crossover method can be used in this operator. In this article, an arithmetic crossover
29
is used to create a new offspring. For example, two initial chromosomes, I and II, are (75, 150, 375) and (80, 120, 400), respectively. Suppose the three random numbers are
Similarly,
where
Mutation operation
Mutation operation is also a genetic operator in GA, which is used to maintain genetic diversity from one generation of a population to the next generation. In mutation operation, the solution may change entirely from the previous solution. Hence, mutation operation is applied to large diversity of the food source in ABC during evolution. The mutation operation is described by the following equation. 29
Assume a chromosome is
The function
where
Since the mutation operation may violate the constraints of the parameters, there are two ways to handle this problem. One is to assign a relatively high weight to reduce the probability of being selected in the following search. The other is the solution can be remained, but the value needs to be adjusted to the constraints. The advantage of the second way is that it can maintain the solution which may enable the algorithm to investigate further points in the search space. Therefore, the second approach is adopted to deal with the chromosome which violates the constraints of parameters. The chromosome will be reassigned a value by random which meets the constraints of parameters.
In this article, the crossover operation and the mutation operation are introduced into the original ABC algorithm to improve its optimizing ability. The algorithm process is the same as the original ABC except the crossover phase and mutation phase are added between the onlooker bees’ and scout bees’ phase. After all the onlooker bees complete their searches, these two phases start. The pseudo code is listed in Table 1.
The pseudo code of proposed artificial bee colony algorithm.
Numerical examples
For comparisons, some well-known benchmark problems of VRPTW are adopted to examine the feasibility and performance of the improved ABC (IABC) algorithm in this article. Then, the IABC algorithm is applied to solve the VRP for western-style food delivery in Dalian city. The following will describe how to use the IABC algorithm to solve these benchmark problems and the western-style food delivery problem, respectively.
The classical VRPTW
In order to examine the performance of the IABC in this article, some well-known benchmark problems which can be found in the literatures4–6,12,18,30–33 are selected. The heuristics described in the previous sections were coded in Visual studio. Net 2003: C++. The operating environment is the Pentium IV 2.93-GHz processor and 3 GB for the Windows platform. A large number of experiments to determine the parameters are performed. The number of employed bees and the number of onlooker are set to be the same as the number of food sources, which is 50. This method is proposed by Karaboga and Basturk,
36
which set the number of employed bees to be equal to the number of onlookers to reduce the number of parameters, and the population size (i.e. the total number of leaders and onlookers) of 100 can provide an acceptable convergence speed for search. Besides, the maximum iteration is set to be 1000,
Comparison of best-known solution and best solution for the improved ABC algorithm.
ABC: artificial bee colony; NV: number of vehicles; TD: total distance; DBF: deviation from the best-known solution.
From Table 2, it can be attained that the results achieved by the IABC algorithm are close to the best-known solutions and the average deviation from the best-known solution is 2.35%, which is relative low. Thus, the proposed algorithm is suitable for VRPTW. Furthermore, from Table 2, it is also found that although only two solutions of the IABC algorithm reached the best solution in terms of the total distance, in six results, the number of vehicle with the IABC algorithm is obviously less than the one used by the other algorithms while the optimal solutions are almost equal. In addition, the solution calculated in C1, in which customers are clustered in groups, is encouraging. For most heuristics, it is difficult to find the best solution in local and is easily trapped in local optimal because the similarities between customers in instance set C1. The improved strategies can expand solution space and obtain relatively good solution. So, when the number of vehicles and the total distance are considered simultaneously, the IABC algorithm seems a powerful method for the kind of problem such as VRPTW.
Improved strategies are proposed to improve the performance of the IABC algorithm. Thus, the original ABC algorithm and the IABC algorithm are compared to examine the effectiveness of the improved strategies. The compared results are shown in Table 3. The compared results are shown in Table 3. The numbers in bold are the best between the original ABC algorithm and the IABC algorithm in terms of computation times and total distance. It can be observed that the computation times and the solutions from the two algorithms are almost equal when solving some simple problems such as C101, C102, C104, C105, C106, C107, and C108. However, when solving more complex problems, for example, RC204 and RC208, the effectiveness of the IABC is more obvious.
Comparison results between ABC and the improved ABC.
ABC: artificial bee colony; TD: total distance.
The western-style food delivery routing problem
The IABC algorithm is verified by the benchmark problems of the classical VRPTW, which shows that the IABC algorithm is suitable to solve VRPTW. Then, the IABC algorithm in this article is attempted to solve a real-life delivery route problem which is the western-style food delivery routing problem in Dalian city. With the improvement of living standard, people, in China, begin to concern on the quality of the western-style food. However, it is quite difficult to manage the delivery process and ensure maximum freshness under different weathers for its extended travel time. In addition, it is important for the restaurants to have food supplied timely when it sold out. The restaurants must update its supply within an allowable time. Therefore, in this article, the western-style food delivery routing problem is solved as a VRPTW. However, real-life routing is slightly different from classical VRPTW problem using a rectilinear metric. In the real-life routing problem, the road network is used to suggest the length of vehicle routing. Data management plays a major role in the efficient functioning of the distribution system. The information of the real-life delivery route problem with spatial characteristics of Dalian can be described in Figure 1. The vehicle capacity is 20 ton, and the weight and size are 2 and 13 m, respectively.

The location information of the western-style food company and its chain nodes in Dalian.
Then, the IABC algorithm will continue calculating 10 times, the results are shown in Figure 2. From Figure 2, we can find that the results are relatively stable and the difference between the optimum and the worst value is <5%, which shows a good convergence performance of this algorithm. Moreover, the calculating time can be accepted for a real-life problem which is between 520 and 684 s. It can also be observed that our algorithm seems to be superior in terms of solution quality in a relatively smaller time. Thus, considering the optimization quality and the calculating time of this algorithm simultaneously, the IABC algorithm is suitable for solving the real-life western-style food delivery routing problem. The optimization results can be shown in Figure 3.

Computational results of the improved ABC algorithm after running 10 times.

Delivery routes of the western-style food delivery routing problem based on the improved ABC algorithm.
Figure 3 shows that six delivery routes, which are the optimum delivery routes of the western-style food delivery routing problem based on the IABC algorithm, are developed. From the distribution of these routes, it can be found that the optimized routes are feasible results for the proposed problem.
Conclusion
This article has attempted to improve the performance of ABC algorithm for VRPTW, in which an adaptive strategy, a crossover operation, and a mutation operation are proposed. The benchmark problems of VRPTW are first used, and the results suggest the effectiveness of the IABC algorithm for solving VRPTW. Moreover, the results of western-style food delivery routing problem in Dalian city also prove that the IABC algorithm is a feasible method for solving the western-style food delivery routing problem.
Footnotes
Academic Editor: Gang Chen
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) received no financial support for the research, authorship, and/or publication of this article.
