Next Article in Journal
A Target Damage Assessment Mathematical Model and Calculation Method Based on the Intersection of Warhead Fragment and Target Mechanism
Next Article in Special Issue
Variable Neighborhood Search Algorithms to Solve the Electric Vehicle Routing Problem with Simultaneous Pickup and Delivery
Previous Article in Journal
On the Robustness and Sensitivity of Several Nonparametric Estimators via the Influence Curve Measure: A Brief Study
Previous Article in Special Issue
Risk Propagation and Supply Chain Health Control Based on the SIR Epidemic Model
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Electric-Vehicle Routing Planning Based on the Law of Electric Energy Consumption

1
School of Automobile, Chang’an University, Xi’an 710064, China
2
School of Highway, Chang’an University, Xi’an 710064, China
3
Department of Civil, Structural and Environmental Engineering, University at Buffalo, Buffalo, NY 14260, USA
*
Author to whom correspondence should be addressed.
Mathematics 2022, 10(17), 3099; https://doi.org/10.3390/math10173099
Submission received: 26 July 2022 / Revised: 17 August 2022 / Accepted: 20 August 2022 / Published: 29 August 2022

Abstract

:
In this paper, we establish the Electric Vehicle Routing Problem with Time Windows Based on Driving Cycles (EVRPTW-DC) to optimize the delivery routing of electric vehicles (EVs). As energy consumption may affect the maximal driving range and the recharging behavior of EVs, we first develop a nonlinear electric energy consumption model based on typical driving cycles of suburban and urban areas, with consideration of vehicle load, travel distance, and speed. An adaptive particle swarm optimization algorithm is then designed to solve the problem. Moreover, we study cases built from the actual operational data of Company J and compare the optimal delivery schemes of EVRPTW-DC and EVRPTW under the traditional linear electric energy consumption law. The results show that our nonlinear energy consumption model, which provides a better simulation of energy consumption, can lead to a more realistic delivery plan. Finally, we explore the applicability of the proposed EVPRTW-DC and discuss the conditions of using a linear electric energy consumption coefficient.

1. Introduction

As a result of rapid economic development and the continuous growth in the population, human demand for fossil fuels is also increasing, which is leading to a situation of environmental pollution and energy crises. A major cause of air pollution is the large quantity of emissions from fuel combustion vehicles, which rely on fossil fuels for energy. According to statistics, the total emissions from automobiles in China have shown a trend of continuous growth, increasing over the last decade from 37.706 million tons to 39.393 million tons at an average annual growth rate of 0.9%, which has placed tremendous pressure on the environment [1]. In addition, China has now become the world’s largest energy consumer, and nearly 70% of its oil is consumed by fuel combustion vehicles [2]. As a result of this growth trend, the shortage of energy may become a major obstacle to China’s economic development in the future. Therefore, China has announced research to meet the schedule of banning fuel combustion vehicles to reach carbon neutralization in the next 50 years. New energy vehicles, especially pure electric vehicles, have become the main strategic direction of auto industry transformation.
Urban logistics account for a significant proportion of the use of fuel combustion vehicles. In addition, the need for frequent and efficient cargo delivery has continuously grown as a result of the fast development of the e-commerce industry in recent years. In response to national policies, the urban logistics industry has considered pure electric vehicles (EVs) as a major alternative to fuel combustion vehicles (CVs), as EVs produce no greenhouse gas emissions during operation. However, the operation of EVs has been challenged by their special characteristics: (1) compared to CVs, EVs have shorter driving mileage, which causes the problem of “the anxiety of mileage”; (2) EVs cannot complete a long-distance task without recharging; (3) under current technology, EVs take more time to refuel than CVs; and (4) there is a complex nonlinear relationship between the energy consumption of electric vehicles and many factors such as vehicle parameters, driving distance, vehicle load, driving conditions, and the external environment. Because of these features, the traditional vehicle routing problem (VRP) is no longer applicable for EVs. Therefore, it is of great necessity to formulate an appropriate EV routing model to plan reasonable routes and improve delivery efficiency, and extra attention should be given to the energy consumption process of EVs in realistic operations.
In this work, we first analyze the main factors affecting the energy consumption of EVs and generate two typical driving conditions of EVs in suburban and urban areas. Then, we construct a nonlinear electric battery consumption model based on EVs’ driving cycles to mimic real-life energy consumption. Furthermore, we propose our Electric Vehicle Routing Problem with Time Windows Based on Driving Cycles (EVRPTW-DC) to determine minimum-cost routes for a fleet of EVs to serve a given set of customers from a distribution center. To solve EVRPTW-DC, we design an adaptive particle swarm optimization algorithm. In the case studies, instances of different scales are set up with realistic operational data. Experiments are conducted for both EVRPTW-DC and EVRPTW under the linear energy consumption law (L-EVRPTW). Optimal routes from both models are compared and we find that delivery paths of L-EVRPTW are usually inferior to those of EVRPTW-DC due to battery capacity violation. We further explore the applicability of EVPRTW-DC and discuss the conditions of using a linear electric energy consumption coefficient.
The paper is organized as follows. In Section 2, a review of EVRPTW-DC-related literature is presented. In Section 3, we analyze the driving cycles of EVs and construct the nonlinear energy consumption model, which is then incorporated into the EVRPTW-DC model in Section 4. Section 5 describes the particle swarm algorithm. The detailed experimental cases and settings are presented in Section 6 along with the analysis of results. Section 7 summarizes and concludes the paper.

2. Literature Review

We present a brief literature review related to EVRPTW-DC in this section. First, the vehicle routing problem (VRP), as the basis of EVRPTW-DC, has been researched for many years. It was originally introduced by Dantzig and Ramser [3] with the aim of minimizing the total transportation cost of visiting a set of customers with known demands by designing proper routes for a fleet of vehicles departing from and returning to the depot. An important extension, VRP with a time window (VRPTW), which considers customers to be served within a specific time range, was then be proposed by Solomon [4]. Laporte [5] developed another remarkable extension of VRP, named capacitated VRP, which is incorporated with limited cargo capacity of vehicles. Most of the existing work on VRP is constructed on top of these two extensions while using CVs as the transportation tool.
However, the increasing negative effects caused by CVs are a heavy burden on the environment. To reduce this burden, green logistics using alternative fuel vehicles, which comprise the second related theme in the literature, has received increasing attention. According to Lin’s survey [6], routing models considering electricity and hydrogen as green alternatives to fossil fuels have been developed in recent years. Erdogan and Miller-Hooks [7] proposed a green VRP that considers alternative fuel vehicles with limited driving range and limited refueling infrastructure. This allows vehicles to visit one or more refueling facilities during the route with a fixed refueling time. Sawik [8] established a multi-vehicle routing model with quantified environmental costs of noise, air pollution, and fuel consumption. Mauceri [9] developed a green VRP model to minimize carbon emissions and applied a genetic algorithm to solve the problem. Mancini [10] built a hybrid electric vehicle routing model in which vehicles can be powered by either battery or fuel, and designed a maximum neighborhood search algorithm to find the solution. When focusing on EVs as the specific alternative vehicles, the VRP problem is called EVRP.
Conrad and Figliozzi [11] studied a recharging EVRP in which vehicles have limited range and capacitated load, and the recharging time is assumed to be fixed. The existence of customer time windows was studied to show its influence on the objectives, including the number of employed vehicles and total travel costs. Goncalves et al. [12] studied the routing problem using a mixed fleet of EVs and CVs, in which EVs were allowed to be recharged during the route and the number of recharging stops was determined by dividing the total traveled distance by the EV’s maximum travel range. However, this is unrealistic under actual operation conditions as recharging stations cannot be available everywhere. Schneider et al. [13] introduced EVRP with customer time windows and EVs were assumed to follow a linear recharging pattern at a recharging station and always be recharged to full battery capacity. They solved the model by a hybrid variable neighborhood search (VNS) approach combined with a tabu search (TS) heuristic. Keskin and Catay [14] proposed a similar model to that of Schneider but with a flexible recharging time and the assumption that EVs are allowed to be partially recharged. Felipe et al. [15] discussed EVRP under assumptions of multiple charging technologies, and the possibility of partial recharging to strategically reduce the travel time, but without time window consideration. Erdelić and Carić [16] studied the EVRP with time windows considering both full and partial charging strategies and analyzed the results under both charging strategies. Yang et al. [17] considered a location-routing problem to determine the location of recharging stations and the routing of EVs, and constructed a two-echelon method of tabu search and the Clarke–Wright algorithm to locate recharging stations in the first echelon and determine travel paths of EVs in the second echelon. Keskin et al. [18] presented an electric vehicle routing problem with time windows and random waiting times at charging stations, and proposed a two-stage simulation-based heuristic algorithm based on adaptive large neighborhood search (ALNS). The results show that uncertainty in waiting times at charging stations can have a significant impact on route plans. Jie et al. [19] compared various EVs in terms of battery capacity, unit energy consumption rate, and load capacity, and then built an EVRP model for routing multiple types of EVs. Lee [20] considered the EVRP with nonlinear charging time, aiming to minimize the total travel and charging times without approximation of the charging time function.
However, most of the existing research on EVRP has been conducted under a number of assumptions, such as: (1) an EV travels at a constant speed, and (2) the energy consumption process of an EV is linearly related to its traveled distance. Few researchers have considered a dynamic speed or a nonlinear energy consumption process when EVs are in operation. Goeke and Schneider [21] established an EVRP based on a nonlinear energy consumption model that incorporates speed, gradient and cargo load, to optimize multiple objectives of distance, labor, and energy. However, the vehicle speed remains the same between any two nodes. Shao et al. [22] also proposed a nonlinear relationship between speed and energy per unit distance, and built an EVRP under the condition of speed changing over time. Kancharla and Ramadurai [23] proposed a nonlinear charging and load-dependent discharging EVRP that allows multiple visits to charge stations without duplicating nodes. Xiao et al. [24] developed a new comprehensive model of EVRP that considers an electric energy consumption function considering energy losses, a nonlinear charging function technique with piecewise linearization, efficient visits to charging stations, and continuous decision variables for speed, payload, travel time, and recharging.
Therefore, to address the gaps in the above work, in this paper, EVs’ typical driving cycles in operation are constructed, and a nonlinear electric energy consumption model based on the driving cycles of suburban and urban areas is developed, with consideration of speed, acceleration, and load. These electric energy consumption rules are then incorporated in a new EVRP with customer time windows, which aims to provide a more realistic routing scheme for EVs operating under real-life conditions.

3. Driving-Cycle-Based Energy Consumption Model

3.1. Constructing Driving Cycles of EVs

The battery level of EVs is directly impacted by their energy consumption behavior, which further influences the necessity to visit a recharging station and the recharging time at the station. Researchers have found out that various factors affect EVs’ energy consumption behavior, mainly including the load, speed, temperature, and road conditions. Thus, the driving states and resistance of EVs directly affects their energy consumption.
Like that of CVs, the typical driving state of an EV consists of starting, accelerating, constant speed, decelerating, and stopping, and the driving state transforms from one to another during travel. Previous work either assumed a constant speed of EVs, or a linear coefficient between energy consumption and distance, which ignores the changes in driving states. Therefore, in this work, we use a more realistic model based on the driving cycles with consideration of the factors of load, travel distance, and speed. The driving cycle of a vehicle presents the change in speed with the change in driving states. The New European Driving Cycle (NEDC), which is widely used to estimate EVs’ maximum driving range in China, includes two test cycles: that of the Economic Commission for Europe (ECE) and the Extra Urban Driving Cycle (EUDC). The driving cycles of ECE and EUDC are shown in Figure 1.
ECE tests an EV operating within a city for the first four cycles, whereas EUDC tests it in a suburban area for the last cycle. The EV in EUDC operates at a higher speed than that in ECE. The driving cycle shows the change in speed over time. During ECE, the vehicle first accelerates from rest before it reaches a constant speed and runs for a period, after which it decelerates to stop and then starts to repeat similar movements. By comparison, during EUDC, the vehicle accelerates from a standstill, then undergoes an acceleration and deceleration process with different change rates, before it finally stops.
When using EVs in urban distribution, there are three types of nodes in the network: (1) distribution center N D ; (2) customers N C ; and (3) recharging stations N R . EVs depart from N D in suburban areas and visit N C in the city for delivery. They visit the recharging stations when necessary, and return to N D after completing the task. By comparison, the driving cycle of EVs driving from and returning to N D is similar to that of EUDC, whereas driving between N C and N R is similar to that of ECE. Therefore, we present the following driving conditions of EVs to further describe their driving cycles.
Condition A: EVs depart from a distribution center to the first customer, or EVs return to the distribution center from the last customer.
Under this condition, an EV first starts from a stationary position and accelerates at a uniform rate a a 1 until its speed reaches v a 1 , then it decelerates to v a 2 at rate a a 2 . Then, it accelerates again at rate a a 3 to speed v a 3 , then travels at a constant speed v a 3 for some time, and finally decelerates to a full stop at rate a a 4 . This driving cycle is named cycle A, as shown in Figure 2.
Condition B: During delivery, EVs travel between customer and customer, or between customer and recharging station.
Under condition B, the driving cycle of an EV is as follows: an EV starts from a stationary position at a customer or recharging station, then accelerates at a uniform rate a b 1 to speed v b 1 and maintains v b 1 for a period, after which it decelerates at rate a b 2 to a complete stop when it reaches the next customer or recharging station. This driving cycle B is shown in Figure 3.

3.2. Energy Consumption Models of EVs Based on Different Driving Cycles

We develop the energy consumption models of an EV in a few steps, as shown in Figure 4. According to the kinetic energy theorem, the kinetic energy obtained by the vehicle should be equal to the work done by the vehicle’s combined external force, while the total external force is the difference between the vehicle’s traction and resistance. Therefore, during an EV’s driving process, both the kinetic energy E K and the energy consumed to overcome resistance E R come from the electric energy of the motor E M :
E M = E K + E R
E M is then translated into the electric energy E provided by the battery, that is:
E = E M η
where η is the efficiency of the electric motor.
Similar to combustion vehicles, EVs are influenced by four types of external forces during driving, namely, rolling resistance F f , acceleration resistance F j , slope resistance F g , and air resistance F w . Resistances are mainly determined by factors of vehicle mass, vehicle load, vehicle dimensions, engine properties, acceleration rate, speed, and gradient.
To present the equations of resistance, we use the notation shown in Table 1.
Then, the rolling resistance F f , the acceleration resistance F j , the air resistance F w , and the slope resistance F g can be respectively determined as:
F f = f m g
F j = δ m a
F w = 1 2 ρ a C d A f v 2
F g = m g sin α
In the following, the steps to build energy consumption models for driving cycles A and B are described in further detail. Let d be the distance between any two nodes, and s the distance an EV drives. We start with driving cycle B as it has fewer phases.
Driving cycle B, as shown in previous Figure 3, consists of three phases: first acceleration phase, second uniform motion phase, and, finally, the deceleration phase.
The first acceleration phase is from speed 0 to v b 1 during time 0 to t b 1 , that is:
E B 1 = E K + E R η = 1 2 m v b 1 2 + E R η
and:
E R = F f s b 1 + F j s b 1 + F g s b 1 + F w s w , b 1
where s b 1 is the distance the EV travels during this phase, while s w , b 1 is the distance traveled when facing air resistance.
Based on the law of uniform acceleration:
s b 1 = 1 2 a b 1 t b 1 2
the intensity of air resistance is changed by speed; then, based on the infinitesimal method:
F w s w , b 1 = 0 t b 1 1 2 ρ a C d A f v 2 v d t
This converts into:
F w s w , b 1 = 1 8 ρ a C d A f a b 1 3 t b 1 4
Therefore:
E R = f m g 1 2 a b 1 t b 1 2 + δ m a b 1 1 2 a b 1 t b 1 2 + m g s i n ( α ) 1 2 a b 1 t b 1 2 + 1 8 ρ a C d A f a b 1 3 t b 1 4
The battery energy consumed during the acceleration phase of cycle B, E B 1 , is then calculated as below:
E B 1 = 1 2 m v b 1 2 + 1 2 m ( g f + δ a b 1 + g sin α ) a b 1 t b 1 2 + 1 8 ρ a C d A f a b 1 3 t b 1 4 η
In the second uniform motion phase, the acceleration resistance F j is 0 due to 0 acceleration and constant speed, while air resistance F w is constant. The battery energy consumed during this phase of cycle B, E B 2 , is determined as:
E B 2 = F f + F g + F w s b 2 η = ( m g f + m g s i n α + 1 2 ρ a C d A f v b 1 2 ) v b 1 ( t b 2 t b 1 ) η
In the last phase of deceleration, regardless of energy recovery, all the kinetic energy is converted into work to overcome the resistance, so the battery output power is 0, and the battery does not consume energy; that is, E B 3 = 0 .
Based on the law of uniform acceleration and uniform deceleration:
t b 1 = v b 1 a b 1
s b 1 = v b 1 2 2 a b 1
s b 3 = v b 1 2 2 a b 2
t b 1 and s b 1 are the driving time and distance in the acceleration phase, respectively, and s b 3 is the driving distance in the deceleration phase.
With known distance d between any two nodes, the distance traveled in the uniform motion phase is calculated as:
s b 2 = d v b 1 2 2 a b 1 v b 1 2 2 a b 2
Inserting Equations (15)–(18) into Equations (13) and (14), we have:
E B 1 = 1 2 m v b 1 2 + v b 1 2 2 a b 1 m ( g f + δ a b 1 + g sin α ) + v b 1 4 8 a b 1 ρ a C d A f η
E B 2 = ( mgf + mgsin α + 1 2 ρ a C d A f v b 1 2 ) ( d v b 1 2 2 a b 1 v b 1 2 2 a b 2 ) η
Therefore, the total battery energy consumed during the entire driving cycle B is determined as:
E B = E B 1 + E B 2
Driving cycle A, as in Figure 2, has five sequential phases: first acceleration, first deceleration, second acceleration, uniform motion, and second deceleration phase. Similar to the case of cycle B, in acceleration phases, the electric energy is converted into kinetic energy and the energy to overcome external resistance; in the uniform motion phase, the energy from the battery is used to overcome resistance; and in deceleration phases, the battery does not consume any energy.
In the first acceleration phase from time 0 to t a 1 , the battery energy consumed is:
E A 1 = 1 2 m v a 1 2 + v a 1 2 2 a a 1 m ( g f + δ a a 1 + g sin α ) + v a 1 4 8 a a 1 ρ a C d A f η
From time t a 2 to t a 3 of the second acceleration phase, based on the kinetic energy theorem:
1 2 m v a 3 2 1 2 m v a 2 2 = η E A 3 E R
Then,
E A 3 = 1 2 m ( v a 3 2 v a 2 2 ) + v a 3 2 v a 2 2 2 a a 3 m ( g f + δ a a 1 + g sin α ) + E F w η
with:
E F w = ρ a C d A f 8 a a 3 [ ( v a 2 + a a 3 t a 3 ) 4 ( v a 2 + a a 3 t a 2 ) 4 ]
Based on the law of uniform acceleration and uniform deceleration:
t a 1 = v a 1 a a 1
t a 2 = t a 1 + v a 1 v a 2 a a 2
t a 3 = t a 2 + v a 3 v a 2 a a 3
Insert t a 1 , t a 2 , and t a 3 into Equation (25); after simplification, we obtain:
E F w = ρ a C d A f 8 a a 3 { [ v a 2 + v a 1 a a 2 a a 3 + a a 1 a a 3 ( v a 1 v a 2 ) + a a 1 a a 2 ( v a 3 v a 2 ) a a 1 a a 2 ] 4 [ v a 2 + v a 1 a a 2 a a 3 + a a 1 a a 3 ( v a 1 v a 2 ) a a 1 a a 2 ] 4 }
In the uniform motion phase, from time t a 3 to t a 4 , which is similar to that in cycle B, the battery energy in this phase of cycle A is calculated using:
E A 4 = ( m g f + m g sin α + 1 2 ρ a C d A f v a 3 2 ) ( d v a 1 2 2 a a 1 v a 1 2 v a 2 2 2 a a 2 v a 3 2 v a 2 2 2 a a 3 v a 3 2 2 a a 4 ) η
Since the other two phases are the deceleration process, E A 2 = 0 , and E A 5 = 0 . Therefore, the total battery energy consumed during driving cycle A is determined as:
E A = E A 1 + E A 3 + E A 4

4. The Electric Vehicle Routing Problem with Time Windows Based on Driving Cycles (EVRPTW-DC)

4.1. Formulation of EVRPTW-DC

The electric vehicle routing problem in our work is constructed using the energy consumption models established in Section 3, also with consideration of customer time windows, the safe battery level, and vehicle load capacity. We define EVRPTW-DC with the following assumptions:
  • Only one distribution center exists and all EVs depart from the distribution center at the same time with a full battery, and return to the same distribution center after completing the delivery tasks;
  • EVs are homogeneous;
  • When visiting a recharging station, an EV is always recharged to full battery capacity;
  • Only delivery tasks for a customer are considered, i.e., no pickup tasks;
  • A customer must be visited only once, and by only one vehicle;
  • The locations of the distribution center, customers, and recharging stations, and the demands of customers, are known;
  • The number of chargers is sufficient at any recharging station, and an EV can be serviced whenever it arrives.
With the above assumptions, we now present the notation of our model in Table 2.
The objective for EVRPTW-DC is to minimize the total costs of distance, recharging, and time window punishment.
(1)
Cost of traveled distance Cd:
C d = c 1 i N j N k K x i j k d i j
(2)
Cost of recharging Cr:
C r = [ c 2 + ϕ ( Q p j k a ) ] i N j N R k K x i j k
C r consists of two components: the fixed cost for using a recharging facility, and the variable cost depending on the amount of recharged energy. To linearize C r , we introduce new nonnegative variables y i j k .
Let y i j k = p j k a x i j k , and, with the below constraints:
y i j k Q x i j k
y i j k p j k a
y i j k p j k a Q ( 1 x i j k )
Equation (33) can be transformed into a linear formation as:
C r = c 2 i N j N R k K x i j k + ϕ Q i N j N R k K x i j k ϕ i N j N R k K y i j k
(3)
Cost of time window punishment Ct:
C t = i N C k K f ( t i k a )
with:
f ( t i k a ) = { λ 1 ( u i t i k a )   t i k a < u i 0   u i t i k a l i λ 2 ( t i k a l i )   l i < t i k a ,   i N C , k K
To linearize f ( t i k a ) , we introduce new variables ε i k and ξ ik for i N C , k K , which are defined as:
ε i k = m a x ( λ 1 ( u i t i k a ) , 0 )
ξ ik = m a x ( 0 , λ 2 ( t i k a l i ) )
Then, f ( t i k a ) is replaced by:
f ( t i k a ) = ε i k + ξ ik
and Equation (38) is transformed into:
C t = i N C k K ( ε i k + ξ i k )
Therefore, the objective function is presented as:
MIN   C = C d + C r + C t
The constraints of EVRPTW-DC are as follows:
k K i N C ,     i j x i j k = 1             j N
i N ,   i j x i j k = s N ,   j s x j s k       k K ,   j N
k K j N C x 0 j k M
j N x 0 j k = 1             k K
i N x i 0 k = 1             k K
0 w 0 k W             k K
0 w j k w i k q i x i j k + W ( 1 x i j k ) i N , j { N C N R } ,   i j , k K
p i k l = Q             i { N 0 N R } , k K
p i k a = p i k l             i N C , k K
Q l o w p i k a , p i k l Q             i N , k K
p j k a p i k l E i j k x i j k + Q ( 1 x i j k )             i , j N , i j , k K
p i k l min { E i 0 k x i 0 k , E i j k x i j k }             i N C , j N R , k K
t 0 k l = 0             k K
0 t i k a , t i k l T lim             i N , k K
t i k l + t i 0 k T l i m             i { N C N R } , k K
t j k a t i k l + t i j k x i j k T l i m ( 1 x i j k )               i , j N , i j , k K
t i k l = t i k a + t i k s + t i k w             i { N C N R } , k K
t i k w = m a x { 0 , ( u i t i k a ) }             i N C , k K
t i k s = { θ   i N C , k K Q p i k a r i N R , k K
t i j k = v a 1 a a 1 + v a 1 v a 2 a a 2 + v a 3 v a 2 a a 3 + v a 3 a a 4 + d i j v a 1 2 2 a a 1 v a 1 2 v a 2 2 2 a a 2 v a 3 2 v a 2 2 2 a a 3 v a 3 2 2 a a 4 v a 3 i = 0 ,   j { N C N R } ,   o r i { N C N R } ,   j = 0   k K v b 1 a b 1 + v b 1 a b 2 + d i j v b 1 2 2 a b 1 v b 1 2 2 a b 2 v b 1 i , j { N C N R } i j , k K
Constraint (45) ensures that each customer must be visited exactly once. The Flow Constraint (46) guarantees for each node that the incoming flow is equal to the outgoing flow for each vehicle. Constraint (47) ensures that the number of employed vehicles does not exceed the number of available vehicles. Constraints (48) and (49) ensure each vehicle departs from and returns to the distribution center. Constraint (50) restricts the initial load to the maximum load capacity of a vehicle, and Constraint (51) enforces the fulfillment of demand at customer nodes. Constraint (52) ensures the battery level is at the maximum capacity when leaving the distribution center and recharging stations. The battery level maintains the same level at a customer node, as presented in Constraint (53). Constraint (54) ensures the battery level is within the range of minimum and maximum levels. Constraint (55) sets the battery level at a node succeeding a previous node according to the energy consumption models introduced in Section 3. Constraint (56) guarantees that the battery level when leaving a customer node should at least allow the vehicle to either return to the distribution center or travel to the closest recharging station.
All vehicles depart from the distribution center at time 0, as constrained in (57). Constraint (58) ensures the arrival and departure time at any node be within the maximum time span, while Constraint (59) ensures the time any vehicle returns to the distribution center is also within the maximum time span. Constraint (60) links the arrival time at a node with the departure time from the previous node. Constraint (61) illustrates that the departure time from a node is composed of arrival time, service time, and waiting time at this node. Constraint (62) calculates the waiting time at a customer node if the vehicle arrives earlier than the earliest service time. The service time at a node is either constant for a customer node, or the time required for recharging to full battery capacity at a recharging station, as presented in Constraint (63). Constraint (64) calculates the driving time between any two nodes, depending on driving cycles A and B in Section 3.

4.2. EVRPTW with Linear Energy Consumption (L-EVRPTW)

Most of the previous works on EVRP assumed energy consumption to be a linear function of the traveled distance, which is less realistic compared to our proposed EVRPTW-DC. To conduct comparative analysis in a later section, here we present a brief introduction of EVRPTW with linear energy consumption, denoted as L-EVRPTW.
Unlike EVRPTW-DC, L-EVRPTW has assumptions of constant speed during driving, and the energy consumption is linearly related to traveled distance only, without considering the impacts of speed and load. In addition to the notations in previous Table 2, v represents the constant speed of EVs, and ζ is the energy consumption rate, which is also constant. The battery energy consumed between two nodes i and j with distance d i j can then be calculated by the below formula:
E i j = ζ · d i j ,     i , j N , k K
The travel time is determined as:
t i j k = d i j v ,   i , j N , k K
The remainder of the constraints and objective function of L-EVRPTW are the same as EVRPTW-DC.

5. Adaptive Particle Swarm Optimization Algorithm for Solving EVRPTW-DC

This section details the adaptive particle swarm optimization (PSO) algorithm for our proposed EVRPTW-DC model. PSO was first introduced by Kennedy and Eberhart in 1995, and simulated the cooperation mechanism in foraging behavior in a swarm of birds and fish to search for the optimal solution [25].
In standard PSO, each particle has two attributes: position and velocity. The swarm searches for the best solution in an n -dimensional space. The position of a particle represents a solution and is adjusted by velocity to search for new solutions. The particle records the best position, p b e s t , it reached, and the best position experienced by the entire swarm, g b e s t , is also recorded [26].
In each iteration, the velocities v and positions x of the particles are updated by the following rules:
v i d t + 1 = ω v i d t + φ 1 γ 1 ( p b e s t i d t x i d t ) + φ 2 γ 2 ( g b e s t i d t x i d t )
x i d t + 1 = x i d t + v i d t + 1
where p b e s t is the best solution a particle has found and g b e s t is the best solution the swarm has found. ω , φ 1 , and φ 2 are important parameters for PSO. ω is the parameter called inertia weight, which serves as a memory of particle velocity from the last iteration, preventing the particle from drastically changing direction. φ 1 and φ 2 are acceleration coefficients, affecting the self-learning ability and social-learning ability of the particle, respectively. γ 1 and γ 2 are random numbers within 0 to 1.
The proposed adaptive PSO for EVRPTW-DC consists of similar attributes and parameters but with additional steps to check battery constraints as shown in Figure 5.

5.1. Particles Coding and Decoding

The solutions of EVRPTW-DC represented by particles are encoded by two vectors, X v and X r , for vehicle and service order, respectively [27]. For illustration, the problem has a total of nine customers and three available vehicles, and a delivery plan is presented in Table 3.
The vector of vehicles indicates the IDs of vehicles serving each customer, indicating that customers 1, 4, 7, and 8 are visited by vehicle 1; customers 2 and 6 are visited by vehicle 2; and the rest of the customers are visited by vehicle 3. The vector of service orders indicates the sequence of visiting each customer by a vehicle, which is the path of the vehicle. The vector of service orders indicates that vehicle 1 first visits customer 4, secondly customer 8, then customer 1, and finally customer 7. Similarly, we can decode the paths for vehicles 2 and 3, as listed in Table 4.
Note that, due to the randomness of initialization and the iterative process, there may be solutions that do not meet the model constraints during the iterations, e.g., the same customer appearing on the delivery paths of multiple vehicles, and those solutions need to be eliminated after decoding.

5.2. Settings of Adaptive PSO

Similar to standard PSO, particles of adaptive PSO are updated in each iteration. As mentioned in Section 5.1, a particle is encoded by two vectors X v and X r . Let V v and V r be the velocities of X v and X r , respectively. The velocities and positions in iteration i + 1 are updated by the following equations:
V v i + 1 = ω V v i + φ 1 γ 1 ( p b e s t X v i X v i ) + φ 2 γ 2 ( g b e s t X v i X v i )
X v i + 1 = X v i + V v i + 1
V r i + 1 = ω V r i + φ 1 γ 1 ( p b e s t X r i X r i ) + φ 2 γ 2 ( g b e s t X r i X r i )
X r i + 1 = X r i + V r i + 1
The value of ω has a significant influence on the global search ability and local search ability of PSO algorithm. According to the research by Zhao and Deng [28], choosing a larger ω in the preliminary stage can make the algorithm have a stronger global search ability, whereas in the later stage, a smaller ω can improve the convergence speed of the algorithm. Therefore, in the adaptive PSO for our problem, we adopt a linearly decreasing selection strategy for ω to improve the searching ability and convergence speed of the algorithm, and update its value by the following formula [29]:
ω = ω m a x ( ω m a x ω m i n ) ( Ι c u r r e n t Ι m a x )
where Ι c u r r e n t is the current iteration number and Ι m a x is the maximum number of iterations. ω m a x and ω m i n are set to be 0.9 and 0.4, respectively. φ 1 and φ 2 are both set to be 1.494 based on Clrec’s research [30].

6. Case Study

Company J is an e-commerce enterprise that has its own distribution network. The cases in this section are constructed based on the actual distribution network of company J. The warehouse of company J serving the greater Xi’an area is selected as the distribution center N 0 and a few EVs are used to perform daily delivery tasks. The customer set N C consist of outlets within the city of Xi’an, with known locations, demands, and time windows. In addition, public recharging stations are selected as the charging facilities N R in the distribution network. The locations of facilities and the recharging rate are provided. Experiments are then conducted on three different scales of distribution network, with the same distribution center but a different number of customer nodes and maximum available EVs, as listed in Table 5. Five recharging stations with the same unit charging rate and cost are selected for each scenario, but their locations may vary from scenario to scenario. Figure 6 shows the distribution networks of each scenario, including the distribution center, customers, and recharging stations.

6.1. Experimental Environment and Parameter Settings

There are various types of EVs on the market, with different load capacities and battery capacities. We compared the available EVs for logistics and selected five for experiments that have the listed attributes in Table 6. Note that Company J adopted Type 4 EVs for daily delivery tasks to align with government policy and development.
Table 7 lists the values of parameters to calculate the driving resistance, and Table 8 presents the values of speed and acceleration.
According to operational data of Company J, the average speed of vehicles during the overall route is between 30 and 40 km/h, while the driving speed in the suburban area differs from that within the city. Therefore, based on actual operational data and speed limits, the detailed speed and acceleration settings of driving cycles A and B are listed in Table 8.
The remainder of the parameters in the EVRPTW-DC model, such as unit distance cost, punishment of time window violation, recharging rate, and unit recharging cost, are presented in Table 9, and Table 10 provides the distinctive parameters, the energy consumption rate ζ , and average speed v , for the L-EVRPTW model. The remaining experimental parameters listed in Table 11 are for the PSO algorithm.

6.2. Results and Analysis

6.2.1. Solutions of EVRPTW-DC and L-EVRPTW

Based on the scenarios and settings described earlier, we used MATLAB and Statistics Toolbox Release 2014a (The MathWorks, Inc., Natick, Massachusetts, United States) to build the PSO algorithm to solve the EVRPTW-DC and L-EVRPTW models, and the program was run on a desktop operating on Windows 10, with an Intel Core i5-7200U, 2.5 GHz processor, and 8 GB RAM. For each case, we conducted 20 individual tests and selected the best solution obtained among these tests to be the optimal solution achieved by our algorithm, which is presented in the following section.
We solved for EVRPTW-DC and L-EVRPTW individually. It is shown in Figure 7 and Figure 8 that our PSO algorithm is capable of solving scenarios with up to 35 customers. The number of iterations to obtain the optimum of EVRPTW-DC is similar to that of L-EVRPTW, and the number of iterations to obtain the optimum rises when the number of customers increases in both models. The optimal delivery paths are provided in Table 12 and Table 13, and the corresponding mappings of the paths are presented in Figure 9 and Figure 10. It is obvious that, for both EVRPTW-DC and L-EVRPTW, scenarios with more customers need more EVs. In both models, the number of deployed EVs is 6, 8, and 9 for Scenarios 1, 2, and 3, respectively. During the delivery, these EVs visit recharging stations as expected to complete the routes. The numbers of visits to recharging stations are different, which are 2, 6, and 5 times for EVRPTW-DC, compared to 2, 4, and 4 times for L-EVRPTW, for Scenarios 1, 2, and 3, respectively. The visited recharging stations are highlighted in each path provided in Table 12 and Table 13.
The major difference between EVRPTW-DC and L-EVRPTW models is the energy consumption assumption; that is, a nonlinear model as described in Section 3.2 is used for EVRPTW-DC, but a linear function is used for L-EVRPTW. This leads to the observation that more visits to recharging stations are required in EVRPTW-DC than in L-EVRPTW. Table 14 provides detailed comparisons of various costs of the two models.
Overall, the total cost increases as the scale increases, while the number of deployed EVs is the same for both EVRPTW-DC and L-EVRPTW. It is notable that for Scenario 1, EVRPTW-DC provides a lower total cost compared to L-EVRPTW, and this is because the cost of time window violation in EVRPTW-DC is much less than that of L-EVRPTW. For Scenarios 2 and 3, although there is little increase in the distance cost, the largest gap in costs comes from the recharging cost, which indicates that our proposed nonlinear energy consumption model can provide a better estimation of consumed energy than the linear model and lead to more realistic travel routes.

6.2.2. L-EVRPTW Path under Nonlinear Energy Consumption (L-EVRPTW-NL)

To further compare the results, we implemented the optimal routes of L-EVRPTW but with the driving-cycle-based energy consumption functions, and the results are listed in Table 15. We found that additional visits to recharging stations and more energy are required to complete the routes, which is because the linear energy consumption function in L-EVRPTW is less realistic when simulating the energy consumption in operation. Moreover, the order of visits to recharging stations may also be adjusted during the implementation. It is notable that, the solution of L-EVRPTW-NL would be a feasible solution to EVRPTW-DC. As a result of these adjustments, the cost of L-EVRPTW-NL is largely increased when compared to that of EVRPTW-DC and L-EVRPTW. It is shown that the additional costs mainly come from recharging and time window violation.
We then present the cost compositions of EVRPTW-DC, L-EVRPTW, and L-EVRPTW-NL in Table 16. It is shown that recharging cost contributes the largest proportion of total cost in almost every experiment, and can be up to 54%. When considering the nonlinear energy consumption function, as in EVRPTW-DC and L-EVRPTW-NL, the recharging cost is larger than that of L-EVRPTW with the linear energy consumption function. This indicates that the pattern of energy consumption has a significant impact on the total costs, and a larger recharging cost would be expected with a more realistic assumption. Moreover, EVs need to be recharged a few more times when implementing the nonlinear energy consumption function, and the average path length is usually longer for EVRPTW-DC.
As can be seen from the above analysis, in general, the delivery paths under L-EVRPTW cannot be completely carried out under the nonlinear energy consumption function, and the costs of recharging and time window violation may be increased due to the actual recharging needs or due to the recharging operation, which makes the total cost higher than the theoretical value. In addition, L-EVRPTW and L-EVRPTW-NL have similar distance costs while the gap is due to recharging and time window violation costs. Various reasons lead to the increasing recharging cost and time window violation cost in L-EVRPTW-NL, including: (1) nonlinear energy consumption is larger than the linear energy consumption in the same path, which would increase the number of visits to recharging stations and the amount of recharging; (2) when an EV completes the delivery task, its last delivery point is far from distribution center, which may require additional recharging to ensure the safety battery level for it to return; (3) due to increasing or advanced charging operation, the time window satisfaction of the subsequent demand point is weakened, which may also lead to an additional time window penalty.
Furthermore, for paths substantially shorter than the average path length in these three scenarios, using the nonlinear energy consumption function does not necessarily increase the number of visits to recharging stations or the recharging costs. In addition, those short paths usually have fewer customers to serve, and would be less affected by time window violation. However, the opposite impact is observed on paths having a substantially longer length than the average path length. These longer paths are more likely to show an increase in costs when using the nonlinear energy consumption function due to additional needs for recharging and occurrences of time window violation. Moreover, the increasing cost may also be possible for paths having a slightly short length than the average path length. Therefore, it is considered that, the shorter the length of the delivery path and the fewer the customer demand points on the delivery path, the smaller the possibility of higher recharging costs under nonlinear conditions and time window violation resulting from an additional recharging operation.

7. Conclusions

In this paper, we develop a nonlinear energy consumption model based on EVs’ driving cycles, which incorporates driving phase, load, travel distance, and speed. This has a key influence on routing EVs, as energy consumption directly determines the maximal driving range and the recharging behavior of EVs. We then introduce the EVRPTW-DC and L-EVRPTW models to address the EVs’ routing problem and utilize an adaptive PSO algorithm to solve it.
Numerical analyses are performed for scenarios built from realistic operational data of Company J. Each scenario is solved by three approaches, which are EVRPTW-DC with the driving-cycle-based nonlinear energy consumption model, L-EVRPTW using a linear energy consumption function, and L-EVRPTW-NL implementing nonlinear energy consumption on the optimal routes of L-EVRPTW. By comparing the optimal routes of EVRPTW-DC and L-EVRPTW, we find that the implementation of the driving-cycle-based energy consumption model effectively provides more realistic routing paths. The routing scheme obtained under linear energy consumption may not be able to proceed smoothly as the actual recharging needs may require more recharging time and possibly result in additional time window violation, leading to higher total cost than the theoretical plan. Moreover, when comparing L-EVRPTW-NL with EVRPTW-DC, it is found that the shorter the length of the paths and the fewer the customers on the paths obtained under the linear energy consumption rule, the lower the probability that the costs of recharging and time window violation will increase when the implementing nonlinear energy consumption model. It can therefore be considered that the L-EVRPTW model can be applied to such scenarios if the scale is small, the customer’s time window is relaxed, the nodes in the distribution network are close, and the delivery paths are short in the resulting solution of the linear energy consumption function. Otherwise, EVRPTW-DC will be the better choice to provide a more realistic delivery plan.
Several interesting aspects are available for future research. Even though our driving-cycle-based energy consumption model considered some main factors, the realistic driving cycles may be more complicated. Further research may consider more complex driving phases with additional external environmental conditions. Additionally, we would like to incorporate a partial recharging strategy in future research, which would allow EVs to be recharged to the necessary battery level rather than to full capacity. From the computational perspective, future research can focus on improving the efficiency of the adaptive PSO algorithm for a better quality of the optimal solution, and testing the algorithm on larger-scale problems.

Author Contributions

Conceptualization, N.D.; Formal analysis, Z.H. and J.H.; Methodology, N.D. and J.Y.; Supervision, N.D. and J.Y.; Writing—original draft, N.D.; Writing—review and editing, J.Y. and J.H. All authors have read and agreed to the published version of the manuscript.

Funding

This study is sponsored by the Fundamental Research Funds for the Central Universities, Chang’an University (No. 300102220302), which are greatly acknowledged. The Center for Computational Research at the University at Buffalo is greatly acknowledged.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Ministry of Ecology and Environment of the People’s Republic of China. Available online: https://www.mee.gov.cn/ (accessed on 20 December 2020).
  2. Bp Statistical Review of World Energy 2021: A Dramatic Impact on Energy Markets. Available online: https://www.bp.com/en/global/corporate/news-and-insights/press-releases/bp-statistical-review-of-world-energy-2021-a-dramatic-impact-on-energy-markets.html (accessed on 10 September 2021).
  3. Dantzig, G.B.; Ramser, J.H. The truck dispatching problem. Manag. Sci. 1959, 6, 80–91. [Google Scholar] [CrossRef]
  4. Solomon, M.M. Algorithms for the vehicle routing and scheduling problems with time window constraints. Oper. Res. 1987, 35, 254–265. [Google Scholar] [CrossRef]
  5. Laporte, G.; Mercure, H.; Nobert, Y. An exact algorithm for the asymmetrical capacitated vehicle routing problem. Networks 1986, 16, 33–46. [Google Scholar] [CrossRef]
  6. Lin, C.; Choy, K.L.; Ho, G.T.S.; Chung, S.H.; Lam, H.Y. Survey of Green Vehicle Routing Problem: Past and future trends. Expert Syst. Appl. 2014, 41, 1118–1138. [Google Scholar] [CrossRef]
  7. Erdogan, S.; Miller-Hooks, E. A green vehicle routing problem. Transp. Res. Part E Logist. Transp. Rev. 2012, 48, 100–114. [Google Scholar] [CrossRef]
  8. Sawik, B.; Faulin, J.; Pérez-Bernabeu, E. A Multicriteria Analysis for the Green VRP: A Case Discussion for the Distribution Problem of a Spanish Retailer. Transp. Res. Procedia 2017, 22, 305–313. [Google Scholar] [CrossRef]
  9. da Costa, P.R.O.; Mauceri, S.; Carroll, P.; Pallonetto, F. A Genetic Algorithm for a Green Vehicle Routing Problem. Electron. Notes Discret. Math. 2018, 64, 65–74. [Google Scholar] [CrossRef]
  10. Mancini, S. The Hybrid Vehicle Routing Problem. Transp. Res. Part C Emerg. Technol. 2017, 78, 1–12. [Google Scholar] [CrossRef]
  11. Conrad, R.G.; Figliozzi, M.A. The recharging vehicle routing problem. In Proceedings of the Industrial Engineering Research Conference (IERC), Reno, Nevada, 21–25 May 2011. [Google Scholar]
  12. Gonçalves, F.; Cardoso, S.R.; Relvas, S.; Barbosa-Póvoa, A. Optimization of a distribution network using electric vehicles: A VRP problem. In Proceedings of the IO2011-15 Congresso da associação Portuguesa de Investigação Operacional, Coimbra, Portugal, 18–20 April 2011. [Google Scholar]
  13. Schneider, M.; Stenger, A.; Goeke, D. The electric vehicle-routing problem with time windows and recharging stations. Transp. Sci. 2014, 48, 500–520. [Google Scholar] [CrossRef]
  14. Keskin, M.; Catay, B. Partial recharge strategies for the electric vehicle routing problem with time windows. Transp. Res. Part C Emerg. Technol. 2016, 65, 111–127. [Google Scholar] [CrossRef]
  15. Felipe, Á.; Ortuño, M.T.; Righini, G.; Tirado, G. A heuristic approach for the green vehicle routing problem with multiple technologies and partial recharges. Transp. Res. Part E Logist. Transp. Rev. 2014, 71, 111–128. [Google Scholar] [CrossRef]
  16. Erdelić, T.; Carić, T. Goods Delivery with Electric Vehicles: Electric Vehicle Routing Optimization with Time Windows and Partial or Full Recharge. Energies 2022, 15, 285. [Google Scholar] [CrossRef]
  17. Yang, J.; Feng, P.; Sun, H.; Yang, C. Battery exchange station location and vehicle routing problem in electric vehicle distribution system. Chin. J. Manag. Sci. 2015, 23, 87–96. (In Chinese) [Google Scholar]
  18. Keskin, M.; Çatay, B.; Laporte, G. A simulation-based heuristic for the electric vehicle routing problem with time windows and stochastic waiting times at recharging stations. Comput. Oper. Res. 2021, 125, 105060. [Google Scholar] [CrossRef]
  19. Jie, W.; Yang, J.; Yang, C. Branch-and-price algorithm for heterogeneous electric vehicle routing problem. Syst. Eng.-Theory Pract. 2016, 36, 1795–1805. [Google Scholar]
  20. Lee, C. An exact algorithm for the electric-vehicle routing problem with nonlinear charging time. J. Oper. Res. Soc. 2021, 72, 1461–1485. [Google Scholar] [CrossRef]
  21. Geoke, D.; Schneider, M. Routing a mixed fleet of electric and conventional vehicles. Eur. J. Oper. Res. 2015, 245, 81–99. [Google Scholar] [CrossRef]
  22. Shao, S.; Guan, W.; Bi, J. Electric vehicle-routing problem with charging demands and energy consumption. IET Intell. Transp. Syst. 2018, 12, 202–212. [Google Scholar] [CrossRef]
  23. Kancharla, S.R.; Ramadurai, G. Electric Vehicle Routing Problem with nonlinear charging and load-dependent discharging. Expert Syst. Appl. 2020, 160, 113714. [Google Scholar] [CrossRef]
  24. Xiao, Y.; Zhang, Y.; Kaku, I.; Kang, R.; Pan, X. Electric vehicle routing problem: A systematic review and a new comprehensive model with nonlinear energy recharging and consumption. Renew. Sustain. Energy Rev. 2021, 151, 111567. [Google Scholar] [CrossRef]
  25. Qi, M.; Wu, K. Application of improved particle swarm optimization algorithm in agricultural product logistics distribution path management. Packag. Eng. 2019, 40, 110–115. (In Chinese) [Google Scholar]
  26. Huang, L.; Wang, K.; Zhou, C.; Pang, W.; Dong, L.; Peng, L. Particle Swarm Optimization Algorithm for Travelling Salesman Problem. J. Jilin Univ. (Sci. Ed.) 2003, 41, 447–480. (In Chinese) [Google Scholar]
  27. Ma, Y.; Yan, F.; Kang, K.; Li, Z. An Improved Particle Swarm Optimization for Simultaneous Pickup and Delivery Vehicle Routing Problems with Time Windows under a Fuzzy Random Environment. Oper. Res. Manag. Sci. 2018, 27, 77–87. (In Chinese) [Google Scholar]
  28. Zhao, N.; Deng, J. A Review of Particle Swarm Optimization Algorithm. Sci. Technol. Innov. Herald 2015, 12, 216–217. [Google Scholar]
  29. Yang, B.; Qian, W. An Overview on the Strategy of Improving Inertia Weight in Particle Swarm Optimization Algorithm. J. Bohai Univ. (Nat. Sci. Ed.) 2019, 3, 274–288. (In Chinese) [Google Scholar]
  30. Clerc, M. The swarm and the queen: Towards a deterministic and adaptive particle swarm optimization. In Proceedings of the 1999 congress on evolutionary computation-CEC99 (Cat. No. 99TH8406), Washington, DC, USA, 6–9 July 1999; Volume 3, pp. 1951–1957. [Google Scholar]
  31. Zhang, G.; Chen, H. Selection and Simulation Analysis of A Pure Electric Vehicle Driving System. Auto Electr. Parts 2019, 9, 24–25. (In Chinese) [Google Scholar]
  32. Demir, E.; Bektaş, T.; Laporte, G. An adaptive large neighborhood search heuristic for the Pollution-Routing Problem. Eur. J. Oper. Res. 2012, 223, 346–359. [Google Scholar] [CrossRef]
  33. Li, L.; Qiu, Y. Research on Electric Energy Consumption in Different Ways of Accelerating on Electric Vehicle. Energy Conserv. Technol. 2018, 36, 14–19. (In Chinese) [Google Scholar]
  34. Zhao, Y. Electric-Vehicle Path Planning Based on Nonlinear Energy Consumption. Master’s Thesis, South China University of Technology, Guangzhou, China, 2018. [Google Scholar]
  35. Wu, S. Research on Optimization of Urban Distribution Scheduling for Pure Electric Logistics Vehicles. Master’s Thesis, Beijing Jiaotong University, Beijing, China, 2018. [Google Scholar]
Figure 1. The driving cycles of ECE and EUDC.
Figure 1. The driving cycles of ECE and EUDC.
Mathematics 10 03099 g001
Figure 2. Cycle A of an EV.
Figure 2. Cycle A of an EV.
Mathematics 10 03099 g002
Figure 3. Cycle B of an EV.
Figure 3. Cycle B of an EV.
Mathematics 10 03099 g003
Figure 4. Flow of consumed battery energy.
Figure 4. Flow of consumed battery energy.
Mathematics 10 03099 g004
Figure 5. Flowchart of adaptive PSO algorithm.
Figure 5. Flowchart of adaptive PSO algorithm.
Mathematics 10 03099 g005
Figure 6. Distribution network in Xi’an, China: (a) Scenario 1; (b) Scenario 2; (c) Scenario 3.
Figure 6. Distribution network in Xi’an, China: (a) Scenario 1; (b) Scenario 2; (c) Scenario 3.
Mathematics 10 03099 g006
Figure 7. Iteration graph to obtain optimum for EVRPTW-DC: (a) 81 iterations for Scenario 1; (b) 119 iterations for Scenario 2; (c) 141 iterations for Scenario 3.
Figure 7. Iteration graph to obtain optimum for EVRPTW-DC: (a) 81 iterations for Scenario 1; (b) 119 iterations for Scenario 2; (c) 141 iterations for Scenario 3.
Mathematics 10 03099 g007
Figure 8. Iteration graph to obtain optimum for L-EVRPTW: (a) 80 iterations for Scenario 1; (b) 116 iterations for Scenario 2; (c) 143 iterations for Scenario 3.
Figure 8. Iteration graph to obtain optimum for L-EVRPTW: (a) 80 iterations for Scenario 1; (b) 116 iterations for Scenario 2; (c) 143 iterations for Scenario 3.
Mathematics 10 03099 g008
Figure 9. Mapping of optimal delivery paths for EVRPTW-DC: (a) Scenario 1; (b) Scenario 2; (c) Scenario 3.
Figure 9. Mapping of optimal delivery paths for EVRPTW-DC: (a) Scenario 1; (b) Scenario 2; (c) Scenario 3.
Mathematics 10 03099 g009
Figure 10. Mapping of optimal delivery paths for L-EVRPTW: (a) Scenario 1; (b) Scenario 2; (c) Scenario 3.
Figure 10. Mapping of optimal delivery paths for L-EVRPTW: (a) Scenario 1; (b) Scenario 2; (c) Scenario 3.
Mathematics 10 03099 g010
Table 1. Notation to calculate resistance.
Table 1. Notation to calculate resistance.
NotationDefinition
m Mass of an EV in kilograms
g Gravitational acceleration constant
α Gradient angle
f Rolling friction coefficient
δ The conversion factor of vehicle rotation mass
v Speed
ρ a Air density
C d Aerodynamic drag coefficient
A f Vehicle frontal area
Table 2. Notation of variables and parameters in the EVRPTW-DC model.
Table 2. Notation of variables and parameters in the EVRPTW-DC model.
Sets
N Set of all nodes
N 0 Distribution center
N C Set of customers
N R Set of recharging stations
K Set of EVs
Parameters
T l i m The maximum time span of a delivery route, in hour units
Q The maximum battery level of an EV, in kW · h
Q l o w The lowest battery level of an EV, in kW · h
r Recharging rate at a charger, in kW
ϕ Unit price of recharging, in Yuan / ( kW · h )
M Number of available EVs at the distribution center
W The maximum load of an EV, in kg
λ 1 Unit cost of a vehicle arriving before the time window, in Yuan/h
λ 2 Unit cost of a vehicle arriving after the time window, in Yuan/h
v a i The speed of an EV in driving cycle A, i = 1 , 2 , 3 ,   in   m / s
a a i The acceleration of an EV in driving cycle A, i = 1 , 2 , 3 , 4 ,   in   m / s 2
v b i The speed of an EV in driving cycle B, i = 1 , 2 , 3 , 4 ,   in   m / s
a b i The acceleration of an EV in driving cycle B, i = 1 , 2 ,   in   m / s 2
c 1 Unit cost of traveled distance, in Yuan/km
c 2 Fixed cost for recharging
q i The demand of node i ,   i N C
μ i Earliest start of service at node i ,   i N C
l i Latest start of service at node i ,   i N C
d i j Distance between node i and j , i , j N
t i j k Travel time of vehicle k between node i and j ,   i , j N ,   k K
E i j k Battery energy consumption of vehicle k between node i and j, i , j N , k K ; and is calculated by Equations (21) and (31) depending on driving cycle
Variables
t i k a Time of arrival of vehicle k at node i , i N ,   k K
t i k l Time of arrival of vehicle k at node i , ,   i N ,   k K
t i k s The service time or recharging time of vehicle k at node i ,   i N ,   k K
t i k w The waiting time of vehicle k at node i , i N ,   k K
p i k a Battery level of vehicle k when arriving node ,   i N ,   k K
p i k l Battery level of vehicle k when leaving node i , i N ,   k K
w i k Load of vehicle k when arriving node i , i N ,   k K
E i j k Battery energy consumption of vehicle k between node i and j , i , j N , k K ; and is calculated by Equations (21) and (31) depending on driving cycle
x i j k Binary decision variable indicating if vehicle k travels from node i to node j ,   i , j N ,   k K
Table 3. Example of particle coding.
Table 3. Example of particle coding.
Customers123456789
Vector of Vehicles123132113
Vector of Service Orders323111422
Table 4. Example of decoded paths.
Table 4. Example of decoded paths.
Vehicle 14 → 8 → 1 → 7
Vehicle 26 → 2
Vehicle 35 → 9 → 3
Table 5. Settings of three scenarios.
Table 5. Settings of three scenarios.
Number ofDistribution CenterCustomer NodesRecharging StationsMaximum Available EVs
Scenario 112556
Scenario 213058
Scenario 3135510
Table 6. Attributes of EVs.
Table 6. Attributes of EVs.
TypeMass
( k g )
Max Load
( k g )
Max Battery
( k W · h )
Price
(YUAN)
Type 13150121596.77158K
Type 22995130587.20239.8K
Type 34050310596.76217.8K
Type 429901310103.42240.5K
Type 53110126583.20324.8K
Table 7. Parameters of driving resistance.
Table 7. Parameters of driving resistance.
ParametersValue
g 9.8   m / s 2
f 0.01 [31]
δ 1.14
s i n α 0.05
C d 0.7 [32]
ρ a 1.2   kg / m 3 [32]
A f 5   m 2
Table 8. Parameters of driving cycles.
Table 8. Parameters of driving cycles.
Driving CycleParametersValue
A v a 1 63   km / h
v a 2 54   km / h
v a 3 72   km / h
a a 1 0.9   m / s 2   [33]
a a 2 1.5   m / s 2 [33]
a a 3 1   m / s 2 [33]
a a 4 2   m / s 2 [33]
B v b 1 36   km / h
a b 1 0.9   m / s 2 [33]
a b 2 1.5   m / s 2 [33]
Table 9. Other parameters of EVRPTW-DC.
Table 9. Other parameters of EVRPTW-DC.
ParametersDefinitionValue
Q 0 Safe battery level (20% of Max Battery) 20.68   kW · h
λ 1 Unit cost of vehicle arriving
before time window
3.6   Yuan / h
λ 2 Unit cost of vehicle arriving
after time window
18   Yuan / h
c 1 Unit distance cost 0.4   Yuan / km [34]
r Recharging rate 60   kW
ϕ Unit recharging cost 1.2   Yuan / ( kW · h )
T l i m Maximum time span
of a delivery route
10   h
Table 10. Parameters of L-EVRPTW.
Table 10. Parameters of L-EVRPTW.
ParametersDefinitionValue
ζ Energy consumption rate 1.03   kW · h / km [35]
v Average speed 35 km / h
Table 11. Parameters of PSO algorithm.
Table 11. Parameters of PSO algorithm.
ParametersDefinitionValue
NumParticle size50
maxgenMaximum number of iterations200
φ 1 Learning coefficient 11.494
φ 2 Learning coefficient 21.494
ω m i n Minimum inertia coefficient0.4
ω m a x Maximum inertia coefficient0.9
Table 12. Optimal delivery paths for EVRPTW-DC.
Table 12. Optimal delivery paths for EVRPTW-DC.
VehicleNo.Path
Scenario 110—1—2—0
20—24—6—3—15—14—0
30—22—4—0
40—10—11—17—28—23—21—13—20—0
50—12—16—18—28—9—7—8—0
60—5—19—25—0
Scenario 210—19—12—2—18—0
20—21—6—20—31—0
30—30—3—0
40—4—31—8—13—26—32—9—0
50—16—5—15—35—29—24—0
60—17—25—31—7—14—23—27—31—0
70—22—11—0
80—1—28—10—0
Scenario 310—19—12—2—18—0
20—21—6—20—31—0
30—30—3—0
40—4—31—8—13—26—32—9—0
50—16—5—15—35—29—24—0
60—17—25—31—7—14—23—27—31—0
70—22—11—0
80—1—28—10—0
Table 13. Optimal delivery paths for L-EVRPTW.
Table 13. Optimal delivery paths for L-EVRPTW.
VehicleNo.Path
Scenario 110—1—13—0
20—9—12—16—23—5—22—30—0
30—17—21—19—0
40—20—3—7—0
50—25—11—10—4—0
60—15—18—24—29—6—14—8—2—0
Scenario 210—19—30—26—0
20—20—21—24—1—34—0
30—11—15—5—4—31—0
40—28—23—0
50—7—12—22—6—32—25—0
60—9—18—27—13—17—32—16—0
70—14—10—3—0
80—2—29—8—0
Scenario 310—22—12—0
20—32—24—13—17—0
30—1—7—0
40—10—14—19—27—21—37—11—0
50—4—5—6—0
60—26—2—31—15—35—40—16—0
70—30—23—8—0
80—20—28—25—3—34—37—9—0
Table 14. Results of EVRPTW-DC and L-EVRPTW models.
Table 14. Results of EVRPTW-DC and L-EVRPTW models.
ModelScenario 1Scenario 2Scenario 3
EVRPTW-DCL-EVRPTWEVRPTW-DCL-EVRPTWEVRPTW-DCL-EVRPTW
Total Cost (Yuan)440.53482.08946.67783.011032.09721.74
Total Distance (km)438.48494.60703.31686.35730.40695.80
Cost of Distance (Yuan)175.39197.84281.32274.54292.16278.32
Recharged   Energy   ( k W · h )159.30149.72424.02293.34414.79272.98
Recharging Cost (Yuan)191.16179.66508.82352.01497.75327.57
Cost of Time Window Violation (Yuan)73.98104.58156.53156.46242.18115.85
Number of EVs668899
Table 15. Results of L-EVRPTW-NL.
Table 15. Results of L-EVRPTW-NL.
Scenario123
Total Cost (Yuan)693.851022.251114.72
Total Distance (km)504.80690.70719.20
Cost of Distance (Yuan)201.92276.28287.68
Recharged   Energy   ( k W · h )298.53405.01545.35
Recharging Cost (Yuan)358.23486.01654.42
Cost of Time Window Violation (Yuan)133.70259.96172.62
Table 16. Cost compositions of EVRPTW-DC, L-EVVRPTW, and L-EVRPTW-NL.
Table 16. Cost compositions of EVRPTW-DC, L-EVVRPTW, and L-EVRPTW-NL.
ModelScenario 1Scenario 2Scenario 3
EVRPTW-DCL-EVRPTWL-EVRPTW-NLEVRPTW-DCL-EVRPTWL-EVRPTW-NLEVRPTW-DCL-EVRPTWL-EVRPTW-NL
Total Cost (Yuan)440.53482.08693.85946.67783.011022.251032.09721.741114.72
Cost of Distance (%)40%40%29%30%35%27%30%35%27%
Recharging Cost (%)43%37%52%54%45%48%54%45%48%
Cost of Time Window Violation (%)17%23%19%16%20%25%16%20%25%
Number of Visits to Recharging Stations224645547
Average Path Length (km)73.0882.4384.1387.9185.7986.3481.1677.3179.91
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Ding, N.; Yang, J.; Han, Z.; Hao, J. Electric-Vehicle Routing Planning Based on the Law of Electric Energy Consumption. Mathematics 2022, 10, 3099. https://doi.org/10.3390/math10173099

AMA Style

Ding N, Yang J, Han Z, Hao J. Electric-Vehicle Routing Planning Based on the Law of Electric Energy Consumption. Mathematics. 2022; 10(17):3099. https://doi.org/10.3390/math10173099

Chicago/Turabian Style

Ding, Nan, Jingshuai Yang, Zhibin Han, and Jianming Hao. 2022. "Electric-Vehicle Routing Planning Based on the Law of Electric Energy Consumption" Mathematics 10, no. 17: 3099. https://doi.org/10.3390/math10173099

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