Abstract
A vehicle routing problem is a significant problem that has attracted great attention from researchers in recent years. The main objectives of the vehicle routing problem are to minimize the traveled distance, total traveling time, number of vehicles and cost function of transportation. Reducing these variables leads to decreasing the total cost and increasing the driver's satisfaction level. On the other hand, this satisfaction, which will decrease by increasing the service time, is considered as an important logistic problem for a company. The stochastic time dominated by a probability variable leads to variation of the service time, while it is ignored in classical routing problems. This paper investigates the problem of the increasing service time by using the stochastic time for each tour such that the total traveling time of the vehicles is limited to a specific limit based on a defined probability. Since exact solutions of the vehicle routing problem that belong to the category of NP-hard problems are not practical in a large scale, a hybrid algorithm based on simulated annealing with genetic operators was proposed to obtain an efficient solution with reasonable computational cost and time. Finally, for some small cases, the related results of the proposed algorithm were compared with results obtained by the Lingo 8 software. The obtained results indicate the efficiency of the proposed hybrid simulated annealing algorithm.
Similar content being viewed by others
Avoid common mistakes on your manuscript.
Background
Vehicle routing problems (VRPs) have a significant role in logistics and distribution industries. VRPs include problems in which a fleet of vehicles presents service from one or several depots to different geographically located customers so that the total cost of transportation is minimized. It has been proven that vehicle routing problems are categorized as non-deterministic polynomial (NP)-hard problems ([Lenstra and Rinnooy Kan 1981]; [Mingozzi et al. 1999]) and that exact solution methods are not practical in a large scale due to high computational cost since most of the procedures have focused on using heuristics and meta-heuristics.
This problem was investigated mathematically by ([Dantzig et al. 1994]). The primitive model was developed by other researchers. [Clarke and Wright (1994]) solved VRPs by using a saving algorithm. Developing VRP models improves advanced solving methods based on mathematical programming, heuristics and meta-heuristics. [Altinkemerk (1991]) used a sweeping algorithm to develop a corresponding mathematical model. [Laporte (1992]) and Laporte et al. (1992) propagated a branch-and-bound algorithm. [Tavakkoli-Moghaddam et al. (2005]) proposed a multi-criteria vehicle routing problem considering soft time windows, and their problem is solved by simulated annealing. Also Tavakkoli-Moghaddam et al. ([2006b]) developed a mathematical model for VRP with backhauls by using memetic algorithm. Furthermore, [Tavakkoli-Moghaddam et al. (2006b]) presented a linear integer model of capacitated vehicle routing problems with the independent route length to minimize the heterogeneous fleet cost and maximize the capacity utilization, and their proposed model is solved by a hybrid simulated annealing (SA) based on the nearest neighborhood. [Jozefowiez et al. (2009]) developed a multi-objective vehicle routing problem by minimizing the route length and route balance by using a meta-heuristic method with traditional operators. A number of meta-heuristics, such as SA, tabu search and ant colony system, have been developed to solve more complicated problems containing more constraints ([Fallahi et al. 2008]; [Bin et al. 2009]). In general, the presented models for VRPs consider the cost function and propose the solution based on the cost minimization. However, there are other factors which have significant effect on the problem, such as drivers' satisfaction, which is investigated in this paper.
Since traveling time of the vehicle cannot be determined certainly due to various factors, such as traffic congestion, weather condition, vehicle failure and the like, this parameter is considered by a probability function. Obviously, increasing the total service time leads to decreasing the driver's satisfaction. In this paper, the total cost function of the vehicles is minimized, while the driver's satisfaction is increased by decreasing the probability of the service time. This problem is considered as a graph by n nodes, which represent customers, and connecting arcs show the route between customers. Each customer has a specific demand, and they should be served by only one vehicle. Due to its successful result in meta-heuristics, the model is solved by a hybrid simulated annealing (HSA) algorithm ([Tavakkoli-Moghaddam et al. 2006a]). The proposed algorithm shows much higher efficiency than the Lingo 8 software in large scale problems.
The rest of this paper is organized as follows. Problem definition introduces the problem, and Model formulation represents the model formulation. Problem-solving methodology is described in Hybrid simulation annealing, and computational results are discussed in Results and discussion. Finally, a conclusion follows in the last section.
Methods
Problem definition
The traveling time for vehicles is a probability variable depending on the weather conditions, accident, failure of the vehicle and condition of the route. Before describing the problem, two definitions are presented based on the fuzzy theory ([Zimmermann 1993]).
Fuzzy number
Definition 2.1. A fuzzy set A in R (real line) is defined to be a set of ordered pairs , where A (x) is called the membership function for the fuzzy set.
Definition 2.2. A fuzzy set A is called normal if there is at least one point with A (x) = 1.
Definition 2.3. A fuzzy set A on R is convex if, for any x,y R and any , we have .
Definition 2.4. A fuzzy number is a fuzzy set on the real line that satisfies the conditions of normality and convexity.
α-cut
One of the most important concepts of fuzzy sets is -cut. Given fuzzy set A defined on X and any number , the -cut (i.e. A) and the strong -cut (i.e. +A) are the crisp sets.
Also, distributing companies are interested in the service time of each vehicle not exceeding from a specific time limit. Increasing of the service time leads to decreasing of the driver's working utility. It is supposed that the maximum time working utility of the drivers is achieved when service time is less than t l in bound of [0, t u ] and that increasing the service time affects linearly on the decreasing of the utility so that, for service time more than t u , the utility level achieves its minimum. Also, a driver's utility function versus time is illustrated by a fuzzy number as shown in Figure 1. This function states that the driver's utility decreases linearly as traveling time increases.
Assumptions used in our presented model are as follows:
-
1.
Travel time of each route is a normal variable with the specific mean and specific variance.
-
2.
The driver's utility function depends on the travel time, and it decreases linearly with increasing the travel time.
In this way, a stochastic model is presented such that a vehicle travel time is restricted to time less than t with p percent probability in each level of satisfaction. t is the maximum length of tour in time for level of satisfaction. To develop this model, the sum of the normal distribution function theorem is described in this section. Based on this theorem, if x i is an independent variable of the normal distribution with meani's and variancei's by , in which a i is the constant number, y is a summation of x i 's by:
Then, y is also a normally distributed variable given by , where and
It is now supposed that represents the travel time of vehicle v from node i to node j, in which is a sequence of the normal independent variables and follows the normal distribution of N(,). is the required time for servicing customer (node) i by vehicle v and has normal distribution with and as its parameters. Also, decision variable x ij is defined such that:
If vehicle v travels through route (i, j).
Otherwise,tis defined as the maximum time in each -level of the satisfaction function. For all of the drivers, t is supposed to be the same. It is ideal that the total service time for each vehicle to be less than t.
where NV is the total number of vehicles.
Expanding Equation 3 for each vehicle (v) leads to the following equation.
Thus, we consider p percent probability by:
Now, by defining the normal distribution of the travel time as parameter A, we have:
.
It can be concluded that
This equation is expanded in the presented model as follows:
By this approach, the VRP can be extended in order to consider the limitation of the specific travel time and the distribution time of vehicles.
Model formulation
In our presented nonlinear-integer model, customers are introduced by nodes connected to each other by arcs. This graph contains n nodes in which each node has its demand d i (depot is located in node 1). The total number of vehicles is shown by NV, and each vehicle has the capacity of K v . is the required time for servicing the customer (i.e. node) i by vehicle v, and is the required time for traveling between customers i and j by vehicle v. Also, C ij is the travel cost (i.e. length of the arc) between customers i and j. S is the collection of nodes defined as
Now, the problem can be mathematically formulated as follows.
subject to:
In the above model, Equation 9 minimizes the total travel cost and total travel time. Constraints (10) and (11) ensure that each customer location is serviced from only one vehicle. Constraint (12) states that, if a vehicle arrives at a node (i.e. customer location), it should leave it, and by this way, the route continuity is ensured. Constraint (13) states that standard normally distributed function of the driver's transit time should be larger than z a . Constraint (14) imposes that the vehicle capacity does not exceed from its limit. Constraint (15) states that the depot is the first location of each vehicle. Finally, constraint (16) eliminates the sub-tours.
Hybrid simulated annealing
Simulated annealing is the process of physical annealing with solids in which a crystalline solid is heated and then allowed to cool very slowly until it achieves its most regular possible crystal lattice configuration (i.e.,its minimum lattice energy state) and, thus, is free of crystal defects. If the cooling schedule is sufficiently slow, the final configuration results in a solid with such superior structural integrity. Simulated annealing establishes the connection between this type of thermo-dynamic behavior and the search for global minima for a discrete optimization problem. Furthermore, it provides an algorithmic means for exploiting such a connection ([Koskosidis et al. 1992]; [Kirkpatrick et al. 1983]; [Hajek 1985]; [Gidas 1985]; [Glover and Kochenberger 2003]).The SA parameters are as follows:
Epoch length (EL): the number of accepted solutions in each temperature for achieving to equilibrium.
MTT: maximum number of consecutive temperature trails.
T0: initial temperature.
: rate of the current temperature decrease (cooling schedule).
X: a feasible solution.
C(X): objective function value of solution X.
L: counter for the number of accepted solutions in each temperature;
K: counter for the number of consecutive temperature trails, where T K is equal to the temperature in iteration K.
Initial solution generation
To generate initial solutions, which is the first step in any meta-heuristic approach, a creative approach is applied as follows.
-
1)
Create a new route: Select randomly a node (i.e. r) which has not been served. Allocate a new vehicle (i.e. v) with maximum capacity to that from the depot.
-
2)
Determine neighborhood nodes: Find the nearest unserved node neighborhoods (i.e. node k) such that, if vehicle v services k after r, the stochastic service time constraint and capacity of the vehicle are not violated for reaching node k. If such node is found, then vehicle v services k after r .
-
3)
Complete the route: Repeat step 2 until vehicle v returns to the depot.
-
4)
Complete the service: Repeat above steps until all of the nodes are served.
-
5)
Determine the optimal kind of vehicles: After running the algorithm, the optimal kind of vehicles can be determined by assuming that all of the vehicles are available with their maximum capacity.
Feasible solution space search
Two efficient genetic operators were designed for searching in a feasible solution space and obtaining neighborhood solution, as follows:
-
1)
Crossover operator: This operator randomly selects two different routes of two vehicles of the feasible solution. Then two nodes of these routes are replaced with each other while considering vehicle capacity and stochastic transit times limit.
-
2)
Mutation operator: This operator randomly selects two routes of two vehicles of the feasible solution. Then, one node is deleted from one route, and it is added to another route while considering vehicle capacity and stochastic transit times limit ([Tavakkoli-Moghaddam et al. 2005, 2006b])
Also, a schematic diagram of the two genetic operators used in the proposed algorithm is represented in Figure 2.
The main steps of the proposed HSA embedded with genetic operators are as follows.
Step 1: Generate an initial solution according to the initial solution generation algorithm.
Step 2: Generate a neighborhood solution for X1 (i.e. X2) and estimate its corresponding objective function value, E2.
Step 3: If E1E2, then X2 is a new solution of the given problem; otherwise, regenerate a random number, Rnd (0, 1).
Step 4: If Rnd (0, 1) < exp {(E2-E1)/KT}, then accept X2; otherwise, reject X2, and the new solution is X1. Also, k is a constant, and it considers 1 in problems.
Step 5: Repeat the algorithm several times for T temperature.
Step 6: Decrease T by a relation such as (n + 1) =T (n), 0 < < 1, in which is the cooling schedule.
Step 7: Terminate the algorithm when the convergence criterion is satisfied.
Results and discussion
The computational results are obtained from the proposed solution approach in this section. All solution procedures are coded in the visual basic, and all test problems are run using the Intel Dual Core 1.66-GHz compiler and 1 GB of RAM. In the proposed HSA, the travel route and the travel cost are estimated for each service. Hence a small-sized problem is generated by using the uniform distribution, and it is solved with the Lingo 8 software. To solve this problem by the proposed HSA, the related parameters are set as EL = 100, MTT = 100, T0 = 100 and = 0.99.
In addition, the stochastic travel time of a fleet for the different route is estimated with the confident coefficient of 95% and in several satisfaction levels. The results of ten cases in small sizes are shown in Table1. The comparison of the Lingo software with the proposed algorithm shows that this algorithm has good capability to solve the proposed problem in less computational time than Lingo. Furthermore, increasing the size of the problem increases the solution time of Lingo exponentially, while it does not affect the solution time of the proposed HSA. The efficiency of this algorithm is shown for ten large-scale cases in Table2.
As illustrated in these tables, the results show that increasing the driver's satisfaction grows the routing cost, resulting in the increase of the total cost of a distributing company. For this reason, increasing the driver's satisfaction and decreasing the costs are considered as objective functions which are in conflict with each other. Improving each objective leads to the deterioration of the other objective. Thus, definition of an appropriate satisfaction level can be considered as a decision management. Paying attention to Pareto set and following its data with regard to management utility, appropriate solutions can be obtained.
Conclusions
Vehicle routing problems are categorized as NP-hard problems in which exact solution methods, such as solving with Lingo, are not practical in large scale due to high computational cost. For this kind of problems, using meta-heuristic algorithms are efficient. In this paper, a hybrid simulated annealing algorithm was proposed to solve vehicle routing problems. The total travel time was limited to a definite probability percent, and also, other constraints, such as capacity and time distribution restrictions, are considered while the total cost of the transportation was minimized. Based on the obtained results, the proposed HSA can be used for obtaining high-quality solutions with a reasonably computational cost.
References
Altinkemerk GB: Parallel savings based heuristic for the delivery problem. Operations Research 1991, 39: 456–469.
Bin Y, Zhong-Zhen Y, Baozhen Y: An improved ant colony optimization for vehicle routing problem. European Journal of operational Research 2009, 196: 171–176.
Clarke C, Wright JQ: Scheduling of vehicle from a central depot to a number of delivery points. Operations Research 1994, 12: 568–581.
Dantzig GB, Fulderson R, Johnson SM: Solution of a large scale traveling salesman problem. Management Science 1994, 6: 80–91.
Fallahi A, Pprins C, Calvo R: A memetic algorithm and tabu search for the multi-comparment vehicle routing problem. Computer & operations Research 2008, 35: 1725–1741.
Gidas B: Non-stationary markov chains and convergence the annealing algorithm. Journal of Statistical Physics 1985, 39: 73–131.
Glover F, Kochenberger GA: Handbook of meta-heuristics. Kluwer Academic Publishers, London; 2003.
Hajek B: Cooling schedules for optimal annealing. University of Illions Champaign, Urbana, Department of Electrical Engineering; 1985.
Jozefowiez N, Semet F, Talbi E-G: An evolutionary algorithm for the vehicle routing problem with route balancing. European Journal of Operational Research 2009,195(3):761–769.
Kirkpatrick F, Gelatt C, Vecci M: Optimization by simulated annealing. Science 1983, 2: 117–133.
Koskosidis Y, Powell W, Solomon M: An optimization-based heuristic for vehicle routing and scheduling with soft time window constraints. Transportation Science 1992, 26: 69–85.
Laporte G: The vehicle routing problem: an over view of exact and approximate algorithm. European Journal of Operational Research 1992, 59: 345–358.
Laporte G, Mercure H, Nobert Y: A branch and bound algorithm for a class of asymmetrical vehicle routing problems. Journal of Operational Research Society 1992, 43: 469–481.
Lenstra JK, Rinnooy Kan AHG: Complexity of vehicle and scheduling problem. Networks 1981, 11: 221–227.
Mingozzi A, Giorgi S, Baldacci R: Solution of a large scale traveling salesman problem. Management Science 1999, 6: 80–91.
Tavakkoli-Moghaddam R, Safaei N, Gholipour Y: A hybrid simulated annealing for capacitated vehicle routing problems with the independent route length. Applied Mathematics and Computation 2006, 176: 445–454.
Tavakkoli-Moghaddam R, Safaei N, Shariat MA: A multi-criteria vehicle routing problem with soft time windows by simulated annealing. Journal of Industrial Engineering - Int. 2005,1(1):28–36.
Tavakkoli-Moghaddam R, Saremi AR, Ziaee MS: A memetic algorithm for a vehicle routing problem with backhauls. Applied Mathematics and Computation 2006, 181: 1049–1060.
Zimmermann HJ: Fuzzy set theory and its applications. 2nd edition. Kluwer Academic Publishers, London; 1993.
Author information
Authors and Affiliations
Corresponding author
Authors’ original submitted files for images
Below are the links to the authors’ original submitted files for images.
Rights and permissions
Open Access This article is distributed under the terms of the Creative Commons Attribution 2.0 International License (https://creativecommons.org/licenses/by/2.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
About this article
Cite this article
Tavakkoli-Moghaddam, R., Alinaghian, M., Salamat-Bakhsh, A. et al. A hybrid meta-heuristic algorithm for the vehicle routing problem with stochastic travel times considering the driver's satisfaction. J Ind Eng Int 8, 4 (2012). https://doi.org/10.1186/2251-712X-8-4
Received:
Accepted:
Published:
DOI: https://doi.org/10.1186/2251-712X-8-4