Next Article in Journal
Grid Integration for Electric Vehicles: A Realistic Strategy for Environmentally Friendly Mobility and Renewable Power
Next Article in Special Issue
Adaptive MPC-Based Lateral Path-Tracking Control for Automatic Vehicles
Previous Article in Journal
A State-of-Health Estimation Method for Lithium Batteries under Multi-Dimensional Features
Previous Article in Special Issue
Obstacle Avoidance Trajectory Planning for Autonomous Vehicles on Urban Roads Based on Gaussian Pseudo-Spectral Method
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Heuristic Algorithms for Heterogeneous and Multi-Trip Electric Vehicle Routing Problem with Pickup and Delivery

School of Modern Post (School of Automation), Beijing University of Posts and Telecommunications, Beijing 100876, China
*
Author to whom correspondence should be addressed.
World Electr. Veh. J. 2024, 15(2), 69; https://doi.org/10.3390/wevj15020069
Submission received: 15 December 2023 / Revised: 7 February 2024 / Accepted: 12 February 2024 / Published: 15 February 2024
(This article belongs to the Special Issue Research on Intelligent Vehicle Path Planning Algorithm)

Abstract

:
In light of the widespread use of electric vehicles for urban distribution, this paper delves into the electric vehicle routing problem (EVRP): specifically addressing multiple trips per vehicle, diverse vehicle types, and simultaneous pickup and delivery. The primary objective is to minimize the overall cost, which encompasses travel expenses, waiting times, recharging costs, and fixed vehicle costs. The focal problem is formulated as a heterogeneous and multi-trip electric vehicle routing problem with pickup and delivery (H-MT-EVRP-PD). Additionally, we introduce two heuristic algorithms to efficiently approximate solutions within a reasonable computational time. The variable neighborhood search (VNS) algorithm and the adaptive large neighborhood search (ALNS) algorithm are presented and compared based on our computational experiences with both. Through solving a series of large-scale real-world instances for the H-MT-EVRP-PD and smaller instances using an exact method, we demonstrate the efficacy of the proposed approaches.

1. Introduction

1.1. Motivation

The vehicle routing problem (VRP) stands as a pivotal research focus within the logistics domain. Given the rapid expansion of logistics and express enterprises in recent years, addressing the challenge of optimizing routing amidst multiple constraints and a substantial task volume has emerged as a prominent research area. Concurrently, heightened societal emphasis on environmental preservation has led logistics and express enterprises to adopt electric vehicles for distribution, particularly in urban settings due to the operational constraints associated with limited range.
This paper is motivated by the context of express package distribution in urban areas, where external packages continually arrive at a city distribution center (depot) serving as the launchpad for last-mile delivery operations. Consequently, daily optimization of distribution from the depot to customers becomes imperative and necessitates consideration of various attributes in the optimization process. Key considerations include: (1) The delivery window spans from 6:00 to 24:00, prompting the need for multiple trips per vehicle per day to accommodate limited capacity and to minimize the fleet size, thereby reducing fixed vehicle costs. (2) Logistics distribution, such as express packages, involves both pickup and delivery requirements, introducing the crucial aspect of the pickup and delivery problem (PDP). (3) Enterprises often deploy a variety of electric vehicle types. While larger vehicles may fulfill transportation demands without recharging operations, the cost-effectiveness of incorporating smaller vehicles in the fleet mix can reduce overall costs. Consequently, fleet managers must consider heterogeneous vehicle types.
Addressing these concerns, this paper introduces a novel multi-attribute vehicle routing problem: the heterogeneous and multi-trip electric vehicle routing problem with pickup and delivery (H-MT-EVRP-PD). It amalgamates well-established problems, including the heterogeneous vehicle routing problem (HVRP), multi-trip vehicle routing problem (MTVRP), pickup and delivery problem (PDP) for goods transportation, and the recently defined electric vehicle routing problem with time windows and recharging stations (E-VRPTW).

1.2. Contributions of This Paper

This paper makes significant contributions to the field, encompassing a formal problem description, a mixed-integer programming model, and two heuristic frameworks. Comprehensive computational experiments are conducted for the heterogeneous and multi-trip electric vehicle routing problem with pickup and delivery (H-MT-EVRP-PD). The main contributions are summarized as follows:
(1)
Problem Formulation: This paper unifies research on the heterogeneous vehicle routing problem (HVRP), multi-trip vehicle routing problem (MTVRP), pickup and delivery problem (PDP), and electric vehicle routing problem with time windows and recharging stations (E-VRPTW). It introduces a novel problem: the heterogeneous and multi-trip electric vehicle routing problem with pickup and delivery (H-MT-EVRP-PD).
(2)
Mixed-Integer Programming Model: To precisely describe the problem, we formulate the H-MT-EVRP-PD as a mixed-integer programming model. This model is directly applicable to small instances and can be solved efficiently by commercial solvers.
(3)
Heuristic Approaches: Recognizing the challenge of larger real-world instances, we introduce two heuristic frameworks: the variable neighborhood search (VNS) algorithm and the adaptive large neighborhood search (ALNS) algorithm.
(4)
Computational Experiments: Our approach demonstrates its effectiveness by yielding optimal solutions for small instances and providing high-quality feasible solutions for larger instances. A sensitivity analysis that examines the impact of service time, vehicle volume, and driving range is conducted through additional experiments.
The structure of the paper is organized as follows:
Section 2 presents a concise review of related works in the field. Section 3 provides a mixed-integer programming formulation with detailed formal notations. Section 4 outlines the solution procedures for the proposed VNS and ALNS approaches. Section 5 presents comprehensive computational results from experiments. Section 6 concludes the paper and discusses potential future directions.

2. Literature Review

Some scholars recently studied the routing problems related to this paper, such as multi-trip time-dependent vehicle routing problem with time windows [1], the pickup and delivery problem with time windows [2], the electric fleet size and mix vehicle routing problem with time windows [3], and the electric vehicle routing problem with time windows and recharging stations [4]. In practice, for the distribution of electric vehicles in an urban area, logistics and express enterprises need to consider not only the limited driving range and long recharging time of electric vehicles but also multiple trips, heterogeneous vehicles, and pickup and delivery to reduce costs and improve distribution efficiency. To the best of our knowledge, there is no scholarly integration of the attributes of electric, multi-trip, heterogeneous, and pickup and delivery to conduct the vehicle routing problem so far. This paper tries to combine the problems of HVRP, MTVRP, PDP, and EVRPTW, and the subsequent review will focus on these four problems.

2.1. Related Works on the Electric Vehicle Routing Problem with Time Windows

The electric vehicle routing problem with time windows (EVRPTW) is a variant of the classical vehicle routing problem with time windows (VRPTW) for which the load tools are electric vehicles (EVs); it was first introduced by [4]. Moreover, Schneider (2014) [4] designed a heuristic algorithm based on the variable neighborhood search (VNS) and tabu search (TS) to address the proposed variant. On this basis, Ref. [3] proposed vehicle routing problems with various types of electric vehicles by considering service time window and recharging station selection. Ref. [5] put forward the problem of location selection and route selection of electric vehicle power stations by considering the limitation of battery driving range and designed a four-stage heuristic algorithm. According to [6], a corresponding integer programming model was established to optimize the location and distribution routing of electric vehicle logistics distribution systems. Ref. [7] constructed an optimization model for electric vehicle distribution routing with time windows with the goal of minimizing the total cost. Ref. [8] constructed an urban distribution routing optimization model based on pure electric vehicles in a social charging network with vehicle capacity constraints, single charge driving mileage constraints, and so on.
The use of different recharging technologies has been considered in the literature. For instance, to reduce recharging duration, Ref. [9] allowed partial recharging instead of full recharging to make the distribution route more flexible and developed an adaptive large neighborhood search algorithm to solve the proposed model effectively. Ref. [10] proposed a non-deterministic simulated annealing framework to solve the electric vehicle routing problem in which multiple technologies used for recharging are considered. Ref. [11] argued that the recharging level of the battery was a non-linear function of the recharging time and then raised a hybrid metaheuristic for the problem. Ref. [12] introduces the electric vehicle routing problem with shared charging stations, which is solved by a multistart heuristic that performs an adaptive large neighborhood search.

2.2. Related Works on the Vehicle Routing Problem with a Heterogeneous Fleet

This section considers the variant of the VRP in which a heterogeneous fleet of vehicles, each possibly having a different capacity and cost, is available for the distribution activities. Several specific variants have been developed over time to consider the two main features of this problem. On the one hand, there is the strategic issue of finding the best combination of vehicles to be used for the long-term sizing of a fleet. This results in fleet size and mix (FSM) problems, in which the vehicle fleet is assumed to be unlimited. On the other hand, one can consider the tactical issue of using the most appropriate vehicles from a limited fleet, which results in the heterogeneous VRP (HVRP). This paper focuses on the latter. In the literature, the terms heterogeneous or mixed fleet VRP (HFVRP) are also used to identify the whole problem family [13]. Ref. [14] discussed the heterogeneous vehicle routing problem and proposed several effective heuristic solutions and techniques to generate the lower bound of the optimal solution to solve the problem. Ref. [15] provided an overview of an approach to solve the heterogeneous vehicle routing problem and classified the variants of the problem described in the literature.
Time windows are also considered in the problem. Ref. [16] proposed a new three-phase heuristic method to solve the heterogeneous and multi-depot vehicle routing problem with time windows. Ref. [17] proposed a new two-phase solution framework based on a mixed tabu search to solve the heterogeneous fleet routing problem with time windows. Ref. [18] considered a real-life heterogeneous fleet vehicle routing problem with time windows and split deliveries that occurred for a major Brazilian retail group and significantly reduced distribution costs by using a scatter search approach. Ref. [19] investigated the heterogeneous vehicle routing problem with limited number of vehicles and time windows and proposed a method based on a tabu search algorithm. Recently, Ref. [3] introduced an electric fleet size and mixed vehicle routing problem with time windows and recharging stations in which the number of vehicles of each type was unlimited.

2.3. Related Works on the Multi-Trip Vehicle Routing Problem

Vehicle routing problems with multiple trips feature more than one trip per vehicle during operation. Many studies have investigated MTVRP variants with different heuristic algorithms, such as a multi-phase constructive heuristic enhanced by a suitable data structure [20], adaptive memory algorithm [21], hybrid genetic algorithm [22], adaptive large neighborhood search [23], and combination of vehicle routing heuristics with bin packing routing [24]. In addition, the time window has also been considered. Ref. [25] described an exact algorithm for a single-vehicle routing problem with time windows and multiple routes. Ref. [26] addressed the multi-trip vehicle routing problem with time windows and released dates through a population-based algorithm with a giant tour representation for individuals. Ref. [27] found a new exact algorithm to solve the multi-trip vehicle routing problem with time windows and limited duration.

2.4. Related Works on the Vehicle Routing Problem with Pickup and Delivery

In this new problem, backhauls are not restricted to be visited once all linehaul customers have been served; neither are backhaul customers fully mixed with linehaul customers.
Another variant of the VRP is the pickup and delivery problem [28], in which vehicles transport goods from a pickup location to a corresponding delivery location. In the vehicle routing problem with pickup and delivery, a set of vehicles must be optimally routed to service a set of transportation demands subject to constraints on capacities, time windows, precedence, and so on. Ref. [29] developed a multi-objective vehicle routing and scheduling heuristic for a pickup and delivery problem that assigned customers to more than one vehicle and allocated more than one customer to a vehicle at a time. Ref. [30] proposed a reactive tabu search approach to work out the pickup and delivery problem with time windows. Ref. [31] applied column generation to figure out the linear relaxation of a set-partitioning type formulation from the pickup and delivery vehicle routing problem. Ref. [32] proposed a heuristic based on an extension of the large neighborhood search heuristic mentioned earlier that consisted of numerous competing subheuristics for the problem. Ref. [33] presented a new exact algorithm for solving the pickup and delivery problem with time windows based on a set-partitioning integer formulation. Sartori and Buriol (2020) [2] proposed a metaheuristic for the pickup and delivery problem with time windows that presents the use of well-known heuristic components embedded in an iterated local search framework.

3. Problem Description and Formulation

The heterogeneous and multi-trip electric vehicle routing problem with pickup and delivery (H-MT-EVRP-PD) can be formulated as follows. Let N be a set of customers, F be a set of recharging stations, and N be a set of nodes, with N = N F , where F denotes a set of dummy nodes generated to permit multiple visits to each node in the set F of recharging stations. Nodes 0 and n + 1 denote the same depot, and each route starts at 0 and ends at n + 1 . To indicate that a set contains the respective instance of the depot, the set is subscripted with 0 and n + 1 ; i.e.,  F 0 = F { 0 } denotes the set of recharging visits and depot 0, N 0 = N { 0 } is the set of customers and recharging visits and depot 0, N n + 1 = N { n + 1 } is the set of customers and recharging visits and depot n + 1 , and N 0 , n + 1 = N { 0 } { n + 1 } is the set of customers and recharging visits including depot nodes 0 and n + 1 . Therefore, the problem of interest H-MT-EVRP-PD can be defined on a weighted directed graph G = ( N 0 , n + 1 , A ) with the set of arcs A = { ( i , j ) | i , j N 0 , n + 1 , i j } . Each arc is associated with a distance D i j and a travel time T i j k of type k. Parameters M C k and M V k represent the maximum load and maximum volume, respectively, of vehicle type k. Each node i N 0 is associated with a demand capacity Q i , a demand volume V i , and a service time window [ E i , L i ] . The time interval [ E 0 , L 0 ] represents a workday. Let H k g be the set of possible trips for the vehicle g of type k during the workday, and then the combination ( k g , u ) represents the u-th trip performed by the vehicle g of type k.

3.1. Parameter Settings

This paper uses driving range to measure the battery capacity. Decision variables, subscripts, and parameters used in the mathematical formulation are listed as follows.
Decision Variables
  • x i j u k g : binary decision variable indicating whether vehicle g of type k travels arc ( i , j ) in trip u;
  • t i u k g : decision variable of arrival time of vehicle g of type k at node i in trip u;
  • m i u k g : decision variable of current load of vehicle g of type k at node i in trip u;
  • c i u k g : decision variable of current volume of vehicle g of type k at node i in trip u;
  • y i u k g : decision variable of remaining range of vehicle g of type k at node i in trip u.
Subscripts and Parameters
  • N: set of customers N = 1 , 2 , , n ;
  • F: set of recharging stations;
  • 0 , n + 1 : index of start and end depot nodes;
  • N ¯ : set of customers without waiting times;
  • N 0 : set of customers and start depot 0;
  • F : set of dummy nodes, i.e., multiple visits for recharging stations F;
  • N : set of customers and recharging visits, N = N F ;
  • F 0 : set of recharging visits and depot 0, F 0 = F 0 ;
  • N 0 : set of customers and recharging visits and depot 0, N 0 = N 0 ;
  • N n + 1 : set of customers and recharging visits and depot n + 1 , N n + 1 = N n + 1 ;
  • N 0 , n + 1 : set of customers and recharging visits and depot nodes 0 and n + 1 , N 0 , n + 1 = N 0 n + 1 ;
  • K: set of vehicle types;
  • I k : set of vehicles of type k, k K ;
  • C k : unit transportation cost of type k;
  • P k : unit waiting cost of type k;
  • R C k : unit recharging cost of type k;
  • F k : fixed cost of type k;
  • R T k : recharging time of type k;
  • S i k : service time of type k at node i;
  • W i u k g : waiting time of vehicle g of type k at node i in the trip u;
  • Q i : demand load at node i;
  • V i : demand volume at node i;
  • Φ i : index of pick up or delivery, = 1 means pick up, = 1 means delivery;
  • D i j : distance between nodes i and j, i N 0 , j N n + 1 ;
  • T i j k : travel time between nodes i and j of type k;
  • [ E i , L i ] :service time window at node i;
  • Y k : driving range of a vehicle of type k;
  • M L k : maximum load of vehicle type k;
  • M V k : maximum volume of vehicle type k;
  • B u k g : start time of trip u of vehicle g of type k;
  • H k g : trip sets of vehicle g of type k;
  • M i j : large constant that can be set to max { L i + S i k + T i j k E i } , i N 0 , j N n + 1 , i j .

3.2. Model Formulation

The following provides a rigorous formulation for the problem of interest through discussing decision variables, objective functions, and system constraints. For modeling convenience, the relevant notations and decision variables used in mathematical models are summarized above. The mathematical model of H-MT-EVRP-PD can be formulated as a mixed-integer program with the binary decision variable x i j u k g . This binary decision variable x i j u k g is associated with indexes of trip u, vehicle g, vehicle type k, and nodes i , j , implying whether vehicle g of type k travels arc ( i , j ) in the trip u. The objective of the H-MT-EVRP-PD is to minimize the total cost, which includes traveling cost, waiting cost, recharging cost, and vehicle fixed cost. Therefore, the mixed-integer programming model for H-MT-EVRP-PD is formulated as follows.
min i N 0 j N n + 1 , i j k K u H k g g I k C k D i j x i j u k g + i N 0 j N n + 1 , i j k K u H k g g I k P k W i u k g x i j u k g + i F 0 j N n + 1 , i j k K u H k g g I k R C k R T k x i j u k g + j N k K u H k g g I k F k x 0 j u k g
The problem involves minimizing an objective Function (1) that comprises four components. The first part calculates the overall travel cost for each vehicle based on the distance covered. The second part is the aggregate waiting costs for all vehicles. The third part represents the total recharging costs, while the last part sums up the costs of all the vehicles utilized. Specifically, if a vehicle of type k on trip u is in transit from the depot to any other node (indicated by a value greater than zero), the fixed cost F k of type k is added.
s . t .
j N n + 1 k K u H k g g I k x i j u k g = 1 , i N
j N n + 1 k K u H k g g I k x i j u k g 1 , i F
j N n + 1 u H k g g I k x i j u k g j N 0 u H k g g I k x i j u k g = 0 , i N
The flow constraints are encapsulated in constraints (2)–(4). Constraint (2) guarantees that each customer is visited by any vehicle exactly once, while (3) addresses the scenario where a recharge station is not utilized in a solution. Constraint (4) ensures the balance of flow at each node.
t i u k g + W i u k g + T i j k + S i k M i j ( 1 x i j u k g ) t j u k g , i N 0 , j N n + 1 , k K , u H k g , g I k , i j
t i u k g + R T k + T i j k M i j ( 1 x i j u k g ) t j u k g , i F , j N n + 1 , k K , u H k g , g I k , i j
B u k g B u 1 k g + ε u 1 k g , u H k g , k K , g I k
E i t i u k g L i , i N ¯ , k K , u H k g , g I k
E i t i u k g > 0 , i N N ¯ , u H k g , g I k
The timing constraints are defined by constraints (5)–(9). Constraint (5) ensures time continuity, i.e., the arrival time of customer i plus the waiting time, service time, and travel time cannot exceed the arrival time of its successor node j. When the previous node is a recharging station (i.e., i F ), constraint (6) accounts for the recharging time instead of the service time. Constraint (7) ensures that two consecutive trips of a vehicle must be arranged so that the start time of the latter trip is later than the end time of the previous one. Constraints (8) and (9) ensure that the start of service time t i u k g must fall within the time window E i , L i , and if the vehicle needs to wait upon reaching node i, the start of service time t i u k g must be smaller than E i .
0 m j u k g m i u k g + Φ i Q i x i j k g u + M L k ( 1 x i j k g u ) , i N 0 , j N n + 1 , k K , u H k g , g I k
0 m j u k g M L k , j N n + 1 , k K , u H k g , g I k
0 c j u k g c i u k g + Φ i V i x i j k g u + M V k ( 1 x i j k g u ) , i N 0 , j N n + 1 , k K , u H k g , g I k
0 c j u k g M V k , j N n + 1 , k K , u H k g , g I k
The capacity constraints are addressed by (10) and (11), and the volume constraints are covered by (12) and (13). These constraints ensure that the assigned vehicles can satisfy the customers’ needs. Constraint (10) ensures that the cargo capacity of the vehicle m j u k g upon reaching node j does not exceed the capacity when it left the previous customer i. Constraint (11) ensures that the cargo capacity of the vehicle at customer i does not exceed the maximum capacity of the vehicle. Constraint (12) ensures that the cargo volume c j u k g of the vehicle g of type k on trip u at node j does not exceed the volume when it left the previous customer i. Constraint (13) ensures that the cargo volume of the vehicle at customer i does not exceed the maximum volume of the vehicle. Equation Φ i = 1 indicates that the vehicle picks up goods at node i, and the current load and volume upon leaving i are adjusted to include the taken goods. Φ i = 1 signifies that the vehicle delivers goods at node i, and the load and volume of the delivered goods need to be subtracted.
0 y j u k g y i u k g D i j x i j k g u + Y k ( 1 x i j k g u ) , i N , j N n + 1 , k K , u H k g , g I k
0 y j u k g Y k D i j x i j k g u , i F 0 , j N n + 1 , k K , u H k g , g I k
y 0 u k g = y n + 1 , u k g = Y k , k K , g I k , u H k g
x i j k g u { 0 , 1 } , i N 0 , j N n + 1 , k K , u H k g , g I k , i j
The distance constraints are stipulated by (14) and (15). In (14), it is mandated that the remaining range of the vehicle to customer j must not surpass the remaining range of the vehicle leaving the previous customer i by a distance less than the distance between the two points. If the vehicle commences from a recharging station, (15) ensures that the remaining range of the vehicle to the next customer cannot exceed the maximum range of the vehicle minus the distance from the station to the next customer. Constraint (16) guarantees that the vehicle is charged upon returning to the depot. Constraint (17) imposes a binary nature (0 or 1) for the decision variable x i j k g u .

4. Solution Methodology

This section presents two heuristic algorithms, i.e., VNS and ALNS, to solve the HF-EVRP-PD. These two heuristics have been widely implemented to solve large-scale various EVRPs. VNS-based heuristics have successfully solved the following problems, e.g., the electric vehicle routing problem with time windows and recharging stations [4], the dial-a-ride problem with electric vehicles and battery swapping stations [34], and the electric two-echelon vehicle routing problem [35]. Additionally, the ALNS also can successfully solve the following related problems, e.g., electric fleet size and mixed vehicle routing problem with time windows and recharging stations [3], the electric vehicle routing problem with time windows and partial recharge strategies [9], and the electric vehicle battery swap station location routing problem [5]. In order to reflect the characteristics of multiple vehicles and heterogeneous types, the distribution solutions are represented based on vehicles (see Section 4.1). The generation process of the initial solution is described in Section 4.2. Section 4.3 and Section 4.4, respectively, present the solution procedure and corresponding pseudo-code for the variable neighborhood search algorithm and adaptive large neighborhood search algorithm.

4.1. Representation of the Solution

Various approaches exist for representing a vehicle routing problem (VRP) solution. However, in this paper, a sequence is employed, which may not directly capture the nuances of a heterogeneous fleet and multi-trip scenarios. In alignment with object-oriented programming principles, the distribution sequence is stored independently for each vehicle, and individual vehicle costs are computed. The aggregate cost of all vehicles then constitutes the total cost of the distribution plan.
Specifically, the vehicle serves as the fundamental unit for storing the distribution plan, which is organized in an array based on the distribution task number, with 0 representing the distribution center. For example, the array [0, 340, 500, 121, 0] signifies that the vehicle initiates from the distribution center, sequentially serves customers 340, 500, and 121, and eventually returns to the distribution center.
The re-utilization of a vehicle is denoted by the insertion of 0 in the sequence. For instance, the sequence [0, 340, 0, 500, 121, 0] signifies that the vehicle first serves customer 340, returns to the distribution center to complete cargo handling, and then proceeds to serve customers 500 and 121 before returning to the distribution center once more.

4.2. Generation of the Initial Solution

Both the adaptive large neighborhood algorithm and the variable neighborhood search algorithm employ a random insertion method to generate initial solutions. Unlike the traveling salesman problem (TSP), the numerous constraints of the heterogeneous and multi-trip electric vehicle routing problem with pickup and delivery (H-MT-EVRP-PD) in this paper make it challenging to generate feasible solutions using a conventional random insertion approach. Hence, the random insertion algorithm is modified as follows: the core idea is to track the instances of infeasible insertions. When a customer point cannot be served despite multiple attempts, the algorithm attempts to create a new vehicle for service.
During the insertion operation, the following feasibility checks are conducted:
(1)
Driving range constraint and recharging judgment: Calculate and store the remaining range at each node y i u k g . If the driving range is insufficient to reach the next node, the vehicle proceeds to recharge. If the vehicle cannot reach the nearest recharging station, it returns to the previous node before recharging.
(2)
Vehicle load and volume constraint: Calculate the total weight m i u k g and volume c i u k g of vehicle type k at node i. Verify compliance with the vehicle load and volume constraints, completing the inspection during a single traversal process that considers pickup and delivery.
(3)
Time window constraint: Calculate vehicle arrival time t i u k g ; check time window constraint and record waiting time w i u k g .
If more than one of the above three constraints is infeasible, the vehicle type is changed and rechecked. If all vehicle types fail to satisfy the constraints, the sequence S is deemed infeasible, and its cost is set to a predefined maximum. Simultaneously, cache the load, volume surplus, departure time, and other data of the vehicle at each node. This optimization eliminates the need to recalculate the cost from the start when altering the distribution sequence, significantly enhancing computational efficiency.

4.3. The Variable Neighborhood Search Algorithm

The variable neighborhood search algorithm (VNS) proposed by [36] is an effective metaheuristic to solve a variety of routing problems such as VRPTW [37] and E-VRPTW [4]. Algorithm 1 presents the pseudo-code of this algorithm using the random insertion method to generate the initial solution and swap and relocate as operators of the neighborhood search.
Algorithm 1 Variable neighborhood search algorithm
1:
L S = [ l s 1 , , l s n ] ;
2:
function VNS( s o l )
3:
k 0 ;
4:
while ( k L S . l e n g t h ) do
5:
    s o l t l s k ( s o l ) ;
6:
   if ( c o s t ( s o l t ) < c o s t ( s o l ) ) then
7:
      s o l s o l t ; k 0 ;
8:
   else
9:
      k + + ;
10:
   end if
11:
end while
12:
return VNS( s o l );
13:
function ALNS( s o l )
14:
x b x ; p ( 1 , , 1 ) ; p + ( 1 , , 1 ) ; R ( r 1 , , r n ) ; D ( d 1 , , d n ) ;
15:
repeat
16:
select destroy and repair methods d D a n d r R using p and p + ;
17:
x t V N D ( r ( d ( x ) ) ) ;
18:
if ( a c c e p t ( x t , x ) ) then
19:
    x x t ;
20:
end if
21:
if ( c o s t ( x t ) < c o s t ( x b ) ) then
22:
    x b x t ;
23:
end if
24:
update p , p + ;
25:
until stop criterion is met
26:
return x b ;

4.3.1. The Swap Operator

The swap operator involves randomly selecting two nodes for exchange within sequences. The swap operators utilized in this paper are delineated as follows: (1) randomly selecting one node from each of two sequences and exchanging them; (2) exchanging two nodes within the same sequence.
The new sequence supersedes the original one if the cost post-exchange is lower than that pre-exchange. The pseudo-code for this operator is defined in Algorithm 2, presented below.
Algorithm 2 Swap operator
1:
input:a solution x
2:
l e n g t h x . v e h i c l e s . l e n g t h ;
3:
i 0 ;
4:
for ( i l e n g t h ) do
5:
    j i + 1
6:
   for ( j l e n g t h ) do
7:
      t y p e r a n d o m ( 1 , 2 , 3 ) ;
8:
     if (type = 1) then
9:
         c a , c b S w a p ( x . v e h i c l e s [ i ] , x . v e h i c l e s [ j ] ) ;
10:
     end if
11:
     if (type = 2) then
12:
         c a S w a p ( x . v e h i c l e s [ i ] ) , c b x . v e h i c l e s [ j ] ;
13:
     end if
14:
     if (type = 3) then
15:
         c a x . v e h i c l e s [ i ] , c b S w a p ( x . v e h i c l e s [ j ] ) ;
16:
     end if
17:
     if ( c a . c o s t + c b . c o s t < x . v e h i c l e s [ i ] . c o s t + x . v e h i c l e s [ j ] . c o s t ) then
18:
         x . v e h i c l e s [ i ] c a , x . v e h i c l e s [ j ] c b ;
19:
     end if
20:
   end for
21:
end for

4.3.2. The Relocation Operator

Relocation involves the insertion of a node from a sequence c a into another sequence c b . In the algorithm, when executing a relocation neighborhood operation, the following two methods are randomly selected:
(1)
Remove a node randomly from c a and insert it into a randomly selected position in sequence c b .
(2)
Remove a node randomly from c b and insert it into a randomly selected position in sequence c a .
The pseudo-code for the relocation operator is defined in Algorithm 3, presented below.
Algorithm 3 Relocation operator
1:
input: a solution x
2:
l e n g t h x . v e h i c l e s . l e n g t h ;
3:
i 0 ;
4:
for ( i l e n g t h ) do
5:
    j i + 1 ;
6:
   for ( j l e n g t h ) do
7:
      t y p e r a n d o m ( 1 , 2 ) ; c a x . v e h i c l e s [ i ] ; c b x . v e h i c l e s [ j ] ;
8:
     if (type = 1) then
9:
         n o d e c a . r a n d o m R e m o v e ( ) ; c b . r a n d o m I n s e r t ( n o d e ) ;
10:
     end if
11:
     if (type = 2) then
12:
         n o d e c b . r a n d o m R e m o v e ( ) ; c a . r a n d o m I n s e r t ( n o d e ) ;
13:
     end if
14:
     if ( c a . c o s t + c b . c o s t < x . v e h i c l e s [ i ] . c o s t + x . v e h i c l e s [ j ] . c o s t ) then
15:
        ( x . v e h i c l e s [ i ] c a , x . v e h i c l e s [ j ] c b ;)
16:
     end if
17:
   end for
18:
end for
19:
return x;

4.4. Adaptive Large Neighborhood Search Algorithm

We adopt the ALNS framework from [32]: utilizing the random insertion method to generate the initial solution and employing random removal and worst removal as destroy methods and random insertion and optimal insertion as repair methods. To enhance the algorithm’s performance, a local search algorithm employing two-point switch and reposition as domain operators is incorporated. The pseudo-code for Algorithm 4 is provided below.
Algorithm 4 Adaptive large neighborhood search algorithm
1:
input: a feasible solution x, maximum number of iterations n
2:
L S = [ l s 1 , , l s n ] ;
3:
function ALNS( s o l )
4:
k 0 ;
5:
while ( k L S . l e n g t h ) do
6:
    s o l t l s k ( s o l ) ;
7:
   if ( c o s t ( s o l t ) < c o s t ( s o l ) ) then
8:
      s o l s o l t ; k 0 ;
9:
   else
10:
      k + + ;
11:
   end if
12:
end while
13:
return sol;
14:
end function
15:
function SHAKING( s o l )
16:
s o l r a n d o m D i s t r o y ( s o l ) ;
17:
s o l r a n d o m R e p a i r ( s o l ) ;
18:
return sol;
19:
end function
20:
function ALNS s o l , n
21:
i 0 ;
22:
for ( i n ) do
23:
    s o l t V N D ( s o l ) ;
24:
   if ( c o s t ( s o l t ) < c o s t ( s o l ) ) then
25:
      s o l s o l t ;
26:
   end if
27:
    s o l S H A K I N G ( s o l ) ;
28:
end for

4.4.1. The Worst Removal Operator

Drawing upon the observation that customers with significant impact on the solution often warrant rearrangement, we introduce the worst removal operator. This operator begins by determining the number of removal points, denoted as N. Subsequently, it iterates through all points in the distribution sequence and calculates the cost change value after removing a specific point. The point i with the maximum Δ C o s t i is selected for removal, and this process is repeated N times. The pseudo-code for the worst removal method is described in Algorithm 5 below.
Algorithm 5 Worst removal
1:
input: a solution x
2:
N r a n d o m ( ) ; i 0 ;
3:
for ( i N ) do
4:
    N o d e w 0 ; c o s t w 0 ;
5:
   for ( v e h i c l e a x . v e h i c l e s ) do
6:
     for ( n o d e n a . s e q u e n c e ) do
7:
         c o s t e v a l u a t e R e m o v e ( n ) ;
8:
        if ( c o s t < c o s t w ) then
9:
           c o s t w c o s t ; N o d e w n o d e ;
10:
        end if
11:
     end for
12:
   end for
13:
    x . r e m o v e ( N o d e w ) ;
14:
end for
15:
return x;

4.4.2. The Optimal Insertion Operator

The optimal insertion operator is developed using a greedy algorithm. It traverses the set of uninserted task points and selects the task point that incurs the least increase in cost after insertion. Algorithm 6 outlines the optimal insertion operator.
Algorithm 6 Insertion operator
1:
input: a solution x
2:
while ( x . n o n I n s t e r t . s i z e ( ) 0 ) do
3:
    N o d e b 0 ; c o s t b m a x N u m ; v e h i c l e b 0 ; p o s b 0 ;
4:
   for node n n o n I n s t e r t  do
5:
     for  v e h i c l e x . v e h i c l e s  do
6:
        for  p o s 0 a . s e q u e n c e . l e n g t h  do
7:
           c o s t e v a l u a t e I n s e r t ( n , p o s ) ;
8:
          if  c o s t < c o s t b  then
9:
              c o s t b c o s t ; v e h i c l e b v e h i c l e ; p o s b p o s ; N o d e b n o d e ;
10:
          end if
11:
        end for
12:
     end for
13:
   end for
14:
    v e h i c l e b . i n s t e r t ( N o d e b , p o s b ) ;
15:
end while
16:
return x;

5. Numerical Example

In this section, we present the computational results of the two proposed variable neighborhood search (VNS) and adaptive large neighborhood search (ALNS) approaches for solving the mixed-integer programming model H-MT-EVRP-PD. Both algorithms are implemented in C++, and the mixed-integer programming model is solved using IBM ILOG CPLEX 12.6.2. All experiments are conducted on a Windows Server 2012 R2 server of Alibaba Cloud platform from China with an Intel Xeon Skylake 6146 CPU (3.2 GHz/3.9 GHz).

5.1. Test Instances for the H-MT-EVRP-PD

The test instances are derived from real-world instances presented in [38]. The competition comprises five data sets involving tasks numbering 1100, 1200, 1300, 1400, and 1500, respectively. Detailed information about these five data sets is provided in Table 1.
The vehicle data sets in the experiments involve two types of electric vehicles. The parameters for these vehicles are configured as follows:
max_volume: Maximum volume of a vehicle (unit: m 3 );
max_weight: Maximum load capacity of a vehicle (unit: t);
max_vehicle_cnt: Maximum number of available vehicles;
driving_range: Vehicle range (unit: m);
charge_tm: Charging time (unit: minutes);
unit_trans_cost: Driving cost of the vehicle per kilometer;
vehicle_cost: Cost associated with using each vehicle.
The specified data sets are presented in Table 2.
To accurately represent real-world scenarios, distances like Euclidean, Chebyshev, and Manhattan distances, calculated based on node coordinates, may not adequately reflect the actual road network conditions. In this experiment, all road network data directly define the driving distance and time between any two nodes. The specific format of the road network data is illustrated in Table 3, where ID represents the road network data number; from_node and to_node denote the starting and arrival nodes, respectively; and distance and spend_tm represent the travel distance and time between the two nodes, respectively. For example, the second row in Table 3 signifies data with an ID of 1200, a travel distance of 58,509 m from node 1 to node 2, and a travel time of 73 min.

5.2. Experimental Results for Small Data Sets

Initially, 15 tasks, comprising 10 delivery tasks and 5 pickup tasks, are randomly selected from the five data sets to form small data sets. Experiments using variable neighborhood search (VNS) and adaptive large neighborhood search (ALNS) are conducted separately on these five small data sets. The experiment duration is capped at one minute, and each experiment is repeated ten times with different initial solutions. The objective is to investigate whether the two algorithms can converge to optimal solutions and to assess the efficiency of variable neighborhood search and adaptive large neighborhood search for solving small data sets.
The experimental results are presented in Table 4.
The results reveal that both the VNS and ALNS algorithms can achieve the optimal solution within the specified time constraint. However, the VNS algorithm exhibits a significantly smaller average number of iterations and average solution time compared to the ALNS algorithm. The variable neighborhood algorithm demonstrates its ability to reach the optimal solution with fewer iterations and in less time. Algorithmic disparities arise from the VNS algorithm’s preference for small-scale local searches in simple search spaces of small problems. VNS efficiently explores the search space, utilizing straightforward local searches across diverse neighborhood structures. In contrast, ALNS, designed for large-scale problems, introduces complexity with adaptive adjustments unsuitable for small-scale problems, for which extensive neighborhood searches may be inappropriate, limiting the benefits of large neighborhood search. Consequently, for small data sets, the variable neighborhood search proves superior to the adaptive large neighborhood algorithm.
In the second phase of testing the solution effectiveness of the proposed algorithms, 12 tasks are randomly selected from the data set containing 1100 tasks. These tasks are then solved using VNS, ALNS, and the commercial solver CPLEX. The experimental results are detailed in Table 5.
As indicated in Table 5, the results from 10 repeated experiments converge to 1214.9. Both the VNS and ALNS algorithms achieve the optimal solution in a shorter time compared to CPLEX, with the average runtime of VNS being shorter than that of ALNS. Consequently, it can be inferred that VNS outperforms ALNS for small-scale data sets.

5.3. Experimental Results of Large Data Sets

To further assess the performance of our algorithms, experiments are conducted on large-scale instances. The five data sets of 1100, 1200, 1300, 1400, and 1500, as described earlier, are each run 10 times with the two algorithms. The averages and variances of the approximately optimal values are presented in Table 6 (unit: ten thousand).
Analyzing the data in Table 6, for the first three data sets (1100, 1200, and 1300), the optimization results of ALNS are marginally better than those of VNS. However, for the two data sets 1400 and 1500, the optimization results of VNS are slightly superior to those of ALNS. This outcome suggests that data sets of varying sizes may align with different problem structures and complexities. The characteristics of the first three data sets may be better suited to the search strategy of adaptive large neighborhood search (ALNS). As the data set size increases, the altered problem structure might contribute to slightly better performance when using variable neighborhood search (VNS) on these larger data sets. However, despite the modest differences in data set sizes, the overall disparity in solution results between the two algorithms remains minimal. Nevertheless, for all five data sets, the variance of ALNS is notably higher than that of VNS. This indicates that different data sets can influence the optimization results of the algorithm. In comparison with VNS, the solution results of the ALNS algorithm are less stable.

5.3.1. Analysis of Cost

By analyzing the relationship between the cost of each data set and the data set based on the experimental results, the correlation between the cost of the optimal solution and the data set can be observed, as shown in Figure 1.
Examining Table 7, it becomes apparent that the cost to solve is not linearly correlated with the size of the dataset. However, as the number of customer points increases, the cost exhibits an upward trend. Notably, the cost to solve the data set with a task point size of 1300 is generally lower than that of the dataset with a task point size of 1200, presenting an anomalous situation. Consequently, further exploration into the cost composition is conducted for experiments with customer point capacities of 1200 and 1300. This exploration utilizes the results from the first experiment of variable neighborhood search (unit: ten thousand).
Analyzing the cost structure of the two experimental results in Table 7, it is evident that an increase in the number tasks leads to higher vehicle usage costs, with the driving cost constituting the majority of the total cost. Variations in driving costs contribute to differences in total costs. It can be reasonably inferred that the lack of a strong correlation between mileage and the number of tasks is due to factors such as the spatial distribution of task points, variations in time windows, and differences in road network data. Consequently, there is no linear correlation between the cost to solve and the number of tasks.
The table data indicate that as the number of customer points increases, the vehicle utilization cost exhibits an upward trend in the solution results, contributing to an overall cost increase with more customer points. However, in the 1300 data set, the customer points are evenly distributed, and the warehouse is situated close to the center of these points. This proximity allows vehicles to efficiently serve more customers within a shorter driving distance. Consequently, this results in reduced driving and charging costs compared to the 1200 data set. Given that driving costs constitute a substantial portion of the total cost, the 1300 data set yields a smaller overall cost than its 1200-sized counterpart.
During the experiment, the completion time of each iteration was recorded. The experimental data from the adaptive large neighborhood search and variable neighborhood search for the 1100 data sets were plotted on a line chart based on the iteration time and the optimal solution cost at that time. The resulting line chart is depicted in Figure 2.
It is evident from Figure 2 that the variable neighborhood search algorithm demonstrates superior search efficiency compared to the adaptive large neighborhood search within a short timeframe. When the program’s running time is under 1500 s, the solution cost of the variable neighborhood search is lower than that of the adaptive large neighborhood search.
However, with prolonged search times, the adaptive large neighborhood search outperforms the variable neighborhood search in terms of solution results. As illustrated by the line chart, the variable neighborhood search algorithm is more prone to converging to a local optimal solution. Remarkably, the cost of the adaptive large neighborhood search continues to decrease even after 3000 s.

5.3.2. Analysis of Variance

We gauge the fluctuation of experimental results by calculating the variance. Figure 3 illustrates that ALNS performs least effectively on the 1500 data set, with a variance of 0.492, while its best performance is observed on the 1400 data set (0.049). The fluctuation of ALNS results is notably influenced by the inherent characteristics of the data set. Conversely, VNS exhibits better variances than ALNS across all five data sets, indicating superior stability. Moreover, the considerable variation in results between the two algorithms across different data sets emphasizes the substantial impact of data set characteristics on algorithmic performance.
Analyzing the variance in relation to the number of tasks in the data set and algorithmic results reveals no discernible correlation. This lack of correlation can be attributed to variations in time windows, geographical distribution, and road network data within the data sets.

5.4. Experiments of Partition Optimization

To enhance solution efficiency, customers are grouped into multiple regions based on their geographical locations. In this section, we illustrate this approach using data sets with 1100 customers and dividing into nine regions. The comparative results between partitioned and non-partitioned scenarios are presented in Figure 4. The partition experiment demonstrates an average reduction of 3.87% in the total cost compared to the non-partitioned result, indicating a significant degree of optimization. After partitioning the data set, the objective values of VNS and ALNS decrease by 4.05% and 3.69%, respectively. The optimization level achieved through partitioning is comparable for both algorithms in this data set.
To validate solution efficiency, the correlation between the total cost and running time is depicted in Figure 5 for VNS with and without partitioning. Given the higher iterative efficiency post-partitioning, the cost of the partitioning experiment is lower than that of the non-partitioning experiment from the initial solution generation. Notably, the non-partitioning experiment becomes trapped in a local optimal solution around 1500 s. Due to its superior optimization effect compared to the non-partitioning experiment, the partitioning experiment achieves a better cost in the same timeframe.
In theory, partitioned solutions, driven by local considerations rather than global ones, should avoid the global solution being more expensive. However, experimental results indicate that the outcomes of the partitioning experiment are superior to those of the global experiment. To further investigate, we control for the same number of iterations and compare the solution results of the partitioning and non-partitioning experiments, as shown in Figure 6. Interestingly, when the number of iterations is the same, the results of the non-partitioning experiment surpass those of the partitioning experiment. These experiments suggest that, despite the side effects caused by the failure of local considerations due to partitioning, the significant increase in iteration efficiency post-partitioning leads to a higher degree of optimization. When both experiments are conducted with the same number of iterations, the non-partitioned result is lower than that of the partitioned.

5.5. Sensitivity Analysis

To further assess the effectiveness of the proposed model, a sensitivity analysis was conducted on the service time and vehicle range.

5.5.1. The Customer Service Time

Sensitivity experiments were conducted by varying the service time by reducing it from 30 min to 15 min or 0 min. The experimental results are illustrated in Figure 7. From the scatter plot in Figure 7, it is evident that the relationship between distribution cost and customer time is nearly linear. Comparing the trajectory curves of the two algorithms, it is observed that the ALNS program is more sensitive to the reduction in customer service time, while the VNS exhibits a relatively slower response to the change in time.

5.5.2. Vehicle Range

Next, the vehicle’s range is varied by an appropriate percentage, i.e., 50%, 75%, 100%, 125%, or 150%, to analyze the experimental results. The outcomes are depicted in a bar chart, as shown in Figure 8.
From the experimental results and data in Figure 8, it is evident that the vehicle cost increases with a reduction in the vehicle range. Conversely, as the vehicle range increases, the vehicle cost decreases relative to the original solution. However, there is no significant difference in the resulting cost between the 125% battery range and the 150% battery range. To investigate this phenomenon, the charging times of the experimental results with 125% and 150% battery quantities are statistically analyzed, and the results are presented in Figure 9.
Based on the initial assumption of the original vehicle battery range, the average number of charging times is 42.8. When the vehicle range is reduced to 75% or 50% of the original solution, the average charging times increase to 97 or 142 times, respectively. These results demonstrate that as the vehicle range decreases, the charging frequency significantly rises, leading to increased costs. Conversely, when the vehicle range is increased to 125% of the original solution, the average charging times decrease to 11.8 times, resulting in a notable reduction in costs. Further, increasing the vehicle range from 125% to 150% yields an average of 2.3 charging times, indicating a more modest reduction compared to the 125% scenario. It can be inferred that the experiment is constrained by other factors, such as time windows and service times, and the number of task points to which a vehicle can deliver is limited. Consequently, distribution costs cannot decrease indefinitely by simply extending the vehicle range.

6. Conclusions and Future Research

This paper introduces an enhanced version of the electric vehicle routing problem, known as H-MT-EVRP-PD, which incorporates multiple vehicle types with varying capacities and volumes. The problem involves vehicles performing multiple trips per day due to capacity limitations and the goal of minimizing the fleet size. Both delivery and pickup activities are considered in the context of express delivery parcels. While a mathematical programming model is presented to formally define the problem, it is noted that this model is optimal only for very small instances. To address larger real-world scenarios, two heuristic algorithms, namely VNS and ALNS, are proposed and comprehensively evaluated through computational experiments.
The primary focus of this paper revolves around the scenario and model of the problem and features two key innovations:
(1)
We introduce a novel multi-attribute multi-vehicle routing problem by integrating established problem domains, including the heterogeneous vehicle routing problem (HVRP), multi-trip vehicle routing problem (MTVRP), pickup problem for cargo transportation (PDP), and the recently formulated electric vehicle routing problem with time windows and charging stations (E-VRPTW). We formulate this amalgamation as a mixed-integer programming model (H-MT-EVRP-PD).
(2)
We propose an effective variable neighborhood search algorithm (VNS) and an adaptive large neighborhood search algorithm (ALNS) specifically designed to address the challenges posed by the problem defined in this paper. The experimental results highlight the efficiency of the developed algorithms in solving the vehicle routing problem within the proposed scenario. These findings underscore the algorithms’ effectiveness in addressing the unique challenges associated with electric vehicle logistics distribution.
By analyzing the experimental results, the following conclusions are drawn:
(1) The VNS is more efficient in the initial search stage, and thus the VNS outperforms the ALNS in conditions of high requirements for computing time. However, the ALNS is more effective in conditions for which we are expecting to obtain a lower cost and which are less sensitive to computing time. (2) For large-scale problems, H-MT-EVRP-PD can obtain a high-quality solution in the same computing time by means of partitioning: even a simple partition according to the geographical location. (3) Due to the impact of complex constraints, increasing the vehicle range cannot significantly reduce the vehicle operating cost, yet reducing customer service time can significantly reduce delivery costs.
This paper assumes that the vehicle is always recharged to full capacity, whereas it would be interesting to relax the full-recharge restriction and allow partial recharging, which is more practical in the real world (e.g., [9]). Furthermore, the travel speeds on the road might vary during peak and off-peak hours in urban areas as discussed in [1], which is also an interesting topic for future research focusing on extending our model to real-world cases. In addition, it is assumed that recharging stations are always available, whereas vehicles may need to queue at the station. Thus, considering the stochastic recharging time will be one of the subjects of future work. Simultaneously, we anticipate delving into more efficient algorithms in future studies.

Author Contributions

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

Funding

This research was funded by the National Natural Science Foundation of China, grant number: 71801018.

Data Availability Statement

The data presented in this study are available on request from the corresponding author.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Pan, B.; Zhang, Z.; Lim, A. Multi-trip time-dependent vehicle routing problem with time windows. Eur. J. Oper. Res. 2021, 291, 218–231. [Google Scholar] [CrossRef]
  2. Sartori, C.S.; Buriol, L.S. A study on the pickup and delivery problem with time windows: Matheuristics and new instances. Comput. Oper. Res. 2020, 124, 105065. [Google Scholar] [CrossRef]
  3. Hiermann, G.; Puchinger, J.; Ropke, S.; Hartl, R.F. The electric fleet size and mix vehicle routing problem with time windows and recharging stations. Eur. J. Oper. Res. 2016, 252, 995–1018. [Google Scholar] [CrossRef]
  4. Schneider, M. The electric vehicle-routing problem with time windows and recharging stations. Transp. Sci. 2014, 48, 500–520. [Google Scholar] [CrossRef]
  5. Yang, J.; Sun, H. Battery swap station location-routing problem with capacitated electric vehicles. Comput. Oper. Res. 2015, 55, 217–232. [Google Scholar] [CrossRef]
  6. Jun, Y.; Peng-xiang, F.; Hao, S. Battery exchange station location and vehicle routing problem in electric vehicles distribution system. Chin. J. Manag. Sci. 2015, 23, 87–96. [Google Scholar]
  7. Gao, S. The Research of Vehicle Routing Problem with Time Window Based on Electric Vehicle. Ph.D. Thesis, Dalian Maritime University, Dalian, China, 2015. [Google Scholar]
  8. Wang, Y.C. Research on Vehicle Routing Problem of City Distribution Based on Pure Electric Vehicle. Master’s Thesis, Beijing Jiaotong University, Beijing, China, 2016. [Google Scholar]
  9. Keskin, M.; Çatay, 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]
  10. 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]
  11. Montoya, A.; Guéret, C.; Mendoza, J.E.; Villegas, J.G. The electric vehicle routing problem with nonlinear charging function. Transp. Res. Part B Methodol. 2017, 103, 87–110. [Google Scholar] [CrossRef]
  12. Koç, Ç.; Jabali, O.; Mendoza, J.E.; Laporte, G. The electric vehicle routing problem with shared charging stations. Int. Trans. Oper. Res. 2019, 26, 1211–1243. [Google Scholar] [CrossRef]
  13. Toth, A.; Paolo, B.; Vigo Daniele, C. Vehicle Routing: Problems, Methods, and Applications; SIAM: Philadelphia, PA, USA, 2014. [Google Scholar]
  14. Stewart, W.R., Jr.; Golden, B.L. A Lagrangean relaxation heuristic for vehicle routing. Eur. J. Oper. Res. 1984, 15, 84–88. [Google Scholar] [CrossRef]
  15. Golden, B.L.; Raghavan, S.; Wasil, E.A. The Vehicle Routing Problem: Latest Advances and New Challenges; Springer: Berlin/Heidelberg, Germany, 2008; pp. 3–27. [Google Scholar]
  16. Dondo, R.; Cerdá, J. A cluster-based optimization approach for the multi-depot heterogeneous fleet vehicle routing problem with time windows. Eur. J. Oper. Res. 2007, 176, 1478–1507. [Google Scholar] [CrossRef]
  17. Paraskevopoulos, D.C.; Repoussis, P.P.; Tarantilis, C.D.; Ioannou, G.; Prastacos, G.P. A reactive variable neighborhood tabu search for the heterogeneous fleet vehicle routing problem with time windows. J. Heuristics 2008, 14, 425–455. [Google Scholar] [CrossRef]
  18. Yoshizaki, H.T. Scatter search for a real-life heterogeneous fleet vehicle routing problem with time windows and split deliveries in Brazil. Eur. J. Oper. Res. 2009, 199, 750–758. [Google Scholar]
  19. Jiang, J.; Ng, K.M.; Poh, K.L.; Teo, K.M. Vehicle routing problem with a heterogeneous fleet and time windows. Expert Syst. Appl. 2014, 41, 3748–3760. [Google Scholar] [CrossRef]
  20. Petch, R.J.; Salhi, S. A multi-phase constructive heuristic for the vehicle routing problem with multiple trips. Discret. Appl. Math. 2003, 133, 69–92. [Google Scholar] [CrossRef]
  21. Olivera, A.; Viera, O. Adaptive memory programming for the vehicle routing problem with multiple trips. Comput. Oper. Res. 2007, 34, 28–47. [Google Scholar] [CrossRef]
  22. Cattaruzza, D.; Absi, N.; Feillet, D.; Vidal, T. A memetic algorithm for the multi trip vehicle routing problem. Eur. J. Oper. Res. 2014, 236, 833–848. [Google Scholar] [CrossRef]
  23. Azi, N.; Gendreau, M.; Potvin, J.Y. An adaptive large neighborhood search for a vehicle routing problem with multiple routes. Comput. Oper. Res. 2014, 41, 167–173. [Google Scholar] [CrossRef]
  24. François, V.; Arda, Y.; Crama, Y.; Laporte, G. Large neighborhood search for multi-trip vehicle routing. Eur. J. Oper. Res. 2016, 255, 422–441. [Google Scholar] [CrossRef]
  25. Azi, N.; Gendreau, M.; Potvin, J.Y. An exact algorithm for a single-vehicle routing problem with time windows and multiple routes. Eur. J. Oper. Res. 2007, 178, 755–766. [Google Scholar] [CrossRef]
  26. Cattaruzza, D.; Absi, N.; Feillet, D. The multi-trip vehicle routing problem with time windows and release dates. Transp. Sci. 2016, 50, 676–693. [Google Scholar] [CrossRef]
  27. Hernandez, F.; Feillet, D.; Giroudeau, R.; Naud, O. A new exact algorithm to solve the multi-trip vehicle routing problem with time windows and limited duration. 4OR 2014, 12, 235–259. [Google Scholar] [CrossRef]
  28. Savelsbergh, M.W.; Sol, M. The general pickup and delivery problem. Transp. Sci. 1995, 29, 17–29. [Google Scholar] [CrossRef]
  29. Shang, J.S.; Cuff, C.K. Multicriteria pickup and delivery problem with transfer opportunity. Comput. Ind. Eng. 1996, 30, 631–645. [Google Scholar] [CrossRef]
  30. Nanry, W.P.; Barnes, J.W. Solving the pickup and delivery problem with time windows using reactive tabu search. Transp. Res. Part Methodol. 2000, 34, 107–121. [Google Scholar] [CrossRef]
  31. Xu, H.; Chen, Z.L.; Rajagopal, S.; Arunapuram, S. Solving a practical pickup and delivery problem. Transp. Sci. 2003, 37, 347–364. [Google Scholar] [CrossRef]
  32. Ropke, S.; Pisinger, D. An adaptive large neighborhood search heuristic for the pickup and delivery problem with time windows. Transp. Sci. 2006, 40, 455–472. [Google Scholar] [CrossRef]
  33. Baldacci, R.; Bartolini, E.; Mingozzi, A. An exact algorithm for the pickup and delivery problem with time windows. Oper. Res. 2011, 59, 414–426. [Google Scholar] [CrossRef]
  34. Masmoudi, M.A.; Hosny, M.; Demir, E.; Genikomsakis, K.N.; Cheikhrouhou, N. The dial-a-ride problem with electric vehicles and battery swapping stations. Transp. Res. Part E Logist. Transp. Rev. 2018, 118, 392–420. [Google Scholar] [CrossRef]
  35. Affi, M. General Variable Neighborhood Search Approach for Solving the Electric Two-Echelon Vehicle Routing Problem. In Proceedings of the 2020 International Multi-Conference on: “Organization of Knowledge and Advanced Technologies” (OCTA), Tunis, Tunisia, 6–8 February 2020; pp. 1–3. [Google Scholar]
  36. Mladenović, N.; Hansen, P. Variable neighborhood search. Comput. Oper. Res. 1997, 24, 1097–1100. [Google Scholar] [CrossRef]
  37. Polacek, M.; Hartl, R.F.; Doerner, K.; Reimann, M. A variable neighborhood search for the multi depot vehicle routing problem with time windows. J. Heuristics 2004, 10, 613–627. [Google Scholar] [CrossRef]
  38. Yao, Y.; Zhu, X.; Dong, H.; Wu, S.; Wu, H.; Tong, L.C.; Zhou, X. ADMM-based problem decomposition scheme for vehicle routing problem with time windows. Transp. Res. Part B Methodol. 2019, 129, 156–174. [Google Scholar] [CrossRef]
Figure 1. Graph of size and cost.
Figure 1. Graph of size and cost.
Wevj 15 00069 g001
Figure 2. Iteration time and cost trend of optimal solution.
Figure 2. Iteration time and cost trend of optimal solution.
Wevj 15 00069 g002
Figure 3. Variance of the algorithm.
Figure 3. Variance of the algorithm.
Wevj 15 00069 g003
Figure 4. Partition optimization comparison results.
Figure 4. Partition optimization comparison results.
Wevj 15 00069 g004
Figure 5. The time series diagram of partitioning and non-partitioning experiments.
Figure 5. The time series diagram of partitioning and non-partitioning experiments.
Wevj 15 00069 g005
Figure 6. Sequence diagram of partitioning experiment cost and number of iterations.
Figure 6. Sequence diagram of partitioning experiment cost and number of iterations.
Wevj 15 00069 g006
Figure 7. Customer service time and cost diagram.
Figure 7. Customer service time and cost diagram.
Wevj 15 00069 g007
Figure 8. Bar chart of the relationship between vehicle range and electricity costs.
Figure 8. Bar chart of the relationship between vehicle range and electricity costs.
Wevj 15 00069 g008
Figure 9. Vehicle average charging time diagram.
Figure 9. Vehicle average charging time diagram.
Wevj 15 00069 g009
Table 1. Data set information.
Table 1. Data set information.
NumPickup TasksDelivery TasksCharging Stations
1900200100
21000200100
31100200100
41200200100
51300200100
Table 2. Vehicle data.
Table 2. Vehicle data.
TypeMax_VolumeMax_WeightMax_Vehicle_CntDriving_RangeCharge_tmUnit_Trans_CostVehicle_Cost
1122500100,0003012200
2162.5500120,0003014300
Table 3. Network data instance.
Table 3. Network data instance.
IDFrom_NodeTo_NodeDistance (m)Spend_tm (min.)
0015761168
12001058,50973
Table 4. Experimental data.
Table 4. Experimental data.
Data IDVNSALNS
Optimal ValueIterationsTime (s)Optimal ValueIterationsTime (s)
1100-155642.34405.22.055642.343503.614.41
1200-157056.74410.72.407056.742758.114.15
1300-155664.242011.185664.241773.38.03
1400-155791.46186.51.125791.461015.54.35
1500-155557.29198.11.015557.291368.75.08
Table 5. ALNS experimental data.
Table 5. ALNS experimental data.
NumALNSVNSCPLEX
ResultsTime (s)ResultsTime (s)ResultsTime (s)
11214.90.0621214.90.1011214.90.777
21214.90.0691214.90.0291214.90.884
31214.90.0101214.90.0111214.90.949
41214.90.0611214.90.0321214.90.914
51214.90.0291214.90.0371214.90.796
61214.90.0461214.90.0321214.90.781
71214.90.1141214.90.0331214.90.792
81214.90.0351214.90.0261214.90.941
91214.90.0401214.90.0291214.91.217
101214.90.1121214.90.0111214.90.811
average1214.90.05781214.90.03411214.90.8862
Table 6. Experimental results of large data sets.
Table 6. Experimental results of large data sets.
Data IDVNS-60minALNS-60min
AverageVarianceAverageVariance
110025.120.02825.000.071
120028.200.04328.100.098
130027.360.10627.300.139
140035.700.03835.970.049
150037.790.17937.940.492
Table 7. Cost composition.
Table 7. Cost composition.
Data SetCharging CostDriving CostWaiting CostVehicle CostTotal Cost
12000.3823.270.464.1428.25
13000.2621.590.694.5227.05
Cost Variance−0.12−1.680.230.38−1.2
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Wang, L.; Ding, Y.; Chen, Z.; Su, Z.; Zhuang, Y. Heuristic Algorithms for Heterogeneous and Multi-Trip Electric Vehicle Routing Problem with Pickup and Delivery. World Electr. Veh. J. 2024, 15, 69. https://doi.org/10.3390/wevj15020069

AMA Style

Wang L, Ding Y, Chen Z, Su Z, Zhuang Y. Heuristic Algorithms for Heterogeneous and Multi-Trip Electric Vehicle Routing Problem with Pickup and Delivery. World Electric Vehicle Journal. 2024; 15(2):69. https://doi.org/10.3390/wevj15020069

Chicago/Turabian Style

Wang, Li, Yifan Ding, Zhiyuan Chen, Zhiyuan Su, and Yufeng Zhuang. 2024. "Heuristic Algorithms for Heterogeneous and Multi-Trip Electric Vehicle Routing Problem with Pickup and Delivery" World Electric Vehicle Journal 15, no. 2: 69. https://doi.org/10.3390/wevj15020069

Article Metrics

Back to TopTop