Next Article in Journal
Analyzing the Impact of Spanish University Funding Policies on the Evolution of Their Performance: A Multi-Criteria Approach
Previous Article in Journal
Inverse Problem for Ising Connection Matrix with Long-Range Interaction
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Simulated Annealing with Restart Strategy for the Path Cover Problem with Time Windows

1
Department of Industrial Management, National Taiwan University of Science and Technology, Taipei 10607, Taiwan
2
Center for Cyber-Physical System Innovation, National Taiwan University of Science and Technology, Taipei 10607, Taiwan
3
Department of Industrial Engineering, University Singaperbangsa Karawang, Karawang 41361, Indonesia
4
Industrial Engineering Department, BINUS Graduate Program—Master of Industrial Engineering, Bina Nusantara University, Jakarta 11480, Indonesia
5
Department of Information Management, Chang Gung University, Taoyuan 33302, Taiwan
6
Department of Industrial and Management, Ming Chi University of Technology, New Taipei 24301, Taiwan
7
Department of Neurology, Linkou Chang Gung Memorial Hospital, Taoyuan 33305, Taiwan
*
Author to whom correspondence should be addressed.
Mathematics 2021, 9(14), 1625; https://doi.org/10.3390/math9141625
Submission received: 5 June 2021 / Revised: 25 June 2021 / Accepted: 4 July 2021 / Published: 9 July 2021
(This article belongs to the Section Computational and Applied Mathematics)

Abstract

:
This research presents a variant of the vehicle routing problem known as the path cover problem with time windows (PCPTW), in which each vehicle starts with a particular customer and finishes its route at another customer. The vehicles serve each customer within the customer’s time windows. PCPTW is motivated by a practical strategy for companies to reduce operational cost by hiring freelance workers, thus allowing workers to directly service customers without reporting to the office. A mathematical programming model is formulated for the problem. This research also proposes a simulated annealing heuristic with restart strategy (SARS) to solve PCPTW and test it on several benchmark datasets. Computational results indicate that the proposed SARS effectively solves PCPTW.

1. Introduction

The vehicle routing problem (VRP) is widely used to address logistics and transportation problems, and on the basis of the literature over the last few decades many variants of it have been extensively studied. Examples include VRP with time windows [1,2,3,4], VRP with stochastic demand [5,6,7], time-dependent VRP [8,9,10], and VRP with split delivery [11,12,13]. Most of these studies are devoted to dealing concerns about vehicle routes in a logistics and transportation system, the resources of which belong permanently to the companies. However, in real-life situations, resources are commonly not owned permanently by companies, and this situation must be considered by decision makers.
The present work is motivated by the practical strategy currently adopted by many several small- and medium-sized enterprises (SMEs) that hire freelance workers to reduce operational costs. This practice allows workers to start driving from either their homes or certain geographical locations and return directly to them without reporting to the main office. The freelance workers can be private car owners or occasional drivers provided by delivery service companies such as Uber and Grab. Hence, hiring freelance workers provides vehicle fleet operators or companies with flexibility in planning service routes. By using this strategy, companies can assign efficient paths that disregard the distance between workers’ homes and the depot. Companies will only be concerned with the path of workers from the first to the last customer. This situation is observed in intermediate service companies (e.g., home care service providers and health home care service agencies) without resources (e.g., freelance carriers, housekeeping services, handymen, and shopping assistants), and in companies that hire freelance sales agents.
The practical strategy above creates a variant of VRP called the path cover problem (PCP) [14]. In practice, many customers want to be served within a particular time range, and thus this research extends PCP by considering time windows to propose the path cover problem with time windows (PCPTW). Figure 1 depicts an illustration of PCPTW, whose structure is similar to PCP, but also covers the service time windows of customers. As shown in Figure 1, a dummy depot and a dummy route disregard the distance from the depot to the customer.
The vehicle routing problems that consider the hiring of outsourced vehicles are commonly modeled as open vehicle routing problems (OVRPs), as presented by Salari et al. [15]. Outsourced vehicles provided by third-party logistics operators are hired to fulfill customer demands. When each customer is restricted to an earliest and latest visit time, the problem is extended to the ‘open vehicle routing problem with time windows’ (OVRPTW), as discussed in Repoussis et al. [16]. After finishing the tasks, the outsourced vehicles do not return to the depot, since they belong to third-party logistics operators. PCPTW is different from OVRP and OVRPTW in that the drivers are allowed to visit their first customer directly from their homes instead of from the main office. In practice, each route is assigned to a driver who can visit the customers within their respective time windows. This is similar to the underlying assumption of VRPTW that each driver is available to start the route at a time that allows her/him to meet the customers’ time window restrictions, including that of the first customer.
VRP is an NP-hard combinatorial optimization problem, and hence PCPTW is also an NP-hard problem. To address it, this work proposes a simulated annealing with restart strategy (SARS) heuristic, which is a diversified version of simulated annealing (SA) that utilizes a restart strategy to escape from local optima. This study conducts extensive computational experiments on a PCP dataset, well-known VRPTW benchmark problems, and a PCPTW dataset to investigate the performance of the proposed method on the three problems.
The four main contributions of this study are as follows. First, it considers time windows for PCP, which is closer to real-life situations. In addition, PCPTW is different from VRPTW [17], because it considers the open-ended paths of vehicles instead of the closed vehicle loops in VRPTW. Second, the proposed SARS is compared with an exact solver on the PCPTW dataset, which is adapted from Solomon’s VRPTW dataset. SARS obtains optimal solutions for all the small instances and can improve the upper bounds for medium and large instances. This research also investigates the advantage of the restart strategy in improving SA. Third, this work evaluates the proposed SARS’s performance against other heuristics on Solomon’s VRPTW and PCP datasets, finding that the algorithm performs at par with other heuristics. This research further compares it with another single-based solution heuristic and finds that SARS performs more efficiently. Fourth, the proposed SARS obtains new best-known solutions for six instances in Solomon’s VRPTW dataset.
The remainder of this paper is structured as follows. Section 2 presents the literature review. Section 3 presents a mathematical model for PCPTW. Section 4 discusses the proposed SARS for PCPTW. Section 5 discusses the computational study. Section 6 concludes the paper.

2. Literature Review

To the best of our knowledge, the literature has no articles devoted to PCPTW. While OVRP, OVRPTW and VRPTW are variants of VRP that are close to PCPTW, PCPTW extends PCP toward real-life aspects by considering a range of service times at the customer location. In PCP, a vehicle starts at a customer and ends at another customer without visiting the depot. This problem is introduced by Yu et al. [14] and motivated by a practical strategy of employing private vehicles to undertake the transportation function of a company or organization. In OVRP, vehicles start from the depot and terminate at a customer location, and thus there is no transportation cost associated with the distance between the last customer and the depot. This variant was first introduced by Sariklis and Powell [18] as a practical technique for companies that require delivery operations from distribution companies, called freelance vehicles, which deliver goods to customers, but are not owned by the distribution companies. In contrast to OVRP, in PCPTW there is both no distance cost between the last customer and the depot, and no distance cost between the depot and the first customer. In addition, PCPTW also ensures that vehicles serve customers in a certain time range, which is not considered in OVRP. Due to the more complex characteristics of PCPTW, solving PCPTW needs more effort compared to solving OVRP. Classical heuristic methods such as the Clarke and Wright algorithm [19], petal algorithm [20], and sweep algorithm [21] are the early solution approaches for VRP and it variants [22]. In the last few decades, metaheuristics has gained much interest from VRP researchers due to their ability to solve VRP related problems compared to the classical heuristics [23].
Many OVRP studies consider additional characteristics in real-world applications, including OVRPTW. Xia and Fu [24] proposed a variant of OVRP by considering split deliveries and solved the problem using an adaptive tabu search. The algorithm was tested on instances with up to 100 customers. Xia and Fu [25] considered time window and satisfaction rate in OVRPTW. They developed an improved tabu search algorithm for the problem. The algorithm was tested on Solomon benchmark instances with 100 customers. Lalla-Ruiz and Mes [26] presented a two-index-based mathematical formulation to solve the multi-depot OVRP. The model was tested on instances with 48 to 288 customers.
In VRPTW, vehicles start from the depot, serve all customers without violating the vehicle capacity and constraints of the customer time range, and then return to the depot. Solomon [3] solved VRPTW using sequential and parallel methods. Sequential procedures construct one route at a time until all customers are scheduled. Parallel procedures are characterized by the simultaneous construction of a number of routes. The author generated six sets of problems, which are well-known as Solomon’s VRPTW dataset. This dataset serves as a reference to subsequent researchers for testing their approaches to solving VRPTW efficiently. Thereafter, several researchers have presented metaheuristic methods as strong tools for solving VRPTW. This section underlines the methods from recently published papers on VRPTW, and the average performance of these methods is close to the best-known solution (BKS). In recently published papers, several algorithms have been tested on Solomon’s VRPTW dataset with 100 customers. The methods include hybrid multi-objective evolutionary algorithm [27], column generation heuristic (CGH) [28], a hybrid of tabu search and ant colony optimization [17], parallel iterated tabu search heuristic (PITSH) [29], set-based particle swarm optimization [30], cooperative population learning algorithm (CPLA) [31], hybrid shuffled frog leaping algorithm (HSFLA) [32], meta-harmony search algorithm [33], and the most recent tabu–artificial bee colony (Tabu–ABC) [34].
Yang [35] stated that metaheuristic algorithms could be classified as single-based and population-based solution heuristics. The methods mentioned in recently published papers on VRPTW, such as the PITSH, are included in the single-based solution heuristics, whereas the other methods are included in the population-based solution heuristic. Our SARS is included in the single-based solution heuristic.
In addition to the VRPTW studies that focused on improving the solution method as described in the previous paragraph, researchers have also proposed many variants of VRPTW that accommodate characteristics in real problems. For example, Keskin and Çatay [36] proposed a VRPTW variant in which freight is distributed by fast-charging electric vehicles. They solved the problem by an adaptive large neighborhood search. Goel et al. [37] considered stochastic customers’ demands and stochastic service times in VRPTW. The authors developed a mathematical model and a modified ant colony system to solve the problem. Energy consumption in cold chain logistics also employed VRPTW as reported in Song et al. [38]. An improved artificial fish swarm algorithm was proposed to solve realistic instances.

3. Mathematical Model

PCPTW is characterized as follows. Let G = ( V , A ) be a complete directed graph, where V = { 0 , 1 , n } is a vertex set, and A = { ( i , j ) : i , j V , i j } is an arc set. Vertex 0 represents a dummy depot, and V 0 = V \ { 0 } denotes a customer set in which each customer ( i V 0 ) has demand q i and service duration s . Each ( i , j ) is associated with travel cost c i j , which is also interpreted in this research as travel time. Each customer i can be visited within time window ( e i , l i ) , where e i is opening time, and l i is closing time; m denotes vehicle availability to serve the customers, and each vehicle has capacity C, activation cost h, and maximum tour length T; and u i and y i represent vehicle load and arrival time at customer i, respectively. The objective function of PCPTW is to determine the service paths that minimize the total transportation costs by employing freelance vehicles to serve the demand of customers under the following constraints: the customers must be serviced exactly once, the total load of a vehicle does not exceed C, the duration of any route does not exceed T, and the vehicle serves the customer within their time windows. The assumptions of this model are realized in the constraints, which are reasonable in reality. For example, the total load of the vehicle cannot exceed its capacity, the route representing the driver has a standard work time, and customers have a certain time range to receive services from other parties.
The mathematical model of PCPTW is a slightly modified version of that shown in Yu et al. [17] by disregarding distance costs between customers and the depot and adding the activation cost of the vehicles to calculate the objection function. A binary variable, x i j , is used, and x i j = 1 if a vehicle moves from customer i to customer j. The mathematical model is as follows.
Minimize   i V 0 j V 0 c i j x i j + h j V 0 X 0 j
i V x i j = 1    j V 0
j V x i j = 1    i V 0
i V 0 x i 0 m
j V 0 x 0 j m
u i u j + C x i j C q j i . j V 0 , i j
q i u i C i V 0
y i + s y j + c i j L ( 1 x i j ) i , j V 0 , i j
y j + s T j V 0
e i s l i i V 0
x i j { 0 , 1 } i , j V
The objective function (1) minimizes the total transportation cost, which consists of total travel distance and total vehicle activation cost. Constraints (2) and (3) ensure that all customers are served exactly once. Constraints (4) and (5) ensure that vehicle availability is not exceeded. Constraints (6) and (7) impose the capacity and connectivity of a route. In constraints (8) and (9), L is a large number and maintains that each vehicle ends the service no later than T. Constraint (10) denotes that the customers must be served within the time windows. Note that the first customer must be served in the relevant time window, although this model disregards the distance between the depot and its location, since only the possible freelance worker as described in Section 1 can handle the task. Binary integrality is guaranteed through constraint (11).

4. Solution Method

SARS targets the solution of PCPTW. This algorithm is a diversified version of SA to produce improved results. SA itself was introduced by Metropolis et al. [39] and then by Kirkpatrick et al. [40]. Eglese [41] popularized the heuristic by conducting an SA overview in the combinatorial optimization problem. According to the literature, SA has been successfully applied to many NP-hard combinatorial problems [42,43,44,45,46].
SA is a local search-based algorithm consisting of a mechanism to escape from local optima. It belongs to a single-solution-based algorithm that iteratively explores a better objective value. This algorithm is a simple local search, which starts with an initial solution. It then selects a neighborhood solution of the current solution at each iteration. If the objective value of the neighborhood solution is better than that of the current solution, then the neighborhood solution replaces the current solution; otherwise, the current solution is retained. SA allows a worse-neighborhood solution to replace the current solution with a small probability; thus, the procedure can escape being trapped at a local optimum. This feature advantage of SA motivates this research to employee the SA-based heuristic in order to solve PCPTW.
In many cases, SA-based search procedures may require more diversification mechanisms to avoid being trapped at the local optima. Without these diversification mechanisms, the search space of these SA-based search procedures may be confined to a small region of the solution space. Therefore, the probability of achieving a global optimum may be reduced [47]. A popular diversification mechanism is the restart strategy, which can be used to guide the search escapes from local optima. Thus, this work proposes SARS, which combines the advantages of an SA-based algorithm in fast search convergence and the restart strategy in escaping the local optima, herein to obtain better results compared with merely using SA. The algorithm has been successful in solving combinatorial optimization problems [48]. The remaining subsections explain the solution representation, neighborhood mechanism, parameters used, and details of the SARS procedure.

4.1. Solution Representation

The solution is represented by a string of numbers consisting of a permutation of n customers denoted by the set {1, 2, …, n} and Ndummy zeros. Each of the Ndummy zeros represents the dummy depot and is a sign of constructing a new route, although the current route does not violate any restrictions. Ndummy is calculated as i ( q i / C ) , where x represents the smallest integer that is larger than or equal to x. Furthermore, the jth non-zero string in the solution representation denotes the jth customer to be visited. Thus, the first non-zero number is the first customer of the first route. Subsequent customers are added one at a time to complete the current route, provided that the time window constraints of the customers and the maximum length of the route of the vehicle are not violated. If adding a customer to the current route violates either the time window constraint of the customer, the time window constraint of the depot, or the maximum length of route constraint, then this customer is cancelled and the current route is terminated; hereafter a new route is started whenever feasible.
The vehicle must start within the range of the service time window of the customer. If the vehicle arrives at the customer earlier than the opening time, then its service must wait until the opening time. This solution representation always maintains a feasible PCPTW solution.
To illustrate the solution representation, Table 1 presents a PCPTW instance with 15 customers. The table consists of the customer’s location (X,Y), demand (Q), opening time (OP), closing time (CL), and service time (ST) columns. Figure 2 illustrates an example of a solution representation. The solution representation consists of three routes. In the first route, the vehicle starts from the dummy depot (zero number), proceeds to Customer 1, and ends at Customer 8. The addition of Customer 5 to the first route violates one of the constraints; thus, Customer 5 is excluded from the first route, and a second route is constructed starting from Customer 5. The second route ends at Customer 4. The second route terminates at the customer, because the number is zero after Customer 4. Furthermore, the third route starts from Customer 11 and ends at Customer 3. Figure 3 provides a visual illustration of the path cover network corresponding to the sample solution representation illustrated in Figure 2.

4.2. Neighborhood

This study uses a standard neighborhood search mechanism that includes swap, insertion, and reverse movements, similar to Yu et al. [49] and Yu and Lin [50]. The swap movement randomly selects the ith and jth customers of X and then exchanges their positions. The insertion movement is performed by randomly selecting the ith customer of X and then inserting it into the position immediately before another randomly selected jth customer of X. The reverse movement is conducted by reversing the sequence from the ith until the jth customers of X. The probabilities of performing each movement is set to be 1/3. After a movement is executed, the new solution must be encoded again to ensure its feasibility. Yu and Lin [50] illustrated the implementation of the movements.

4.3. Parameters Used

The proposed SARS consists of six parameters: T0, TF, α, Iiter, Nnon-improving, and Mrestart. T0 represents the initial temperature, TF denotes the final temperature, α denotes controlling the temperature reductions, Iiter denotes the number of iterations performed at a certain temperature, and Nnon-improving declares the number of allowable maximum consecutive non-improving temperature reductions that the value of the objective function has not improved. Finally, Mrestart is the maximum number of restarts.

4.4. SARS Heuristic

The SA starts with an initial solution X generated randomly. The initial temperature is set to be T0; and the objective function value of X is denoted as Obj(X). The current best solution Xbest is then set to be X. Fbest denotes the value of the best objective function obtained in the current SA run and is initialized as Obj(X). FGbest is the value of the best objective function value obtained in all SA runs and is set as zero.
At each iteration, a new solution Y is generated from N(X), the neighborhood of the current solution X, and its feasibility is checked to ensure that no constraints are violated. If Y is feasible, then its objective function value is evaluated; otherwise, it is disregarded. If Y is better than X, then it replaces X as the new current solution; otherwise, Y is accepted as the new current solution with a low probability. The probability of accepting the solution is calculated based on the Boltzmann function exp(−Δ/T), with Δ = Obj(Y) − Obj(X). This process is performed by randomly generating a number 0 < r < 1 and replacing X with Y if r < exp(−Δ/T).
The current temperature is gradually reduced after performing Iiter iterations at the current temperature. The cooling process occurs in this stage. The next temperature is obtained by multiplying the current temperature with cooling rate α (T = T* α). Nnon-improving represents the maximum allowable number of reductions in temperature if the value of the objective function has not improved.
The algorithm restarts if Nnon-improving is reached. When the algorithm restarts, the current temperature is reset to the initial temperature, and a new initial solution is generated randomly to initiate a new SA run. The algorithm is terminated once it reaches the maximum number of restart (Mrestart). The best PCPTW solution can be derived from XGbest after the SARS algorithm is terminated. Figure 4 presents the pseudocode of the proposed SARS heuristic.

5. Computational Study

SARS was coded in C++ and performed with Intel® Core™ i7 at 3.4 GHz CPU, 8 GB of RAM, and a 64-bit Windows 10 Pro operating system. CPLEX 12.2 was used to obtain exact solutions. The following subsections describe test instance, parameter setting, and computational results.
Three experiments are conducted to investigate the performance of the proposed SARS. The first experiment compares the proposed SARS’s performance with another algorithm on PCP dataset. In the second experiment, the proposed SARS is compared with other algorithms on VRPTW benchmark problems. In the last experiment, the upper bounds for each PCPTW instance are generated by CPLEX, and the SA algorithm is employed to solve the instances, in order to investigate the performance of the proposed SARS in solving PCPTW.

5.1. Test Instances

To evaluate the proposed algorithm, three datasets are used. The dataset used for the first experiment consists of 10 small and 14 large instances of PCP problems, and is adopted from Yu et al. [14]. The feature of this dataset includes total demand (TD), vehicle activation cost (h), vehicle capacity (C), service time (s), maximum route length (T), and the number of vehicle routes (m).
The dataset used for the second experiment is Solomon’s VRPTW instances adopted from Sintef website (https://www.sintef.no/projectweb/top/vrptw/solomon-benchmark/, accessed on 5 July 2020). In particular, two types of datasets are used, i.e., small and large instances, each consisting of 25 and 100 customers, respectively. There is a total of 102 instances including 56 small instances and 56 large instances. These datasets vary in vehicle capacity, travel time, spatial distribution of customers, time window density, and width and are thus classified into three types of problem as follows: C-type (clustered customers), R-type (uniformly distributed customers), and RC-type (a mix of R and C types). Each of these three types of problem consists of two categories. Problem sets C1, R1, and RC1 exhibit a narrow scheduling horizon, whereas problem sets C2, R2, and RC2 show a large scheduling horizon. Vehicles with small capacities and short route times are considered setbacks to the narrow scheduling horizon. Thus, a vehicle can only serve a few customers. A large scheduling horizon includes the use of a vehicle with large capacity and long travel times; thus, more customers can be served using the same vehicle. Problem sets C1, C2, R1, R2, RC1, and RC2 consist of 9, 8, 12, 11, 8, and 8 instances, respectively.
The datasets used for the third experiment contains 168 instances including 56 small, 56 medium, and 56 large instances. Because no prior PCPTW dataset exists, the aforementioned VRPTW datasets are converted into the PCPTW datasets in the following manner. The calculation of the objective value is similar to that of VRPTW. However, the objective function value of PCPTW excludes the distances between the depot and the customers and includes the vehicle activation cost of 100. Note that double precision is utilized for calculating the distances.

5.2. Parameter Settings

The parameter values may influence the quality of the computational results. A parameter setting experiment is conducted to determine the appropriate parameter setting for the proposed algorithm. This study employs a two-level (2k) factorial design to set the parameters. This type of factorial design has been successfully used as a procedure to determine an effective parameter setting in heuristics [51]. For the preliminary setting, some instances are randomly selected from each of the six problem sets of Solomon’s benchmark problems [3].
Six parameters are required for the 2k factorial design: T0, TF, α, Iiter, Nnon-improving, and Mrestart. Each parameter consists of four levels as follows:
-
Iiter = 9000, 10,000, 13,000, 15,000;
-
α = 0.90, 0.95, 0.98, 0.99;
-
T0 = 10, 20, 50, 80;
-
TF = 0.1, 0.01, 0.001, 0.0001;
-
Nnon-improving = 100, 150, 200, 250;
-
Mrestart = 3, 5, 7, 10.
First, the one-factor-at-a-time (OFAT) approach is used to generate low and high levels for the 2k factorial design prior to the actual parameter setting. Low and high levels are generated for each parameter from the OFAT approach to conduct the factorial design of the experiment, as depicted in Table 2. Parameter values may influence the solution quality and computational time, and therefore this study conducts sensitivity analyses to observe the effects.
Figure 5 illustrates that Iiter and TF tend to influence solution quality and computational time. As Iiter or TF increases, the space for exploring solutions becomes larger, and so the chances of obtaining better solutions will increase. However, these efforts need more computational time. In contrast to Iiter and TF, α does not affect solution quality or computational time, whereas T0 does slightly affect the performance of the proposed algorithm. Increasing the value of this parameter does not always improve solution quality or reduce computational time.
When Nnon-improving or Mrestart increases, one needs significantly more time to solve the problem, but it is not always followed by an increase in the quality of the solution. Based on the design of the experiment and the sensitivity analyses, it seems that the setting Iiter = 15000, α = 0.99, T0 = 10, TF = 0.001, Nnon-improving = 100, and Mrestart = 7 provide the best results. Therefore, these parameter values are used to run the proposed SARS.

5.3. Computational Results

5.3.1. Verification of SARS for Solving the PCP Datasets

The first experiment’s results are presented in Table 3 and Table 4. The first column denotes the name of the instances. The subsequent five columns denote the feature of the instances described above. The following columns present the performance of HVTNS and the proposed SARS, respectively. Based on executing SARS in ten replications for each instance, the performance of the two algorithms is represented by both the best objective value (Obj) and the computational time (CT) of the best objective value. The last column describes the percentage gap between the best objective values of the two algorithms. Since there is no report of the computational time for small instances of PCP dataset in Yu et al. [14], the performance of HVTNS in Table 3 is only represented by the best objective value.
Table 3 shows that the proposed SARS can give a solution quality as good as HVNTS with an average gap of 0.14% in small PCP instances. Table 4 shows the computational results in large PCP instances. It implies that SARS implementation is unable to provide a better solution than HVNTS for instances p2, p3, p4, p5, and p7. However, for instances p8, p9, p10, p11, p13, and p14, the result obtained by SARS is superior compared to HVNTS in terms of objective value. Overall, the proposed SARS outperforms HVTNS in terms of average objective value of all large instance. Particularly, the average percentage gap of the objective value between SARS and HVNTS is −1.42%. Although the average computational time required by SARS is higher than that of HVTNS, it is still acceptable. The result indicates that the performance of SARS is as good as HVNTS, if not better, while the computational time is still reasonable.

5.3.2. Comparison of SARS with Other Algorithms on VRPTW Benchmark Instances

Table 5, Table 6 and Table 7 summarize the results of the second experiment, which show the performance of SARS in solving both small and large VRPTW benchmark instances. In each table, column “TD” represents the total travel distance, “NV” denotes the number of vehicles, and “CT” indicates the computational time (s). Table 5 presents the results of the experiment of VRPTW with 25 customers. The SARS heuristic is compared with the optimal solution obtained by previous heuristics [52]. TD is the best result of 10 runs. On the basis of the experimental results, SARS obtains the optimal solution for all instances.
Table 6 presents the comparison of SARS to other heuristics from recently published papers on VRPTW. BKSs are summarized from Zhang et al. [34]. The table implies that in terms of solution quality, the results of SARS are equal to other algorithms and BKS on C1 and C2 instances and still comparable on other instances. Moreover, in terms of computational time, the proposed SARS outperforms CGH, PITSH, and tabu-ABC and is comparable with HSFLA. Note that Barbucha [31] did not report computational times. From the table, the other heuristics consist of two categories, namely single-based solution algorithms for PITSH by Cordeau and Maischberger [29] and population-based solution algorithms for CGH by Alvarenga et al. [28], CPLA by Barbucha [31], HSFLA by Luo et al. [32], and Tabu–ABC by Zhang et al. [34]. The table implies that the results of SARS are equal to other heuristics in terms of BKS on C1 and C2 instances and also still comparable in the other instances. In particular, SARS performs better in terms of the average gap with BKS when compared with another single-solution based algorithm from [29]. According to the table, the average gaps are 0.75% and 3.78% for SARS and PITSH [29], respectively.
Table 7 shows the comparison between SARS and PITSH [29] for each instance. The table shows that, in terms of solution quality, the proposed SARS outperforms PITSH for 34 of the 56 instances (italic font). Moreover, SARS generates six new BKSs (in bold font) in instances R204, R207, R208, RC202, RC204, and RC208. Furthermore, in terms of computational time, the proposed SARS also outperforms PITSH. Note that Cordeau and Maischberger [29] reported only average computational times of PITSH as presented in Table 6.
The third experiment compares the results of SARS and CPLEX. In addition, since SARS is modified from SA, this experiment also compares results of SARS and SA. Table 8, Table 9 and Table 10 show the comparison of the PCPTW datasets with 25, 50, and 100 customers, respectively. Each table contains the results of the three methods. Each method consists of columns NV, TD, and CT representing the number of vehicles, objective value, and computational time (s), respectively. Columns Gap1 and Gap2 show the gap between CPLEX with SA and SARS, respectively. Gap1 is calculated by ((TD of SA − TD of CPLEX)/TD of CPLEX) × 100%, whereas Gap2 is calculated by ((TD of SARS − TD of CPLEX)/TD of CPLEX) × 100%.
In Table 8, CPLEX generated an optimal solution for 37 instances and ran for 5 h to generate the upper bound for 19 instances. Both SA and SARS could also achieve all optimal solutions provided by CPLEX in significantly shorter computational time. CPLEX could not solve the remaining instances to optimality, while our SARS yielded a better solution for three instances and the same solutions for 16 other instances. The average gap of SARS is −0.01%.
Table 9 shows that CPLEX achieved optimal solution for 12 instances and ran for 5 h to generate the upper bound for 44 instances. The proposed SARS achieved an optimal solution for eight instances and produced equal or better results compared with those of the upper bounds for 33 instances. The average gap is −0.48%. Table 10 shows that CPLEX also achieved an optimal solution for 8 instances, and ran for 5 h to generate upper bounds for the remaining 48 instances. The proposed SARS obtained optimal solutions for 6 instances, and the average gap is −3.33%.
The three tables report that the proposed SARS is advantageous in improving SA. The proposed SARS does not appear superior to solve PCPTW with 25 customers. As the size of the problem increases, the algorithm shows its superiority compared with SA heuristic. This phenomenon is shown in Table 8 for PCPTW with 25 customers, where averages of Gap1 and Gap2 are equal at −0.01%. The values are different in Table 9 and Table 10 for PCPTW with 50 customers and 100 customers, respectively. In these two tables, average Gap2 is larger than average Gap1, implying that SARS is better than SA in terms of solution quality. In terms of computational time, SARS needs more time to implement the restart strategy. The higher computational time of SARS is still acceptable since the results of SARS are better than those obtained by SA.
Table 11 compares the performances of CPLEX and the proposed SARS in finding optimal solutions. The values of the table are summarized from the results presented in Table 8, Table 9 and Table 10. The percentage gap in the last column shows that for small size instances, both methods result in the same number of instances, yielding the optimal solution. The last row of the Gap column presents the percentage gap between SARS and CPLEX in terms of solution quality. It shows that the proposed SARS has a gap of less than 1% compared to that of CPLEX, yet SARS still has faster computational time than CPLEX.

5.3.3. Analysis of the Restart Strategy

This subsection analyzes the restart strategy. Figure 6 shows the convergence history of SA and SARS, which appears in blue and black lines, respectively. Both methods are executed with one run on instance RC207 of the PCPTW dataset. Based on the figure, both methods are able to converge during the searching process. However, SARS is able to give a better solution compared to SA.

6. Conclusions and Future Research

The scientific novelty of this study is the development of a mathematical programming model and an effective SARS algorithm for solving PCPTW, which can be implemented to extend PCP by considering customer time windows in small- and medium-sized enterprises that hire freelance workers to reduce operational cost. The mathematical model of PCPTW is developed and solved by using CPLEX. SARS, which is an extended SA that utilizes a restart strategy, is proposed to tackle PCPTW.
To investigate the effectiveness of the proposed algorithm, we test it on PCP and well-known VRPTW datasets. The experimental results show that SARS is comparable with HVTNS in solving PCP instances and with several algorithms on VRPTW datasets. Moreover, on VRPTW datasets, SARS outperforms another single-solution based algorithm in terms of the average gap with BKS, and generates new BKSs for six large instances.
In solving the PCPTW dataset, the experimental results show that SARS outperforms CPLEX in terms of the solution quality and the computational time for all sizes of the problem scale. Furthermore, utilizing the restart strategy enables SARS to outperform SA in terms of solution quality. Although employing the restart strategy needs more computational time, the results indicate that the longer computational time of SARS is still reasonable.
The developed formulation and solution techniques can be extended to a practical strategy for companies in order to reduce operational cost by hiring freelance workers. However, current studies are limited to considering cost minimization. In practice, the proposed model might not yet cover several realistic situations that could arise.
Future research can consider other realistic situations and use a more practical dataset. Factors beyond cost optimization such as customer satisfaction and workers’ preferences are becoming a social topic that cannot be ignored and should be addressed. Moreover, the involvement of a heterogeneous fleet, split delivery, and multiple time windows can also extend the problem. Optimization methods such as particle swarm optimization, genetic algorithm, and other advanced algorithms can be used further to increase solution quality.

Author Contributions

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

Funding

This research was partially supported by the Ministry of Science and Technology of the Republic of China (Taiwan) under grant MOST 106-2410-H-011-002-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. The work of S.-W. Lin was supported in part by the Ministry of Science and Technology, Taiwan, under Grant MOST109-2410-H-182-009MY3, and in part by the Linkou Chang Gung Memorial Hospital under Grant BMRPA19.

Acknowledgments

The second author would like to acknowledge the Ministry of Research, Technology, and Higher Education of the Republic of Indonesia, which granted a beneficial opportunity and supported his doctoral study at the National Taiwan University of Science and Technology, Taiwan.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Niu, Y.; Yang, Z.; Chen, P.; Xiao, J. Optimizing the green open vehicle routing problem with time windows by minimizing comprehensive routing cost. J. Clean. Prod. 2018, 171, 962–971. [Google Scholar] [CrossRef]
  2. Shen, L.; Tao, F.; Wang, S. Multi-depot open vehicle routing problem with time windows based on carbon trading. Int. J. Environ. Res. Public Health 2018, 15, 2025. [Google Scholar] [CrossRef] [Green Version]
  3. Solomon, M.M. Algorithms for the vehicle routing and scheduling problems with time window constraints. Oper. Res. 1987, 35, 254–265. [Google Scholar] [CrossRef] [Green Version]
  4. Ticha, H.B.; Absi, N.; Feillet, D.; Quilliot, A. Multigraph modeling and adaptive large neighborhood search for the vehicle routing problem with time windows. Comput. Oper. Res. 2019, 104, 113–126. [Google Scholar] [CrossRef] [Green Version]
  5. Bernardo, M.; Du, B.; Pannek, J. A simulation-based solution approach for the robust capacitated vehicle routing problem with uncertain demands. Transp. Lett. 2020, 1–10. [Google Scholar] [CrossRef]
  6. Bertazzi, L.; Secomandi, N. Faster rollout search for the vehicle routing problem with stochastic demands and restocking. Eur. J. Oper. Res. 2018, 270, 487–497. [Google Scholar] [CrossRef]
  7. Marković, D.; Petrovć, G.; Ćojbašić, Ž.; Stanković, A. The vehicle routing problem with stochastic demands in an urban area–A case study. Facta Univ. Ser. Mech. Eng. 2020, 18, 107–120. [Google Scholar] [CrossRef]
  8. Huang, Y.; Zhao, L.; Woensel, T.V.; Gross, J.-P. Time-dependent vehicle routing problem with path flexibility. Transp. Res. Part B Methodol. 2017, 95, 169–195. [Google Scholar] [CrossRef]
  9. Norouzi, N.; Sadegh-Amalnick, M.; Tavakkoli-Moghaddam, R. Modified particle swarm optimization in a time-dependent vehicle routing problem: Minimizing fuel consumption. Optim. Lett. 2017, 11, 121–134. [Google Scholar] [CrossRef]
  10. Rincon-Garcia, N.; Waterson, B.; Cherrett, T.J.; Salazar-Arrieta, F. A metaheuristic for the time-dependent vehicle routing problem considering driving hours regulations–An application in city logistics. Transp. Res. Part A Policy Pract. 2018, 137, 429–446. [Google Scholar] [CrossRef] [Green Version]
  11. Chen, P.; Golden, B.; Wang, X.; Wasil, E. A novel approach to solve the split delivery vehicle routing problem. Int. Trans. Oper. Res. 2017, 24, 27–41. [Google Scholar] [CrossRef] [Green Version]
  12. Gschwind, T.; Bianchessi, N.; Irnich, S. Stabilized branch-price-and-cut for the commodity-constrained split delivery vehicle routing problem. Eur. J. Oper. Res. 2019, 278, 91–104. [Google Scholar] [CrossRef] [Green Version]
  13. Xia, Y.; Fu, Z.; Pan, L.; Duan, F. Tabu search algorithm for the distance-constrained vehicle routing problem with split deliveries by order. PLoS ONE 2018, 13, e0195457. [Google Scholar] [CrossRef]
  14. Yu, V.F.; Redi, A.A.N.P.; Halim, C.; Jewpanya, P. The path cover problem: Formulation and a hybrid metaheuristic. Expert Syst. Appl. 2020, 146, 113107. [Google Scholar] [CrossRef]
  15. Salari, M.; Toth, P.; Tramontani, A. An ILP improvement procedure for the open vehicle routing problem. Comput. Oper. Res. 2010, 37, 2106–2120. [Google Scholar] [CrossRef] [Green Version]
  16. Repoussis, P.P.; Tarantilis, C.D.; Ioannou, G. The open vehicle routing problem with time windows. J. Oper. Res. Soc. 2007, 58, 355–367. [Google Scholar] [CrossRef]
  17. Yu, B.; Yang, Z.; Yao, B. A hybrid algorithm for vehicle routing problem with time windows. Expert Syst. Appl. 2011, 38, 435–441. [Google Scholar] [CrossRef]
  18. Sariklis, D.; Powell, S. A Heuristic Method for the Open Vehicle Routing Problem. J. Oper. Res. Soc. 2000, 51, 564–573. [Google Scholar] [CrossRef]
  19. 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]
  20. Foster, B.A.; Ryan, D.M. An integer programming approach to the vehicle scheduling problem. J. Oper. Res. Soc. 1976, 27, 367–384. [Google Scholar] [CrossRef]
  21. Gillet, B.E.; Miller, L.E.; Johnson, J.G. Vehicle dispatching—Sweep algorithm and extensions. In Disaggregation; Springer: Dordrecht, The Netherlands, 1979; pp. 471–483. [Google Scholar]
  22. Toth, P.; Vigo, D. The Vehicle Routing Problem; SIAM Monographs on Discrete Mathematics and Applications; Society for Industrial and Applied Mathematics: Philadelphia, PA, USA, 2002. [Google Scholar]
  23. Cordeau, J.-F.; Laporte, G. Tabu search heuristics for the vehicle routing problem. Metaheuristic Optim. Mem. Evol. 2005, 30, 145–163. [Google Scholar]
  24. Xia, Y.; Fu, Z. An adaptive tabu search algorithm for the open vehicle routing problem with split deliveries by order. Wirel. Pers. Commun. 2018, 103, 595–609. [Google Scholar] [CrossRef]
  25. Xia, Y.; Fu, Z. Improved tabu search algorithm for the open vehicle routing problem with soft time windows and satisfaction rate. Clust. Comput. 2019, 22, 8725–8733. [Google Scholar] [CrossRef]
  26. Lalla-Ruiz, E.; Mes, M. Mathematical formulations and improvements for the multi-depot open vehicle routing problem. Optim. Lett. 2020, 15, 271–286. [Google Scholar] [CrossRef]
  27. Tan, K.C.; Chew, Y.H.; Lee, L. A hybrid multiobjective evolutionary algorithm for solving vehicle routing problem with time windows. Comput. Optim. Appl. 2006, 34, 115–151. [Google Scholar] [CrossRef]
  28. Alvarenga, G.B.; Mateus, G.R.; de Tomi, G. A genetic and set partitioning two-phase approach for the vehicle routing problem with time windows. Comput. Oper. Res. 2007, 34, 1561–1584. [Google Scholar] [CrossRef]
  29. Cordeau, J.-F.; Maischberger, M. A parallel iterated tabu search heuristic for vehicle routing problems. Comput. Oper. Res. 2012, 39, 2033–2050. [Google Scholar] [CrossRef]
  30. Gong, Y.-J.; Zhang, J.; Liu, O.; Huang, R.-Z.; Chung, H.S.-H.; Shi, Y.-H. Optimizing the vehicle routing problem with time windows: A discrete particle swarm optimization approach. IEEE Trans. Syst. Man Cybern. Part C (Appl. Rev.) 2012, 42, 254–267. [Google Scholar] [CrossRef]
  31. Barbucha, D. A cooperative population learning algorithm for vehicle routing problem with time windows. Neurocomputing 2014, 146, 210–229. [Google Scholar] [CrossRef]
  32. Luo, J.; Li, X.; Chen, M.-R.; Liu, H. A novel hybrid shuffled frog leaping algorithm for vehicle routing problem with time windows. Inf. Sci. 2015, 316, 266–292. [Google Scholar] [CrossRef]
  33. Yassen, E.T.; Ayob, M.; Nazri, M.Z.A.; Sabar, N.R. Meta-harmony search algorithm for the vehicle routing problem with time windows. Inf. Sci. 2015, 325, 140–158. [Google Scholar] [CrossRef]
  34. Zhang, D.; Cai, S.; Ye, F.; Si, Y.-W.; Nguyen, T.T. A hybrid algorithm for a vehicle routing problem with realistic constraints. Inf. Sci. 2017, 394, 167–182. [Google Scholar] [CrossRef]
  35. Yang, X.-S. Nature-Inspired Optimization Algorithms; Elsevier: Amsterdam, The Netherlands, 2014. [Google Scholar]
  36. Keskin, M.; Çatay, B. A matheuristic method for the electric vehicle routing problem with time windows and fast chargers. Comput. Oper. Res. 2018, 100, 172–188. [Google Scholar] [CrossRef]
  37. Goel, R.; Maini, R.; Bansal, S. Vehicle routing problem with time windows having stochastic customers demands and stochastic service times: Modelling and solution. J. Comput. Sci. 2019, 34, 1–10. [Google Scholar] [CrossRef]
  38. Song, M.-X.; Li, J.-Q.; Han, Y.-Q.; Han, Y.-Y.; Liu, L.-L.; Sun, Q. Metaheuristics for solving the vehicle routing problem with the time windows and energy consumption in cold chain logistics. Appl. Soft Comput. 2020, 95, 106561. [Google Scholar] [CrossRef]
  39. Metropolis, N.; Rosenbluth, A.W.; Rosenbluth, M.N.; Teller, A.H.; Teller, E. Equation of state calculations by fast computing machines. J. Chem. Phys. 1953, 21, 1087–1092. [Google Scholar] [CrossRef] [Green Version]
  40. Kirkpatrick, S.; Gelatt, J.C.; Vecchi, M.P. Optimization by simmulated annealing. Science 1983, 220, 671–680. [Google Scholar] [CrossRef]
  41. Eglese, R. Simulated annealing: A tool for operational research. Eur. J. Oper. Res. 1990, 46, 271–281. [Google Scholar] [CrossRef]
  42. Marandi, F.; Ghomi, S.F. Network configuration multi-factory scheduling with batch delivery: A learning-oriented simulated annealing approach. Comput. Ind. Eng. 2019, 132, 293–310. [Google Scholar] [CrossRef]
  43. Rabbouch, B.; Saâdaoui, F.; Mraihi, R. Empirical-type simulated annealing for solving the capacitated vehicle routing problem. J. Exp. Theor. Artif. Intell. 2020, 32, 437–452. [Google Scholar] [CrossRef]
  44. Wei, L.; Zhang, Z.; Zhang, D.; Leung, S.C. A simulated annealing algorithm for the capacitated vehicle routing problem with two-dimensional loading constraints. Eur. J. Oper. Res. 2018, 265, 843–859. [Google Scholar] [CrossRef]
  45. Yu, V.F.; Redi, A.A.N.P.; Hidayat, Y.A.; Wibowo, O.J. A simulated annealing heuristic for the hybrid vehicle routing problem. Appl. Soft Comput. 2017, 53, 119–132. [Google Scholar] [CrossRef]
  46. Yu, V.F.; Winarno; Lin, S.-W.; Gunawan, A. Design of a two-echelon freight distribution system in an urban area considering third-party logistics and loading–unloading zones. Appl. Soft Comput. 2020, 97(Part B), 106707. [Google Scholar] [CrossRef]
  47. Marti, R. Multi-start methods. In Handbook of Metaheuristics; Glover, F., Konchenberger, G.A., Eds.; Kluwer Academic Publishers: Dordrecht, The Netherlands, 2003; pp. 355–368. [Google Scholar]
  48. Lin, S.-W.; Yu, V.F. A simulated annealing heuristic for the multiconstraint team orienteering problem with multiple time windows. Appl. Soft Comput. 2015, 37, 632–642. [Google Scholar] [CrossRef]
  49. Yu, V.F.; Lin, S.-W.; Lee, W.; Ting, C.-J. A simulated annealing heuristic for the capacitated location routing problem. Comput. Ind. Eng. 2010, 58, 288–299. [Google Scholar] [CrossRef]
  50. Yu, V.F.; Lin, S.-Y. A simulated annealing heuristic for the open location-routing problem. Comput. Oper. Res. 2015, 62, 184–196. [Google Scholar] [CrossRef]
  51. Coy, S.P.; Golden, B.L.; Runger, G.C.; Wasil, E.A. Using Experimental Design to Find Effective Parameter Setting for Heuristic. J. Heuristics 2000, 7, 77–97. [Google Scholar] [CrossRef]
  52. VRPTW Best Known Solutions. Available online: http://web.cba.neu.edu/~msolomon/heuristi.htm (accessed on 15 July 2020).
  53. Cook, W.; Rich, J.L. A Parallel Cutting-Plane Algorithm for the Vehicle Routing Problem with Time Windows; In Technical Report TR99-04; Computational and Applied Mathematics, Rice University: Housten, TX, USA, 1999. [Google Scholar]
  54. Chabrier, A. Vehicle routing problem with elementary shortest path based column generation. Comput. Oper. Res. 2006, 33, 2972–2990. [Google Scholar] [CrossRef]
Figure 1. Illustration of PCPTW.
Figure 1. Illustration of PCPTW.
Mathematics 09 01625 g001
Figure 2. Example of solution representation.
Figure 2. Example of solution representation.
Mathematics 09 01625 g002
Figure 3. Visual illustration of the example solution given in Figure 2.
Figure 3. Visual illustration of the example solution given in Figure 2.
Mathematics 09 01625 g003
Figure 4. Pseudocode of the proposed SARS.
Figure 4. Pseudocode of the proposed SARS.
Mathematics 09 01625 g004
Figure 5. Effect of parameter values on solution quality and computational time. (a) Iiter; (b) α; (c) T0; (d) TF; (e) NNon_Impro; (f) Mrestart.
Figure 5. Effect of parameter values on solution quality and computational time. (a) Iiter; (b) α; (c) T0; (d) TF; (e) NNon_Impro; (f) Mrestart.
Mathematics 09 01625 g005
Figure 6. Convergence history of SA and SARS.
Figure 6. Convergence history of SA and SARS.
Mathematics 09 01625 g006
Table 1. PCPTW instances with 15 customers.
Table 1. PCPTW instances with 15 customers.
No.XYQOPCLST
040500012000
1526510096790
2527230087090
324701044850590
432531072778290
531531006790
645792025532490
7517820022590
842712062170290
940781053460590
1023541056762090
11307310309290
12258020014690
1328783038442990
1424451035741090
15228040072190
Table 2. Parameters for the 2k factorial design of the experiment.
Table 2. Parameters for the 2k factorial design of the experiment.
ParameterLow (−)High (+)
Iiter13,00015,000
α0.950.99
T01050
TF0.0010.0001
Nnon-improving100150
Mrestart37
Table 3. Comparison between SARS and HVNTS on small PCP instances.
Table 3. Comparison between SARS and HVNTS on small PCP instances.
InstancenCSTmHVNTSSARSGap a
ObjObjCT
p1_s15500Inf5658.39658.3948.9130.00
p2_s15500Inf5623.63623.6248.7370.00
p3_s15500Inf5632.40632.4149.1460.00
p4_s15500Inf4604.09604.0846.990.00
p5_s15500Inf7781.59781.5954.5130.00
p6_s15505805636.64636.6653.7430.00
p7_s15505805617.44617.4149.59−0.01
p8_s15505805628.40628.4049.6720.00
p9_s15505805714.60724.6050.9141.40
p10_s15505965632.40632.4150.7420.00
Average 652.96653.9650.300.14
a Gap = (obj of SARS − obj of HVNTS)/obj of HVNTS × 100%.
Table 4. Comparison between SARS and HVTNS on large PCP instances.
Table 4. Comparison between SARS and HVTNS on large PCP instances.
InstancenCSTmHVNTSSARSGap a
ObjCTObjCT
p1501600Inf5865.886.74865.8870.460.00
p2751400Inf101434.5616.011441.91102.920.51
p31002000Inf81350.6112.111352.66125.930.15
p41502000Inf121803.8763.961808.40190.470.25
p51992000Inf172357.36117.312365.06251.700.33
p650160101606947.117.52947.1171.250.00
p77514010128111523.3222.311527.01104.230.24
p81002001018491443.3835.101441.95134.52−0.10
p915020010160142078.3542.081990.52186.81−4.23
p1019920010160182532.90220.382455.28241.45−3.06
p111202000inf71148.2939.001127.59145.63−1.80
p121002000inf101284.9919.871284.99132.510.00
p1312020050576111609.4223.011518.84165.59−5.63
p1410020090832111626.3931.181520.88137.56−6.49
Average 1571.8946.901546.29147.22−1.42
a Gap = (obj of SARS − obj of HVNTS)/obj of HVNTS × 100%.
Table 5. Comparison of SARS with other optimal solution heuristics on the VRPTW dataset with 25 customers.
Table 5. Comparison of SARS with other optimal solution heuristics on the VRPTW dataset with 25 customers.
InstanceOptimal SolutionSARSGap
TDNVCTTDNVCT
C101191.330.6191.339.70.00
C102190.331.9190.339.60.00
C103190.334.0190.339.30.00
C104186.938.5186.939.50.00
C105191.330.6191.339.80.00
C106191.330.6191.339.50.00
C107191.330.6191.339.50.00
C108191.330.6191.339.40.00
C109191.330.9191.338.80.00
C201214.72a214.724.00.00
C202214.72a214.724.90.00
C203214.72a214.722.90.00
C204213.12a213.122.60.00
C205214.72a214.723.00.00
C206214.72a214.722.90.00
C207214.52a214.523.00.00
C208214.52a214.523.70.00
R101617.180.2617.185.00.00
R102547.170.5547.173.00.00
R103454.650.9454.654.40.00
R104416.941.3416.942.70.00
R105530.560.3530.564.80.00
R106465.431.3465.432.80.00
R107424.341.5424.343.10.00
R108397.3418.6397.342.70.00
R109441.350.4441.352.70.00
R110444.145.9444.143.90.00
R111428.852.0428.853.90.00
R112393.0414.639344.90.00
R201463.341.9463.342.90.00
R202410.5418.8410.542.90.00
R203391.43355.4391.435.10.00
R204355.02b35523.70.00
R205393.0321.439332.80.00
R206374.43988.7374.432.70.00
R207361.639296.8361.632.70.00
R208328.21b328.212.80.00
R209370.721991.4370.725.30.00
R210404.632417.7404.636.70.00
R211350.9227,998.8350.925.80.00
RC101461.140.7461.144.10.00
RC102351.830.6351.835.90.00
RC103332.834.0332.835.20.00
RC104306.636.9306.634.50.00
RC105411.343.1411.345.90.00
RC106345.537.7345.535.20.00
RC107298.330.7298.339.20.00
RC108294.534.3294.5310.40.00
RC201360.23a360.236.00.00
RC202338.036386.733833.10.00
RC203326.93b326.933.20.00
RC204299.73b299.739.40.00
RC205338.0357.933833.80.00
RC206324.0382,387.532433.80.00
RC207298.33220,991.2298.337.30.00
RC208269.12b269.126.60.00
a = running time set to 2 until 25,000 s [53]. b = no mention of specific computing time [54]. Gap = (TD of SARS − TD of optimal solution)/TD of optimal solution × 100%.
Table 6. Comparison of SARS with other heuristics in the currently published papers on the VRPTW dataset with 100 customers (average best solution for each instance).
Table 6. Comparison of SARS with other heuristics in the currently published papers on the VRPTW dataset with 100 customers (average best solution for each instance).
C1C2R1R2RC1RC2
BKSTD828.38589.861180.36888.671339.241014.5
NV10.03.013.15.112.86.1
CGH [28] aTD828.38589.861183.38899.901341.671015.90
NV10.03.013.35.512.96.5
TD gap (%)0.000.000.271.360.160.15
Average CT3600
Average gap (%)0.37
PITSH [29] bTD828.38589.861209.19951.171385.901120.53
NV10.03.012.02.711.53.3
TD gap (%)0.000.002.536.993.239.85
Average CT2357
Average gap (%)3.78
CPLA [31]aTD828.38589.861232.13922.481355.361106.00
NV10.03.011.93.112.03.4
TD gap (%)0.000.004.673.501.258.60
Average CT-
Average gap (%)3.1
HSFLA [32] aTD828.38589.861210.34951.031384.171119.24
NV10.03.011.22.711.53.3
TD gap (%)0.000.002.656.973.099.72
Average CT112
Average gap (%)3.77
tabu–ABC [34] aTD828.38590.401187.90891.241361.081017.47
NV10.03.013.54.713.35.5
TD gap (%)0.000.090.720.231.660.29
Average CT560
Average gap (%)0.49
SARS bTD828.38589.861191.81894.471367.641024.55
NV10.03.914.06.713.57.3
TD gap (%)0.000.001.010.572.080.90
Average CT117
Average gap (%)0.75
a = population-based solution heuristic. b = single-based solution heuristic.
Table 7. Comparison of SARS with PITSH [29] and BKS on the VRPTW dataset with 100 customers (best solution for each instance).
Table 7. Comparison of SARS with PITSH [29] and BKS on the VRPTW dataset with 100 customers (best solution for each instance).
InstanceBKSPITSH [29]SARS
TDNVTDNVTDNVCT
C101828.9410828.9410828.941034.41
C102828.9410828.9410828.941064.70
C103828.0610828.0710828.061042.58
C104824.7710824.7810824.771039.95
C105828.9410828.9410828.941037.21
C106828.9410828.9410828.941038.00
C107828.9410828.9410828.941038.03
C108828.9410828.9410828.941040.56
C109828.9410828.9410828.941039.43
C201591.553591.563591.55333.58
C202591.563591.563591.56450.66
C203591.173591.173591.174133.34
C204590.63590.63590.604152.16
C205588.883588.883588.884102.72
C206588.493588.493588.49457.05
C207588.293588.293588.293119.90
C208588.323588.323588.325104.13
R1011642.87201650.8191644.2620123.50
R1021460.26181486.12171481.919122.26
R1031213.62141294.23131224.2415109.72
R104981.210981.2101002.4712135.96
R1051360.78151377.11141374.6816133.26
R1061241.52131252.62121253.8615105.66
R1071076.13111104.66101093.0812146.60
R108948.5710963.999954.4811115.38
R1091151.84131194.73111159.7213188.29
R1101080.36111118.84101081.7812116.81
R1111053.5121096.73101061.2912117.78
R112953.6310989.279969.9911119.95
R2011148.4891252.3741167.539114.19
R2021046.151191.731053.59134.87
R203884.025941.083891.617171.39
R204750.44825.522744.925105.27
R205960.755994.433978.748146.25
R206898.915906.143900.297160.37
R207809.724890.612809.365134.03
R208723.145726.822721.014136.85
R209863.125909.163875.476160.38
R210927.545939.373930.868248.89
R211763.224885.712765.876138.37
RC1011623.58151696.95141664.0617108.57
RC1021466.84141554.75121489.2215110.98
RC1031261.67111261.67111290.6212205.65
RC1041135.48101135.48101140.6410160.80
RC1051518.6161633.72131553.9516137.99
RC1061377.35131424.73111417.8714132.24
RC1071212.83121232.2111251.5113162.17
RC1081117.53111147.69101133.2511130.32
RC2011271.7871406.9441287.05996.13
RC2021113.5381367.0931109.519109.19
RC203941.8151050.643962.637200.41
RC204798.413798.463797.424109.55
RC2051161.8171297.6541186.549130.72
RC2061059.8971153.6131083.787150.00
RC207976.471061.143984.388153.98
RC208792.335828.713785.075152.26
Average981.148.51021.417.3990.239.4117.24
The italic font indicates that the proposed SARS outperforms PITSH on the corresponding instance. The bold font implies that the proposed SARS obtains a new BKS.
Table 8. Comparison among CPLEX, SA, and SARS on the PCPTW dataset with 25 customers.
Table 8. Comparison among CPLEX, SA, and SARS on the PCPTW dataset with 25 customers.
InstanceCPLEXSASARSGap1Gap2
NVTDCTNVTDCTNVTDCT
C1013368.920.313368.921.63368.9244.00.000.00
C1023368.920.643368.9213368.9210.10.000.00
C1033365.3118,0003365.3113365.319.80.000.00
C1043365.3118,0003365.311.63365.3110.20.000.00
C1053368.920.343368.922.53368.9210.40.000.00
C1063368.920.943368.921.33368.9210.60.000.00
C1073368.921.373368.921.13368.9210.60.000.00
C1083368.92119.153368.9223368.9210.50.000.00
C1093367.505503.93367.501.23367.5010.80.000.00
C2012353.140.612353.141.32353.149.70.000.00
C2021301.6516.381301.651.31301.659.30.000.00
C2031301.15174.591301.151.61301.158.90.000.00
C2041283.9918,0001283.991.91283.999.00.000.00
C2052353.140.452353.141.82353.149.50.000.00
C2062353.141.082353.141.92353.149.30.000.00
C2071347.9872.21347.981.51347.988.90.000.00
C2081307.38129.511307.382.11307.389.40.000.00
R10181025.130.3681025.11.281025.1311.00.000.00
R1027912.14461.097912.141.77912.1410.30.000.00
R1034682.444536.544682.4415.54682.4441.30.000.00
R1044652.5918,0004652.5914.74652.5945.00.000.00
R1055815.751565.755815.7525815.757.10.000.00
R1064769.453736.854769.451.24769.4515.50.000.00
R1074654.2714,010.34654.2714.34654.2741.50.000.00
R1083578.1818,0003578.1822.63578.1847.00.000.00
R1094673.546.934673.54154673.5443.30.000.00
R1104662.3418,0004660.371.54660.3742.6−0.30−0.30
R1114652.3318,0004652.332.14652.337.70.000.00
R1124636.8418,0004635.471.74635.478.7−0.22−0.22
R2012614.015.082614.010.92614.015.70.000.00
R2022541.13398.132541.131.82541.136.70.000.00
R2032505.4118,0002505.351.62505.358.7−0.01−0.01
R2041448.9218,0001448.9211448.9210.00.000.00
R2052516.48274.892516.4813.92516.4842.30.000.00
R2061457.373007.721457.3714.31457.3733.20.000.00
R2071437.3318,0001437.332.11437.337.40.000.00
R2081384.7818,0001384.782.41384.785.90.000.00
R2091470.491049.651470.491.41470.497.40.000.00
R2102507.995321.042507.991.32507.9913.10.000.00
R2111417.4518,0001417.4529.91417.4529.90.000.00
RC1014560.321.124560.321.34560.3211.80.000.00
RC1023418.8238.513418.821.63418.8210.60.000.00
RC1033403.596683.773403.5913403.5911.10.000.00
RC1043383.3918,0003383.391.43383.399.40.000.00
RC1054516.61715.434516.611.84516.619.30.000.00
RC1063406.667.13406.661.83406.668.80.000.00
RC1073386.5318,0003386.531.93386.5312.90.000.00
RC1083382.3918,0003382.392.33382.3912.60.000.00
RC2012477.541.532477.542.52477.5412.00.000.00
RC2023406.92307.533406.9212.33406.9237.10.000.00
RC2032397.4718,0002397.471.62397.4711.30.000.00
RC2041347.9818,0001347.981.61347.9814.50.000.00
RC2053408.826.013408.821.63408.8213.30.000.00
RC2062393.4355.052393.431.92393.4313.30.000.00
RC2072358.218019.472358.211.12358.2115.80.000.00
RC2082320.4218,0002320.421.52320.4212.70.000.00
Average2.7473.197127.432.7473.134.072.7473.1316.2−0.01−0.01
Table 9. Comparison among CPLEX, SA, and SARS on the PCPTW dataset with 50 customers.
Table 9. Comparison among CPLEX, SA, and SARS on the PCPTW dataset with 50 customers.
InstanceCPLEXSASARSGap1Gap2
NVTDCTNVTDCTNVTDCT
C1015641.760.15641.7620.35641.7659.80.000.00
C1025641.1518,0005641.1520.45641.1559.00.000.00
C1035638.1518,0005638.1520.55638.1564.40.000.00
C1045637.1618,0005637.0023.45637.00104.7−0.03−0.03
C1055641.371.15641.3720.35641.3758.30.000.00
C1065641.370.35641.3720.45641.3758.50.000.00
C1075641.370.45641.3720.15641.3758.50.000.00
C1085641.37486.795641.3720.75641.3759.60.000.00
C1095640.7718,0005640.7720.65640.7758.90.000.00
C2013557.570.13557.5719.73557.5755.40.000.00
C2022532.5918,0002532.5919.12532.5959.90.000.00
C2032534.4718,0002532.3322.92532.3360.8−0.40−0.40
C2042475.1618,0002500.3423.12499.17103.05.305.05
C2052530.132.73557.1919.33557.1976.75.105.10
C2062529.5718,0003557.1920.73557.1976.75.225.22
C2072526.3418,0002550.7720.33556.98102.24.645.82
C2082504.5618,0002504.5624.42504.5673.30.000.00
R101111634.310.5121638.9422.8121638.9475.30.280.28
R102101423.3918,000101423.4024101423.492.40.000.00
R10381226.0118,00081230.5625.181223.7390.80.37−0.19
R1046988.7518,0006989.5522.76988.7576.40.080.00
R10581366.1630.091375.3834.591375.3886.10.670.67
R10671191.8918,00081225.3041.581224.34110.32.802.72
R10771111.0318,00071127.0222.661065.79115.71.44−4.07
R1086988.8618,0006977.9150.46977.91155.8−1.11−1.11
R10981228.9718,00081232.272671187.8197.60.27−3.35
R11081194.4718,00071122.3730.971122.62103.6−6.04−6.02
R11171127.7918,00071108.904171109.3592.2−1.67−1.64
R11271076.9518,00071068.8042.171068.8128.7−0.76−0.76
R20131017.1911.341053.6025.141035.53112.43.581.80
R2023908.9218,0004931.1021.23909.7185.52.440.09
R2033790.5418,0003790.54213790.54103.40.000.00
R2042658.6918,0002642.6227.42641.97108.5−2.44−2.54
R2052853.5918,0003924.2819.23876.2981.88.282.66
R2063848.8818,0002793.2419.12788.3077.3−6.55−7.14
R2073779.0518,0002704.68242704.6879.0−9.55−9.55
R2082637.8918,0002637.9329.12636.285.50.01−0.26
R2092772.4518,0003798.8123.23776.2594.83.410.49
R2103845.7418,0003825.9325.53816.2392.9−2.34−3.49
R2113779.7718,0003744.0433.92688.5388.8−4.58−11.7
RC10181084.0237.6191119.8622.981084.0292.63.310.00
RC1027916.3418,0007916.3924.27916.34105.80.010.00
RC1036805.2618,0006805.2631.96805.2665.60.000.00
RC1045664.5718,0005663.2037.15663.2106.7−0.21−0.21
RC10581044.1618,00081041.0628.281041.0689.3−0.30−0.30
RC1066820.2418,0006820.2420.86820.2486.50.000.00
RC1076770.9218,0006770.9220.96770.9269.40.000.00
RC1086745.4218,0006744.37396744.3797.7−0.14−0.14
RC2015754.002.15754.0020.2575460.10.000.00
RC2024708.0418,0005712.51235713.5193.30.630.77
RC2034651.6518,0004653.6532.14653.6596.00.310.31
RC2043528.0218,0002523.4236.72520.2993.5−0.87−1.46
RC2054727.3918,0005732.9620.75732.9657.40.770.77
RC2064705.1618,0005716.4920.84705.1672.61.610.00
RC2074662.8818,0004654.5133.64654.5182.5−1.26−1.26
RC2083578.6718,0003568.7035.13560.4198.2−1.72−3.16
Average4.8813.8014,153.14.9814.6726.04.84808.4485.570.19−0.48
Table 10. Comparison among CPLEX, SA, and SARS on the PCPTW dataset with 100 customers.
Table 10. Comparison among CPLEX, SA, and SARS on the PCPTW dataset with 100 customers.
InstanceCPLEXSASARSGap1Gap2
NVTDCTNVTDCTNVTDCT
C101101306.017.3101306.0136.9101306.01135.50.000.00
C102101306.0118,000101306.0136.8101306.01110.70.000.00
C103101306.0118,000101303.0151.7101303.01125.9−0.23−0.23
C104101316.318,000101302.2461.3101302.24177.2−1.07−1.07
C105101305.624.6101305.6238.2101305.62131.60.000.00
C106101305.6217.0101305.6256.4101305.6297.40.000.00
C107101305.6232.7101305.6252.7101305.62146.50.000.00
C108101305.2418,000101305.2442.2101305.24169.90.000.00
C109101555.7418,000101305.2441.3101305.24141.0−16.10−16.10
C2013818.0613.23818.0648.93818.0689.50.000.00
C2023818.063191.23818.0666.93818.0693.10.000.00
C2033824.3918,0003817.6747.03817.67161.3−0.82−0.82
C2043823.618,0004899.2796.84899.27186.39.199.19
C2053815.38689.83815.3846.64904.61199.00.0010.94
C2063814.9918,0003814.9951.53814.99191.40.000.00
C2073814.7918,0003814.7934.13814.79143.90.000.00
C2083814.8218,0004915.864.13814.82205.912.390.00
R101192632.31.9202700.7974.8192643.37153.32.600.42
R102172378.9518,000182433.95110.2172398.52236.72.310.82
R103152125.6318,000152100.26128.7142040.24231.9−1.19−4.02
R104111719.618,000111678.83108.8101614.76233.5−2.37−6.10
R105142129.2718,000162265.2952.1152186.55190.06.392.69
R106142080.3618,000142064.2372.3142042.94263.8−0.78−1.80
R107121836.1318,000121835.8690.6121806.67300.7−0.01−1.60
R108111681.6418,000101583.57103.7101577.02240.9−5.83−6.22
R109132011.6418,000142010.3464.2142006.66199.6−0.06−0.25
R110142013.5118,000131880.8173.1131887.7198.2−6.59−6.25
R111131951.3318,000131877.2129.7121812.26227.1−3.80−7.13
R112131898.3718,000121734.8679.1111645.18247.4−8.61−13.34
R20151522.3318,00081652.1561.471621.1219.58.536.49
R20261511.6618,00061434.72119.561479.13219.6−5.09−2.15
R20351357.3218,00051280.3952.151226.83190.7−5.67−9.61
R20441090.1318,00041050.4459.541048.07203.3−3.64−3.86
R20551406.3818,00051330.0267.751303.99162.2−5.43−7.28
R20641316.5218,00051255.04114.751226.62283.2−4.67−6.83
R20751219.3918,00041097.4594.141097.48174.0−10.00−10.00
R20841055.7218,0003954.6962.53948.92218.1−9.57−10.12
R20951236.5118,00051239.7353.751234.7221.30.26−0.15
R21051454.2718,00061298.1274.041183.89196.7−10.74−18.59
R21151325.7518,00041085.9560.041069.47184.9−18.09−19.33
RC101152180.0918,000172310.5153.9162266.83164.15.983.98
RC102142036.6918,000142016.9292.1142040.72194.4−0.970.20
RC10312183518,000121784.4399.3121800.83219.7−2.76−1.86
RC104111628.3618,000111622.1399.1111613.02187.2−0.38−0.94
RC105162214.9118,000162211.3868.6152154.06227.1−0.16−2.75
RC106131908.6418,000141969.2582.9141970.76204.93.183.25
RC107131897.318,000121727.5571.6121726.75189.4−8.95−8.99
RC108131815.5818,000121682.2285.0111658.12263.8−7.35−8.67
RC20161562.1718,00091675.8463.571612.73185.47.283.24
RC20261504.5418,00071507.2860.671495.52208.40.18−0.60
RC20351330.1618,00061316.05102.651249.11250.9−1.06−6.09
RC20441385.5218,00051132.9147.741083.5205.3−18.23−21.80
RC20571529.7918,00071528.7945.471547.78188.5−0.071.18
RC20651585.3418,00071469.6677.071448.7285.0−7.30−8.62
RC20771425.7518,00071397.6492.661327.52145.4−1.97−6.89
RC20861247.0118,00051180.2291.351138.13183.5−5.36−8.73
Average8.71510.6815,499.38.91479.2271.78.61458.63193.0−2.08−3.33
Table 11. Summary of the instances that obtain the optimal solution between CPLEX and SARS.
Table 11. Summary of the instances that obtain the optimal solution between CPLEX and SARS.
Instance SizeCPLEXSARSGap *
N-OptimalTotal TDTotal CTN-OptimalTotal TDTotal CT
Small3717,889.7156,231.323717,889.71593.50.00
Medium1210,150.62573910,209.87853.30.58
Large810,306.673957.7610,406.971045.90.97
Total5738,347.0060,762.025238,506.552492.70.42
* Gap = (Total TD of SARS − Total TD of CPLEX)/Total TD of CPLEX × 100%.
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Yu, V.F.; Winarno; Maulidin, A.; Redi, A.A.N.P.; Lin, S.-W.; Yang, C.-L. Simulated Annealing with Restart Strategy for the Path Cover Problem with Time Windows. Mathematics 2021, 9, 1625. https://doi.org/10.3390/math9141625

AMA Style

Yu VF, Winarno, Maulidin A, Redi AANP, Lin S-W, Yang C-L. Simulated Annealing with Restart Strategy for the Path Cover Problem with Time Windows. Mathematics. 2021; 9(14):1625. https://doi.org/10.3390/math9141625

Chicago/Turabian Style

Yu, Vincent F., Winarno, Achmad Maulidin, A. A. N. Perwira Redi, Shih-Wei Lin, and Chao-Lung Yang. 2021. "Simulated Annealing with Restart Strategy for the Path Cover Problem with Time Windows" Mathematics 9, no. 14: 1625. https://doi.org/10.3390/math9141625

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