Next Article in Journal
Interoperability Reference Models for Applications of Artificial Intelligence in Medical Imaging
Next Article in Special Issue
Multi-Criteria Optimization in Operations Scheduling Applying Selected Priority Rules
Previous Article in Journal
A Time-Shifting Algorithm for Alleviating Convergence Difficulties at Interior Acoustic Resonance Frequencies
Previous Article in Special Issue
Smart Manufacturing Scheduling Approaches—Systematic Review and Future Directions
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Performance Comparison between Particle Swarm Optimization and Differential Evolution Algorithms for Postman Delivery Routing Problem

by
Warisa Wisittipanich
1,
Khamphe Phoungthong
2,
Chanin Srisuwannapa
3,
Adirek Baisukhan
3 and
Nuttachat Wisittipanit
3,4,*
1
Center of Healthcare Engineering System, Department of Industrial Engineering, Faculty of Engineering, Chiang Mai University, Chiang Mai 50200, Thailand
2
Environmental Assessment and Technology for Hazardous Waste Management Research Center, Faculty of Environmental Management, Prince of Songkla University, Songkhla 90112, Thailand
3
Department of Materials Engineering, School of Science, Mae Fah Luang University, Chiang Rai 57100, Thailand
4
Center of Innovative Materials for Sustainability (iMatS), Mae Fah Luang University, Chiang Rai 57100, Thailand
*
Author to whom correspondence should be addressed.
Appl. Sci. 2021, 11(6), 2703; https://doi.org/10.3390/app11062703
Submission received: 18 February 2021 / Revised: 7 March 2021 / Accepted: 14 March 2021 / Published: 17 March 2021
(This article belongs to the Special Issue Planning and Scheduling Optimization)

Abstract

:
Generally, transportation costs account for approximately half of the total operation expenses of a logistics firm. Therefore, any effort to optimize the planning of vehicle routing would be substantially beneficial to the company. This study focuses on a postman delivery routing problem of the Chiang Rai post office, located in the Chiang Rai province of Thailand. In this study, two metaheuristic methods—particle swarm optimization (PSO) and differential evolution (DE)—were applied with particular solution representation to find delivery routings with minimum travel distances. The performances of PSO and DE were compared along with those from current practices. The results showed that PSO and DE clearly outperformed the actual routing of the current practices in all the operational days examined. Moreover, DE performances were notably superior to those of PSO.

1. Introduction

The topic of global warming has been heavily addressed in recent decades due to increasing greenhouse gases [1]. Unsurprisingly, the transportation industry globally accounts for a large portion (mainly CO2 emission), amounting to approximately 20% [2]. Since our economics and life wellness deeply depend on the industry, decent mitigation efforts are needed to enhance its operation efficiency. For logistics organizations, with transportation costs being their largest expenditure, an improved operation not only reduce the environmentally harmful gas, but also reduces the operational costs such as fuel, manpower and vehicle depreciation, significantly augmenting profits in the process [3]. As a result, a large logistics firm that handles thousands of transport vehicles per operational day should absolutely adopt an effective transportation management and scheduling system. The post office is one of the logistics establishments that has to deal with such management, involving area assignments for delivery vehicles and the type and number of vehicles, as well as delivery time windows. Some even engage in detailed routing of each vehicle, trying to determine the most optimized ways to deliver parcels to customers [4]. Such a challenge is essentially called the vehicle routing problem (VRP). However, most post offices do not feel the need to find solutions to the VRP and simply rely on the experience of their delivery drivers, which might be because of the high costs and complications involved in deploying such systems. Nevertheless, relying on skills and experience alone might not be suitable for a problem with exceptionally high complexities.
The VRP is one of the optimization problems that seeks optimized routing for vehicles that traverse either to deliver or pickup goods. An approach to finding a solution to the VRP might be to determine a set of routes having a minimized total distance traveled by all the vehicles involved [5]. Other VRP variations include enforcing the total delivery time to be within a certain time window [6], limiting vehicle capacity [7], having stochastic customer demands [8] or allowing customers to select their delivery options [9]. Generally, the problem sizes (such as number of vehicles and customer nodes) of the VRP that can be solved for exact optimized solutions by mathematical methods are limited [10], due to the inherent complexity of the VRP. However, actual VRP applications usually have large problem sizes, containing approximately hundreds or thousands of vehicles and customers (e.g., a beverage firm that has to deliver millions of bottles per day to a large number of depots and small businesses). Therefore, solving for optimized solutions by mathematical procedures alone is impractical for most applications. As a result, heuristic and metaheuristic optimization algorithms are usually selected as a pragmatic method to solve the VRP, since they can obtain feasible solutions relatively fast and the quality of those solutions is decent enough for real uses [11].
This study investigated the postman operations of the Chiang Rai post office, which is a logistics establishment that does not apply any VRP optimization techniques, and its delivery drivers have to rely on their own expertise and plans in order to traverse between customer locations. The routing of two delivery vehicles was tracked, in which they dispatched parcels to customers in their responsible areas for 50 operational days. The routing information consisted of traveled paths, distance covered and the actual geographic coordinates of customer locations which the vehicles visited each day. Then, we performed the routing optimization procedures based on those customer coordinates, using the metaheuristics algorithms for all the operational days of those delivery vehicles.
Since the delivery routes depended on the skills and experience in the area of their drivers, those routes might not be well optimized. Moreover, if new drivers were to replace the previous ones, they would have to learn anew and gain enough experience to better traverse the area. Thus, the efficiency of the delivery process was not consistent. As such, this research paper was focused on providing a smart routing decision, solving for VRP solutions such that the delivery performance could improve remarkably and be more consistent. Two metaheuristic algorithms were applied—particle swarm optimization (PSO) and differential evolution (DE)—and integrated with local search techniques. The algorithms sought to discover the most optimized routing those two delivery vehicles could take so that the total travel distance could be minimized. The solutions from the two algorithms, including those from current practices, had their performances compared in terms of the total distance covered.
The rest of the article is organized as follows. Section 2 provides literature reviews related to the VRP and the algorithms used in the study. The detailed dataset, mathematical model, algorithm frameworks and solution representation are given in Section 3. Finally, the experimental results and conclusion are provided in Section 4 and Section 5, respectively.

2. Literature Review

The VRP, a nondeterministic polynomial time hardness (NP-hardness) problem [12], refers to an optimization problem related to routing management, first devised by Dantzig and Ramser [5] in 1959. It started as a simple problem of determining the optimal routes for a fleet of vehicles dispatching from a single terminal to multiple variants, including ones that limit vehicle capacity and delivery time, have multiple terminals or allow the customer to select a delivery option. Obtaining the exact optimal solution for the VRP is possible if the customer nodes are not too large for a mathematical solver. However, real VRP applications tend to have a substantial number of customer nodes. Therefore, heuristic methods are often chosen to solve the VRP [13].
There are several studies that focused on the VRP of post office deliveries with different strategies, objectives and constraints. Meira et al. [14] conducted an experiment to solve the multi-objective VRP with only one constraint—the route distance—using a large number of geographical delivery locations (~30,000 points) in Autur Nogueira, Brazil. Dumez et al. [9] tried to solve the VRP for a post office in which each customer could select a choice of vehicle routing problem delivery options (VRPDOs) with varying places and times, such as receiving parcels at home in the evening or at work during office hours. In addition, the VRP with a time window (VRPTW) was investigated by Niroomand et al. [15], who developed an optimization model for a network of post offices with aims to minimize the total operational cost within time constraints (i.e., office working hours).
Various algorithms were employed to solve the VRP and its variants. Most are metaheuristic, including differential evolution (DE) and particle swarm optimization (PSO). Other metaheuristic algorithms such as the large neighborhood search (LNS) [16] and hybrid intelligent algorithms [17] were also adopted for the VRP. DE is a population-based optimization method that is similar to other evolutionary algorithms in terms of conventional approaches (e.g., mutation and cross-over operations). However, it utilizes a less stochastic and greedier solving strategy [18]. DE has been successfully applied to many VRP studies. Kromer et al. [19] employed DE to find solutions to the stochastic VRP with simultaneous pickup and delivery by using actual bus service data in Anbessa, Ethiopia. Their objective was to minimize both the total travel distance and number of vehicles, and the algorithm yielded superior performance compared with that of a traditional savings algorithm. Sethanan [20] utilized DE (hybridized with a genetic operator) for a multi-trip VRP with backhauls and a heterogeneous fleet (MTVRPB). They devised an optimization method specifically for a company that needed to retrieve glass bottles (soft drinks) back from clients after delivery with a single objective (i.e., minimizing the total distance traveled). Erbao et al. [18] used both DE and genetic algorithms to find an optimal solution to the VRP with simultaneous delivery and pick-up and time windows (VRP-SDPTW). They built a mathematical model using mixed integer programming for their proposed VRP variant and yielded satisfying optimized results. Xing et al. [21] applied a hybrid discrete differential evolution (HDDE) to the split delivery VRP (SDVRP). The authors focused on vehicle routing management to deliver large supplies of hospital items split between multiple unmanned transport vehicles—a suitable solution in the pandemic era—with the objective of minimizing the total distance traveled, and the proposed HDDE algorithm produced superior performance compared with the forest-based tabu search (FBTS) and genetic algorithm (GA) in many problem instances. There are also studies that applied DE and local search to solve the VRP. For instance, Song and Don [22] proposed a DE algorithm integrated with local search to solve the capacitated VRP. They employed two strategies for the local search—two-random swap and two-opt testing of the combined method with the benchmark instances—and demonstrated that such a hybrid method performed better than other existing DE algorithms. Jun and Jian [23] modified DE further by using greedy subtour crossover in the mutation operation and modified ordered crossover in the crossover operation. In addition, local search with only the two-opt strategy was used in the decoding process.
In addition to DE, PSO was also used frequently in the VRP field. Moghaddam et al. [24] developed an advanced PSO to solve a VRP variant where the demands of customers were uncertain and demand distribution was undetermined, a special form of capacitated VRP (CVRP). They devised a new decoding method for the PSO and were able to obtain superior solutions compared with those from well-known studies using the same test instances. Another variant of the capacitated VRP, called the capacitated location-routing problem (CLRP), was also studied by Peng et al. [25], in which PSO was combined with clustering and local search techniques to solve the problem. Marinakis et al. [26] proposed the use of multi-adaptive PSO (MAPSO) with three different strategies to solve the VRPTW, where each strategy had a certain role in achieving optimal solutions faster, yielding promising results compared with those of other PSO variants. Chen and Shi [27] used hybrid PSO (HPSO) combined with simulated annealing (SA) to determine solutions for the multi-compartment VRP with a time window (MCVRPTW), where each vehicle possessed multiple compartments, each one containing goods with the same characteristics. They tested the algorithm with benchmark instances, and the results showed that HPSO had better performance than normal PSO (PSO without SA). Chen et al. [28] performed two types of PSO, namely discrete PSO (DPSO) and neural-like DPSO (NDPSO), on the periodic vehicle routing problem (PVRP). The PVRP deals with the tasks of finding an ideal customer service mode and determining optimal vehicle routing in accordance with the found mode. Sedighizadeh and Mazaheripour [29] combined PSO and the artificial bee colony (ABC) algorithm to solve the VRP, which converged faster than individual algorithms (PSO and ABC) and also yielded better solutions. Lastly, Yanwei et al. [30] employed PSO with self-adaptive inertia weight to solve the open VRP with time-dependent travel time (OVRPTD), a special VRP variant where vehicles do not have to return to the depot after finishing a delivery job and travel time is time-dependent, producing better solutions compared to those of PSO and the nearest-neighboring search (NNS) algorithm.

3. Materials and Methods

Details on the post office operation and how to obtain the necessary dataset and prepare the inputs for the study are presented in this section. Additionally, the mathematical model, algorithmic procedures of PSO and DE and process workflow for the postman delivery problem are included here.

3.1. Dataset

The dataset used in this study was obtained from the delivery operations belonging to the Chiang Rai post office in the Chiang Rai province of Thailand. The operations mainly involved postal delivery service to residential and commercial locations. The Chiang Rai post office holds delivery duties for customers in the area of the Viang and Rob-Viang districts, which are clustered into six delivery zones. Detailed data of the delivery operation were collected for 50 days, tracking two delivery vehicles equipped with Global Positioning System (GPS)-enabled android devices with location-tracking applications installed. The average number of customer locations to be delivered to per day by both vehicles was 97.22. Those two vehicles were motorcycles, each with large parcel pouches strapped on both sides, and both had duties to deliver parcels to customers in specific areas under the Chiang Rai post office’s responsibility.
The GPS devices recorded routing data, including all customer locations and where the vehicles visited, in geographic coordinate form. Then, for each day of delivery operations, the total travel distance of both vehicles was extracted. Moreover, the stored latitude and longitude coordinates, which corresponded to the post office and customer locations, were used to construct a distance matrix of n × n dimensions, where n was the number of all location coordinates. Each cell of the distance matrix represented the smallest distance between a pair of location coordinates, and this distance value was determined by a python script using the googlemaps module from the Google Maps Application Programming Interface (API) [31]. The obtained matrix might not have been the symmetric type, since the shortest route from one coordinate to another may not have been the same the other way around, taking into account that one-way traffic could be enforced in some routes. In total, 50 matrices were constructed, each one representing one day of delivery operations. These matrices were essential inputs to the optimization algorithms, acting as a lookup distance table.

3.2. Mathematical Model

As mentioned earlier, this study addresses the delivery routing problem of the Chiang Rai post office. The problem is classified as a single-depot VRP, in which all vehicles that depart from the post office must return to the post office. For each operational day, a vehicle must decide on the delivery route for a set of different customers. All customers must be visited within an operational day with no specific time window. The traffic conditions were not considered in this case, due to the fact that there was little traffic in the investigated area. Thus, the delivery time and cost were primarily based on the total travel distance, and the objective of this problem was to find optimal routes with the lowest total travel distance. In addition, the capacity of the parcel pouches was assumed to be infinite, since the postman used two large pouches that could always contain all parcels, and there has been no case where the capacity was insufficient.
In this study, the postman delivery routing problem is represented as an integer programing (IP) model. The parameters and decision variables used in formulating the model are defined as follows:
Indices
i, j:
Post office and customer locations (i, j = 1 for the post office location; i, j = 2, 3, …, n for customer locations).
k:
Vehicle (k = 1, 2, …, m).
Parameters
di, j:
Distance from i to j
Ui, Uj:
Constant number used to avoid a subtour.
N:
Number of locations.
M:
Number of vehicles.
Decision Variable
xi,j,k:
If vehicle k travels from i to j or 0 otherwise.
The minimization of the total travel distance is expressed as
M i n   Z =   i = 1 n j = 1 n k = 1 m d i j x i j k
The constraints are as follows:
i = 1 n k = 1 m x i j k = 1   j   ;                                                               j = { 2 , 3 , , n }
j = 1 n k = 1 m x i j k = 1                                     i   ;   i = { 2 , 3 , , n }
i = 1 n x i p k j = 1 n x p j k = 0                                 p k   ;     p = { 1 , 2 , , n }   ,   k = { 1 , 2 , , m }
i = 2 n x i 1 k 1                                 k   ;   k = { 1 , 2 , , m }
j = 2 n x 1 j k 1                                               k   ;   k = { 1 , 2 , , m }
U i   U j + N k = 1 m x i j k N 1                                 i   j   ;   i , j = { 2 , 3 , , n }   a n d   i j
x i j k { 0 , 1 }                                     i j k   ;   i , j = { 1 , 2 , , n }   ,   k = { 1 , 2 , , m }
The objective of the model was to minimize the total travel distance as shown in Equation (1). Equations (2) and (3) ensured that each customer was visited once and by only one vehicle. The constraint in Equation (4) guaranteed the route continuity of all vehicles. Equations (5) and (6) ensured that each vehicle could take only one route, and it needed to depart from and return to the post office. Equation (7) was used to eliminate subtours. Equation (8) states that a decision variable is a binary number.

3.3. Application of PSO and DE to the Postman Delivery Routing Problem

As mentioned earlier, the postman delivery routing problem is NP-hard. Thus, solution methods based on metaheuristic approaches are more preferable than the traditional exact methods for finding solutions in real-world practices. This section presents the application of two effective metaheuristic approaches—particle swarm optimization (PSO) and differential evolution (DE)—to solve the postman delivery routing problem. A solution representation with an encoding and decoding scheme is proposed to transform a metaheuristic solution into a practical solution. The procedures of these algorithms are described below.

3.3.1. Particle Swarm Optimization (PSO)

Particle swarm optimization (PSO), proposed by Kennedy and Eberhart in 1995, is a population-based random search technique that imitates the behavior of fish schooling or birds flocking. In PSO, a solution is represented as a particle, and the population of solutions is called a swarm of NP particles. Each particle consists of two main attributes: The position and the velocity. The evolutionary concept of PSO is that each particle learns from the cognitive knowledge of its experiences (personal best, or pbest) and the social knowledge of the swarm (global best, or gbest) to guide itself to the better position. A particle moves to a new position using the updated velocity, which is adjusted according to the experiences of a particle. In particular, the updated velocity of a particle depends on three main control parameters: The inertia weight, personal best coefficient (cp) and global best coefficient (cg). Once a new position is obtained, the best position of each particle and the best position of the swarm are then updated as needed. These processes are repeated until a stopping criterion is met. Figure 1 shows the evolutionary procedure of the PSO.

3.3.2. Differential Evolution (DE)

Differential evolution (DE), proposed by Storn and Price in 1995, is one of the evolutionary algorithms (EAs) used for global optimization over a continuous search space. Similar to other population-based random search techniques, DE starts by randomly generating an initial population of NV vectors. A solution in DE is represented by the D-dimensional vector, and each value in the D-dimensional space is represented as a real number. The crucial idea of DE is its mechanism for generating trial vectors by mutation and crossover operations with the use of a couple control variables: The scale factor (F) and the crossover rate (Cr). In this study, the classic but efficient mutation operation of DE/rand/1 was applied to generate a mutant vector by adding a weighted difference (F) between two randomly selected vectors to the third randomly selected vector. DE is able to generate better diverse solutions, since the best solution in the population does not exert any influence on the other solutions in the population. In addition, the mutant vector is always a solution that is not from the original population; therefore, the crossover operation in DE is always between a solution from the population and a newly generated one [32]. Then, the selection operation or replacement of an individual vector occurs only if the trial vector outperforms its corresponding current vector. As shown in Figure 2, the evolution procedure of a DE population continues through repeated cycles of three main operations—mutation, crossover and selection—until a stopping criterion is met.

3.3.3. Solution Representation

In order to apply PSO and DE for solving a combinatorial problem like the postman delivery routing problem, solution representation or solution mapping was required to transform the real number of the D-dimensional space into practical solutions for vehicle routing. Figure 3 presents the procedure of solution representation with the encoding and decoding scheme.
The encoding process aimed to represent a solution as a string of dimensions. In this study, the postman delivery routing problem with n − 1 customers (noting that n is the number of locations, including the post office) and m vehicles was encoded as a string of D dimensions. The number of dimensions (D) was set to be equal to the total number of customers, and the dimension index stood for the customer index. Each value in a dimension was initially filled with a uniform random number in the range [0, 1]. Next, the process of decoding was divided into two stages: (1) the assignment of customers to vehicles and (2) the sequencing or routing for each vehicle. In the assignment stage, the range (max–min) of the dimension value was split by the number of vehicles as in Equation (9):
Split = (MaxMin)/m
where m is the number of vehicles, Min is the minimum value in the dimensions and Max is the maximum value in the dimensions.
According to Equation (9), the range of the dimension value was equally partitioned into m subsections corresponding to m vehicles. The span of each subsection is determined in Figure 4. It is noted that a subsection index denoted a vehicle index.
Then, a customer was assigned to a vehicle, considering its customer dimension value with the corresponding subsection. For example, if the dimension value of customer 1 fell into Section 2, that customer was assigned to vehicle 2 correspondingly. This process continued until all customers were considered. Once the assignment of customers to vehicles was decided, a heuristic called the nearest-neighbor search (NNS) was applied to determine the delivery routing of each vehicle. Thus, for each vehicle, the next visited customer was the one with the nearest distance to the current location. The completed route of a vehicle was obtained when all customers assigned to that vehicle were considered. It is noted that all vehicles needed to depart from and return to the post office.
To illustrate the process of solution representation, let us consider an example of the postman delivery routing problem with six customers and two vehicles. A distance matrix between the post office and customers is shown in Figure 5. The sample matrix in this example is symmetric; however, a matrix constructed from the actual operation might be asymmetric, depending on the locations where the delivery process takes place.
In the encoding process, the number of dimensions was set to six, which was equal to the number of customers. Each value in a dimension was initially generated with a uniform random number between 0 and 1, as shown in Figure 6.
Figure 7 illustrates the decoding procedure for obtaining the routing of a vehicle. First, according to Equation (9), the range of the dimension value is divided by the number of vehicles, which is (0.87 − 0.25)/2 = 0.31. In this example, two subsections are obtained according to the number of vehicles. Then, the condition of the customer assignment is set. The span of sections 1 and 2 are (0.25, 0.56) and (0.56, 0.87), respectively. When the customer dimension value falls into the first subsection, that customer is assigned to vehicle 1; otherwise, they are assigned to vehicle 2. Thus, customers 1, 2, 4 and 6 are assigned to vehicle 1, and customers 3 and 5 are assigned to vehicle 2. After that, the routing of each vehicle is determined using NNS method. According to the distance matrix in Figure 5, vehicle 1 starts from the post office, then goes to customer 6, customer 4, customer 2 and customer 1 before returning to the post office. Vehicle 2 starts from the post office, then goes to customer 5 and customer 3 before returning to the post office. The total distance of this particular example is 557 + 143 = 720 units.

4. Experimental Results

Information for the experiment, including the algorithm parameters for PSO and DE and the computational results, are shown in this section. The results emphasize the performance comparison among PSO, DE and current practices. In addition, box plots comparing the results of DE and PSO in some instances are provided.

4.1. Parameter Setting of Metaheuristics

Typically, the performance of metaheuristics is influenced by the searching and solution mapping mechanisms, while the setting of parameters decides how well the solutions converge. For a fair comparison between PSO and DE, the number of function evaluations for both algorithms was equally set to 2500, with population sizes of 50 and 50 iterations. Table 1 and Table 2 show the parameter settings of PSO and DE, respectively. It is noted that these settings were empirically determined from preliminary experiments.

4.2. Computational Results

In this study, the metaheuristics were implemented using the Python programming language [33] under PyCharm IDE [34] version 2020.3.1 with Windows 10 as the operating system. The programs ran on an Intel® CoreTM i5-4690 CPU 3.50 GHz platform with 32 GB of RAM. The performances of the algorithms were evaluated using the dataset derived from a real case study of postman delivery in association with the Chiang Rai post office for a period of 50 days. Table 3 shows the VRP solutions (total travel distance) obtained from the proposed metaheuristics, which include the best, average and standard deviation of the total distance from 10 replicated runs for each instance. The average time duration to run one optimization cycle for each instance is also reported.
To further analyze the effectiveness of the metaheuristics for solving the postman delivery routing problem, the percentage deviation (PD) between solutions obtained from the metaheuristics and those from the current practices were calculated using Equation (10). The results for the PD are shown in Table 4:
PD = ((Solcurrent_practiceSolheu)/Solcurrent_practice) × 100,
where Solcurrent_practice is the solution obtained from the current practice and Solheu is the solution obtained from a metaheuristic.
According to the results in Table 3, it is obvious that both the PSO and DE algorithms performed very well in generating solutions with less distance, compared with those obtained from the current practices for all instances, with fast computing times. Both algorithms were able to provide robust solutions with small standard deviations. However, it was observed that DE clearly outperformed PSO, since DE was able to generate the better solution quality for the best and average travel distances in all instances. In Table 4, DE shows its superiority to PSO for all instances by providing higher PD values from the current practice solutions. The percentage deviation (PD) of the distance ranged from 33.34 to 45.91 with an average of 39.93 for the PSO algorithm and from 42.92 to 57.88 with an average of 51.62 for the DE algorithm.
Moreover, the performance differences between PSO and DE are visually demonstrated in Figure 8, showing box plots of the total travel distance from 10 replicated runs of the PSO and DE algorithms, which used solutions from instances 1, 20, 40 and 50. According to the results in Figure 8, it is clearly seen that the solutions obtained from DE were significantly better than those obtained by PSO.
Lastly, the behavior of the algorithms was investigated in terms of time and space complexity (i.e., how the algorithm runtime and space requirements scaled when the inputs grew). Specifically, the plots of the algorithm runtimes and memory usages versus the number of visited locations (customers plus the post office) were constructed as shown in Figure 9 and Figure 10. The number of locations ranged from 10 to 100, with the distance matrix randomly generated specifically for the complexity examination of those algorithms.
According to Figure 9 and Figure 10, the quadratic regression was used to fit both the time and space complexity plots for DE and PSO. The coefficients of determination ( R 2 ) of the selected regression model in the time complexity plot were 99.43% for DE and 99.62% for PSO, and those in the space complexity plot were 99.96% for DE and 99.97% for PSO. Therefore, the plots clearly demonstrate that the time and space complexity of both algorithms were classified as having an order of n 2 complexity, or O ( n 2 ) , since both the runtime and space requirements had quadratic relationships with the input sizes.

5. Discussion and Conclusions

This research employed metaheuristic algorithms, namely the PSO and DE algorithms, to solve the single-objective VRP for optimized routing solutions. The objective was to determine a solution with the lowest travel distance. The study used actual operational data from two delivery vehicles of the Chiang Rai post office over a period of 50 days. The data included geographic coordinates of the customer locations where those vehicles delivered parcels, which were then transformed into distance matrices for use by the optimization algorithms. For each delivery day, the algorithms tried to search and assign new routes to those two vehicles such that the total travel distance was minimized. The routing performances from the PSO and DE algorithms, as well as those from actual operations, were compared. The experimental results showed that both metaheuristic algorithms were far superior to the real delivery operations of the post office in all 50 days of the experiment. However, DE clearly outperformed PSO by providing outstanding solution quality for all instances. This result was mainly due to the different evolution mechanisms of DE and PSO. A PSO swarm has a high tendency to cluster rapidly and becomes stagnant, since the movement of a swarm is highly influenced by the global best solution. In addition, the diversification of DE is better than PSO, because the best solution in the population does not exert any influence on other solutions in the population. A new solution in DE would be selected only if it had better fitness, and thus the average fitness of the population would be equal or better from iteration to iteration. It is important to note that the results obtained from this study were based on the delivery constraints of the Chiang Rai post office. However, for the operations of other post offices, other constraints such as vehicle capacity, a customer’s time window and the delivery time horizon could be taken into consideration. In such cases, the problem must be remodeled, and new solutions will be obtained under those circumstances.
Another essential factor was the duration for running one optimization cycle in order to obtain the optimized solution. For both the DE and PSO algorithms, the average duration was approximately six minutes. Combining the decent results and acceptable runtime duration, the methods used in this study have the potential to be employed in real post office operations. Additionally, even though there were two vehicles in this study, the proposed algorithms can also be applied to large cities in which the post office operates several delivery vehicles. In essence, the methods proposed in this study could drastically help reduce the delivery cost and time for postman delivery operations. Additionally, the vehicle routing optimization process (with about 100 customer locations) only takes minutes rather than hours, which is practical in the actual post office work environment where all parcels have to be processed and dispatched quickly.
There are some challenges to be considered if these methods are to be used in actual delivery operations. First, the post office operators need to determine a quick approach to convert customer addresses into geographic coordinates, which should be done systematically and automatically. Second, the duration to run an optimization cycle is proportional to the number of addresses and delivery vehicles. Therefore, the optimization parameters such as the population sizes and iterations should be well adjusted according to those numbers. Thus, the operators could utilize machine learning, artificial intelligence and image processing methods to quickly transform those customer addresses into definite GPS locations. They should also give enough lead time to account for the unexpected increase in processing time before all deliveries can start. In addition, the proposed PSO and DE use deterministic data, in which the customers and distance matrices are known in advance, and the routing is determined using these data. When some data are changed during delivery, the only way to adapt to such change is to rerun the algorithms. Thus, another important challenge is to develop an adaptive algorithm to respond to changes effectively.
In future studies, other metaheuristic algorithms, such as the adaptive large neighborhood search and genetic programming algorithms, are planned to be tested for their performance with datasets obtained from larger delivery operations, including not only postman delivery problems but also problems from other industries.

Author Contributions

Conceptualization, W.W. and N.W.; methodology, W.W.; software, A.B. and N.W.; validation, A.B.; formal analysis, W.W., K.P. and N.W.; investigation, W.W. and N.W.; resources, N.W.; data curation, C.S. and N.W.; writing—original draft preparation, W.W., K.P., C.S., A.B. and N.W.; writing—review and editing, W.W., K.P., C.S., A.B. and N.W.; visualization, W.W., C.S. and N.W.; supervision, N.W.; project administration, N.W.; funding acquisition, N.W. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Mae Fah Luang University.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data used in this study are available upon reasonable request to the corresponding author.

Acknowledgments

The authors are grateful to the Chiang Rai post office. The authors would like to acknowledge Mae Fah Luang University and Chiang Mai University for a partial financial sponsorship and their facility support in this research.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Case, M.J.; Johnson, G.G.; Bartowitz, K.J.; Hudiburg, T.W. Forests of the future: Climate change impacts and implications for carbon storage in the Pacific Northwest, USA. For. Ecol. Manag. 2021, 482, 118886. [Google Scholar] [CrossRef]
  2. Our World in Data. Available online: http://ourworldindata.org/co2-emissions-from-transport (accessed on 21 January 2021).
  3. Skerlic, S.; Muha, R. The importance of systems for controlling logistics costs in the supply chain: A case study from the Slovenian automotive industry. Promet Traffic Traffico. 2016, 26, 299–310. [Google Scholar] [CrossRef] [Green Version]
  4. United States Postal Service, Office of Inspector General. Available online: http://uspsoig.gov/document/postal-service-dynamic-route-optimization-and-cost-savings-initiative (accessed on 21 January 2021).
  5. Dantzig, G.B.; Ramser, J.H. The truck dispatching problem. Manag. Sci. 1959, 6, 80–91. [Google Scholar] [CrossRef]
  6. Guzairov, M.B.; Yusupova, N.I.; Smetanina, O.N.; Rassadnikova, E.Y. Models and algorithms for the vehicle routing problem with time windos and other conditions. In Proceedings of the 2016 13th International Scientific-Technical Conference on Actual Problems of Electronics Instrument Engineering (APEIE), Novosibirsk, Russia, 3–6 October 2016; pp. 412–416. [Google Scholar]
  7. Wang, Z.; Ren, X.; Ji, Z.; Huang, W.; Wu, T. A novel bio-heuristic computing algorithm to solve the capacitated vehicle routing problem based on Adleman-Lipton model. BioSystems 2019, 184, 103997. [Google Scholar] [CrossRef] [PubMed]
  8. Niu, Y.; Zhang, Y.; Cao, Z.; Gao, K.; Xiao, J.; Song, W.; Zhang, F. MIMOA: A membrange-inspired multi-objective algorithm for green vehicle routing problem with stochastic demands. Swarm Evol. Comput. 2021, 60, 100767. [Google Scholar] [CrossRef]
  9. Dumez, D.; Lehuede, F.; Peton, O. A large neighborhood search approach to the vehicle routing problem with delivery options. Transp. Res. B 2021, 104, 103–132. [Google Scholar] [CrossRef]
  10. Baldacci, R.; Mingozzi, A. Lower bounds and an exact method for the capacitated vehicle routing problem. In Proceedings of the 2006 International Conference on Service System and Service Management, Troyes, France, 25–27 October 2006; pp. 1536–1540. [Google Scholar]
  11. Ropke, S. Heurisic and Exact algorithms for Vehicle Routing Problems. Ph.D. Thesis, University of Copenhagen, København, Denmark, 2006. [Google Scholar]
  12. Ladner, R.E. On the structure of polynomial time reducibility. J. ACM 1975, 22, 151–171. [Google Scholar] [CrossRef]
  13. Tordecilla, R.D.; Copado-Mendez, P.J.; Panadero, J.; Quintero-Araujo, C.L.; Montoya-Torres, J.R.; Juan, A.A. Combining heuristics with simulation and fuzzy logic to solve a flexible-size location routing problem under uncertainty. Algorithms 2021, 14, 45. [Google Scholar] [CrossRef]
  14. Meira, L.A.A.; Martins, P.S.; Menzori, M.; Zeni, G.A. Multi-objective vehicle routing problem applied to large scale office. arXiv 2018, arXiv:1801.00712. [Google Scholar]
  15. Niroomand, I.; Khataie, A.H.; Galankashi, M.R. Vehicle routing with time window for regional network services—Practical modelling approach. In Proceedings of the 2014 IEEE International Conference on Industrial Engineering and Engineering Management, Bandar Sunway, Malaysia, 9–12 December 2014. [Google Scholar] [CrossRef]
  16. Nasri, M.; Hafidi, I.; Metrane, A. Multithreading parallel robust approach for the VRPTW with uncertain service and travel times. Symmetry 2021, 13, 36. [Google Scholar] [CrossRef]
  17. Zhou, Z.; Ha, M.; Hu, H.; Ma, H. Half open multi-depot heterogeneous vehicle routing problem for hazardous materials transportation. Sustainability 2021, 13, 1262. [Google Scholar] [CrossRef]
  18. Erbao, C.; Mingyong, L.; Kai, N. A Differential Evolution & Genetic Algorithm for Vehicle Routing Problem with Simultaneous Delivery and Pick-up and Time Windows. In Proceedings of the 17th World Congress the International Federation of Automatic Control, Seoul, Korea, 6–11 July 2008. [Google Scholar]
  19. Kromer, P.; Abraham, A.; Snasel, V.; Berhan, E.; Kitaw, D. On the differential evolution for vehicle routing problem. In Proceedings of the 2013 International Conference on Soft Computing and Pattern Recognition (SoCPaR), Hanoi, Vietnam, 15–18 December 2013; pp. 384–389. [Google Scholar]
  20. Sethanan, K.; Jamrus, T. Hybrid differential evolution algorithm and genetic operator for multi-trip vehicle routing problem with backhauls and heterogeneous fleet in the beverage logistics industry. Comput. Ind. Eng. 2020, 146. [Google Scholar] [CrossRef]
  21. Xing, L.N.; Liu, Y.; Li, H.; Wu, C.; Lin, W.C.; Song, W. A hybrid discrete differential evolution algorithm to solve the split delivery vehicle routing problem. IEEE Access 2020, 8, 207962–207972. [Google Scholar] [CrossRef]
  22. Song, L.; Dong, Y. An improved differential evolution algorithm with local search for capacitated vehicle routing problem. In Proceedings of the 2018 Tenth International Conference on Advanced Computational Intelligence (ICACI), Xiamen, China, 29–31 March 2008. [Google Scholar]
  23. Lei, J.; Li, J. Solving capacitated vehicle routing problems by modified differential evolution. In Proceedings of the 2010 2nd International Asia Conference on Informatics in Control, Automation and Robotics (CAR 2010), Wuhan, China, 6–7 March 2010; pp. 513–516. [Google Scholar]
  24. Moghaddam, B.; Ruiz, R.; Sadjadi, S.J. Vehicle routing problem with uncertain demands: An advanced particle swarm algorithm. Comput. Ind. Eng. 2012, 62, 306–317. [Google Scholar] [CrossRef] [Green Version]
  25. Peng, Z.; Manier, H.; Manier, M.A. Particle swarm optimization for capacitated location-routing problem. Comput. Ind. Eng. 2020, 146. [Google Scholar] [CrossRef]
  26. Marinakis, Y.; Marinaki, M.; Migdalas, A. A multi-adaptive particle swarm optimization for the vehicle routing problem with time windows. Inf. Sci. 2019, 481, 311–329. [Google Scholar] [CrossRef]
  27. Chen, J.; Shi, J. A multi-compartment vehicle routing problem with time windows for urban distribution—A comparison study on particle swarm optimization algorithms. Comput. Ind. Eng. 2019, 133, 95–106. [Google Scholar] [CrossRef]
  28. Chen, R.M.; Shen, Y.M.; Hong, W.Z. Neural-like encoding particle swarm optimization for periodic vehicle routing problems. Expert Syst. Appl. 2019, 138, 112833. [Google Scholar] [CrossRef]
  29. Sedighizadeh, D.; Mazaheripour, H. Optimization of multi objective vehicle routing problem using a new hybrid algorithm based on particle swarm optimization and artificial bee colony algorithm considering Precedence constraints. Alex. Eng. J. 2018, 57, 2225–2239. [Google Scholar] [CrossRef]
  30. Yanwei, Z.; Bin, W.; Wanliang, W.; Jingling, Z. Particle swarm optimization for open vehicle routing problem with time dependent travel time. In Proceedings of the 17th World Congress the International Federation of Automatic Control, Seoul, Korea, 6–11 July 2008. [Google Scholar]
  31. Google Maps Platform, Geo-Location APIs. Available online: http://cloud.google.com/maps-platform (accessed on 15 May 2019).
  32. Kachitvichyanukul, V. Comparison of three evolutionary algorithms: GA, PSO, and DE. Ind. Eng. Manag. Syst. 2012, 11, 215–223. [Google Scholar] [CrossRef] [Green Version]
  33. Rossum, G.V. Python tutorial, Technical Report CS-R9526, Centrum voor Wiskunde en Informatica (CWI). Amsterdam, May 1995. Available online: https//www.python.org (accessed on 9 April 2019).
  34. PyCharm, the Python IDE for Professional Developers. Available online: http://jetbrains.com/pycharm (accessed on 5 November 2020).
Figure 1. Evolutionary procedure of the particle swarm optimization (PSO) algorithm.
Figure 1. Evolutionary procedure of the particle swarm optimization (PSO) algorithm.
Applsci 11 02703 g001
Figure 2. Evolutionary procedure of the differential evolution (DE) algorithm.
Figure 2. Evolutionary procedure of the differential evolution (DE) algorithm.
Applsci 11 02703 g002
Figure 3. Solution representation procedures.
Figure 3. Solution representation procedures.
Applsci 11 02703 g003
Figure 4. The span of m subsections.
Figure 4. The span of m subsections.
Applsci 11 02703 g004
Figure 5. A distance matrix for an example of the postman delivery routing problem with six customers and two vehicles.
Figure 5. A distance matrix for an example of the postman delivery routing problem with six customers and two vehicles.
Applsci 11 02703 g005
Figure 6. Encoding example of the postman delivery routing problem with six customers and two vehicles.
Figure 6. Encoding example of the postman delivery routing problem with six customers and two vehicles.
Applsci 11 02703 g006
Figure 7. Decoding procedures to transform a D-dimensional solution into a vehicle routing solution.
Figure 7. Decoding procedures to transform a D-dimensional solution into a vehicle routing solution.
Applsci 11 02703 g007
Figure 8. Box plot comparison of the total travel distance (km) from 10 replicated runs between the PSO and DE algorithms (instances 1, 20, 40 and 50).
Figure 8. Box plot comparison of the total travel distance (km) from 10 replicated runs between the PSO and DE algorithms (instances 1, 20, 40 and 50).
Applsci 11 02703 g008
Figure 9. Plot between the algorithm runtimes (DE and PSO) and the visited locations. The quadratic regression fits and their functions are included.
Figure 9. Plot between the algorithm runtimes (DE and PSO) and the visited locations. The quadratic regression fits and their functions are included.
Applsci 11 02703 g009
Figure 10. Plot between the algorithm memory usage (DE and PSO) and the visited locations. The quadratic regression fits and their functions are included.
Figure 10. Plot between the algorithm memory usage (DE and PSO) and the visited locations. The quadratic regression fits and their functions are included.
Applsci 11 02703 g010
Table 1. The setting of PSO parameters.
Table 1. The setting of PSO parameters.
ParameterParameter Value
Swarm Size50
Iterations50
Inertia Weight0.9
Personal Best Coefficient (cp)0.5
Global Best Coefficient (cg)0.3
Table 2. The setting of DE parameters.
Table 2. The setting of DE parameters.
ParameterParameter Value
Population Size50
Iterations50
Scale Factor (F)Random between 1.5 and 2.5
Crossover rate (Cr)Linearly Increasing from 0.2 to 0.8
Crossover TypeBinomial Crossover
Table 3. Experimental results of total distance.
Table 3. Experimental results of total distance.
InstanceCurrent PracticePSOTime (s)DETime (s)
BestAverageSDBestAverageSD
133.6421.3822.090.49190.5617.6417.980.34185.12
229.0818.8519.520.44125.8915.6116.390.35135.13
330.0718.9720.830.72170.0415.0615.810.42175.41
436.9120.95220.56228.8116.1916.440.2237.17
534.2619.5920.230.44177.3614.9315.560.53175.24
633.7719.1720.30.65200.515.2616.160.5209.27
737.9321.2522.70.54232.8817.2418.790.64250.97
832.7220.4821.570.59182.4616.7117.630.41208.32
927.6516.7417.680.6159.6612.7213.330.39164.96
1032.3720.9721.690.33192.2417.3417.880.46198.62
1137.2921.2422.330.48226.3116.2116.990.51234
1238.2321.4322.140.42214.317.2417.830.4221.5
1330.5019.9920.570.3181.7916.1916.750.34187.85
1432.7918.9819.980.52187.2114.9315.280.35193.23
1534.7821.1121.940.56236.7816.3717.30.56244.41
1632.8320.4121.020.41182.0116.6816.980.42184.99
1731.4920.9921.630.38202.5716.3916.790.47218.21
1832.7020.8421.440.4217.4616.0416.960.46214.46
1935.2319.2620.160.5202.2315.3215.780.25216.41
2036.1323.0823.810.32229.8418.1718.840.39240.47
2127.4417.8919.050.56147.8615.1116.040.42142.17
2230.1918.2119.380.54160.9415.4516.330.59155.08
2328.6818.2619.850.82133.9916.3716.970.34149.74
2433.7720.0720.860.43210.2415.616.260.42218.33
2534.8320.9321.520.3224.5916.5617.060.36232.34
2635.3719.9321.020.67217.0115.9116.230.25224.51
2733.3920.8821.40.33177.0715.1715.910.57183.18
2838.7520.9621.550.44199.5116.3216.880.41206.43
2935.0420.4621.640.59211.9116.4717.160.53219.39
3030.4418.8419.480.43170.0114.2615.210.4176.16
3133.0318.0419.390.48143.9415.9416.450.4148.96
3230.7819.4420.070.5158.4914.7415.380.43150.77
3337.2120.2921.640.59173.1118.318.610.2196.03
3431.7819.0320.380.64171.0216.0316.770.37186.87
3535.1220.722.090.7166.517.4917.890.37174.06
3634.7420.7221.660.55180.3916.9817.910.38185.7
3730.1919.3420.570.48164.5114.5416.330.95164.86
3831.8218.4919.360.46155.1915.5616.550.55162.95
3931.3917.8218.840.48152.5914.7415.280.4155.57
4029.3618.6819.590.41148.914.1914.910.47147.4
4131.8818.5319.210.4157.614.5315.130.39156.06
4232.2019.3220.330.44200.5815.1516.230.53203.92
4330.4218.7719.460.29132.4715.1615.860.4124.59
4433.5718.6419.310.43163.9615.7215.950.16172.84
4530.4017.9918.650.42129.0715.66160.3137.2
4638.3821.4522.050.41220.5816.7417.480.53216.86
4728.9717.3119.160.67157.9415.3415.640.29153.27
4830.1819.4620.370.46190.0915.6916.340.4202.63
4933.7020.8121.440.27177.4816.5716.950.44201.89
5031.6818.1918.850.38172.0214.3214.850.52163.4
Table 4. Experimental results of the percentage deviation (PD).
Table 4. Experimental results of the percentage deviation (PD).
InstanceCurrent PracticePSODE
BestPDBestPD
133.6421.3836.4417.6447.56
229.0818.8535.1815.6146.32
330.0718.9736.9115.0649.92
436.9120.9543.2416.1956.14
534.2619.5942.8214.9356.42
633.7719.1743.2315.2654.81
737.9321.2543.9817.2454.55
832.7220.4837.4116.7148.93
927.6516.7439.4612.7254
1032.3720.9735.2217.3446.43
1137.2921.2443.0416.2156.53
1238.2321.4343.9417.2454.9
1330.519.9934.4616.1946.92
1432.7918.9842.1214.9354.47
1534.7821.1139.316.3752.93
1632.8320.4137.8316.6849.19
1731.4920.9933.3416.3947.95
1832.7020.8436.2716.0450.95
1935.2319.2645.3315.3256.51
2036.1323.0836.1218.1749.71
2127.4417.8934.815.1144.93
2230.1918.2139.6815.4548.82
2328.6818.2636.3316.3742.92
2433.7720.0740.5715.653.81
2534.8320.9339.9116.5652.45
2635.3719.9343.6515.9155.02
2733.3920.8837.4715.1754.57
2838.7520.9645.9116.3257.88
2935.0420.4641.6116.4753
3030.4418.8438.1114.2653.15
3133.0318.0445.3815.9451.74
3230.7819.4436.8414.7452.11
3337.2120.2945.4718.350.82
3431.7819.0340.1216.0349.56
3535.1220.741.0617.4950.2
3634.7420.7240.3616.9851.12
3730.1919.3435.9414.5451.84
3831.8218.4941.8915.5651.1
3931.3917.8243.2314.7453.04
4029.3618.6836.3814.1951.67
4131.8818.5341.8814.5354.42
4232.2019.324015.1552.95
4330.4218.7738.315.1650.16
4433.5718.6444.4715.7253.17
4530.4017.9940.8215.6648.49
4638.3821.4544.1116.7456.38
4728.9717.3140.2515.3447.05
4830.1819.4635.5215.6948.01
4933.7020.8138.2516.5750.83
5031.6818.1942.5814.3254.8
Average 39.93 51.62
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Wisittipanich, W.; Phoungthong, K.; Srisuwannapa, C.; Baisukhan, A.; Wisittipanit, N. Performance Comparison between Particle Swarm Optimization and Differential Evolution Algorithms for Postman Delivery Routing Problem. Appl. Sci. 2021, 11, 2703. https://doi.org/10.3390/app11062703

AMA Style

Wisittipanich W, Phoungthong K, Srisuwannapa C, Baisukhan A, Wisittipanit N. Performance Comparison between Particle Swarm Optimization and Differential Evolution Algorithms for Postman Delivery Routing Problem. Applied Sciences. 2021; 11(6):2703. https://doi.org/10.3390/app11062703

Chicago/Turabian Style

Wisittipanich, Warisa, Khamphe Phoungthong, Chanin Srisuwannapa, Adirek Baisukhan, and Nuttachat Wisittipanit. 2021. "Performance Comparison between Particle Swarm Optimization and Differential Evolution Algorithms for Postman Delivery Routing Problem" Applied Sciences 11, no. 6: 2703. https://doi.org/10.3390/app11062703

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop