Skip to main content
Advertisement
Browse Subject Areas
?

Click through the PLOS taxonomy to find articles in your field.

For more information about PLOS Subject Areas, click here.

  • Loading metrics

Delivery routing problem of pure electric vehicle with multi-objective pick-up and delivery integration

  • Wangang Cai,

    Roles Writing – original draft

    Affiliation School of Automobile and Traffic Engineering, Hubei University of Arts and Sciences, Xiangyang, China

  • Yihao Zhang,

    Roles Data curation, Validation

    Affiliation School of Automobile and Traffic Engineering, Hubei University of Arts and Sciences, Xiangyang, China

  • Fuyou Huang,

    Roles Conceptualization, Validation

    Affiliation Institute of Transportation Development Strategy & Planning of Sichuan Province, Chengdu, China

  • Chao Ma

    Roles Funding acquisition, Writing – review & editing

    mmma1123@163.com

    Affiliations Hubei Key Laboratory of Power System Design and Test for Electrical Vehicle, Hubei University of Arts and Science, Xiangyang, China, School of Automobile and Traffic Engineering, Hubei University of Arts and Sciences, Xiangyang, China

Abstract

With the growth of people’s environmental awareness and the encouragement of government policies, the use of electric vehicles in logistics distribution is gradually increasing. In order to solve the dual demand of customers’ simultaneous pick-up and delivery in the “last kilometer logistics”, an electric vehicle routing problem with simultaneous pick-up and delivery and time window (EVRPSPDTW) is considered from the perspective of multi-objective distribution in this paper. Firstly, a decision-making model based on distribution cost and power consumption function is established. In this model, distribution cost includes transportation cost, vehicle use cost, penalty cost of not arriving on time and charging cost. Power consumption function is the energy loss caused by air resistance, tire rolling friction and transmission system. Secondly, a multi-objective genetic algorithm (NSGA-II) optimization solution with fast nondominated ranking and elite strategy is designed, and in view of the shortcomings of traditional NSGA-II, it is proposed to complete population initialization through greedy algorithm and random rules, introduce adaptive cross-mutation strategy in the chromosome crossing and mutation stage, and design three different neighborhood operators in mutation operation based on variant fitness function. Finally, the sensitivity analysis of traffic congestion coefficient further proves the effectiveness of the proposed model and the improved algorithm.

1 Introduction

With the development of society and the multiple needs of consumers, the concept of low carbon and the improvement of customer satisfaction have become the focus of logistics and distribution companies. Some data show that the transportation system is one of the main drivers of greenhouse gas emissions [1]. In practice, the fossil fuels that traditional internal combustion engine vehicles rely on are not only limited, but also cause serious environmental pollution. Therefore, major developed countries in the world have promoted new energy vehicles. As electric vehicles have no local greenhouse gas emissions and low noise environmental protection characteristics, the practice in recent years shows that electric vehicles will become an attractive low-carbon transportation in the road transportation system [2]. Although electric vehicles have the advantages of being friendly to the environment, the objective factors such as short mileage, long midway charging time and maximum load constraints can not be ignored. Electric vehicle routing problem has become another variant of vehicle routing problem (VRP). In this paper, the EV logistics distribution network is described as a directed graph in which the customer node, the charging pile in the distribution center, is taken as the node of the logistics transportation network, and the route between any two nodes is taken as the edge-to-edge route of the logistics transportation network, and the cost generated by the route is assigned as the weight of the edge of the logistics transportation network In recent years, the rapid development of optimization algorithms provides a basis for solving logistics distribution network models. Liu [3] proposed an improved ant colony optimization algorithm to solve the last mile problem of rural e-commerce logistics distribution, Li et al. [4] Applied a modified particle swarm optimization algorithm to the green vehicle routing problem of cold chain logistics considering greenhouse gas emissions, Ma et al. [5] and others developed an improved three-stage genetic algorithm based on Bertsimas robust discrete optimization theory in order to identify a highly robust and uncertain-insensitive electric vehicle (EV) assignment path.

In the VRP of green logistics, delivery time, pick-up and delivery have become a hot spot. In fact, the vehicle routing problem with simultaneous pick-up and delivery and time windows (VRPSDPTW) has not only time constraints, but also vehicle capacity constraints [68]. In addition, customer satisfaction with distribution services also affects the development of green logistics. In the previous research on distribution problems, the discussion of customer satisfaction mainly focused on logistics transportation with high time sensitivity, and it is usually the optimization of multiple objectives. Li et al. [9] used bilevel programming theory and genetic algorithm to solve the location routing optimization model of cold chain distribution center. Zhao et al. [10] solved the multi-objective cold chain distribution model based on the improved ant colony algorithm. Qin et al. [11] proposed on-time delivery as the standard to evaluate customer satisfaction, and used cyclic evolutionary genetic algorithm to solve the comprehensive cold chain vehicle routing optimization model. Yan et al. [12] incorporated customer satisfaction into the distribution problem with improved fuzzy delivery window, and further modeled the optimization problem as a multi-objective model with simultaneous delivery and pick-up. The above studies all considered customer satisfaction on the basis of low carbon, however, they did not discuss the particularity of electric vehicles. If the electric vehicle routing problem is extended to the vehicle routing problem with simultaneous pick-up and delivery, the influence of load change on electric vehicle power consumption should also be considered.

In practice, when planning the route of electric vehicles, it is necessary to calculate the energy required for driving and charge it when necessary, so as to manage its mileage. During the research on the energy consumption of electric vehicles, Xiao et al. [13] established a regression model of electric vehicle power consumption under the influence of driving speed and load. Shen et al. [14] proposed that the uncertainty of customer demand and the weight of electric vehicles are important factors affecting energy consumption. Pelletier et al. [15] and Bruni et al. [16] pointed out that weather and road information also have a certain impact on the energy consumption of electric vehicles. Therefore, in describing the dynamic circuit consumption of electric vehicles, the effects of driving distance, driving speed, vehicle load and traffic environment can be comprehensively considered.

As far as we know, the existing research on the routing problem of electric vehicle ignores the impact of changes in the traffic environment on the speed and arrival time of electric vehicles, thus affecting the power consumption of electric vehicle and the level of customer satisfaction during transportation. Because the electric vehicle is easily limited by the battery capacity and needs to be charged midway, some times the corresponding driving path needs to be changed. Therefore, it is very necessary for the path planning of the electric vehicle in the dynamic traffic environment. Nowadays, traffic congestion has become a very common phenomenon in the urban traffic network. Road congestion has an uncertain impact on the time and speed of vehicles traveling between the two nodes of the path. In the past, the vehicle routing problem considering traffic congestion was mainly focused on traditional fuel vehicle, and focused on single goals such as the lowest total cost of logistics distribution [1719].

In reality, the logistics distribution of pure electric vehicle is affected by customer satisfaction, traffic congestion, simultaneous pick-up and delivery, specified time, and mileage. However, there is no study in the existing research that comprehensively takes these factors into account in the logistics path planning of electric vehicle. In summary, different from [11, 12], we consider VRP with simultaneous pick-up and delivery. Different from [6, 7], we discuss VRP with traffic congestion. Different from [1719] concerning the route optimization of fuel vehicle, we focus on the route optimization of electric vehicle. Different from [13, 14] and [20], we take customer satisfaction into account and set VRP with multiple objective. Different from [8] and [21], we further investigate VRP with time window. The characteristics and contributions of our study are presented in Table 1.

Motivated by the research gap, in order to minimize the total logistics and distribution cost and maximize the average customer satisfaction, we reasonably plan the logistics and distribution route of pure electric vehicle with simultaneous pick-up and delivery and time windows under traffic congestion. We contribute to the literature in the following three aspects.

First, we consider battery energy consumption and traffic congestion, and establish a total logistics distribution cost model composed of charging cost, time window penalty cost, transportation cost and fixed cost. At the same time, we build a dynamic power consumption model under vehicle speed and dynamic load.

Second, we design a multi-objective genetic algorithm with fast non dominated sorting and elite reservation strategy (NSGA-II), and proposed an encoding and decoding method for the integrated electric vehicle routing problem of pickup and delivery, using both greedy algorithms and random rules. Different strategies are used to construct the initial population. Based on the classical genetic algorithm crossover mutation operator, an adaptive crossover y strategy is introduced, and three different neighborhood structures are designed in the population mutation stage. The effectiveness of the improved NSGA-II algorithm is proved by the comparison of the results of multiple simulation experiments. Finally, the sensitivity analysis of the traffic congestion coefficient is carried out in this paper, which further verifies the stability of the algorithm.

At last, we apply the modified example to discuss the optimal route distribution scheme when the algorithm gets the lowest total logistics distribution cost before and after the improvement. When only considering the lowest total cost of logistics and distribution, the total cost of logistics and distribution after the improved algorithm is reduced by 27.8%, while the average customer satisfaction is increased by 13.9%, and when only considering the highest average customer satisfaction, the total cost of logistics and distribution is reduced by 26.2%, and the highest average customer satisfaction level is the same as that of the NSGA-II algorithm before the improvement. Which proves that the algorithm designed in this paper can reasonably allocate vehicles to meet customers’ needs and reduce costs and increase efficiency when solving the logistics distribution route optimization problem of electric vehicles with simultaneous delivery. It provides some reference for enterprises in the actual logistics distribution process.

The remainder of this paper is structured as follows. Section 2 presents the assumptions and notations. Section 3 discusses the models. Section 4 proposes the solution algorithm. Section 5 analysis results. Section 6 concludes the paper.

2 Assumptions and notations

In order to minimize the total cost of logistics distribution and maximize the average customer satisfaction, this paper considers electric vehicle routing problem with simultaneous pick-up and delivery and time window (EVRPSDPTW). It aims to dispatch a team of electric logistics vehicles from a distribution center to provide logistics services for designated customers within a specified time window. Each customer has a positive supply demand and a reverse pick-up demand. The distribution vehicle starts from the distribution center and needs to load all the goods ready for distribution. When returning to the distribution center, it needs to take back all the recovered goods from customers. Both the pick-up and delivery must meet the vehicle’s own capacity limit. Due to electric vehicle power constraints, when necessary, the route needs to be planned for charging. When the remaining capacity of the battery is lower than the safe power threshold, it is necessary to find a suitable charging point for charging.

Specifically, the EVRPSDPTW problem can be modeled as a mixed integer linear programming model on a complete digraph G, where customers are modeled as graph vertices and paths between customers are modeled as graph arcs. The problem can be expressed as follows: G = (V0,N+1F, A), in which V0,N+1 = V ∪ {0} ∪ {N + 1}(V = {1, …, N}) is a set of vertices, vertices 0 and N + 1 denote distribution centers, V represents a collection of customers. F represents the collection of charging points. A = {(i, j)|i, jV0,N+1, F, ij} is the set of arcs. The other related symbols and variables are summarized in Table 2.

Based on the actual characteristics of logistics distribution and easy to abstract the problem into a model, the following assumptions are made:

  1. The vehicles used by the logistics fleet are the same, with the same maximum load and battery capacity.
  2. The departure time of the vehicle is the same, and it is fully charged when starting from the distribution center or leaving from the charging pile.
  3. The acceleration process is ignored, and the electric vehicle runs at a constant speed in different periods of time.
  4. The goods delivered and collected are the same type of products, and the loading and unloading process does not consume electricity.
  5. Electric vehicles are transported and distributed on relatively flat roads.
  6. The same charging station is allowed to be accessed many times and can be charged quickly within a certain period of time.
  7. If the delivery vehicle arrives two hours later than the customer’s latest time window, it will be invalid.

3 The models

To better explain the multi-objective EVRPTWSPD problem, this section first analyzes the composition of distribution costs, and then establishes the models to minimize costs and maximize customer satisfaction.

3.1 Distribution cost analysis

The distribution costs of electric vehicle include fixed use cost of vehicle, transportation cost, charging cost and time window penalty cost.

Considering the fixed use cost of vehicle C1. It mainly includes vehicle start-up cost and labor cost. The operating cost per unit vehicle is CV, then

Considering the transportation cost C2. There is a positive correlation between transportation distance and transportation cost. The vehicle purchase cost is Ck, the maximum mileage is Yk,max, the distance between node i and node j(∀ji) is dij, then

Considering the charging cost. It is mainly related to the charging capacity of electric vehicle at the charging station. The higher the supplementary power at the charging station, the higher the charging cost. Ce denotes the unit electricity price, bij denotes electric power consumption in unit distance of electric vehicle, then

Considering the time window penalty cost C4. When the vehicle arrives early or late within the maximum time window acceptable to the customer, there will be a certain time waiting cost or penalty cost. The time window acceptable to the customer is [ETi, LTi], the waiting cost per unit time is cp1, the penalty cost per unit time is cp2, then

Analyze the energy consumption of electric vehicles, Goeke and Schneider [20], Basso [21] and others put forward that pure electric vehicles need to overcome rolling resistance Fr, the vehicle’s own gravity Fg and gravity air resistance Fa of vehicles to do work without considering other resistance. Combined with the longitudinal dynamic equation of vehicles, we can get the following formula: From the above formula, it can be deduced that the mechanical power PM of electric vehicle at constant speed is: (1) When the electric vehicle runs at a constant speed, we also need to consider the factor of battery energy loss in the power consumption model. When the mechanical power of the electric vehicle is positive when the power system of the electric vehicle is in traction mode, we will get the conversion relationship between mechanical power PME power and battery power [22]. By sorting out the above formulas, the power consumption model of electric vehicles at a constant speed for a period of time can be obtained as follows: (2)

From the power consumption model, it can be seen that the dynamic load changes of EV after loading and unloading, and the speed changes of EV caused by traffic environment will have an uncertain impact on the power consumption of EV and then affect its timeliness. The symbols designed in the above formula have the following meanings: where φd is the output efficiency parameter representing the work done by the driving motor, φd is the output efficiency parameter of the battery, f is the rolling resistance coefficient, R is the air resistance coefficient,ρ is the density of air. θ(t) is the road slope at this time, then the average slope value will be used instead due to it is difficult to measure the road slope in real time. G is the weight of the vehicle, wij is vehicle load, A is the windward area of the vehicle, tij is the time when the car runs at a constant speed during this period, vt is the speed of the vehicle in this period.

It is worth noting that the speed of the vehicle will also change due to the influence of the traffic environment in different periods. Therefore, we establish the speed equation under traffic congestion. (3) where vf is the speed at which the car is moving smoothly, ρt is the traffic congestion coefficient.

3.2 Mathematical models

Firstly, we consider the problem of minimizing the total cost of logistics distribution, which has the following models. (4) s.t. (5) (6) (7) (8) (9) (10) (11) (12) (13) (14) (15) (16) (17)

In the above-mentioned mathematical models, Eq (4) represents the minimization of the total transportation cost. Formulas (5), (6) and (7) guarantee the connection between arcs and flow conservation, and each customer is only visited once. Eq (8) indicates that each vehicle must return to the center from the distribution center.

Formulas (9) and (10) ensure the rationality of the travel time and time window of electric vehicles between nodes, in which indicates the waiting time that may occur, si is the time of serving customers or charging time at the charging pile.

Eq (11) represents the time range of waiting for customer service. Formulas (12), (13), (14) and (15) ensure that the load and remaining battery capacity of the electric vehicle in arc (i, j) do not exceed the vehicle maximum load and battery capacity constraints, where C and Q respectively represent the maximum load of the vehicle and the rated capacity of the battery, zj and yj represent the residual load capacity and the remaining battery capacity.

Formulas (16) and (17) indicate that in order to avoid driver fatigue driving, the maximum driving path distance of the vehicle shall not exceed L.

Secondly, we consider the problem of maximizing average customer satisfaction, we have the following model. (18)

For logistics enterprises, customer satisfaction reflects the service level of enterprises. In the traditional time window, vehicles arriving early and late are treated equally, which obviously does not meet the psychological expectations of customers. When serving customers outside the expected but acceptable time window, although it is allowed by customers, the level of customer satisfaction will decline to a certain extent [23]. Therefore, this paper refers to the method of fuzzy time window [24] to reflect the level of customer satisfaction.

By supposing that the acceptable time window range for customer i is [ETi, ELi], the ideal time window range is [Ai, Bi], the time sensitivity coefficient is β(> 0). Then the membership function of customer i’s satisfaction is calculated as follows: (19)

In summary, the multi-objective optimization model of pure electric vehicle logistics and distribution route planning with integrated pick-up and delivery with time window is as follows: (20)

4 Solution algorithm

The classical multi-objective vehicle routing problem (MO-VRP) mainly focuses on the traditional fuel vehicles. The multi-objective EVRPSDPTW proposed in this paper is another extension of the classical MO-VRP. The problem studied in this paper has two optimization objectives, it is hardly to achieve all the optimal objectives at the same time through a single solution. The crossover and mutation operators of genetic algorithm are especially suitable for solving multi-objective optimization problems. Therefore, this paper proposes a fast non dominated sorting genetic algorithm (NSGA-II) with elite strategy to obtain a set of Pareto optimal solutions. The flow of the multi-objective optimization algorithm based on NSGA-II is shown in Fig 1:

thumbnail
Fig 1. Flow chart of multi objective optimization algorithm based on NSGA-II.

https://doi.org/10.1371/journal.pone.0281131.g001

4.1 Solution coding

Before initializing the chromosome population, we first need to encode the chromosomes. First of all, to meet our basic requirements when modeling, that is, each customer can only be served by one vehicle, so this paper uses natural number coding [25] to solve the problem of electric vehicle path planning. In order to ensure sufficient redundancy of chromosomes, we set the staining length to 2N+M+1, where N is the number of customers, and M is the number of targets.

4.2 Initialize the population

In order to improve the quality of the initial population and maintain the diversity of the population, we construct a mixed initial population in two ways.

  1. The pre-NP-1 individuals in the population randomly generated N-length chromosome fragments through the Randperm function built in MATLAB, and NP represented the number of the population.
  2. The last individual in the population is constructed with the help of a greedy algorithm, The specific method is as follows:
    1. Step 1: Establish a distance matrix of customers with N rows and N columns, set the visited customer set as C, and the initial set as an empty set. The set of unvisited customers is U = {1, 2, …, N}, where N is the number of customers.
    2. Step 2: Assign all the zeros on the diagonal of the distance matrix to infinity. Find out the row number and column number corresponding to the minimum distance from the distance matrix. If there are multiple minimum distances, select the first number in the row number set as the starting point of the initial route.
    3. Step 3: Add the visited customer to the visited customer set C, delete the customer in the set U, complete the update, and assign the starting customer as the immediately preceding point as pre-point.
    4. Step 4: Find the distance between the pre-point and the city in the corresponding row in the distance matrix, which is denoted as pre-dist. Set all the columns corresponding to the visited cities in the pre-dist to infinity, find the column ordinal number corresponding to the smallest value in the pre-dist as the next pre-point, and update the sets C and U.
    5. Step 5: If all cities have been accessed, set C is the initial route for the final construction. Otherwise proceed to steps 3 and 4.
  3. After each completion of the construction of the initial chromosome fragment, we need to ensure the validity of the chromosome, that is, each customer node on the chromosome should not exceed the maximum load of the vehicle after completing delivery and pickup, and insert the distribution center “1” at the critical point that meets the maximum load constraint of the vehicle to form the service route of each vehicle. And so on until all customers have been assigned, forming our initial delivery route. After simple adjustments, the initial distribution path is converted to individuals in the initial population.
  4. It is worth noting that the coding process of chromosomes does not include charging piles, to avoid charging piles participating in crossover and mutation operations, and to decode the individuals in the population after completing the operation of population renewal and then insert them into the charging pile.

4.3 Fitness assessment

When evaluating the fitness of individuals in the population, we need to calculate the objective function value of our optimization problem.

First of all, we need decode the individuals in the initial population. At this point, we need to insert the charge point in the decoded initial distribution path. We insert the charge point based on the following three conditions. The first one is that it is necessary to consider looking for the nearest charging point for charging if the power of the car at a certain point on the path is less than 30% of the remaining power. The second one is that it needs to find the nearest charge point at the previous customer node for charging if the remaining power at this point cannot reach the nearest charge point. The last one is that all power consumption calculations are based on the dynamic power consumption model proposed in Eqs (2) and (3).

After completing the operation in the previous step, after obtaining the initial distribution scheme including charging piles, in addition to calculating the total logistics distribution cost of the initial distribution scheme and the average customer satisfaction, we also need to judge whether the current scheme meets the constraints of customer time window, load, remaining power and maximum path length, and record the times of violating the constraints.

In sum, NSGA-II algorithm generally takes the minimum target as the best, so the fitness function is established as follows: (21) where Z is the total cost of logistics distribution. F is customer satisfaction, means that the load, latest time and other constraints are not meet. G can be regarded as an infinite penalty weight.

4.4 Fast non-dominated sorting

Before performing the population update operation, it is necessary to sort the Pareto solution set at a non-dominated level. We compare the solutions in the population pairwise. Each individual p in the population is assigned two parameters Si and np, Si represent the set of solutions dominated by the solutions of individual p, and np represents the number of dominating individual p. The specific steps are as follows:

  1. Step1: Set the parameters of the first individual p in the population, np = 0 and Si = Φ;
  2. Step2: Compare the solution of individual p with the solution of other individuals q(q ≥ 2) in the population for non-dominance relations, turn to step 3;
  3. Step 3: Non-dominance relationship comparison. If p and q are two feasible solutions to minimize the multi-objective optimization problem, if conditions (i) and (ii) are met, then solution p is considered to be superior to solution q, that is, solution p dominates solution q, m represents the number of objective functions;
    1. (i). m ∈ {1, 2, …, k}, fm(p) ≤ fm(q);
    2. (ii). m ∈ {1, 2, …, k}, fm(p) > fm(q).
  4. Step4: In each comparison, if the solution p dominates the solution q, q is counted in the set Si of the solutions dominated by p, and if the solution q dominates the solution p, the number of solutions that dominate p is increased by 1. The solution of np = 0 is the non-dominated solution, and the set of solutions that find all np = 0 is denoted as F1, which is the first non-dominated level.
  5. Step5: Calculate every solution p in the previous non-dominant hierarchy, and the set of solutions dominated by solution p is Si. Then subtract 1 from the parameter np of all solutions q in Si to find out that the set of solutions with parameter np equal to 0 is the next non-dominant hierarchy, and so on until all the non-inferior solution sets are layered.

4.5 Population regeneration

(1) Selection. In this paper, the binary tournament is used to select the better individual. By selecting two individuals from the parent population each time and comparing their non-dominated hierarchy ranking and crowding degree [26], individuals with better non dominated hierarchy or the same non-dominated hierarchy but higher crowding degree are selected until the preset number of offspring population is met, and then genetic operator operation is performed.

(2) Crossover and mutation. In this paper, the position-based crossover (PBX) [27] and the use of different neighborhood operators are used to crossover individuals in the offspring population selected through the tournament and gene mutation operations, which can improve the diversity of the population. At the same time, the local search ability of the algorithm is enhanced. The crossover mutation probability is determined by the adaptive crossover mutation operator. The calculation formula is as follows:

Pm is the crossover fitness function, pm is the crossover probability. Pc is the mutation fitness function and pc is the mutation probability. f(i1) and f(i2) are the fitness values of the individual to be crossed, f(i) is the fitness value of the individual to be mutated at present. fmin, favg is the minimum fitness value and the average fitness value of the current population. From the fitness function formula, it can be seen that the smaller the fitness value is, the higher the quality of the individual. Therefore, we should carry out crossover mutation operation on the individual whose fitness value is higher than the average fitness value of the population with greater crossover mutation probability to avoid the population falling into local optimal solution and improve the population quality.

(3) Neighborhood operation. In mutation operation, we design three different neighborhood operators of exchange, reversal and insertion, and select different neighborhood structures by roulette function according to the probability to execute the corresponding gene operation. The probability of selecting exchange structure is pSwap = 0. 2, the probability of selecting reversal structure is pReversion = 0. 5, and the probability of selecting insertion structure is pInsertion = 0. 3.

Exchange operation: We randomly select two genes at different positions on the current chromosome to exchange elements at these two positions.

Reverse operation: Randomly select genes at two different positions on the current chromosome and then arrange the elements between these two positions in reverse order.

Insertion operation: Randomly select two genes at different positions on the current chromosome and insert the element at the first position after the second element.

Therefore, this paper updates the population through the path individual genetic operation process with charging point nodes as shown in Fig 2.

thumbnail
Fig 2. Path individual genetic operation with charging point nodes.

https://doi.org/10.1371/journal.pone.0281131.g002

4.6 Elite retention strategies

Refer to the research of Deb and Goel [28] (as shown in Fig 3). Elite retention means ensuring that the best individuals of the previous generation enter the next generation. In this paper, the solutions in Pareto solution set are sorted from small to large according to the non dominated hierarchy, In the non-dominated hierarchy. The solutions are sorted from large to small by comparing the degree of crowding, so that the solutions in the solution set can be sorted from good to bad. Then retain the top N individuals with the best sorting (N is the number of offspring populations) as the next generation parent individuals.

5 Results and discussion

In this paper, the time range of customer service is calculated according to the customer’s demand. The example includes 48 customers, 1 distribution center and 4 charging piles, The logistics distribution service information and charging pile location of some customers are shown in Table 3. The number 49–52 represents the charging station, and the specific distribution system is shown in Fig 4. In order to make the research closer to reality, this paper considers the impact of traffic congestion on the logistics transportation process. According to the traffic situation of the morning and evening peak in the city, We take the two time periods of 7:00–9:00 a.m. and 17:00–19:00 p.m. as the time period of traffic congestion, and drive normally in the rest of the time, The departure time of the logistics fleet is set at 7 a.m. According to the characteristics of electric vehicles, the electric vehicles drive at a constant speed of 60km/h under normal conditions and 30km/h in congestion. The relevant energy consumption calculation parameters are shown in Table 4, and other cost calculation parameters are shown in Table 5. In order to get better simulation results, the parameters of NSGA-II algorithm are set as follows: the number of population is 80, the maximum number of iterations is 500, the crossover probability is 0.8, and the mutation probability is 0.2.

thumbnail
Table 3. Logistics distribution information and parameters.

https://doi.org/10.1371/journal.pone.0281131.t003

thumbnail
Table 4. EV related energy consumption calculation parameters.

https://doi.org/10.1371/journal.pone.0281131.t004

thumbnail
Table 5. Cost parameters related to distribution process.

https://doi.org/10.1371/journal.pone.0281131.t005

According to the experimental examples and models in the traffic congestion environment, we repeated the multi-objective genetic algorithm before the improvement and the improved multi-objective genetic algorithm (H-NSGA-II) for 10 simulation experiments. Each time NSGA-II algorithm will generate a set of Pareto solutions, and the Pareto solution front is the optimal solution set obtained by NSGA-II algorithm in each run, The solutions in the solution set are mutually non-dominant. The characteristics of the multi-objective optimization algorithm determine that the solutions generated by the operation cannot obtain all the optimal values. The experimental data generated by each operation are shown in Table 6. Zi represents the lowest total logistics distribution cost in Pareto solution, Fi represents the average customer satisfaction when obtaining the lowest total logistics distribution cost, Fj represents the highest average customer satisfaction in Pareto solution, and Zj represents the total logistics distribution cost when obtaining the highest average customer satisfaction.

In order to prove the superiority of the improved multi-objective genetic algorithm (H-NSGA-II) proposed in this paper, the t-test significance difference method is used to test it based on matlab platform. Because the population mean and variance are unknown, the lili-test function is used to test the normal distribution characteristics of each group of sample data, and the following assumptions are made:

  1. H0: indicates that the sample obeys normal distribution.
  2. H1: indicates that the sample does not obey normal distribution.

When the confidence level is 0.05, the original hypothesis is accepted when h = 0, p ≥ 0.05, and the original hypothesis is rejected when h = 1, p < 0.05 from the test results in Table 7, it can be seen that each group of data obeys normal distribution and can be tested by t-test significance difference.

After verifying the normal distribution characteristics of sample data, t-test test is carried out to make assumptions for each group of data:

  1. H0: The mean difference of the same type of objective function values under the two algorithms is 0.
  2. H1: The mean difference of the same type of objective function values under the two algorithms is not 0.

Set the confidence level to 0.05. When h = 1 and p < 0.05, it means that the null hypothesis H0 does not hold and the difference is significant, otherwise the H0 hypothesis is accepted. Through the t-test test on the four pairs of sample data, the corresponding test results are shown in Table 8.

From Table 8, it can be seen that the data between the lowest total logistics distribution cost, the lowest average customer satisfaction, and the highest total customer distribution cost are analyzed by t-test and accept the hypothesis of H1. That is, the lowest total logistics distribution cost before and after the algorithm improvement, the lowest The mean difference between the average customer satisfaction and the highest total cost of logistics and distribution is significant, and the data analysis between the highest average customer satisfaction accepts the assumption proposed by H0. That is, there is no significant difference in the mean of the highest average customer satisfaction.

By comparing the mean values between them, it can be concluded that the lowest total logistics distribution cost obtained by the improved algorithm is reduced by 27.8%, while the average customer satisfaction is increased by 13.9%. While the highest average customer satisfaction remained basically unchanged, the highest logistics and distribution costs decreased by 26.2 percent. In addition, the average running time of the algorithm before the improvement is about 88s, and the average running time of the improved algorithm is about 99s, and the running time of the algorithm is within a reasonable range.

In order to compare the difference of convergence before and after the improvement of the algorithm, this paper selects the optimal solution with the lowest total logistics distribution cost in 10 simulation experiments to compare the iterative convergence curves, as shown in Fig 5.

From the above analysis, it can be seen that the improved algorithm in this paper has better performance than the traditional NSGA-II in solving the problem of multi-objective simultaneous delivery electric vehicle logistics distribution considering traffic congestion It can be seen from Fig 5 that the improved NSGA-II algorithm converges in the 496th generation and the traditional NSGA-II algorithm converges in the 426th generation The improved NSGA-II algorithm can find the sub-optimal solution with high probability in the early and middle stages with strong searching ability, while the traditional NSGA-II algorithm has fallen into the local optimum and can’t jump out in the middle and late stages.

In-depth analysis in the traditional NSGA-II algorithm, the initial solution is constructed completely by random rules, on the one hand, the population quality cannot be guaranteed, on the other hand, the optimization time of the algorithm is too long and it is easy to fall into local optimum The hybrid NSGA-II algorithm designed in this paper introduces greedy algorithm and random rules in the initial population construction stage, which can keep the diversity of the population and ensure the quality of the population, which is beneficial to accelerate the convergence speed of the algorithm In order to avoid falling into local optimum, this paper introduces adaptive crossover mutation strategy in the crossover mutation stage, which makes the individuals whose quality is lower than the average level carry out crossover mutation operation with greater probability, and designs three different neighborhood operations in the mutation stage, which improves the disturbance mechanism of the algorithm, reduces the possibility of falling into local optimum and further increases the diversity of the population. The elite retention strategy in NSGA-II retains the excellent individuals in the iteration process, so the three improved strategies proposed in this paper can make the population evolve in a better direction and finally make the algorithm converge to a better suboptimal solution.

In order to show more intuitively the effect of the algorithm to solve the vehicle routing problem of electric vehicles taking and delivering goods at the same time, the route planning diagram of the minimum total cost of logistics distribution before and after the improvement of NSGA-II algorithm in 10 experiments is shown in Figs 6 and 7, and the specific route is shown in Tables 9 and 10. Where VN represents the vehicle number VR represents the vehicle route VAT represents the arrival time of the vehicle/represents the arrival of the charging pile and the situation at the distribution center MYD represents the customer satisfaction when the vehicle arrives at each node.

From the comparison of Figs 6 and 7, it can be seen that the distribution route with the lowest total cost obtained by the improved NSGA-II algorithm is more dense than the optimal route obtained by the improved NSGA-II algorithm. It shows that the crossing times of the optimal path represented by Fig 7 are more than those of the optimal path in Fig 6. The more path crossing times, the longer the logistics distribution path, which will lead to the increase of the number of vehicles used or the increase of the charging times of electric vehicles, and finally lead to higher vehicle use cost and charging cost.

It can also be seen from Tables 9 and 10 that the number of vehicles used in the optimal route before improvement is 10, and the minimum number of vehicles used after improvement is 7. The improved NSGA-II algorithm effectively reduces the use cost of vehicles When the traditional NSGA-II algorithm aims at the lowest total cost of logistics distribution, it only aims at the shortest path on the premise of satisfying the maximum time window of customers, so it often exceeds the expected time window of customers and leads to lower customer satisfaction The improved NSGA-II algorithm reduces the total cost of logistics distribution and improves the average customer satisfaction. It proves that the greedy algorithm and the adaptive crossover mutation strategy and mutation disturbance mechanism designed in this paper are effective. The improved NSGA-II algorithm can meet the needs of customers and allocate the service order of logistics vehicles to customers more reasonably.

Next we analysis the parameter sensitivity.

Considering the influence of road traffic congestion on the total logistics cost and average customer satisfaction of electric vehicles [29], this paper sets up two additional coefficients with traffic congestion coefficient of 1.5 and 3. 0 on the basis of an example with traffic congestion coefficient of 2.0 for parameter sensitivity analysis. From the example analysis in the previous section, it can be seen that the average value of the highest average customer satisfaction cannot detect significant differences with a high probability. When the lowest total logistics distribution cost is the goal, it can better reflect the impact of different levels of traffic congestion on electric vehicles. The impact of the vehicle logistics distribution path, therefore, select 10 times when the traffic congestion coefficient is 1.5, 2.0, 3.0, the lowest total logistics distribution cost and the operation results of the average customer satisfaction, as shown in Table 11.

thumbnail
Table 11. Solution results based on traffic congestion coefficient.

https://doi.org/10.1371/journal.pone.0281131.t011

From the data in Table 11, it can be seen that in the case of each degree of traffic congestion, a near-optimal solution can be found, and the near-optimal solution means the closer to the global optimum. With the increase of traffic congestion, the total cost of logistics and distribution has a clear upward trend.

When the traffic congestion coefficient is between 1.5 and 2.0, the average customer satisfaction increases with the increase of the total logistics cost, which proves the effectiveness of the algorithm in this paper The traffic congestion coefficient from 2.0 to 3.0 means that the traffic congestion becomes more serious and the total cost of logistics distribution increases while the average customer satisfaction does not show an obvious upward trend, which proves that it will become more difficult for logistics vehicles to serve within the time window expected by customers when the traffic environment becomes bad, and it will bring more severe challenges to the route planning of logistics vehicles. Therefore, it is necessary to consider the road traffic situation in the vehicle routing problem.

In addition, the standard deviation of the lowest total logistics cost (196,202, 213) and the standard deviation of average customer satisfaction (0.045, 0. 039, 0.049) under different traffic congestion coefficients are close to each other, which shows that the algorithm designed in this paper has good stability in solving the proposed problem model.

6 Concluding remarks

In this paper, a multi-objective vehicle routing problem with simultaneous pick-up and delivery and time window (Mo-EVRPSDPTW) is studied, and a mathematical model is established with the lowest total logistics cost and the highest average customer satisfaction. In the case of traffic congestion and dynamic power consumption, this paper designs a multi-objective genetic algorithm (NSGA-II) with fast non dominated sorting and elite reservation strategy.

Aiming at the defects of traditional NSGA-II algorithm, we design three improved strategies: using greedy algorithm and stochastic rules to construct mixed initial population, introducing adaptive crossover mutation strategy, using roulette and three neighborhood structures to enhance the disturbance mechanism of mutation operator in the stage of population crossover mutation.

Firstly, through the simulation experiments on related problems it is proved that the improved NSGA-II algorithm can effectively reduce the total cost of logistics distribution on the basis of maintaining the highest average customer satisfaction level And it can reduce the total cost of logistics distribution and improve the average satisfaction of customers when the goal is to minimize the total cost of logistics distribution.

Secondly, by discussing the route distribution scheme with the optimal total cost of logistics distribution obtained before and after the improvement of the algorithm, it is further verified that the algorithm designed in this paper can plan the vehicle service route more reasonably to meet the needs of customers when solving the MO-EVRPSDPTW problem.

Thirdly, sensitivity analysis of traffic congestion coefficient shows that different traffic environment will have an uncertain impact on average customer satisfaction and logistics cost, and further proves the effectiveness and stability of the algorithm.

In the actual road environment, different road conditions, braking and other factors will affect the power consumption of electric vehicles. Our paper do not consider non-linear charging and the possible queuing time in the charging process. Therefore, one interesting direction in our future study is to take the queuing system into account to plan the distribution route of electric vehicles. The other interesting direction is to use the idea of clustering algorithm [3034], to improve the multi-objective evolutionary algorithm, which may reduce the chance of bad solution and improve the algorithm performance.

Supporting information

References

  1. 1. Zhou Y, Huang J, Shi J, Wang R, Huang K. The electric vehicle routing problem with partial recharge and vehicle recycling. Complex & Intelligent Systems. 2021; 7(3): 1445–1458.
  2. 2. Erdelić T, Carić T. A survey on the electric vehicle routing problem: variants and solution approaches. Journal of Advanced Transportation. 2019; 2019.
  3. 3. Liu W. Route optimization for last–mile distribution of rural E-commerce logistics based on ant colony optimization. IEEE Access. 2020; 8: 12179–12187.
  4. 4. Li Y, Lim M K, Tseng M L. A green vehicle routing model based on modified particle swarm optimization for cold chain logistics. Industrial Management & Data Systems. 2018.
  5. 5. Ma C, Hao W, He R, Jia X, Pan F, Fan J, et al. Distribution path robust optimization of electric vehicle with multiple distribution centers. PLoS One. 2018; 13(3): e0193789. pmid:29518169
  6. 6. Zhou Y, Kong L, Cai Y, Wu Z, Liu S, Hong J, et al. A Decomposition–Based Local Search for Large–Scale Many-Objective Vehicle Routing Problems With Simultaneous Delivery and Pickup and Time Windows. IEEE Systems Journal. 2020; 14(4): 5253–5264.
  7. 7. Zhou H, Qin H, Zhang Z, Li J. Two–echelon vehicle routing problem with time windows and simultaneous pickup and delivery. Soft Computing. 2022; 1–16.
  8. 8. Hornstra R P, Silva A, Roodbergen K J, Coelho L C. The vehicle routing problem with simultaneous pickup and delivery and handling costs. Computers & Operations Research. 2020; 115: 104858.
  9. 9. Li Z, Fu Y, Li M. Study on Location Selection of Low–Carbon Fresh Fruit Distribution Center Considering Customer Satisfaction–Route Optimization. In IOP Conference Series: Earth and Environmental Science. IOP Publishing. 2021; 687(1): 012179.
  10. 10. Zhao B, Gui H, Li H, Xue J. Cold chain logistics path optimization via improved multi–objective ant colony algorithm. Ieee Access. 2020; 8: 142977–142995.
  11. 11. Qin G, Tao F, Li L. A vehicle routing optimization problem for cold chain logistics considering customer satisfaction and carbon emissions. International Journal of Environmental Research and Public Health. 2019; 16(4): 576. pmid:30781502
  12. 12. Yan X, Xiao B, Zhao Z. Multi–objective vehicle routing problem with simultaneous pick–up and delivery considering customer satisfaction. In 2019 IEEE International Conference on Smart Manufacturing, Industrial & Logistics Engineering (SMILE). IEEE. 2019; 93–97.
  13. 13. Xiao Y, Zuo X, Kaku I, Zhou S, Pan X. Development of energy consumption optimization model for the electric vehicle routing problem with time windows. Journal of Cleaner Production. 2019; 225, 647–663.
  14. 14. Shen Y, Yu L, Li J. Robust Electric Vehicle Routing Problem with Time Windows under Demand Uncertainty and Weight–Related Energy Consumption. Complex System Modeling and Simulation. 2022; 2(1): 18–34.
  15. 15. Pelletier S, Jabali O, Laporte G. The electric vehicle routing problem with energy consumption uncertainty. Transportation Research Part B: Methodological. 2019; 126: 225–255.
  16. 16. Bruni M E, Jabali O, Khodaparasti S. The Electric Vehicle Route Planning Problem with Energy Consumption Uncertainty. In 2020 Forum on Integrated and Sustainable Transportation Systems (FISTS). IEEE. 2020; 224–229.
  17. 17. Zhu L, Hu D. Study on the vehicle routing problem considering congestion and emission factors. International Journal of Production Research. 2019; 57(19): 6115–6129.
  18. 18. Liu C, Kou G, Zhou X, Peng Y, Sheng H, Alsaadi F E. Time–dependent vehicle routing problem with time windows of city logistics with a congestion avoidance approach. Knowledge–Based Systems. 2020; 188: 104813.
  19. 19. Jie K W, Liu S Y, Sun X J. A hybrid algorithm for time–dependent vehicle routing problem with soft time windows and stochastic factors. Engineering Applications of Artificial Intelligence. 2022; 109: 104606.
  20. 20. Goeke D, Schneider M. Routing a mixed fleet of electric and conventional vehicles. European Journal of Operational Research. 2015; 245(1): 81–99.
  21. 21. Basso R, Kulcsár B, Egardt B, Lindroth P, Sanchez–Diaz I. Energy consumption estimation integrated into the electric vehicle routing problem. Transportation Research Part D: Transport and Environment. 2019; 69: 141–167.
  22. 22. van Keulen T, de Jager B, Serrarens A, Steinbuch M. Optimal energy management in hybrid electric trucks using route information. Oil & Gas Science and Technology–Revue de I’Institut Français du Pétrole. 2010; 65(1): 103–113.
  23. 23. Baniamerian A, Bashiri M, Zabihi F. Two phase genetic algorithm for vehicle routing and scheduling problem with cross–docking and time windows considering customer satisfaction. Journal of Industrial Engineering International. 2018; 14(1): 15–30.
  24. 24. Zheng J. A vehicle routing problem model with multiple fuzzy windows based on time–varying traffic flow. IEEE access. 2020; 8: 39439–39444.
  25. 25. Yuchi Q, Wang N, Li S, Yang Z, Jiang B. A bi–objective reverse logistics network design under the emission trading scheme. IEEE Access. 2019; 7: 105072–105085.
  26. 26. Li F, Li X, Zhang B, Li Z, Lu M. Multiobjective Optimization Configuration of a Prosumer’s Energy Storage System Based on an Improved Fast Nondominated Sorting Genetic Algorithm. IEEE Access. 2021; 9: 27015–27025.
  27. 27. Hang X, Yin W. Target Assignment of Heterogeneous Multi–UAVs Based on Pigeon–Inspired Optimization. In Advances in Guidance, Navigation and Control. Springer, Singapore. 2022; 3987–3998.
  28. 28. Deb K, Goel T. Controlled elitist non–dominated sorting genetic algorithms for better convergence. In International conference on evolutionary multi–criterion optimization. Springer, Berlin, Heidelberg. 2001; 67–81.
  29. 29. Jonas T, Hunter C D, Macht G A. Quantifying the impact of traffic on electric vehicle efficiency. World Electric Vehicle Journal. 2022; 13(1): 15.
  30. 30. Pathak S, Dutta N, Jain S. An improved cluster maintenance scheme for mobile AdHoc networks. In 2014 International Conference on Advances in Computing, Communications and Informatics (ICACCI). IEEE. 2014; 2117–2121.
  31. 31. Pathak S, Jain S. A novel weight based clustering algorithm for routing in MANET. Wireless Networks. 2016; 22(8): 2695–2704.
  32. 32. Pathak S, Jain S. An optimized stable clustering algorithm for mobile ad hoc networks. EURASIP Journal on Wireless Communications and Networking. 2017; 2017(1): 1–11.
  33. 33. Pathak S, Jain S. A priority–based weighted clustering algorithm for mobile ad hoc network. International Journal of Communication Networks and Distributed Systems. 2019; 22(3): 313–328.
  34. 34. Pathak S, Jain S. Comparative study of clustering algorithms for MANETs. Journal of Statistics and Management Systems. 2019; 22(4): 653–664.