Abstract

This research introduces a new variant of the two-echelon vehicle routing problem (2EVRP) called the two-echelon vehicle routing problem with transshipment nodes and occasional drivers (2EVRP-TN-OD). In addition to city freighters in the second-echelon network, a set of occasional drivers (ODs) is available to serve customers. ODs are the basis of a crowd-shipping system in which crowds with planned trips are willing to take detours to deliver packages in exchange for some compensation. To serve customers, ODs collect the assigned packages at either satellite served by first-echelon trucks or transshipment nodes served by city freighters. We formulate this problem as a mixed-integer nonlinear programming model and develop an adaptive large neighborhood search (ALNS) to solve it. New problem-specific destroy and repair operators and a tailored local search procedure are embedded into ALNS to deal with the problem’s unique characteristics. The experiments show that the proposed ALNS effectively solves 2EVRP-TN-OD by outperforming Gurobi in terms of both solution quality and computational time. Moreover, the experiments confirm that employing occasional drivers leads to lower operational costs. Sensitivity analyses on the characteristics of occasional drivers and the impact of transshipment nodes are presented as interesting managerial insights from 2EVRP-TN-OD.

1. Introduction

City logistics has recently become an emerging branch of supply chain management due to rapid population growth in urban areas around the world. Consequently, rising consumer demand to fulfill the needs of this population has become unavoidable, leading to an increasing number of e-commerce industries. In 2019, e-commerce sales globally reached a value of US$3.53 trillion and were projected to grow to US$6.54 trillion in 2022 [1]. This market’s sales have led to new challenges in delivery operations. While raising the number of operational vehicles is one direct solution, it results in many freight transportation issues, such as traffic congestion, higher emissions and air pollution, and noise, to mention a few.

Recent technological advancements called crowd-shipping have resulted in a sharing economy-based delivery concept for increasing delivery effectiveness and reducing operational costs [2]. Crowd-shipping makes use of idle resources to perform the delivery task that would otherwise be performed by delivery companies. Several large retailers, such as Walmart and Amazon, have started to develop and implement crowd-shipping platforms [3]. These recent business practices performed by well-known enterprises show that crowd-shipping is growing in popularity as a new and promising delivery system.

In order to improve the living quality in a city, a two-echelon distribution strategy is commonly implemented to reduce the volume of vehicles travelling around the urban area by setting up intermediate facilities called satellites [4]. A satellite represents a secondary facility located nearby the city center, where the freights delivered by municipal trucks from the central depots are transferred and consolidated to smaller vehicles, commonly called city freighters [5, 6]. This strategy leads to an interesting topic in vehicle routing problem variants called the two-echelon vehicle routing problem (2EVRP).

Due to the rise of 2EVRP implementations and the crowd-shipping concept, one of the main aims of this research is to introduce a new variant of 2EVRP called 2EVRP with transshipment nodes and occasional drivers (2EVRP-TN-OD). The first-echelon network connects the central depot with satellites, and the second-echelon network connects satellites with customers and transshipment nodes (TNs). In this research, every occasional driver (OD) has his/her origin and destination nodes, available capacity, and flexibility. ODs are able to utilize their available capacity and collect the assigned packages from either a satellite or a TN. Moreover, every employed OD receives a particular amount of compensation, depending on the total distances travelled. The contributions of this research work are summarized as follows:(1)Introduce a new variant of 2EVRP called the two-echelon vehicle routing problem with transshipment nodes and occasional drivers (2EVRP-TN-OD).(2)Formulate a mixed-integer nonlinear programming (MINLP) for 2EVRP-TN-OD.(3)Develop an adaptive large neighborhood search algorithm and show the effectiveness of the proposed algorithm.(4)Perform sensitivity analyses on important characteristics related to the crowd-shipping concept to better understand the impact of the integration into the two-echelon distribution network.

The remaining parts of this article are described as follows: Section 2 provides a description of previous related works. Section 3 explains the problem definition and formulation. Section 4 describes the detailed procedure of our developed ALNS. Section 5 shows the generation of benchmark instances, the computational results of ALNS, and the sensitivity analyses related to 2EVRP-TN-OD. Lastly, Section 6 concludes the findings of this work and possible future direction.

2. Literature Review

2.1. Two Echelon Vehicle Routing Problem

Crainic et al. [7] first introduced 2EVRP by considering the setting up of a two-tier distribution network. The model aims to mainly address the day-before-planning problem with several key decisions related to freight assignment to the satellites as well as the routing and scheduling of vehicles that operate in both first- and second-echelon networks. Perboli et al. [8] pioneered the method’s development by addressing the basic problem of 2EVRP, where time windows and satellite synchronizations are not considered. This problem is called a two-echelon capacitated vehicle routing problem (2E-CVRP). Recent work has focused on integrating trends and realistic scenarios into the 2EVRP structure. Wang et al. [9] considered the environmental impact of 2EVRP. In addition, Belgin et al. [10] developed an extension of 2EVRP by incorporating not only delivery but also pickup demand.

Due to the rise in the utilization of electric vehicles, several works tackled similar networks by considering electric vehicles [11, 12]. Anderluh et al. [13] explicitly integrated emission minimization by formulating 2EVRP into a multiobjective problem in which both operational and emission costs are considered. In light of rapid technological development, several helpful innovative alternatives have become available, such as parcel lockers, crowd-shipping, delivery robots, and drones. These technology-enabled options led to the fruitful developments of 2EVRP [1418]. Mühlbauer and Fontaine [19] adopted swap containers for solving 2E-CVRP, where the first echelon’s requests are fulfilled by a set of vans and the second echelon’s requests are serviced by a set of cargo bicycles or city freighters provided by the logistic companies. Various studies were collected and summarized in the review of 2EVRP variants by Sluijk et al. [20]. It can be seen that the existing literature has rarely considered heterogeneous vehicles, and so far, only Yu et al. [17] have introduced occasional drivers to 2EVRP with covering locations.

2.2. Location-Routing Problem

The location-routing problem (LRP) is an extension of VRP that involves two key decisions: the selection of depots and the routing of vehicles originating from a particular depot [21]. The network setting of LRP is similar to the second-echelon network of 2EVRP. The main differences between LRP and 2EVRP can be found in their objective functions and network structures. Various works have proposed solution methods such as heuristics and exact algorithms [2226]. Schneider and Löffler [27] constructed a three-phase tree-based search algorithm for solving CLRP. Their numerical analysis showed the effectiveness of the algorithm in solving LRPs. New variants of LRP were also proposed to cope with emerging challenges and trends. Karaoglan et al. [28] set up a model and a heuristic to deal with LRP under simultaneous pickup and delivery to handle the existence of returned products from customers. Yu and Lin [29] tackled LRP under the condition that all operational fleets are supplied by a third-party logistics company. Nowadays, due to the efforts to reduce the number of operating vehicles within cities, LRP has been extended to two-tier distribution networks, namely, 2ELRP [4]. Several recent works have addressed the case of 2ELRP under specific real-world characteristics [30, 31]. Arnold and Sörensen [32] proposed a progressive filtering heuristic adopting the regret Clarke-Wright and knowledge-guided local search heuristic for solving 2ELRP and its special case, the single truck and trailer routing problem with satellite depots (STTRPSD), which have a configuration similar to the settings of 2EVRP.

2.3. Crowdshipping

The trend of providing crowd-shipping models and analyzing the positive impacts of considering this concept gives rise to a new VRP variant. Archetti et al. [33] pioneered this strand of research by introducing the vehicle routing problem with occasional drivers (VRPOD), where deliveries are conducted by two types of fleets: company vehicles and ODs. Macrina et al. [34] introduced three different characteristics to the VRPOD problem: time window constraints, multiple deliveries, and split delivery that can be performed by ODs. Chen et al. [35] proposed a multihop problem where parcels can be delivered using multiple consecutive tours to reach their destination within a designed time window and a maximum rate of detour compared to the drivers’ shortest paths.

Based on the definition of crowdsourcing, Sampaio et al. [36] presented a system with a large number of drivers, a uniquely owned depot, and short working shifts when performing the pickup and delivery activities. These drivers do not have a desired destination, and they will return to the depot after delivering the requests. Moreover, they limit the number of transfers to once per request only, which distinguishes their work from the proposed study of Chen et al. [35]. These configurations have turned their problem into the classic pickup and delivery problem with time windows and transfer (PDPTW-T). Voigt and Kuhn [37] constructed their model based on the work of Sampaio et al. [36] with a modification in the shipping fleet team by categorizing them into occasional drivers and regular drivers. In their settings, the latter team will be the main force handling the delivery operation, and the former ones will accept the tasks based on their convenience. To sum up, recent works on the crowd-shipping system consider the existence of transshipment nodes so that ODs have more options for picking up the assigned demand [3840]. The main advantage of a crowd-shipping system, as mentioned in all the aforementioned works, is savings on operational costs.

2.4. Transshipment Nodes

Transshipment nodes (TNs) are considered important factors when handling the vehicle routing problem with crowd shipping and are usually referred to as intermediate depots [37, 40]. The benefits TNs bring to the context of ODs have been proposed by various scholars. Macrina et al. [40] believed the adoption of these intermediate transfer points would gain interest and relax the barriers for more ODs to performing delivery tasks due to the advantages in the geography context, with a total savings cost of up to 31% compared to the nontransshipment nodes model in VRPOD. This rate will significantly increase in proportion to the number of available TNs and their capacities. In addition, by allowing the ODs to visit the depot, a saving of 6% in the consumed operation costs has been found in their study. Voigt and Kuhn [37] proposed a similar model to our work with the involvement of both regular drivers and ODs in their study and performed some experiments with several scenarios: VRPOD without TNs (T0), VRPOD with random TNs (TR), and VRPOD with fixed assigned TNs (T4). Though there is no significant difference in the outcomes when comparing T0 and TR in scenarios with 100 requests and 100 occasional drivers, other computational results show that the adoption of TNs usually has huge advantages in the consumed cost when compared with the reverse scenarios in their study. Yu et al. [41] also confirmed the benefit to total operation cost with the setup of TNs in the crowd shipping delivery system with four designed scenarios: alternative delivery options are applied/not applied, and TNs are applied/not applied. The mentioned works have proven the effectiveness of TNs in advancing savings in VRP in the crowd-shipping context and are worth considering when working with the crowd-shipping system.

2.5. Main Contributions

Our work contributes to the 2EVRP literature with the adoption of crowdsourcing and heterogeneous vehicles, which cover occasional drivers, in picking up and delivering customers’ requests. For a prior contribution, the problem settings of our work and those of Mühlbauer and Fontaine [19] are quite similar; however, we support the delivery activities of the second echelon by integrating a group of ODs. Although 2EVRPTW-OD was introduced by Yu et al. [17], they dealt with the covering locations while we handled the issue of transshipment nodes. Our latter contribution is addressed through the involvement of occasional drivers and city freighters for delivery purposes in our work’s second echelon.

To our knowledge, existing studies on the crowd-shipping problem have also not yet dealt with 2EVRP. Both Huang and Ardiansyah [38] and Macrina et al. [40] handled VRP-CS with transfer locations, where regular drivers mainly serve both transshipment nodes and customers, and customers are serviced by both types of drivers: regular and occasional. Those works match our second-echelon work; however, the first-echelon activities are not analyzed in their works. Moreover, our work distinguishes between the depot-satellite delivery trucks and the satellite-transshipment node city freighters, which also have not been analyzed in previous studies. This is our addition to existing studies related to crowd-shipping problems. For more details, our paper refers to regular drivers as city freighters and first-echelon trucks for better discrimination in description and modelling. A table is given in the appendix to summarize and analyze the difference between our work and existing studies.

3. Problem Description

Similar to the classical 2EVRP addressed by Hemmelmayr et al. [24] and Breunig et al. [42], we model 2EVRP-TN-OD where the first-echelon network connects the central depot with satellites and the second-echelon network connects the satellites with customers. In 2EVRP-TN-OD, a set of TNs exists in the second-echelon network, serving as places for transferring goods from second-echelon vehicles (city freighters) to ODs. Figure 1 illustrates a possible solution for 2EVRP-TN-OD.

In the first echelon of the distribution network in 2EVRP-TN-OD, there exists a set of homogeneous first-echelon trucks serving satellites. The demands of a satellite are the total demands of the customers assigned to the satellite. In the second echelon, there are two types of fleets for serving customers: a set of homogeneous city freighters and a set of heterogeneous ODs. Each OD has the willingness to serve one or more customers depending on his/her available capacity. The willingness is defined as a maximum extra distance that an OD willingly travels.

Each customer has an amount of demand that must be fulfilled by one visit by a vehicle, either a city freighter or an OD. While no split delivery is allowed in the second echelon, 2EVRP-TN-OD adopts the split delivery of the first echelon of 2EVRP, allowing a particular satellite to be visited by more than one first-echelon truck. The first-echelon trucks start and finish at the depot, while city freighters start to visit customers or TNs from a particular satellite and end at the same satellite. Each OD starts at his/her origin, ends at his/her destination, and is able to collect demands either at a satellite or a TN before serving the assigned customers. In this work, our main objective is to minimize the total operation cost for delivery activities, including: (1) the travel costs of the first-echelon trucks, second-echelon city freighters, and ODs; and (2) the employment costs accounted for by ODs.

An overview of our proposed work is illustrated in Figure 1. There are 2 transshipment nodes, 3 satellites, 5 customer nodes, 1 vehicle serving the first echelon, 2 ODs and 3 city freighters fulfilling requests at the second echelon, and one depot. From the main depot, a large capacity vehicle serves two satellites (1 and 3), and then there are two city freighters that will come to the first satellite to pickup the requests, namely, freighters 1 and 2. At the same time, at the third satellite, an OD departs from origin node 1 and collects the request to deliver to the customer at node 7 before ending at destination node 1. In addition, another freighter 3 visits this satellite to pick up the requests and then deliver them to customers at Nodes 6, 10, 11, 15, and 18. Back at the first satellite, while city freighter 1 will normally deliver requests to customers at nodes 5, 9, 12, and 17, city freighter 2 is assigned to fulfill customers’ requests at nodes 8, 13, and 14 in addition to delivering the remaining requests to transshipment node 19 (green square) for later pickup and delivery activities performed by OD 2. This OD, who departs from original location 2, visits transshipment node 19 to collect requests and then continues delivering them to customers at nodes 4 and 16 on his travel route to the respected destination node 2. The other delivery activities performed by other ODs or freighters are similar to those performed by OD2 and freighter 1 in this illustrated example. To sum up, in this illustrated example, not all satellites and transshipment nodes are used for delivering requests to customers; one vehicle is used for servicing requests at satellites in the first echelon, while 2 occasional drivers and 3 city freighters perform the requests’ delivery to end-customers at the second echelon through the utilization of one transshipment node out of the two existing ones.

4. A Mixed-Integer Nonlinear Program Formulation

The problem is formally defined on a directed graph , where N represents a set of vertices and A denotes a set of arcs. Here, N consists of a depot {0}, the set of satellites , the set of customers , the set of TNs , and the set of origin and destination nodes of available ODs, and . There are two sets of arcs in A–that is, and , consecutively representing the arcs in the first- and second-echelons. For all arcs in , is defined as the distance from vertex i to vertex j, where . In addition, several additional sets are defined; i.e., , , , and , for the sake of simplicity of the formulation.

Each customer has a nonnegative demand . A set of homogeneous first-echelon trucks is available at the depot, each having a maximum capacity of . In the second-echelon network, there exists a set of homogeneous city freighters that can be positioned at any existing satellite and a set of ODs. Each OD has his/her own origin stored in and his/her own destination stored in . Each city freighter has a maximum capacity of , while each OD has a maximum capacity of .

Let be the original distance between the origin and destination nodes of an OD . OD is willing to serve the customers as long as the maximum extra-travelled distance is not greater than . The cost of employing an OD consists of two components: (1) a fixed cost H and (2) a distance-related variable cost . In addition, both first-echelon trucks and city freighters have distance-related variable costs . Finally, the following MINLP describes 2EVRP-TN-OD.

4.1. Sets

Set of satellites. Set of available TNs. Set of customers. Set of origin nodes of ODs. Set of destination nodes of ODs. Set of first-echelon trucks. Set of city freighters. Set of ODs.

4.2. Additional Sets

Set of all first-echelon nodes, Set of all second-echelon nodes, Set of all ODs’ pickup point nodes, Set of all nodes that are able to be visited by city freighters excluding the satellites,

4.3. Parameters

Travel distance from node i to node j, where Demand of customer i, where Maximum available capacity of OD i, where Distance between origin and destination nodes of OD i, where Capacity of a first-echelon truck. Capacity of a satellite. Capacity of a city freighter. Capacity of a TN.H Fixed cost of employing an OD. Compensation per distance unit travelled by an OD. Variable cost per distance unit for either a first-echelon truck or a city freighter. A multiplier for calculating the extra-travelled distance of an OD.

4.4. Decision Variables

Binary variables representing the selection of arc to be traversed by first-echelon truck ; 1 if first-echelon truck k traverses through arc and 0 otherwise. Binary variables representing the selection of arc to be traversed by city freighter ; 1 if city freighter k traverses through arc and 0 otherwise. Binary variables representing the selection of arc to be traversed by OD ; 1 if OD k traverses through arc and 0 otherwise. Binary variable indicating the assignment of OD k to pickup point ; 1 if OD k visits pickup point i and 0 otherwise. Binary variable representing whether customer is the last node visited by OD ; 1 if OD k goes to the destination after visiting customer i and 0 otherwise. Total demands assigned to OD , Total demands assigned to city freighter , Total demands assigned to first-echelon truck , Total demands assigned to TN , Total demands assigned to satellite , Remaining loads carried by first-echelon truck when visiting node , Remaining loads carried by city freighter when visiting node , Remaining loads carried by OD when visiting node ,

4.5. Objective Function

Subject to

The objective of 2EVRP-TN-OD in (1) is to minimize the total cost of the delivery operation. The first, second, and third terms consecutively address the travelling costs of first-echelon trucks, city freighters, and the employed ODs, while the last one represents the payments for employing these ODs. Constraints (2) to (12) focus on managing the characteristics of the first-echelon network. Constraints (2) to (4) ensure that for each first-echelon truck, every satellite can only be visited at most once. Constraint (5) represents the conservation-of-flow constraint of every first-echelon truck. Constraint (6) defines the total demands assigned to each satellite. Constraint (7) defines the total demands carried by each first-echelon truck, while constraint (8) limits the maximum number of demands that can be carried by each first-echelon truck. Constraints (9) and (10) track the remaining demands carried by each first-echelon truck while visiting a node. Constraint (11) ensures that a city freighter can originate from a satellite if and only if the satellite is served by first-echelon trucks. Similarly, constraint (12) guarantees that each OD can collect demands at a satellite if and only if the satellite is served by at least one first-echelon truck.

Constraint (13) ensures that either an OD or a city freighter must serve each customer. Constraints (14) to (26) focus on managing the characteristics of ODs’ routes. In particular, constraints (14) to (15) define the assignment of each OD to a pickup point, either a satellite or a TN. Constraint (16) ensures that each OD can only visit one pickup point to take the assigned demands. Constraint (17) ensures that each OD needs to visit a customer before reaching his/her destination if the OD is assigned a demands. Constraints (18) to (21) ensure the flow-in and flow-out of routes for an OD. Constraints (22) and (23) track the remaining demands carried by an OD while visiting customer nodes. Constraint (24) calculates the total demands carried by an OD, and constraint (25) defines the maximum capacity of an OD. Lastly, constraint (26) ensures that the total distance travelled by an OD is not greater than the maximum willingness of the OD.

Constraints (27) to (36) focus on the route characteristics of the city freighters. Constraint (27) ensures that each city freighter can only originate from one satellite. Constraint (28) ensures the flow-in and flow-out of each city freighter. Constraint (29) guarantees that each TN can only be visited at most once. Constraint (30) defines the number of demands delivered to a TN by a city freighter. Constraint (31) limits the maximum allowable demands delivered to a TN. Constraint (32) defines the total demand carried by a city freighter from a satellite, while the maximum allowable demands that can be carried by a city freighter are limited by constraint (33). Moreover, constraints (34) to (36) track the remaining demands carried by a city freighter while visiting a node, either a customer node or a TN. Finally, the domains of the decision variables are given by constraints (37)–(49).

The formulation belongs to a mixed-integer nonlinear program due to the multiplication of two types of decision variables in several constraints, i.e., constraints (6), (7), (30), and (32).

5. Proposed ALNS Algorithm for 2EVRP-TN-OD

This section presents the ALNS algorithm for solving 2EVRP-TN-OD. The following sections discuss the solution representation, the procedure for generating an initial solution, and the components of the proposed ALNS.

5.1. Adaptive Large Neighborhood Search

Due to the complexity of VRP variants, most of the aforementioned works opted for metaheuristics to solve the problems, which are summarized in Table 1. Among them, a large neighborhood search-based algorithm is one of the most effective methods for solving VRPs [12, 14, 42]. ALNS was first introduced by Ropke and Pisinger [44] to deal with the pickup and delivery problem with time windows (PDPTW). This approach searches for a new solution using various removal as well as insertion mechanisms and the computed costs for reinserting the removed nodes from the current solutions. Originally, the removal operators included Shaw Removal, Random Removal, and Worst Removal, while the insertion ones were Greedy heuristic and Regret heuristic. They are selected based on rewards using the roulette wheel principle. A new solution will be accepted if it is better than the current one.

Akpunar and Akpinar [45] proposed a hybrid adaptive large neighborhood (H-ALNS) search algorithm, which outperforms the existing ones in terms of computational time and solution quality. This is confirmed by Voigt et al. [43], who used H-ALNS to solve various instances of 2EVRP, LRP, and multidepot VRP (MDVRP). Despite the superiority in solving 2EVRP of HALNS, our work adopts ALNS to solve 2EVRP-TN-OD.

Although the proposed ALNS of our work is partly similar to those of Hemmelmayr et al. [24] and Breunig et al. [42], they did not consider the crowd-shipping scenario in their works. Our work has a similar destroy mechanism to the “satellite-related removal mechanism” of theirs, but the destroyed nodes in our ALNS can be either satellites or transshipment nodes. When a TN is removed, a set of customers related to this node will also be removed from the second echelon, which is the uniqueness of our study. Moreover, our work’s Greedy insertion mechanism is slightly different from theirs due to the extra costs for servicing the TNs of the city freighters. The related insertion is also another difference between our work and that of the mentioned authors. To sum up, ALNS with destroy and repair mechanisms for solving the 2EVRP-TN-OD distinguishes our study from the works of Hemmelmayr et al. [24] and Breunig et al. [42].

5.2. Solution Representation

The solution representation of the 2EVRP-TN-OD problem consists of three parts: (1) routes of first-echelon trucks, (2) routes of city freighters, and (3) routes of ODs. First, let be the route of first-echelon truck k, consisting of depot positioned at and , and the sequence of visited satellites. Second, let denote the route of city freighter i. Herein, represents the satellite from which city freighter i originates. Note that because city freighter i returns to the same satellite after visiting a sequence of nodes. The visited vertices by a city freighter can be customers and/or TNs. Third, let be the route of OD j consisting of two parts: (1) a satellite or a TN where the OD picks up the assigned demands , and (2) the visited customers .

Figure 2 illustrates the solution representation of Figure 1. For example, represents the route of first-echelon truck 1, visiting satellites 1 and 3 before returning to the depot. represents the route of city freighter 1, which originates from satellite 1, and performs a visit to a sequence of customers. represents the route of OD 1 that visits transshipment node 19 and serves customers 4 and 16.

5.3. Construction Heuristic

The construction heuristic generates a feasible initial solution for ALNS. It first assigns customers to available ODs using the nearest neighborhood insertion based on the capacity of ODs. Each OD is assigned to the nearest collection point, either a satellite or a TN, to collect demands. Afterward, unassigned customers are assigned to their nearest satellite. From each utilized satellite, city freighters’ routes are then built to serve these customers and utilize TNs. Finally, routes of first-echelon trucks are constructed to serve the demands assigned to each satellite.

5.4. Proposed Adaptive Large Neighborhood Search Heuristic

Algorithm 1 describes the general structure of the ALNS heuristic developed for solving 2EVRP-TN-OD. The construction algorithm described in Section 5.2 is executed to build an initial solution. The resulting solution is stored in and copied to the working solution, , and the best solution, . ALNS begins with removing nodes from with a destroy operator selected by a roulette wheel mechanism. The number of removed nodes from the solution is randomly chosen between . To accommodate the reconfiguration of both echelons, two conditions are expressed in Lines 5–8. The main purpose of the first condition in Lines 5–6 is to remove nodes visited in the second-echelon network, while the main purpose of the second condition in Lines 7–8 is not only for dealing with nodes in the second-echelon network but also for changing the configuration of satellites.

After the removal phase is conducted, is performed to change pickup points visited by ODs. The repair phase then starts by applying a selected repair operator to . The repair phase focuses on the second-echelon network. Thus, the first-echelon routes’ optimization procedure follows to reconstruct a set of feasible routes for first-echelon trucks, as described in Section 5.3.4.

A local search procedure expressed in Lines 11–18 is performed for intensification purpose and therefore increases the possibility of obtaining a better solution. When is better (in this case, has a lower objective value) than , we replace with , as expressed in Lines 15–18. Furthermore, if successfully improves the best solution so far, then will be updated, and the selection probability of destroying and repairing operators is updated using , which only considers the performance of available operators after the previous score updates. Initially, every operator has a score of λ. In particular, an amount of score τ is added to an operator’s score whenever the operator can achieve a new best solution.

The acceptance of with worse quality is based on threshold acceptance; i.e., still accepting as long as the gap between the objective value of and is within a particular threshold value. This type of acceptance is expressed using a function, i.e., , in Line 26. The algorithm performs a restart strategy when a certain number of nonimproving iterations, , is reached. Finally, ALNS runs until the maximum time limit, , is reached.

Input: and an instance of 2EVRP-TN-OD
Output:
(1)
(2)
(3), ,
(4)
(5)while do
(6)if then
(7)  
  
(8)else
(9)  
  
(10)  
(11)
(12)
(13)if then
(14)  while do
(15)   
(16)   if then
(17)    
(18)else
(19)  
(20)if then
(21)  
(22)  if then
(23)   
(24)   
(25)   
(26)else
(27)  
(28)if then
(29)  
(30)
(31)return
5.4.1. Destroy Operators

The developed destroy operators are mainly adopted from Ropke and Pisinger [44] and Hemmelmayr et al. [24]. In the solution, there exist two types of nodes, i.e., customer nodes and TNs, in the second-echelon network. In this section, we thus refer to a node as either a customer node or a TN. The removal operators are specifically designed to address the existence of the aforementioned types of nodes. Whenever applicable, the number of customers and/or TNs to remove, q, is randomly chosen within the range of available customers and TNs . The description of all destroy operators is provided as follows:

(1) Pickup Point Removal. A pickup point in the solution space, either a TN or a satellite, is selected, and all customers associated with the point are put on the removal list. This operator only operates whenever reaches the maximum number of nonimprovements’ iterations . After the implementation of this operator, is set to 0.

(2) Random Removal. This operator will choose nodes randomly and exclude them from the solution pool for reinserting purposes. If the selected removed node is a TN, then all associated customers with this TN are destroyed.

(3) Worst Removal. A number of q nodes with the highest normalized removal gains, which are the absolute value of the subtraction between the original solution’s cost and the cost of the solution without the selected node, are removed using this operator. This value is then divided by the arcs’ average cost where the respected node belongs for normalization purposes. By doing this, candidates who have an extreme distance from other customers can limit the rate at which they are selected over iterations.

(4) Node Neighborhood Removal. This operator randomly retrieves a node as a seed, and then nodes closest to this node are removed. If a removed node is a TN, then all related customers with the TN are removed.

(5) Random Route Removal. A route in the solution pool is randomly selected and excluded from the pool along with its candidates. It is strictly prohibited for destroyed nodes using this operator to be reinserted back into their most recent satellite.

(6) Route Redistribution. For each satellite, we remove a route containing one or more nodes that are actually located nearer to another satellites . The distances of nodes’ pairs are multiplied with a perturbation value pϵ [0.8, 1.2] for randomization purposes.

5.4.2. Repair Operators

Previously removed customer nodes are stored in the removal list and are reinserted to generate a new solution from the existing ones in this section using the following operators:

(1) Greedy Insertion. Customer nodes from the removal list are retrieved based on the ascending order of their insertion costs at all available locations in the searching space first. Those nodes are then ranked and reinserted at the location with the lowest cost among the currently available routes. A new route is also considered whenever applicable. An additional inserting cost is also accounted for by the city freighter to service unopened TNs that are launched for inserting customers to be served by unemployed ODs. Two other variants of greedy insertion are also proposed: Greedy insertion with noise, where the insertion cost is modified using the noise factor for randomization purposes, and Greedy insertion with a prohibition, where nodes are not allowed to be reinserted into routes that they were recently excluded from.

(2) Regret Insertion. Nodes are inserted based on their regret values, which are the absolute subtraction value between the insertion position of the node’s best cost and its second-best ones among existing routes. Similar to the greedy operator, the insertion costs also consider the scenario where a new route is opened. In addition, the regret value for each removed node holds its value until the current iteration finishes.

(3) Related Insertion. This operator first randomly chooses a removed customer node as a seed and selects the following inserted candidates based on the distance between the seed and the remaining nodes in the removal pool in ascending order.

5.4.3. Local Search

This study implements local search (LS) for the purpose of intensification. Five operators are considered in this procedure: insertion, interroute swap, intraroute swap, 2-opt, and 2-opt. For each local search operator, a solution is accepted when its objective value surpasses the current one. When a better solution is achieved, it is immediately implemented by the procedure, just prior to the termination of the search process, and the operator is restarted. This loop continues until no more improvements are achieved. In this case, the next local search operator using the same mechanism is implemented. Each move is explained as follows:

(1) Insertion. One node is randomly excluded from its current route and then assigned to a different place within the same route that extracted it. If a TN is excluded for wrapping itself into a new position in the routing sequence of the second-level route, then there are no changes to the customers’ sequences served using this TN.

(2) Inter-Route Swap. A pair of nodes is removed from their current route, and their origin position in the route sequence is switched with the other ones within the same route. If a TN is chosen for switching its position with another node, then no changes happen to all customers in the servicing sequence from this TN.

(3) Intra-Route Swap. A pair of routes is chosen, and within themselves, a node is taken out and switched positions in the route sequence with the ones that are extracted from the other route. If a TN is chosen for swapping positions with nodes from other routes, then all customers in the servicing sequence using this TN are also delivered to the new route and are still served by this TN. It must be noted that the swapping method also checks the validity of the respected constraints when swapping nodes; hence, the demands of all TNs are determined, bringing no violations to the whole solving procedure.

(4) 2-Opt. This option selects 2 consecutive pairs of nodes and in a random route through the solution pool, and then each candidate in a pair swaps with the respected candidate on the other pair. The two new pairs and are then formed from the previous ones on the same route. Similar to the interroute swap, customers’ orders that are fulfilled by a selected TN are still handled by this TN.

(5) 2-opt. This option is similar to the 2-opt, but instead of doing the swapping on the same route, a pair of random routes is selected for initiating the swapping process, and at each route, there is only one consecutive pair excluded from the existing route. Just like the intraroute swap, if a TN is chosen for this swapping operator, then its validity on the demand constraints is checked to ensure there is no violation of the route capacity, and all customers whose demands are delivered from this TN are still distributed using it.

5.4.4. First-Echelon Routes’ Optimization

After the repair phase of the second-echelon network, a procedure for building first-echelon trucks’ routes is implemented to complete the solution. The procedure consists of two phases: the route construction phase and the route improvement phase. The first phase constructs first-echelon trucks’ routes following the algorithm proposed by Breunig et al. [42]. The second phase applies the improvement heuristic shown in Algorithm 2 to improve the solution obtained in Phase 1.

Let and be the routes of the first-echelon network in and , respectively. For every iteration of Algorithm 2, a random number r is generated. One of the three local search operators (i.e., insertion, swap, and 2-opt) is then implemented. This procedure terminates when the number of iterations reaches . In this work, is set to 500 based on a trial-and-error experiment. In this procedure, there is no involvement with the routes that cross the TNs; thus, the cases when TNs are selected are not considered.

(1)for do
(2)
(3)if then
(4)  
(5)else if then
(6)  
(7)else
(8)  
(9)if then
(10)  
(11)end for
(12)return
5.5. Our Contributions

Different from the existing 2EVRP, our 2EVRP-TN-DO included the pickup point operator for the removal process, in which the selected nodes can be either TNs or satellites, while Hemmelmayr et al. [24] addressed this as a satellite removal only. Our random and node neighborhood removals also include the retrieval of TNs, which is not mentioned in the work of the scholars mentioned.

In the insertion phase, we also account for the cost of opening new TNs that are served by unemployed ODs in addition to the related insertion operator. This has not been suggested by the studies of Hemmelmayr et al. [24] and Breunig et al. [42]. Instead of implementing the local search procedure on the first level of existing work, we apply it to both first- and second-level route optimizations in our work.

6. Computational Experiments

MINLP is solved using AMPL with the Gurobi solver, and the proposed ALNS is coded in Microsoft Visual Studio C++ 2019. Both of them were run on a computer with an Intel® Core i7-6700 CPU at 3.40 GHz and 8 GB of RAM under Windows 10 Professional.

6.1. Benchmark Instances

The 2EVRP-TN-OD datasets are generated based on the existing 2EVRP instances. There are four sets of benchmark instances. Set 1, originally proposed by Perboli et al. [8], consists of 1 depot, 2 satellites, and 12 customers. Sets 2 and 3 are larger instances, with 1 depot, 2–4 satellites, and 21–50 customers, respectively. A set of available ODs and a set of TNs are added to the 2EVRP instances. We follow Archetti et al. [33] by setting the number of ODs in the system to be equal to the number of customers. For a given instance with locations of customers , the origin and destination of ODs are randomly generated in the lower left-hand corner of the square and upper right-hand corner of the square , respectively. Second, ODs’ capacity is generated under a uniform distribution of . Third, we make sure that every generated OD is able to at least serve one customer; otherwise, another OD is generated to replace the OD who is not able to serve any customers. The parameters of ODs, partly adopted from Archetti et al. [33], are provided as follows:(1)The variable cost of an OD is set to 0.2 times the total travelled distance, and the fixed cost of an OD is set to 5.(2)The maximum distance deviation that is willingly traversed by an OD is 0.5 times the distance between the origin and destination nodes of the OD.

TNs are generated by following these rules. First, the number of TNs in the system is set to 3. This is reasonable since the number of satellites in these instances is 2 or 4. Second, for the location of TNs, we randomly select a position in the lower left-hand corner of the customer zone and the upper right-hand corner of the customer zone and locate a TN in the selected position. After that, we ensure that every TN is not too close to each other and the satellites by defining a minimum distance requirement, γ. Here, γ is set by the following equation (50). In case a newly generated TN violates the distance requirement, another location is generated using the aforementioned mechanism. This procedure repeats until all generated TNs fulfill the minimum distance requirement.

6.2. Parameter Tuning

We follow the parameter tuning procedure for the ALNS heuristic developed by Hemmelmayr et al. [24] and Ropke and Pisinger [44]. Initially, the parameters’ values of the proposed ALNS follow the aforementioned references. By considering a set of candidate values for each parameter, the tuning procedure is conducted by only accepting the value leading to an improvement in terms of the average objective value over all selected testing instances. The aforementioned procedure is performed sequentially over all parameters being tuned. The final selected values for all parameters are presented in Table 2.

6.3. Performance of the Proposed ALNS for Solving 2EVRP Instances

Three sets of 2EVRP instances from Perboli et al. [8] and Hemmelmayr et al. [24] are used to test the effectiveness of the proposed ALNS. We compare the results obtained by ALNS with three state-of-the-art algorithms proposed by Hemmelmayr et al. [24]; Breunig et al. [42]; and Enthoven et al. [14]. Tables 35 present the comparative Table 6 results. In these tables, columns “Best” and “CPU (s)” represent the best value obtained and the average computational time used by each method, respectively.

Based on Tables 35, the proposed ALNS provides results comparable to those obtained from the state-of-the-art algorithms. In particular, ALNS achieves exactly the same best solutions for Sets 2 and 3 instances, while the average gap between the best solutions obtained by our ALNS for Set 5 and BKS is 1.40%. The average gaps to BKS are 0.25% for Set 2, 1.37% for Set 3, and 2.47% for Set 5, respectively.

6.4. Performance of ALNS for Solving 2EVRP-TN-OD Small Instances

Table 7 shows the results obtained by MINLP and the proposed ALNS. All of the instances of Set 1 are solved to optimality by the Gurobi solver, but it takes more than 5 hours on average to solve one small-scale instance. ALNS is run 5 times to solve each instance of Set 1. Based on Table 7, our ALNS can obtain results of equal quality to those produced by Gurobi’s solver. Moreover, both the best solution and average solution values are the same, showing the robustness of the proposed ALNS for solving small-scale instances. The computational time required by ALNS to obtain those results is significantly smaller. To sum up, the proposed ALNS outperforms the Gurobi solver in terms of computational time.

6.5. Performance of ALNS for Solving 2EVRP-TN-OD Larger Instances

Tables 8 and 9 show the results of solving the larger instances; i.e., Sets 2 and 3 of 2EVRP-TN-OD instances. For solving each instance of Sets 2 and 3, we utilize both Gurobi and the proposed ALNS. We set the maximum running time to 3600 seconds for Gurobi. ALNS is run5 times. We provide BKS from solving the related 2EVRP instance for the purpose of analyzing the benefit of considering ODs and TNs.

Based on both Tables 8 and 9, Gurobi can only provide 11 and 10 feasible solutions for Sets 2 and 3, respectively. The results show that ALNS outperforms Gurobi in terms of both solution quality and computational time. While the time limit of Gurobi is 1 hour, the time limit of ALNS is set to 60–300 seconds, depending on the size of a particular instance.

The impacts of considering ODs and TNs are analyzed by comparing the BKS of 2EVRP and the best solution obtained by solving the related 2EVRP-TN-OD instance. Based on Tables 8 and 9, the existence of ODs and TNs on average reduces the total operational costs up to 26.71% and 21.50% for Sets 2 and 3, respectively. The higher cost resulting from 2EVRP occurs due to the longer distances that should be travelled by city freighters in order to serve all customers. In 2EVRP-TN-OD, some customers are more beneficially served by OD.

6.6. Sensitivity Analyses

We further elaborate on the impact of varying several characteristics of ODs on operational costs. We also analyze the impact of considering TNs in the system. The considered characteristics of ODs are described as follows:(1)The variable cost and the fixed cost of utilizing an OD.(2)The number of available ODs, .(3)The delivery flexibility of an OD, .

When the crowd-shipping system is implemented, the fixed and variable costs of an OD surely influence the total operational costs. Figures 3(a) and 3(b) show that changes in both fixed and variable costs lead to similar behavior. When the fixed/variable cost of an OD increases, the operational cost also increases while the number of employed ODs decreases.

Based on the observation in Figure 3, it is better to keep the fixed and variable costs as low as possible. However, from a practical perspective, fixed and variable costs will be one of the concerns when one implements such a system. Although the lower fixed and variable costs of an OD lead to lower operational costs, they also impact the number of available ODs. If the values are too low, then the number of available ODs will likely decrease.

Figure 4 shows the impact of varying the number of available ODs on the total operational costs. The lower the number of available ODs is, the higher the operational cost is. Based on the sensitivity analyses presented in both Figures 3 and 4, anyone who plans to implement the system needs to carefully design the fixed and variable costs of employing ODs so that the costs should be reasonable enough to attract ODs and to gain operational cost savings.

Figure 5 shows the sensitivity analyses of varying the flexibility of ODs. When the flexibility of ODs increases, the operational cost drops while the utilization of ODs increases. Similar behaviors are exhibited by varying the number of available ODs, as shown in Figure 4. However, both the marginal reduction of operational cost and the marginal improvement of the utilization of ODs are lower when the value of flexibility of ODs reaches 0.5 and the number of available ODs equals the number of customers. These phenomena indicate that the company that plans to implement this system needs to carefully design a compensation scheme to attract a reasonable number of ODs who offer a reasonable value of flexibility in order to leverage the crowd-shipping system.

The impact of TNs on operational costs is presented in Table 10. When TNs are introduced to the delivery system, there is an average cost reduction of 1.67%.

7. Conclusion

This research introduces a new variant of 2EVRP called 2EVRP-TN-OD by considering the existence of transshipment nodes (TNs) and occasional drivers (ODs). The available ODs are heterogeneous in terms of capacity. In addition, a set of TNs is introduced to leverage the ODs so that ODs may collect the assigned demands at either satellites or TNs. We developed MINLP and ALNS to deal with the problem. The experiments indicate that MINLP took a significantly large amount of computational time to solve small-scale instances; i.e., 19,181 seconds. The proposed ALNS combines the problem-specific destroy and repair operators with a local search procedure for the purpose of intensification. Our developed ALNS outperforms the performance of MINLP in terms of solution quality over a significantly shorter computational time. In addition, we benchmark our ALNS with the state-of-the-art algorithms for solving the 2EVRP benchmark instances. The results show that our ALNS provides a comparable result to BKS; i.e., 0.0% gap for both Sets 2 and 3 and 1.4% gap for Set 5.

The results show that considering TNs and ODs in a two-echelon distribution system is beneficial in terms of cost savings. By utilizing the developed 2EVRP-TN-OD instances, we compare the obtained results with the BKS of the associated 2EVRP instances. The results show that considering TNs and ODs can result in cost reductions of up to 26.71% and 21.50% for Sets 2 and 3, respectively.

To give a deeper understanding of how ODs affect the operational cost and decisions in a two-echelon distribution system, sensitivity analyses regarding three OD parameters are provided: (1) the cost of utilizing ODs, (2) the number of available ODs, and (3) the flexibility of ODs. As expected, the cost reduction can be further achieved by considering the TNs. The marginal improvements from adopting TNs in our research can be explained by various reasons (e.g., the generated instances for experimental designs); however, the benefit of adopting TNs has validated the correctness of our work compared to existing studies. In addition, other benefits of introducing TNs, as mentioned in Section 2.4, can be considered for future work.

Several interesting extensions can be deliberated due to the limitations of this study, resulting in a range of research opportunities. They include (1) designing various compensation schemes for ODs, (2) heterogeneous occasional drivers, (3) a multiobjective problem to analyze the impact of considering ODs toward both operational costs and environment-related objectives, (4) time windows of customers and ODs, and (5) the dynamic version to approach the realistic case of a system where only partial information is provided at the beginning of a planning period.

Data Availability

The detailed data used to support the findings of this study are available from the corresponding author upon request.

Conflicts of Interest

The authors declare that they have no conflicts of interest.

Acknowledgments

This work was partially supported by the Ministry of Science and Technology of the Republic of China (Taiwan) (Grant MOST 108-2221-E-011-051-MY3) and the Center for Cyber-Physical System Innovation from the Featured Areas Research Center Program within the framework of the Higher Education Sprout Project by the Ministry of Education (MOE) in Taiwan.