Next Article in Journal
Nonsingular Terminal Sliding Mode Control of PMSM Based on Improved Exponential Reaching Law
Previous Article in Journal
Bandwidth-Aware Rescheduling Mechanism in SDN-Based Data Center Networks
Previous Article in Special Issue
Road-Based Multi-Metric Forwarder Evaluation for Multipath Video Streaming in Urban Vehicular Communication
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Simplified Swarm Optimization for the Heterogeneous Fleet Vehicle Routing Problem with Time-Varying Continuous Speed Function

Integration and Collaboration Laboratory, Department of Industrial Engineering and Engineering Management, National Tsing Hua University, Hsinchu 30013, Taiwan
*
Author to whom correspondence should be addressed.
Submission received: 16 June 2021 / Revised: 19 July 2021 / Accepted: 21 July 2021 / Published: 24 July 2021
(This article belongs to the Special Issue Vehicular Networks and Communications, Volume II)

Abstract

:
Transportation planning has been established as a key topic in the literature and practices of social production, especially in urban contexts. To consider traffic environment factors, more and more researchers are taking time-varying factors into account when scheduling their logistic activities. The time-dependent vehicle routing problem (TDVRP) is an extension of the classical Vehicle Routing Problem with Time Windows (VRPTW) by determining a set of optimal routes serving a set of customers within specific time windows. However, few of them use the continuous speed function to express the time-varying. In practice, many vehicle routing problems are addressed by a fleet of heterogeneous vehicles with different capacities and travel costs including fix costs and variable costs. In this study, a Heterogeneous Fleet Vehicle Routing Problem (HFPRP) Time-Varying Continuous Speed Function has been proposed. The objective is to minimize distribution costs, which contained fixed costs of acquiring and variable fuel costs. To address this problem, our research developed a mathematical model and proposed a Simplified Swarm Optimization (SSO) heuristic for HFVRP with Time-Varying Continuous Speed Function.

1. Introduction

Throughout recent decades, transportation planning has been established as a key topic in the literature and practices of social production. Especially in urban contexts, due to industrial strategies, urbanization, city design and unforeseen accidents, weather conditions, traffic congestion, logisticians and citizens face many challenges related to delivery delays [1]. The traffic environment is dynamically changing, which increases the complexity of the problem, the most obvious one being time-varying travel time. Travel velocity is significantly reduced during peak hours. Therefore, to achieve socio-economic and environmental sustainability in city transportation, a major intervention on time-varying congestion is needed.
Problems related to the distribution of goods between the warehouse and the final customer are generally considered as the vehicle routing problem (VRP). The vehicle routing problem was first raised by Dantzig and Ramser [2]. Clarke and Wright [3] added more practical restrictions for the problems, in which the delivery of goods to each customer should have occurred in the bound. Such a problem model is called the Vehicle Routing Problem with Time Windows (VRPTW). The actual distribution process is much more complex, such as travel speeds on the road varying substantially during peak and off-peak hours in the urban areas. Consequently, Malandraki and Daskin [4] first took the existence of diversified conditions of traffic at different times of the day. They discussed the Time-Dependent Vehicle Routing Problem (TDVRP) where the travel time was based on “a step function distribution”. Unfortunately, this model does not satisfy the First-In-First-Out (FIFO) property which ensures that if a vehicle leaves a node i for a node j at a given time, any other vehicle leaving a node i for a node j at an earlier time will arrive earlier at node j. Without the “FIFO” property, that is, a vehicle can depart later than another vehicle and arrive earlier at its destination, even if the same path is followed by the two vehicles. This situation is contrary to reality, but it happens in the assumptions of the model, for example, if one vehicle waits just a little before departing to catch a faster travel time associated with the next interval.
Previous studies tend to use different travel link times of node i and node j to guarantee the FIFO property. Ichoua et al. [5] presented a model based on time-dependent travel speeds that they proved to be better at modeling time-dependency, and the FIFO assumption is not necessarily satisfied either. The idea of time-varying speed is adopted in our problem as well. At the same time, the time-varying continuous speed model is closer to the actual distribution situation, the speed of vehicles changes smoothly, rather than a step-change at a certain moment [6,7].
Apart from the Time-Dependent VRPs, another variant of the VRPs is named the Heterogeneous Fleet Vehicle Routing Problem (HFVRP), where a heterogeneous fleet of vehicles is used for the distribution activities; see Baldacci et al. [8]. The HFVRP with a limited number of vehicles proposed by Taillard [9] involves optimizing the vehicle routes with the available fixed fleet. The idea is not only to consider the routing of the vehicles, but also the fleet composition. Relating to the type of costs (fixed and variable) to be minimized, two different objective functions have been considered.
In the case of just-in-time (JIT) production and urban logistics distribution, time-varying speed, time windows, and heterogeneous fleet settings naturally occur and are therefore more in line with the actual distribution situation. Logistics need to find a balance between costs and quality of service. This route construction problem has been encountered by the authors in several contexts: e.g., cold chain logistics [10], fresh logistics [11], milk run [12], automated guided vehicle (AGV) systems [13], freight distribution [14], JIT production [15], B2C e-commerce [16], inter-vehicle communication [17], vaccine distribution [18], and so on. Nonetheless, there are few cases involving optimization of vehicle type selection and route distribution under the minimizing of total cost based on a continuous time-varying speed model which are closer to the actual distribution situation.
Solving VRP is computationally expensive as it is categorized as NP-Hard; see Lenstra and Kan [19]. Metaheuristics approaches are necessary to solve this problem within considerable computational time. Compared to the classical heuristic, metaheuristics carry out a more thorough search of the solution space. Thus, they are notably capable of consistently producing high-quality solutions, despite the greater computational time than early heuristics; see Cordeau et al. [20]. They have been successfully applied for different combinatorial optimization problems. However, in the scientific literature, almost all existing memetic algorithms for solving different VRP variants follow the framework of genetic algorithms (GA) [21,22,23] or the Particle Swarm Optimization algorithm (PSO) [24,25] and very rarely, the framework of Simplified Swarm Optimization algorithms.
As one metaheuristic methodology, the Simplified Swarm Optimization (SSO) is often used to address both discrete and continuous optimization problems (Yeh [26]; Yeh [27]; Yeh and Chuang [28]). SSO has some attractive advantages such as its ability to deal with non-linear models, chaotic and noisy data, and many constraints.
The rest of this paper is organized as follows. In Section 2, the literature review is presented, and the problem statement is described in Section 3. Simplified Swarm Optimization is presented in Section 4. Details of the computational result and analysis about the problem are presented in Section 5. Section 6 draws conclusions and possible future research.

2. Literature Review

Vehicle Routing Problems (VRP) are essential elements of distribution systems for delivering goods and services. The effective management of these vehicles could improve customers’ experience of delivery and minimize the total routing costs. Due to the wide application of logistics distribution scenarios, there is more and more research on VRPs, so there are a lot of different objective types and limit types of VRPs.
Hence, we have briefly reviewed two different types of VRPs: (1) those that model Time-Dependent travel time VRP with a speed model, (2) and the Heterogeneous Fleet VRP is introduced. Time Dependent VRP (TDVRP) with Time-Varying Speeds and Heterogeneous Fixed Fleet VRP (HFFVRP) in Section 2.1 and Section 2.2, respectively.

2.1. Time Dependent Vehicle Routing Problem with Time-Varying Speeds

As the Time Dependent VRP (TDVRP) was proposed, since its assumption was more in line with the realistic world, the TDVRP has attracted the attention of many researchers. However, literature on the speed model remains scarce. The pioneering work has been done by Malandraki and Daskin [4] and Malandraki and Dial [29]. In these papers, mixed-integer linear programs (MILP) and several heuristics to solve the problem are proposed. However, these models may potentially violate the First-In-First-Out (FIFO) property, which implies that for every arc, a later departure time results in a later (or equal) arrival time.
As opposed to Malandraki and Daskin [4], Ichoua, Gendreau, and Potvin [5] proposed an alternative approach model; a stepwise speed function was proposed, resulting in a piecewise linear travel time function, like the one illustrated in Figure 1a, where the day is divided into several time periods and a speed is associated with each period. For a given arc, a stepwise speed function can easily be translated into a corresponding piecewise linear travel time function, as shown in Figure 1b.
This new travel time model satisfies the FIFO principle since a vehicle can only arrive later at the destination if it departs later. The time-dependent speed model is commonly adopted in later publications on VRP variants with time-dependent travel times
Çimen and Soysal [30] addressed a TDVRP with stochastic vehicle speeds and environmental concerns and formulated the problem as a Markovian Decision Process. Soysal and Çimen [31] also proposed a GTDVRP that accounts for transportation emissions, and the problem has been formulated and solved using the Dynamic Programming approach. Sun et al. [32] introduced a time-dependent capacitated profitable tour problem with the object to maximize the profit and developed a tailored labeling algorithm to find the optimal tour. Wang, Assogba, Fan, Xu, Liu, and Wang [14] presented a bi-objective model which focused on freight distribution to minimize total carbon emission and operating cost. Adriano, Montez, Novaes, and Wangham [12] also proposed a dynamic model to simulate the milk-run tours with time windows, using the auxiliary vehicle to deal with traffic jams. Liu et al. [33] proposed TDVRPTW to minimize the sum of the fixed costs of the vehicle used, as well as the costs of drivers, fuel consumption, and carbon emissions. Pan et al. [34] studied the duration-minimizing time-dependent vehicle routing problem with time windows (DM-TDVRPTW), where time-dependent travel times represent different levels of road congestion throughout the day. Pan et al. [35] also proposed a multi-trip time-dependent vehicle routing problem with time windows (MT-TDVRPTW) and formulated the time-dependent ready time function and duration function for any segment of consecutive nodes as piecewise linear functions. Gmira et al. [36] proposed a time-dependent vehicle routing problem with time windows in which travel speeds are associated with road segments in the road network.
Few papers use the time-varying speed of continuous function. Xiao and Konak [37] defined GVRSP which considers heterogeneous vehicles and time-varying traffic congestion where the speed of smooth period is variable. Huang et al. [38] proposed the time-varying speed of the linear continuous function model, but without detailed specification, and their research only studied two types of vehicles with a fixed cost. Xu, Elomri, Pokharel, and Mutlu [21] extended the period-based speed pattern to be a time-varying speed pattern. The approximate corresponding function denoting the relationship between the departure time t and the vehicle speed v ( t ) can be characterized by the trigonometric function. Fan, Zhang, Tian, Lv, and Fan [23] continued the assumption in which speed is a trigonometric function of the departure time and applied it in time-dependent multi-depot GVRP. We should still express the time-varying speed as a linear continuous function, without loss of generality, and amplify the speed transformation time to illustrate the time-varying speed of continuous function.

2.2. Heterogeneous Fixed Fleet Vehicle Routing Problem

In practice, many vehicle routing problems are addressed by a non-homogeneous vehicle fleet where vehicles of different capacities are used. Heterogeneous fleets VRPs (HFVRPs) are consider a limited or an unlimited fleet of capacitated vehicles, with a problem consisting of determining the fleet composition and vehicle routes [39].
There are two major HVRPs: the Heterogeneous Fixed Fleet Vehicle Routing Problem (HFFVRP) and the Fleet Size and Mix Vehicle Routing Problem (FSMVRP). HFFVRP was proposed by [9] in which the fleet is predetermined. FSMVRP considers an infinite availability of vehicles of different type, proposed by [40]. In HFFVRP, the number of vehicles is a constraint but in the presence of a large number of vehicles, not all of them may be used. In FSMVRP, part of the decision is to determine the composition of the fleet. FSMVRP can be treated as a particular HFFVRP [9].
Since HFFVRP models can better simulate the actual distribution situation and achieve a better balance of economic and environmental sustainability simultaneously (Micheli and Mantella [41]), HFFVRP has been extensively studied. Afshar-Nadjafi and Afshar-Nadjafi [42] introduced a time-dependent multi-depot vehicle routing problem to minimize total cost and formulated the problem as mixed-integer programming. Vincent et al. [43] developed a Heterogeneous Fleet Pollution Routing Problem (HFPRP) to minimize the total costs of fuel which contain vehicle variable cost and greenhouse gas emissions. Wang et al. [44] proposed a heterogeneous fleet to provide services for a very large transportation network, which also determined the number of vehicles of different types that facilitated on each service link, to better reflect real applications. The proposed methodology is applied to a real-world network, which shows the necessity of considering a heterogeneous fleet. De and Giri [45] studied a closed-loop supply chain with a heterogeneous fleet to minimize carbon emissions. Soman and Patil [46] introduced a heterogeneous fleet vehicle routing problem with release and due dates in the presence of consolidation of customer orders and limited warehousing capacity. Cao, Liao, and Huang [22] addressed a vehicle routing problem considering an electric heterogeneous fleet for a two-echelon recycling network, recycling stations, and recycling centers: with the goal of minimizing the total cost, a recycling heterogeneous fleet electric vehicle routing model with time windows.
The case we proposed is associated with the Heterogeneous Fixed Fleet Vehicle Routing Problem, since the size of the fleet is known for each type of the vehicle, but in our case, we determine the composition of the fleet and the route of each vehicle to serve all customers as in the FSMVRP. Recent literature review and model comparison can be seen in Table 1.

3. Problem Statement

3.1. Time Dependent Vehicle Routing Problem with Time-Varying Speeds of Continuous Function

The classic Time Dependent Vehicle Routing Problem with Time-Varying Speeds can be described as follow. Let G = ( V ,   A ) be a graph, where V = { v 0 , v 1 ,   v 2 ,   ,   v N } , where { v 1 ,   v 2 ,   ,   v N } is the nodes set standing for customers needing to be served in a time window t w i = [ b i ,   e i ] , and v 0 is the depot. Each customer is characterized by a demand D i and service time s i , which is the time to complete the delivery. A = { ( v i ,   v j ) :   v i ,   v j V } is the arcs set (subscript means sequence), link node i, and node j with its distance dij. The time horizon is divided into b time intervals T = { T 1 ,   T 2 ,   ,   T b } . The travel speed for an arc remains constant within each time zone T b but changes at the end of the time zones and without loss of generality, and the time zones are set to be the same for all the arcs. The travel time on a given arc ( v i ,   v j ) is then derived based on its distance d i , j and its speed profile.
Even though many works in TDVRP have been carried out with time-varying speeds, the investigation carried out by the Texas A&M Transportation Institute Jha and Eisele [7] mentioned that the traveling speed increases or decreases smoothly, rather than treating it as a stepwise function. The drawbacks of this model are very obvious and, as shown in the Figure 2, will lead to breakpoints; although it can be said that the change in speed takes much less time than delivery at a constant speed. Hence, we present a time-varying speed model of a continuous function, as shown in the Figure 3a.
Proposition 1.
If the speed profile for an arc ( v i ,   v j ) is a stepwise linear continuous function, as show in Figure 3a, then the time-dependent travel distance function can be obtained by integrating the speed function, and the derived travel distance function is a continuous function, as depicted in Figure 3b.
Proposition 2.
Since travel distance corresponds to travel time one-to-one, then the time-dependent travel time function is the inverse function of travel distance. Using this one-to-one correspondence relationship, when the departure time and travel distance are known, the travel time can be calculated.

3.2. Heterogeneous Fixed Fleet Vehicle Routing Problem

Heterogeneous fleets VRPs (HVRPs) are considered a limited or unlimited fleet of capacitated vehicles, with problems, which consist of determining the fleet composition and vehicle routes (Koç, Bektaş, Jabali, and Laporte [39]). Let M m be the set of vehicles with m types, each type vehicle max available number be v e h m , and subscript m be the type of vehicle (which will be used in the following text). The maximum load capacity of m type vehicle is c a p m , the time-varying speed function of m type vehicle is fun speed m ( t d e p , i j ) , where t d e p , i is the departure time from node i to node j, the time-varying travel time function is fun time m ( t d e p , i j , d i j ) , and d i j is the distance linking node i and node j, as mentioned before. Every type of car has a fixed cost f c m , which is referred to as the cost of buying or renting, and a variable cost v c m , used to express the cost per kilometer per kilogram of the weight of goods.
Assumptions
  • The depot has a demand equal to zero
  • Each customer location is serviced from only one vehicle
  • Each customer’s delivery must arrive within the time window
  • The number of each type of vehicle in routing cannot exceed each type of vehicle; the maximum available number is v e h m
  • Each vehicle shall not exceed its maximum load capacity c a p m
  • The total delivery time of each vehicle shall not exceed 9 h
Notations used in problem statement are defined as follows.
Detail model sets, indices, and parameters are shown in Table 2.

3.3. Fitness Function and Mathematical Model

The traditional logistics model is concerned with minimizing total cost in a network. This is where the concept of Vehicle Routing Problem (VRP) is best applied. We follow this concept and add the fixed cost f c m of each type of vehicle into the total cost to minimize the total number of vehicles. We also include the variable cost v c m of delivery of each type of vehicle to optimize the vehicle scheduling. Other constraints appear in the target calculation in the form of penalty functions to enforce the constraints of the limit. The objective of minimizing the total cost is as follows:
Minimize   m = 1 M i = 0 N j = 0 N X i j , m f c m + m = 1 M i = 0 N j = 0 N d i j D m i j , m v c m
Subject to Routing
i = 1 N X i 0 , m = 1     m   M m
m = 1 M i = 1 N j = 1 N X i j , m = 1     ( i , j ) A     m   M m
m = 1 M i = 1 N X i p , m = m = 1 M i = 1 N X p i , m       p   V
Demand and Capacities
i = 1 N j = 1 N X i j , m D j = D m i j , m     ( i , j ) A     m   M m
i = 1 N D m 0 i , m c a p m     m   M m
m = 1 M X i j , m v e h m     m   M m
Time Windows
t a r r , j = t d e p , i j + t t r a , i j     i , j V     ( i , j ) A
t a r r , j   [ b j ,   e j ]
t d e p , i j = t a r r , i + s i     i , j V
t a r r , 0 < 9   m   M m
The objective function (1) is total cost including fixed cost and variable cost. Constraint (2) defines that each vehicle should back to the Depot that subscript stands for 0. Constraint (3) ensures that each node can only be visited once in a route. Constraint (4) states that if a vehicle arrives at a node, it must leave it, and by this way, the route continuity is ensured. Constraints (10) and (11) state the restrictions for the amount of demand and capacities. Constraint (7) defines the maximum number of available vehicles v e h m . Constraints (8) and (9) are the time window restrictions. Constraint (11) ensures that each vehicle cannot delivery over 9 h.

4. Simplified Swarm Optimization

As a generalization of VRP, the TDVRP and HFFVRP are also NP-hard and require intentional investigation for problem modeling and algorithmic design.

4.1. Simplified Swarm Optimization

SSO is one of the simplest machine-learning methods (Wang et al. [54,55,56] Yeh, et al. [57]) in terms of its update mechanism. It was first proposed by Yeh [27], and has been tested to be a very useful and efficient algorithm for optimization problems, including network reliability (Yeh [58] Yeh, et al. [59]), deep learning training (Yeh [60] Yeh, Lin, Liang and Lai [57]), disassembly sequencing problems (Yeh [61] Yeh [62]), energy problems (Lin et al. [63]), and so on. Owing to its simplicity and efficiency, SSO is used here to find the best values in vehicle routing of the proposed HFVRP with Time-Varying Continuous Speed Function.
The basic idea of SSO is that each variable, such as the jth variable in the ith solution xi,j, needs to be updated based on the following stepwise function (Yeh [55,62]):
x i , j = { g j p i , j if   ρ [ 0 , 1 ]   [ 0 ,   C g ) if   ρ [ 0 , 1 ]   [ C g ,   C p ) x i , j x if   ρ [ 0 , 1 ]   [ C p ,   C w ) if   ρ [ 0 , 1 ]   [ C w ,   1 )
where the value ρ[0,1] ∈ [0,1] is generated randomly, the parameters Cg, CpCg, CwCp, 1 − Cw are all in [0,1] and are the probabilities of the current variable that are copied and pasted from the best of all solutions, the best ith solution, the current solution, and a random generated feasible value, respectively.
There are different variants of the traditional SSO that are customized to different problems from the no free lunch theorem; for example, the four items in Equation (11) are also reduced to three items to increase the efficiency; parameters Cg, Cp, and Cw are all self-adapted; special values or equations are implemented to replace gj, pi,j, xi,j, and x; or only a certain number of variables is selected to be updated, etc. However, the SSO update mechanism is always based on the stepwise function.

4.2. Example for Code and Decode

To explain how the model works, a small instance from Vincent, Redi, Jewpanya, Lathifah, Maghfiroh, and Masruroh [43] was used for testing with 1 depot, 5 customers, and 3 types of vehicles. Table 1 shows the part of parameters for each vehicle from Vincent, Redi, Jewpanya, Lathifah, Maghfiroh, and Masruroh [43], since our research focus on the total cost which included fixed cost and variable cost, instead of the pollution cost in Vincent, Redi, Jewpanya, Lathifah, Maghfiroh, and Masruroh [43] study, some of the parameter settings have been omitted which can be known in detail in the Vincent, Redi, Jewpanya, Lathifah, Maghfiroh, and Masruroh [43] paper. Table 3 and Table 4 present the corresponding values for the distance matrix (in meters), demand, time window, and service time.
The route result given by the Vincent, Redi, et al. study is shown as follow
Route is 0-5-4-3-0, total distance is 95,500, vehicle type is type 2; Route II is 0-1-0, total distance is 81,810, vehicle type is type 1; Route III is 0-2-0, total distance is 50,690, vehicle type is type 1. Total distance of Route I, Route II, and Route III is 228,000, and total variable cost is 27.575
If code, this route result using SSO, first, should give each vehicle type the maximum available number v e h m . Assume that each type of vehicle can complete the distribution task separately; since the total demand of customers is 3607, which requires v e h 1 = 4 ,   v e h 2 = 2 ,   v e h 3 = 1 . According to the HFFVRP problem mentioned above, now, we need to decide the routing problem of 7 cars for 3 types of vehicles. And the representation using SSO is shown in Table 5.
The integer part of each number stands for the vehicle that will service, the same integer parts represent the same vehicle for serving the customers, and the order depends on value. For example, V 3 ,   V 4 ,   V 5 have the same integer parts, which means they are all delivered by vehicle 5 belong to type 2. The route is dependent on the value, since 5.1 < 5.2 < 5.3 , so the route of vehicle 5 is 0-5-4-3-0.
After an iterative update of SSO, the final solution is shown in the Table 6.
The route is 0-2-5-1-4-3-0, service is by vehicle type 3, and the total distance is 146,680, which is much smaller than Vincent and Redi’s result. More importantly, the variable cost of Vincent and Redi’s model does not reflect the distribution cost caused by the load of the delivered goods, which is inconsistent with the actual distribution process
In practice, logistics companies will buy or rent vehicles with large volume ratings because the average variable cost per kilogram and per meter is lower due to the scale effect. For example, the average demand is 721.4, the average distance is 24,446.7 (take the best solution as an example), the variable cost will be a thousand, so we present a new parameters setting, as shown in Table 7, which will be used in the subsequent test indices, and new optimum route results as Table 8.
New optimum route is shown as follow
Route I 0-5-0, delivery by vehicle type 1; Route II 0-2-0, delivery by vehicle type 2; Route III 0-4-0, delivery by vehicle type; Route IV 0-3-1-0, delivery by vehicle type 3.

4.3. SSO Algorithm Pseudo Code

In order to increase the speed of searching for the best solution, the part of inheriting the solution from the previous generation is cancelled, and the update mechanism is changed to
x i , j = { g j if     ρ [ 0 , 1 ]   [ 0 ,   C g ) p i , j if     ρ [ 0 , 1 ]   [ C g ,   C p ) x otherwise
STEP 0. Initialize parameters; let t = 1 , randomly initial solution S 1 .
    Each variable for S t is s n m t [ 1 ,   m k ] , there are in total m k vehicles, subscript n stands for n customer nodes, subscript m stands for m particle size, d i stands for customer i needs, [ b i ,   e i ] stands for customer i time window.
STEP 1. Let m = 1 , first row of solution matrix.
   STEP 1.1 Let v = vehicle   order = 1
   STEP 1.2 Find v e h v = S n m t [ v , v + 1 )
      STEP 1.3.1 Rank v e h v get X i j 1 , then read the distance d i j link node i and node j, add the v e h v vehicle fix cost;
      STEP 1.3.2 calculate arrive time t a r r , i for each node, and departure time t d e p , i j = t a r r , i + s i check whether the arrival time is in the time window.
      STEP 1.3.3 calculate variable cost for each node,
      STEP 1.3.4 check total weight not over c a p m
   STEP 1.4 Calculate o b j e c t v for vehicle v e h v
o b j e c t v = fix   cos t + variable   cos t
   STEP 1.5
      if v e h v < m k
          v e h v = v e h v + 1 , go back to STEP 1.2
      Otherwise
         Calculate o b j e c t m t = o b j e c t v
            If P b e s t m t > o b j e c t m t
             P b e s t m t = o b j e c t m t ,     P b e s t S m t = S m t Otherwise
P b e s t m t = P b e s t m t ,     P b e s t S m t = P b e s t S m t STEP 2.
   if m < popsize
       m = m + 1 , go back to STEP 1.1
   Otherwise
      If G b e s t t > m i n ( P b e s t m t )
       G b e s t t = m i n ( P b e s t m t ) ,     G b e s t S t = m i n ( P b e s t S m t ) Otherwise
G b e s t t = G b e s t t ,     G b e s t S t = G b e s t S t STEP 3.
   if t < iteration and CPU time is not met, randomly ρ [ n o d e ,   p o p s i z e ]   and   x
      switch ( ρ n m )
            Case1 ρ n m [ 0 , C w = c w )
             s n m t + 1 = G b e s t S t Case2 ρ n m [ C w , C p = C w + c p )
             s n m t + 1 = P b e s t m t Case3 ρ n m [ C p , 1 ]
       s n m t + 1 = x t = t + 1
      go back to STEP1
   Otherwise
      Halt

5. Computational Experiments

In this section, the experimental results are reported. First, the details for the results of the case study are presented. Next, the current solution obtained by the GA and PSO is used to compare with the results obtained by both the mathematical model and the algorithm. The benchmark instance is based on the Pollution Routing Problem dataset. The datasets are taken from http://www.apollo.management.soton.ac.uk/prplib.htm, accessed on 1 June 2021 (operating environment: Intel(R) Core(TM) i-74770K [email protected] GHz 3.50 GHz, memory 16.0 GB).
Vehicle setting as mentioned before, v c m ; unit change to ( £ / kg · km ) as shown in Table 7.
Vehicle type 1 belongs to “slow vehicle, travel speed type 1”; vehicle type 2, 3 belong to “quick vehicle, travel speed type 2”; the time-varying continuous travel speed function and time-varying travel time function are as in Figure 4, Figure 5 and Figure 6.
Take UK10_01, for example, to illustrate the calculation; the units are adjusted to kilometers and hours. After the adjustment, the service time can be ignored and is not considered in this study. The parameters after adjusted as show in the Table 9. The result comparison is shown is Table 10.
Parameter setting of GA algorithm, the crossover rate and mutation rate are 0.6 and 0.4
Parameter setting of PSO algorithm, w = 0.5 ,   C 1 = C 2 = 2
Parameter setting of SSO algorithm, C g = 0.5 ,   C p = C w = 0.75 ,
More detailed information can be found in Appendix A.

6. Conclusions

In urban areas, traffic conditions show a discrepancy throughout the day and the travel time between two locations depends on the time of the day. Even though there are many discussions about the time-dependent model, few adopted the time-varying speed model which can better reflect different road time conditions and naturally satisfy the FIFO property. Thus, we present a novel model using the Time-Varying Continuous Speed Function to explain the time-varying traffic condition effect on delivery.
Moreover, in real conditions, a logistics company can choose a different vehicle to deliver the goods to minimize the total cost including fixed cost and variable cost. In our research, we proposed three types of vehicles with different capacities and costs. By comparing with [43], it is proved that our model can better reflect the actual distribution process and optimize vehicle selection and vehicle routing in the process of minimizing the total cost.
Owing to the complexity of the problem, we use SSO to address the proposed problem and use a Pollution Routing Problem dataset to validate it and compare the result with GA and PSO, which have been widely used in solving VRP problems. The results obtained from the analysis show that the SSO outperforms the original GA and PSO with respect to the total cost and runtime. We acknowledge some limitations in the current study, but these limitations also provide opportunities for further research: for example, applying the SSO to solve larger-scale problems. For the problem of the wide interval time window, path planning is not obviously constrained by the time window, and service time has little impact on distribution planning. Therefore, the problem of a narrow time window can be considered in the future.

Author Contributions

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

Funding

This research received no external funding.

Acknowledgments

We wish to thank the anonymous editor and the referees for their constructive comments and recommendations, which significantly improved this paper.

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A

Table A1. Uk10_02.
Table A1. Uk10_02.
D V 1 V 2 V 3 V 4 V 5 V 6 V 7 V 8 V 9 V 10 Dem b i e i
D083803286795757448661009
V 1 8202588135987479796294031.457.16
V 2 802409011331982880111374110.736.12
V 3 32889001178248757477645960.756.29
V 4 86135112116013914091441691255820.246.1
V 5 7893282139079499887232120.265.73
V 6 58879848140790959839653300.966.28
V 7 57472875914994055113386870.455.91
V 8 43977873449897550126832100.896.55
V 9 87961117716986391131270783300.886.19
V 10 59303862124226339837606970.846.51
Table A2. Uk10_03.
Table A2. Uk10_03.
D V 1 V 2 V 3 V 4 V 5 V 6 V 7 V 8 V 9 V 10 Dem b i e i
D093534834638099511631009
V 1 930465510610613991401091241870.966.47
V 2 53460337392114479867848060.336.12
V 3 4854330536286599663776721.166.62
V 4 341067353038501106740414651.016.42
V 5 6310692613803411410376776281.166.94
V 6 80139113865034014311387867351.16.55
V 7 999475911011414301441131292071.236.7
V 8 51140989667103113145035298240.35.9
V 9 161086763407687113350183480.976.19
V 10 311248377427787130291906720.235.79
Table A3. Uk10_04.
Table A3. Uk10_04.
D V 1 V 2 V 3 V 4 V 5 V 6 V 7 V 8 V 9 V 10 Dem b i e i
D048513495593271149759009
V 1 4809114120711695381191016911.496.92
V 2 5191078137517711364150246920.676.48
V 3 34147801066538125106881900.856.04
V 4 9511913810601501032584301366130.656.28
V 5 5871516415206612766152725280.285.62
V 6 32167731046607822103873751.36.56
V 7 7194113812512478059351117181.156.59
V 8 1438642584662259085732031.346.46
V 9 9711814910530151102358501514140.866.35
V 10 59100258813673861117315001680.956.31
Table A4. Uk10_05.
Table A4. Uk10_05.
D V 1 V 2 V 3 V 4 V 5 V 6 V 7 V 8 V 9 V 10 Dem b i e i
D050243449862428527393009
V 1 5103619331153932451151241690.565.91
V 2 243602231836204884925080.926.22
V 3 351922030102271333991127021.096.55
V 4 4933313001053536611111164060.666.17
V 5 861178410310608010112859122690.395.63
V 6 254062736790255280882791.026.62
V 7 283220133510025031961096591.366.76
V 8 5145483360128523101231372150.195.62
V 9 7311484991115880961230665890.716.19
V 10 941269311211713891091376605411.326.97
Table A5. Uk10_06.
Table A5. Uk10_06.
D V 1 V 2 V 3 V 4 V 5 V 6 V 7 V 8 V 9 V 10 Dem b i e i
D076538435766331806374009
V 1 770952655141225092781485750.376.12
V 2 5394011342111917612832976751.136.57
V 3 84261130731422253721011531941.336.92
V 4 35554373010852419735994380.636.05
V 5 7614111114310801229294131391471.096.26
V 6 632591265112303373791306510.826.51
V 7 31507653419133058759771216.77
V 8 8092127729794705801301105330.936.46
V 9 64773210134131797513001192980.76.07
V 10 741499715499401329711111801250.415.95
Table A6. Uk10_07.
Table A6. Uk10_07.
D V 1 V 2 V 3 V 4 V 5 V 6 V 7 V 8 V 9 V 10 Dem b i e i
D0942965718799100427318009
V 1 94076150150109446946826971.096.54
V 2 2976074986981924969348160.25.89
V 3 6514973094144155164105137811100.586.16
V 4 711509893014215913582112724130.66.15
V 5 871069144142018436138753430.66.12
V 6 100981155159190447856911461.146.48
V 7 1004492163135434406128833350.516.02
V 8 41694910482617861035243660.816.57
V 9 734669137112385528350571460.836.07
V 10 1883348172759084245706680.846.73
Table A7. Uk10_08.
Table A7. Uk10_08.
D V 1 V 2 V 3 V 4 V 5 V 6 V 7 V 8 V 9 V 10 Dem b i e i
D054977188486848797338009
V 1 5401391091399894399775546290.526.01
V 2 961390134435058138163921331140.625.69
V 3 711101350109871357639143554751.397.15
V 4 8813943109042761321371091183700.726.35
V 5 48985188410519411675835960.56.3
V 6 69945813677520109146361066790.386.15
V 7 48391397513294108063102215121.266.6
V 8 799716439137114146630150457810.345.9
V 9 737592143109753610214901053921.386.82
V 10 38551335511882105214510507710.726.39
Table A8. Uk10_09.
Table A8. Uk10_09.
D V 1 V 2 V 3 V 4 V 5 V 6 V 7 V 8 V 9 V 10 Dem b i e i
D091453697897263749575009
V 1 910111871453612111732491444861.326.78
V 2 451110244191381910494316820.596.2
V 3 3587240637039328675615331.467.1
V 4 97145416301132649147111105561.376.78
V 5 893690691120898558151112570.566.01
V 6 731223739268902412393232270.756.15
V 7 631171933498524011788471281.086.61
V 8 743210486147581231170721463650.275.56
V 9 954994751111492887201151261.497.08
V 10 75144316110112234714511504040.926.16
Table A9. Uk10_10.
Table A9. Uk10_10.
D V 1 V 2 V 3 V 4 V 5 V 6 V 7 V 8 V 9 V 10 Dem b i e i
D0576538100825993388659009
V 1 5709801221075439451261014311.236.95
V 2 6690881301155733541351102361.386.86
V 3 37798808462751165449224260.275.73
V 4 10012213084022791417761895501.166.76
V 5 8210711562230701296442666870.726.14
V 6 59545775797006022100965780.196.06
V 7 943933117138127600701551384031.486.86
V 8 3845535477632270083744090.435.71
V 9 86127136496242100159830415971.437.15
V 10 5910110921896795138744104411.076.73
Table A10. Detail result of GA.
Table A10. Detail result of GA.
DatasetObjectRuntimeDatasetObjectRuntimeDatasetObjectRuntime
UK10_14579.428.02UK10_53800.17528.66UK10_94404.3731.04
4578.2129.213626.5930.174694.2730.46
4857.7326.863916.3327.384167.2229.78
4650.55530.033636.26529.524125.07528.61
5056.0529.673952.07529.863996.04530.7
UK10_24990.56529.78UK10_64277.831.49UK10_105374.83527.83
4423.50530.364618.61529.935444.7230.14
4848.1928.714776.0327.875243.82529.49
4918.93528.974426.1629.125399.7529.27
4930.82530.554233.6228.895596.51528.14
UK10_35283.62529.06UK10_73665.45528.96
5532.1227.723859.0230.25
5106.66527.833727.0628.77
5178.21531.243979.49529.8
4676.630.53666.0829.37
UK10_44438.1831.17UK10_85821.5830.58
4925.14529.445944.33529.17
4617.70530.745556.98529.87
4536.8130.385550.5229.34
4576.97530.165803.0230.17
Table A11. Detail result of PSO.
Table A11. Detail result of PSO.
DatasetObjectRuntimeDatasetObjectRuntimeDatasetObjectRuntime
UK10_15299.5520.34UK10_53942.5618.93UK10_94372.2118.34
4991.55520.924660.10519.124416.7118.67
5005.519.683983.10520.314248.50519.03
5130.77520.553864.29519.564342.81520.29
4999.41521.063919.82519.424365.02519.74
UK10_25045.5521.65UK10_64537.51518.97UK10_105539.80520.31
5104.1920.924452.6919.775476.84519.72
4849.9619.684477.27520.055426.9519.86
4748.2320.554464.9219.945621.5218.81
5049.00521.064562.2720.355636.4319.83
UK10_35412.6222.27UK10_73978.8420.33
5416.27519.763863.2618.67
5451.8421.664011.720.1
5221.1720.464107.48519.85
5176.11519.944051.8719.74
UK10_44942.08521.52UK10_85564.8619.76
4788.57520.125762.0220.3
4947.7322.025663.7419.45
5062.8619.975657.11519.23
5057.32520.755760.36519.55
Table A12. Detail result of SSO.
Table A12. Detail result of SSO.
DatasetObjectRuntimeDatasetObjectRuntimeDatasetObjectRuntime
UK10_14729.3819.05UK10_53862.2619.82UK10_93998.04519.12
4664.1417.683851.74520.583998.04519.36
4664.1419.253877.218.213998.04519.07
4664.1418.733877.218.233786.9519.42
4948.69517.683862.2619.673998.04518.33
UK10_24423.50518.53UK10_64357.94518.97UK10_105393.9620.34
4554.77520.14319.6620.15316.53518.78
4753.09519.584316.14519.035320.67519.23
4423.50518.794444.6918.425554.53519.36
4708.2719.174290.7718.55329.3218.73
UK10_34876.618.11UK10_73727.0618.67
4876.619.513727.0618.39
4768.4918.763727.0617.89
4876.619.293777.719.02
4885.0318.013727.0618.37
UK10_44639.59518.11UK10_85655.39519.02
4858.11519.515624.3617.88
4854.05518.765724.76519.27
4676.9620.295610.8818.76
4762.7618.015750.3819.41

References

  1. Cattaruzza, D.; Absi, N.; Feillet, D.; González-Feliu, J. Vehicle routing problems for city logistics. EURO J. Transp. Logist. 2017, 6, 51–79. [Google Scholar] [CrossRef]
  2. Dantzig, G.; Ramser, J. The Truck Dispatching Problem. Manag. Sci. 1959, 80–91. [Google Scholar] [CrossRef]
  3. Clarke, G.; Wright, J.W. Scheduling of vehicles from a central depot to a number of delivery points. Oper. Res. 1964, 12, 568–581. [Google Scholar] [CrossRef]
  4. Malandraki, C.; Daskin, M.S. Time dependent vehicle routing problems: Formulations, properties and heuristic algorithms. Transp. Sci. 1992, 26, 185–200. [Google Scholar] [CrossRef]
  5. Ichoua, S.; Gendreau, M.; Potvin, J.-Y. Vehicle dispatching with time-dependent travel times. Eur. J. Oper. Res. 2003, 144, 379–396. [Google Scholar] [CrossRef] [Green Version]
  6. Margiotta, R.; Eisele, B.; Short, J. Freight Performance Measure Approaches for Bottlenecks, Arterials, and Linking Volumes to Congestion Report. 2015. Available online: https://rosap.ntl.bts.gov/view/dot/41268 (accessed on 1 June 2021).
  7. Jha, K.; Eisele, B. Freight Multimodal Performance Measures. 2015. Available online: https://static.tti.tamu.edu/tti.tamu.edu/documents/TTI-2015-19.pdf (accessed on 1 June 2021).
  8. Baldacci, R.; Battarra, M.; Vigo, D. Routing a heterogeneous fleet of vehicles. In The Vehicle Routing Problem: Latest Advances and New Challenges; Springer: Berlin/Heidelberg, Germany, 2008; pp. 3–27. [Google Scholar]
  9. Taillard, É.D. A heuristic column generation method for the heterogeneous fleet VRP. RAIRO Oper. Res. Rech. Opér. 1999, 33, 1–14. [Google Scholar] [CrossRef] [Green Version]
  10. Wang, Z.; Wen, P. Optimization of a low-carbon two-echelon heterogeneous-fleet vehicle routing for cold chain logistics under mixed time window. Sustainability 2020, 12, 1967. [Google Scholar] [CrossRef] [Green Version]
  11. Anh, P.T.; Cuong, C.T.; Phuc, P.N.K. The vehicle routing problem with time windows: A case study of fresh food distribution center. In Proceedings of the 2019 11th International Conference on Knowledge and Systems Engineering (KSE), Da Nang, Vietnam, 24–26 October 2019; pp. 1–5. [Google Scholar]
  12. Adriano, D.D.; Montez, C.; Novaes, A.G.; Wangham, M. DMRVR: Dynamic milk-run vehicle routing solution using fog-based vehicular ad hoc networks. Electronics 2020, 9, 2010. [Google Scholar] [CrossRef]
  13. Yuan, Z.; Yang, Z.; Lv, L.; Shi, Y. A Bi-Level Path Planning Algorithm for Multi-AGV Routing Problem. Electronics 2020, 9, 1351. [Google Scholar] [CrossRef]
  14. Wang, Y.; Assogba, K.; Fan, J.; Xu, M.; Liu, Y.; Wang, H. Multi-depot green vehicle routing problem with shared transportation resource: Integration of time-dependent speed and piecewise penalty cost. J. Clean. Prod. 2019, 232, 12–29. [Google Scholar] [CrossRef]
  15. Emde, S.; Schneider, M. Just-in-time vehicle routing for in-house part feeding to assembly lines. Transp. Sci. 2018, 52, 657–672. [Google Scholar] [CrossRef]
  16. Liu, L.; Li, K.; Liu, Z. A capacitated vehicle routing problem with order available time in e-commerce industry. Eng. Optim. 2017, 49, 449–465. [Google Scholar] [CrossRef]
  17. Nakazawa, T.; Tang, S.; Obana, S. CCN-based inter-vehicle communication for efficient collection of road and traffic information. Electronics 2020, 9, 112. [Google Scholar] [CrossRef] [Green Version]
  18. Sujaree, K.; Samattapapong, N. A Hybrid Chemical Based Metaheuristic Approach for a Vaccine Cold Chain Network. Oper. Supply Chain Manag. Int. J. 2021, 14, 351–359. [Google Scholar] [CrossRef]
  19. Lenstra, J.K.; Kan, A.R. Complexity of vehicle routing and scheduling problems. Networks 1981, 11, 221–227. [Google Scholar] [CrossRef] [Green Version]
  20. Cordeau, J.-F.; Gendreau, M.; Laporte, G.; Potvin, J.-Y.; Semet, F. A guide to vehicle routing heuristics. J. Oper. Res. Soc. 2002, 53, 512–522. [Google Scholar] [CrossRef]
  21. Xu, Z.; Elomri, A.; Pokharel, S.; Mutlu, F. A model for capacitated green vehicle routing problem with the time-varying vehicle speed and soft time windows. Comput. Ind. Eng. 2019, 137, 106011. [Google Scholar] [CrossRef]
  22. Cao, S.; Liao, W.; Huang, Y. Heterogeneous fleet recyclables collection routing optimization in a two-echelon collaborative reverse logistics network from circular economic and environmental perspective. Sci. Total Environ. 2021, 758, 144062. [Google Scholar] [CrossRef]
  23. Fan, H.; Zhang, Y.; Tian, P.; Lv, Y.; Fan, H. Time-dependent multi-depot green vehicle routing problem with time windows considering temporal-spatial distance. Comput. Oper. Res. 2021, 129, 105211. [Google Scholar] [CrossRef]
  24. Alinaghian, M.; Ghazanfari, M.; Norouzi, N.; Nouralizadeh, H. A novel model for the time dependent competitive vehicle routing problem: Modified random topology particle swarm optimization. Netw. Spat. Econ. 2017, 17, 1185–1211. [Google Scholar] [CrossRef]
  25. Iswari, T.; Asih, A.M.S. Comparing genetic algorithm and particle swarm optimization for solving capacitated vehicle routing problem. IOP Conf. Ser. Mater. Sci. Eng. 2018, 337, 012004. [Google Scholar] [CrossRef]
  26. Yeh, W.-C. A hybrid heuristic algorithm for the multistage supply chain network problem. Int. J. Adv. Manuf. Technol. 2005, 26, 675–685. [Google Scholar] [CrossRef]
  27. Yeh, W.-C. A two-stage discrete particle swarm optimization for the problem of multiple multi-level redundancy allocation in series systems. Expert Syst. Appl. 2009, 36, 9192–9200. [Google Scholar] [CrossRef]
  28. Yeh, W.-C.; Chuang, M.-C. Using multi-objective genetic algorithm for partner selection in green supply chain problems. Expert Syst. Appl. 2011, 38, 4244–4253. [Google Scholar] [CrossRef]
  29. Malandraki, C.; Dial, R.B. A restricted dynamic programming heuristic algorithm for the time dependent traveling salesman problem. Eur. J. Oper. Res. 1996, 90, 45–55. [Google Scholar] [CrossRef]
  30. Çimen, M.; Soysal, M. Time-dependent green vehicle routing problem with stochastic vehicle speeds: An approximate dynamic programming algorithm. Transp. Res. Part D Transp. Environ. 2017, 54, 82–98. [Google Scholar] [CrossRef]
  31. Soysal, M.; Çimen, M. A simulation based restricted dynamic programming approach for the green time dependent vehicle routing problem. Comput. Oper. Res. 2017, 88, 297–305. [Google Scholar] [CrossRef]
  32. Sun, P.; Veelenturf, L.P.; Dabia, S.; Van Woensel, T. The time-dependent capacitated profitable tour problem with time windows and precedence constraints. Eur. J. Oper. Res. 2018, 264, 1058–1073. [Google Scholar] [CrossRef]
  33. Liu, C.; Kou, G.; Zhou, X.; Peng, Y.; Sheng, H.; Alsaadi, F.E. Time-dependent vehicle routing problem with time windows of city logistics with a congestion avoidance approach. Knowl. Based Syst. 2020, 188, 104813. [Google Scholar] [CrossRef]
  34. Pan, B.; Zhang, Z.; Lim, A. A hybrid algorithm for time-dependent vehicle routing problem with time windows. Comput. Oper. Res. 2021, 128, 105193. [Google Scholar] [CrossRef]
  35. 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]
  36. Gmira, M.; Gendreau, M.; Lodi, A.; Potvin, J.-Y. Tabu search for the time-dependent vehicle routing problem with time windows on a road network. Eur. J. Oper. Res. 2021, 288, 129–140. [Google Scholar] [CrossRef]
  37. Xiao, Y.; Konak, A. The heterogeneous green vehicle routing and scheduling problem with time-varying traffic congestion. Transp. Res. Part E Logist. Transp. Rev. 2016, 88, 146–166. [Google Scholar] [CrossRef]
  38. Huang, C.-L.; Jiang, Y.-Z.; Tan, S.-Y.; Yeh, W.-C.; Chung, V.Y.Y.; Lai, C.-M. Simplified swarm optimization for the time dependent competitive vehicle routing problem with heterogeneous fleet. In Proceedings of the 2018 IEEE Congress on Evolutionary Computation (CEC), Rio de Janeiro, Brazil, 8–13 July 2018; pp. 1–8. [Google Scholar]
  39. Koç, Ç.; Bektaş, T.; Jabali, O.; Laporte, G. Thirty years of heterogeneous vehicle routing. Eur. J. Oper. Res. 2016, 249, 1–21. [Google Scholar] [CrossRef] [Green Version]
  40. Golden, B.; Assad, A.; Levy, L.; Gheysens, F. The fleet size and mix vehicle routing problem. Comput. Oper. Res. 1984, 11, 49–66. [Google Scholar] [CrossRef]
  41. Micheli, G.J.; Mantella, F. Modelling an environmentally-extended inventory routing problem with demand uncertainty and a heterogeneous fleet under carbon control policies. Int. J. Prod. Econ. 2018, 204, 316–327. [Google Scholar] [CrossRef]
  42. Afshar-Nadjafi, B.; Afshar-Nadjafi, A. A constructive heuristic for time-dependent multi-depot vehicle routing problem with time-windows and heterogeneous fleet. J. King Saud Univ. Eng. Sci. 2017, 29, 29–34. [Google Scholar] [CrossRef] [Green Version]
  43. Vincent, F.Y.; Redi, A.P.; Jewpanya, P.; Lathifah, A.; Maghfiroh, M.F.; Masruroh, N.A. A simulated annealing heuristic for the heterogeneous fleet pollution routing problem. In Environmental Sustainability in Asian Logistics and Supply Chains; Springer: Berlin/Heidelberg, Germany, 2019; pp. 171–204. [Google Scholar]
  44. Wang, Z.; Qi, M.; Cheng, C.; Zhang, C. A hybrid algorithm for large-scale service network design considering a heterogeneous fleet. Eur. J. Oper. Res. 2019, 276, 483–494. [Google Scholar] [CrossRef]
  45. De, M.; Giri, B. Modelling a closed-loop supply chain with a heterogeneous fleet under carbon emission reduction policy. Transp. Res. Part E Logist. Transp. Rev. 2020, 133, 101813. [Google Scholar] [CrossRef]
  46. Soman, J.T.; Patil, R.J. A scatter search method for heterogeneous fleet vehicle routing problem with release dates under lateness dependent tardiness costs. Expert Syst. Appl. 2020, 150, 113302. [Google Scholar] [CrossRef]
  47. Ropke, S.; Cordeau, J.F. Branch and cut and price for the pickup and delivery problem with time windows. Transp. Sci. 2009, 43, 267–286. [Google Scholar] [CrossRef] [Green Version]
  48. Ben Ticha, H.; Absi, N.; Feillet, D.; Quilliot, A. Vehicle routing problems with road-network information: State of the art. Networks 2018, 72, 393–406. [Google Scholar] [CrossRef]
  49. Crainic, T.G.; Frangioni, A.; Gendron, B. Bundle-based relaxation methods for multicommodity capacitated fixed charge network design. Discret. Appl. Math. 2001, 112, 73–99. [Google Scholar] [CrossRef]
  50. Shelbourne, B.C.; Battarra, M.; Potts, C.N. The vehicle routing problem with release and due dates. INFORMS J. Comput. 2017, 29, 705–723. [Google Scholar] [CrossRef]
  51. Xu, Z.; Ming, X.; Zheng, M.; Li, M.; He, L.; Song, W. Cross-trained workers scheduling for field service using improved NSGA-II. Int. J. Prod. Res. 2015, 53, 1255–1272. [Google Scholar] [CrossRef]
  52. Vidal, T.; Crainic, T.G.; Gendreau, M.; Lahrichi, N.; Rei, W. A hybrid genetic algorithm for multidepot and periodic vehicle routing problems. Oper. Res. 2012, 60, 611–624. [Google Scholar] [CrossRef]
  53. Zhong, S.-Q.; Du, G.; He, G.-G. Study on open vehicle routing problem with time windows limits and its genetic algorithm. Jisuanji Gongcheng Yu Yingyong Comput. Eng. Appl. 2006, 42, 201–204. [Google Scholar]
  54. Wang, M.; Yeh, W.-C.; Chu, T.-C.; Zhang, X.; Huang, C.-L.; Yang, J. Solving multi-objective fuzzy optimization in wireless smart sensor networks under uncertainty using a hybrid of IFR and SSO algorithm. Energies 2018, 11, 2385. [Google Scholar] [CrossRef] [Green Version]
  55. Yeh, W.-C.; Lai, C.-M.; Peng, Y.-F. Multi-objective optimal operation of renewable energy hybrid CCHP system using SSO. J. Phys. Conf. Ser. 2019, 1411, 012016. [Google Scholar] [CrossRef]
  56. Lai, C.-M.; Chiu, C.-C.; Liu, W.-C.; Yeh, W.-C. A novel nondominated sorting simplified swarm optimization for multi-stage capacitated facility location problems with multiple quantitative and qualitative objectives. Appl. Soft Comput. 2019, 84, 105684. [Google Scholar] [CrossRef]
  57. Yeh, W.-C.; Lin, Y.-P.; Liang, Y.-C.; Lai, C.-M. Convolution Neural Network Hyperparameter Optimization Using Simplified Swarm Optimization. arXiv 2021, arXiv:2103.03995. [Google Scholar]
  58. Yeh, W.-C. A novel boundary swarm optimization method for reliability redundancy allocation problems. Reliab. Eng. Syst. Saf. 2019, 192, 106060. [Google Scholar] [CrossRef]
  59. Yeh, W.-C.; Su, Y.-Z.; Gao, X.-Z.; Hu, C.-F.; Wang, J.; Huang, C.-L. Simplified swarm optimization for bi-objection active reliability redundancy allocation problems. Appl. Soft Comput. 2021, 106, 107321. [Google Scholar] [CrossRef]
  60. Yeh, W.-C. New parameter-free simplified swarm optimization for artificial neural network training and its application in the prediction of time series. IEEE Trans. Neural Netw. Learn. Syst. 2013, 24, 661–665. [Google Scholar] [PubMed]
  61. Yeh, W.-C. Optimization of the disassembly sequencing problem on the basis of self-adaptive simplified swarm optimization. IEEE Trans. Syst. Man Cybern. Part A Syst. Hum. 2011, 42, 250–261. [Google Scholar] [CrossRef]
  62. Yeh, W.-C. Simplified swarm optimization in disassembly sequencing problems with learning effects. Comput. Oper. Res. 2012, 39, 2168–2177. [Google Scholar] [CrossRef]
  63. Lin, P.; Cheng, S.; Yeh, W.; Chen, Z.; Wu, L. Parameters extraction of solar cell models using a modified simplified swarm optimization algorithm. Sol. Energy 2017, 144, 594–603. [Google Scholar] [CrossRef]
Figure 1. (a) Travel time function on a link; (b) travel speed function at a node.
Figure 1. (a) Travel time function on a link; (b) travel speed function at a node.
Electronics 10 01775 g001
Figure 2. Travel time function.
Figure 2. Travel time function.
Electronics 10 01775 g002
Figure 3. (a) Time-varying continuous travel speed function; (b) travel distance function.
Figure 3. (a) Time-varying continuous travel speed function; (b) travel distance function.
Electronics 10 01775 g003
Figure 4. Time-varying continuous travel speed function for 2 types of vehicles.
Figure 4. Time-varying continuous travel speed function for 2 types of vehicles.
Electronics 10 01775 g004
Figure 5. Time-varying travel time function for “slow vehicle”.
Figure 5. Time-varying travel time function for “slow vehicle”.
Electronics 10 01775 g005
Figure 6. Time-varying travel time function for “quick vehicle’.
Figure 6. Time-varying travel time function for “quick vehicle’.
Electronics 10 01775 g006
Table 1. State of the art in recent five years.
Table 1. State of the art in recent five years.
PaperSpeedHFTWTest ProblemVeh TypeTpObjectiveSolution Method
DCFV
Çimen and Soysal [30]----Pollution-Routing Problem Instance Libraryhomo4carbonApproximate Dynamic Programming (ADP) based heuristic algorithm
Soysal and Çimen [31]----Pollution-Routing Problem InstanceLibraryhomo4carbonSimulation Based Restricted Dynamic Programming (RDP) algorithm
Sun, Veelenturf, Dabia and Van Woensel [32]---Instances proposed by Ropke et al. [47]homo5max profitTailored labeling algorithm
Wang, Assogba, Fan, Xu, Liu and Wang [14]---Pollution-Routing Problem Instance Libraryhomo5carbon and costClarke and Wright Saving, Sweep algorithm, and multi-objective PSO
Adriano, Montez, Novaes and Wangham [12]----Self-generatedhomonot TDcostDynamic milk-run vehicle routing solution
Liu, Kou et al. [33]---Solomon datasethomo3costAnt colony algorithm
Pan, Zhang et al. [34]---Solomon datasethomo5timeTabu search
Pan, Zhang et al. [35]---Solomon datasethomo5disTabu search
Gmira, Gendreau et al. [36]---NEWLET coming from [48]homo5disTabu search
Afshar-Nadjafi and Afshar-Nadjafi [42]--Self-generated43costSimulated annealing
Vincent, Redi et al. [43]----Pollution-Routing Problem Instance Library3not TDcostSimulated annealing
Wang, Qi et al. [44]----Instances proposed by [49]10not TDcostLinear solution provided by the column-and-cut generation with local search
Soman and Patil [46]----Instances proposed by [50]2not TDcostScatter search
De and Giri [45]----Self-generated3not TDcarbon and cost Mixed integer linear programming
Cao, Liao et al. [22]---Self-generated3not TDcostGenetic algorithm
Huang, Jiang et al. [38]--Self-generated35costSimplified swarm optimization
Xu, Elomri et al. [21]--Instances proposed by [51]124fuel Genetic algorithm
Fan, Zhang et al. [23]-MDVRP by [52], MDVRPTW by [53]34costGenetic algorithm
Our study-Pollution-Routing Problem Instance Library35costSimplified swarm optimization
Note 1. Speed stands for time dependency speed mode, D for Discrete function, C for Continuous function; 2. HF stands for heterogeneous fleet, homo for homogeneous, F for fix cost, V for variable cost; 3. TW stands for time window, Tp for time period.
Table 2. Sets, indices, and parameters.
Table 2. Sets, indices, and parameters.
Sets and Indices
V nodes   set ,   v 0   is   the   depot ,   { v 1 ,   v 2 ,   ,   v N } are customers
i,j subscript   of   the   customer   node ,   i , j = 1 , 2 , N
A A = { ( v i ,   v j ) :   v i ,   v j V } is the arcs set linking node i and node j
M m the set of vehicles with m types
m vehicle   types ,   m = 1 , 2 , M K
Parameters
D i demand of i customer
t w i t w i = [ b i ,   e i ] time window of i customer
s i service time of i customer
T T = { T 1 ,   T 2 ,   ,   T b } time period
t a r r , i the arrive time of node i
t d e p , i j the departure time from node i to node j
t t r a , i j the travel time from node i to node j
d i j the distance linking node i and node j
fun speed m ( t d e p , i j ) time-varying speed function of m type vehicle
fun time m ( t d e p , i , d i j ) time-varying travel time function of m type vehicle
v e h m each type of vehicle, maximum available number
c a p m maximum load capacity of m type vehicle
f c m fixed cost of m type vehicle
v c m variable cost of m type vehicle
D m i j , m amount carried using type m vehicle from i to j
Decision variable
X i j , m one if a type m vehicle travels from node i to j; otherwise, zero
Table 3. Vehicle specification.
Table 3. Vehicle specification.
Notation DescriptionTypical Values of a Type of m Vehicle
Vehicle Type 1Vehicle Type 2Vehicle Type 3
c a p m Maximum load capacity of m type vehicle100020003650
v c m Variable cost of m type vehicle (£/m)0.00010.000150.0002
Note: v c m in the Vincent, Redi, et al. study did not consider the load of delivery
Table 4. Parameters for the small problem size.
Table 4. Parameters for the small problem size.
D V 1 V 2 V 3 V 4 V 5 Demand b i e i s i
D041,15025,68023,00032,45022,5000022,4000
V 1 40,660051,98040,00023,00032,00090075221,289200
V 2 25,01051,780030,00032,00023,00072727024,0502000
V 3 20,00030,000300,000023,00025,00080025022,5001500
V 4 32,50023,00032,00023,000030,00058070028,000200
V 5 22,50032,00023,00025,00030,000060030027,000300
Table 5. Representation using SSO.
Table 5. Representation using SSO.
V 1 V 2 V 3 V 4 V 5
1.22.15.35.25.1
Table 6. Cumulative result of small problem size; assume the velocity is 25 m/s.
Table 6. Cumulative result of small problem size; assume the velocity is 25 m/s.
From toDistance Travel timeArrive TTWService TimeDeparture T
0–225,68010,27210,272 [ 270 ,   24,050 ] 200012,272
2–523,00092013,192 [ 300 ,   27,000 ] 30013,492
5–132,000128014,772 [ 752 ,   21,289 ] 20014,972
1–423,00092015,892 [ 700 ,   28,000 ] 20016,092
4–323,00092017,012 [ 752 ,   21,289 ] 150018,512
3–020,00080019,312 [ 0 ,   22,400 ] 0/
Table 7. New parameters setting.
Table 7. New parameters setting.
Notation DescriptionTypical Values of a Type of m Vehicle
Vehicle Type 1Vehicle Type 2Vehicle Type 3
c a p m Maximum load capacity of m type vehicle100020003650
v c m Variable   cos t   of   m   type   vehicle   ( £ / kg · m )0.000020.0000150.00001
f c m Fixed cost of m type vehicle50100180
Table 8. After new parameters setting-new optimum route.
Table 8. After new parameters setting-new optimum route.
From toDistance Total DisVariable CostDemand Total VC
0–522,500-0.00002600270
5–022,500-10.45
0–225,680-0.000015727280.0404
2–025,010-10.3752
0–432,450-0.000015580282.315
4–032,500-10.4875
0–323,000-0.00001800184
3–130,00053,000900477
1–040,660-10.4066
Total   cos t = total   VC + fix   cos t   for   vehicle 1924.6995
Table 9. Parameters for the UK10_01.
Table 9. Parameters for the UK10_01.
D V 1 V 2 V 3 V 4 V 5 V 6 V 7 V 8 V 9 V 10 Dem b i e i
D041265495168974268866009
V 1 41052331004276642472267210.606.15
V 2 2552062741369534373778140.185.85
V 3 5433620775243324940306200.295.67
V 4 9510074770815646112621063111.426.73
V 5 1643135281078613482681670.656.03
V 6 897669435578017927695131.026.70
V 7 7363523246611707621615681.226.96
V 8 26244450112349176089497630.976.76
V 9 887273396182721880645581.046.68
V 10 65267729106676961496406361.477.28
SSO is compared with GA and PSO, which have been widely used. The updating methods of GA and PSO can be referred to the papers of other authors: [21,22,24].
Table 10. Result comparison.
Table 10. Result comparison.
GAPSOSSO
AverageRuntimeAverageRuntimeAverageRuntime
14744.38928.7585085.35920.514734.09918.478
24822.40429.6744959.38720.7724572.6319.234
35155.44529.275335.60420.8184856.66418.736
44618.96330.3784959.71520.8764758.29718.936
53786.28729.1184073.97819.4683866.13319.302
64466.44529.34254498.93419.8164345.84219.004
73779.42229.434002.63119.7383737.18818.468
85735.28829.8265681.6219.6585673.15618.868
94277.39630.1184349.05319.2143955.82619.06
105411.92928.95540.3119.7065383.00519.288
average4679.79729.481454845.59920.05764589.33718.9374
From the result, bold is a better solution, shows that the SSO outperforms the original GA and PSO with respect to the average cost (run 5 times independently to take the average value) and runtime. In terms of runtime, SSO and PSO are close, slightly better than PSO. The objective value of the GA is also good, but it takes longer to run, due to the update mechanism of the GA.
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Yeh, W.-C.; Tan, S.-Y. Simplified Swarm Optimization for the Heterogeneous Fleet Vehicle Routing Problem with Time-Varying Continuous Speed Function. Electronics 2021, 10, 1775. https://0-doi-org.brum.beds.ac.uk/10.3390/electronics10151775

AMA Style

Yeh W-C, Tan S-Y. Simplified Swarm Optimization for the Heterogeneous Fleet Vehicle Routing Problem with Time-Varying Continuous Speed Function. Electronics. 2021; 10(15):1775. https://0-doi-org.brum.beds.ac.uk/10.3390/electronics10151775

Chicago/Turabian Style

Yeh, Wei-Chang, and Shi-Yi Tan. 2021. "Simplified Swarm Optimization for the Heterogeneous Fleet Vehicle Routing Problem with Time-Varying Continuous Speed Function" Electronics 10, no. 15: 1775. https://0-doi-org.brum.beds.ac.uk/10.3390/electronics10151775

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

Article Metrics

Back to TopTop