#### Abstract

We propose a heuristic approach based on the Clarke-Wright algorithm (CW) to solve the open version of the well-known capacitated vehicle routing problem in which vehicles are not required to return to the depot after completing service. The proposed CW has been presented in four procedures composed of Clarke-Wright formula modification, open-route construction, two-phase selection, and route postimprovement. Computational results show that the proposed CW is competitive and outperforms classical CW in all directions. Moreover, the best known solution is also obtained in 97% of tested instances (60 out of 62).

#### 1. Introduction

The open vehicle routing problem (OVRP) was firstly solved by Sariklis and Powell [1] in their paper on distribution management problems. The characteristics of OVRP are similar to the capacitated vehicle routing problem (CVRP), which can be described as the problem of determining a set of vehicle routes to serve a set of customers with known geographical coordinates and known demands. A route represents a sequence of locations that a vehicle must visit. The distances between customer locations and between them and the depot are calculated or known in advance. For each route, the vehicle departs from the depot and returns to the depot after completing the service. The CVRP involves a single depot, a homogeneous fleet of vehicles, and a set of customers who require delivery of goods from the depot. The objective of the CVRP is to construct a feasible set of vehicle routes that minimizes the total traveling distance and/or the total number of vehicles used. Furthermore, the route must satisfy the constraints that each customer must be visited once, the demands of customers are totally satisfied, and the vehicle capacity is not exceeded for each route. In contrast, in the OVRP the companies either do not have their own vehicle available or the vehicles are inadequate to serve their customers. In this situation, the subcontracted vehicles will be hired from logistics outsourcing companies. Therefore, the transportation cost only depends on the traveling distance from depot to customers in which vehicles do not return to the depot and the maintenance cost does not occur. In another situation, the vehicles may return to the depot by following the same route in reverse order to collect items from the customers. The real-world case studies of OVRP are presented including a train plan model for British Rail freight services through the Channel Tunnel [2], the school bus routing problem in Hong Kong [3], the distribution of fresh meat in Greece [4], the distribution of a daily newspaper in the USA [5, 6], a lubricant distribution problem in Greece [7], and a mines material transport vehicle routing optimization in China [8].

The CVRP is one of the most important and widely studied problems in the area of combinatorial optimization. It comprises the traveling salesman problem (TSP) and the bin packing problem. The main distinction between OVRP and CVRP is that in CVRP each route is TSP which requires a Hamiltonian cycle [9], but in OVRP each route is a Hamiltonian path. Held and Karp [10] and Miller and Thatcher [11] have shown that the TSP is classified as NP-hard (Non-deterministic Polynomial-time hard) problem. In addition, the Hamiltonian path has also been shown to be NP-hard [12]. Besides, the CVRP and OVRP are NP-hard [13–15]. In Figure 1, the best known solution for the OVRP is very different from the CVRP, and we also refer to Syslo et al. [12] that deleting the largest edge from a minimum Hamiltonian cycle does not necessarily yield the minimum Hamiltonian path in the network. The CVRP has attracted many researchers since Dantzig and Ramser [16] proposed the problem in 1959. Many efficient heuristics were presented to solve the CVRP. Conversely, from the early 1980s to the late 1990s, OVRP received very little attention in the operations research literature compared to CVRP. However, since 2000, several researchers have used various heuristics to solve OVRP, such as a tabu search [14, 17, 18], an ant colony system [19], a variable neighborhood search [20], a particle swarm optimization [21], and a genetic algorithm [8].

The CW was proposed by Clarke and Wright [22] who introduced the savings concept which is based on the computation of savings for combining two customers into the same route. The CW is a widely known heuristic for solving the vehicle routing problem (VRP), and the applications of CW have continued since it was proposed in 1964. Improvements to the CW solution include proposed new parameters to the Clarke-Wright formulation composed of the nearest terminal for solving multidepot VRP [23], deleting for solving OVRP [24], an estimate of the maximum savings value , and a penalty multiplier for solving VRP with backhauls [25], route shape for solving CVRP [26, 27], weight for asymmetric solving CVRP [28], the customer demand for solving CVRP [29], and the cosine value of polar coordinate angles of customers with the depot for solving CVRP [30]. Second is improvements to the CW solution by proposed new probabilistic approaches to the CW procedure composed of the Monte Carlo simulation, cache, and splitting techniques for solving CVRP [31, 32], the two-phase selection and route postimprovement for solving CVRP [33, 34]. Based on our review, there are very few works available in the literatures to modify the CW for solving OVRP (only Bodin et al. [24]). Therefore, this is our major contribution to improve the CW solution by using our simple, efficient, and competitive approach. In the proposed CW, we have modified the parallel version of CW to deal with OVRP and have combined this with a route postimprovement procedure which refers several neighborhood structures from the works of Subramanian et al. [35] and Groër et al. [36]. Moreover, the numerical experiment of CW for solving OVRP benchmark instances is also presented.

#### 2. The Proposed Clarke-Wright Algorithm

Because CW is a heuristic algorithm, it cannot guarantee the best solution. Therefore, we introduce the modified version of the Clarke-Wright algorithm in which the parallel version of CW is implemented since it usually generates better results than the corresponding sequential version [13, 37]. The flowchart of the proposed CW is given in Figure 2. First, the Euclidean distance matrix () is calculated with the following equation: where and are the geographical locations of customer and . Second, the savings value between customer and is calculated as where is the traveling distance between depot and customer and is the traveling distance between customer and . Equation (2) is modified by Bodin et al. [24] from the Clarke-Wright formulation which is shown in (3). After calculation, all savings values are collected in the savings list as follows: Third, the values in the savings list are sorted in decreasing order. Finally, the route merging procedure starts from the top of the savings list (the largest ). Both customers and will be combined into the same route if the total demand does not exceed vehicle capacity and no route constraints exist. Each condition for route constraints is described by three cases of five customers as shown in Figure 3. In Figure 3(a), (1 nor 3) have already been assigned to a route (1-2-3). In Figure 3(b), exactly one of the two customers (2 or 4) has already been included in an existing route (1-2-3) and customer (2) is not interior to that route (a customer is interior to a route if it is not adjacent to the depot in the order of traversal of customers). In Figure 3(c), both customers (2 and 4) have already been included in two different existing routes (1-2 and 3-4-5), and customer (4) is also interior to its route (3-4-5). The route merging procedure is repeated until no feasible merging in the savings list is possible. Furthermore, in case of nonrouted customers, each is assigned by a route that starts at the depot, visits the unassigned customer, and returns to the depot.

**(a)**

**(b)**

**(c)**

The proposed CW is an iterative improvement approach designed to find the global optimum solutions. It has been presented in four procedures consisting of Clarke-Wright formula modification, open-route construction, two-phase selection, and route postimprovement. The details of these procedures are shown below.

##### 2.1. The Clarke-Wright Formula Modification Procedure

Due to the latest improvement of CW for solving VRP that we mentioned in the literatures above, many authors proposed new parameters which we applied to this procedure. Gaskell [26] and Yellow [27] presented a route shape () parameter which controls the relative significance of direct arc between two customers. Their proposed savings formula is as follows: According to (2), we also modified (4) by deleting for solving OVRP with the following equation: The parameter could be varied as studied by Altinel and Öncan [29]. They used a simple enumerative approach to produce 8820 different solutions (, , ). After that the best solution will be chosen. In order to avoid time-consuming iterative solutions, we have therefore applied only single parameter () to this procedure.

##### 2.2. The Open-Route Construction Procedure

In order to solve CVRP by the CW after the route merging procedure, this procedure is needed to create the solution. Each route has to construct for the close route (Hamiltonian cycle) by assigning the first customer who starts at the depot, and the last customer who returns to the depot. As shown in Figure 4(a), the Euclidean distance represented in this paper is symmetric. Therefore, the two possible CVRP solutions (1-2-3-4-1 and 1-4-3-2-1) are similar. In contrast, in OVRP each route has to construct for the open route (Hamiltonian path) by only assigning the first customer who starts at the depot. As shown in Figure 4(b), the two possible OVRP solutions (1-2-3-4 and 1-4-3-2) are very different. Consequently, in this procedure, the two possible OVRP solutions are constructed, and then the best solution will be selected as the OVRP solution.

**(a)**

**(b)**

##### 2.3. The Two-Phase Selection Procedure

After the CW solution is produced from a standard savings list generated by sorting the savings values in the decreasing order, this savings list will be regenerated as a new one by sorting the savings values randomly with probability. Pichpibul and Kawtummachai [34] introduced the two-phase selection procedure for CVRP. In this paper, we adjust this procedure to deal with an OVRP by based on an operation of the genetic algorithm [38]. Figure 5(a) shows a genetic representation of chromosomes for ten savings values. The savings list is represented by one chromosome, and each gene represents the savings value between customers and . In the first iteration, the chromosome is the savings list sorted by the decreasing order, but in next iteration the chromosome is the savings list derived from the best one. In Figure 5(b), we select one gene from the top four genes () in the chromosome by fitness proportionate selection or roulette wheel selection. Here is tournament size which is a random number between three and six. In order to create a roulette wheel, the selection probability () and cumulative probability () with savings value () for each gene () are calculated using the following equations: After that, we spin the wheel with a random number () from the range between 0 and 1. The one savings value () will be selected to be a gene of a new chromosome by considering and . If , then select the first savings value ; otherwise, select the th savings value such that . The selected gene is removed from the chromosome which leaves nine savings values as shown in Figure 5(c). Figure 5(d) shows the same selection process in the next iteration with parameters and . Therefore, this procedure will be executed until the last gene of the chromosome is selected to be a gene of the new chromosome which is shown in Figure 5(e).

When the new chromosome which represents the new savings list is generated, it is calculated by the route merging procedure and the open-route construction procedure to produce a new OVRP solution. After we compare two solutions, the new chromosome will replace the previous chromosome only if the new solution is better than the previous one. This acceptance criterion is referred to a basic variable neighborhood search which is to accept only improvements [39]. Our approach is continued until the stopping criterion, which is the number of global iterations for two-phase selection, is satisfied.

##### 2.4. The Route Postimprovement Procedure

In order to find any further improvements for the best solution found when the stopping criterion of the two-phase selection procedure is satisfied, we have developed the route postimprovement procedure to generate different routes in our best solution. In order to explore the whole neighborhood of our best solution, we focus on the order of customers in single route called intraroute and multiple routes called interroute. The neighborhood structures that we used are several well-known move operators found in the works of Subramanian et al. [35] and Groër et al. [36] including shift moves (1-0, 2-0, 3-0), swap moves (1-1, 2-1, 2-2), and -opt moves (). The shift moves remove customers and insert them in another place. The swap moves select customers and exchange them. The -opt moves remove edges between customers and replace them with new edges. Our scheme is adapted from the local search strategy found in Çatay [40] by first applying a local neighborhood search to improve our best solution in each route. Then, a larger neighborhood search is applied across each pair between routes, respectively, by using all eight move operators with equal probability. This procedure is repeated until the stopping criterion, which is the number of consecutive iterations without any improvements in the best found solution, is satisfied.

#### 3. Computational Results

The proposed CW was coded in Visual Basic 6.0 on an Intel Core i7 CPU 860 clocked at 2.80 GHz with 1.99 GB of RAM under Windows XP platform. The numerical experiment used five well-known data sets of Euclidean benchmarks (composed of 62 instances) of the OVRP consisting of Augerat et al. [41] in data sets A, B, and P, Christofides and Eilon [42] in data set E, and Fisher [43] in data set F. The input data is available online at http://www.branchandcut.org/ (last access 1/2010). The best known solutions which are available online at http://www.hha.dk/~lys/ (last access 7/2011) are obtained by a branch-and-cut algorithm from the work of Letchford et al. [44]. In our approach, some parameters have to be preset before the execution as shown in Table 1. Table 2 describes the development of the proposed CW in detail.

The benchmark problem sizes that we highlighted in this paper are classified as small-scale (less than 50 customers) and medium-scale (between 51 to 100 customers) with different features, for example, uniformly and not uniformly dispersed customers, clustered and not clustered, with a centered or not centered depot. All problems also include capacity constraints and minimum number of vehicles used restrictions. The first benchmark in data sets A, B, and P was proposed by Augerat et al. [41]. For the instances in data set A, both customer locations and demands are randomly generated. The customer locations in data set B are clustered instances. The modified version of other instances is data set P. In these data sets, the problem ranges in size from 16 to 69 customers including the depot. The second benchmark in data set E was proposed by Christofides and Eilon [42]. In this data set, the customers are randomly distributed in the plane and the depot is either in the center or near to it. The problem ranges in size from 22 to 101 customers including the depot. The third benchmark in data set F is the real-life problem given by Fisher [43]. Instances F-n45-k4 and F-n135-k7 represent a day of grocery deliveries from the Peterboro and Bramalea, Ontario terminals, respectively, of National Grocers Limited. Instance F-n72-k4 represents the delivery of tires, batteries, and accessories to gasoline service stations. The depot is not centered in both instances. The problem ranges in size from 45 to 135 customers including the depot. We discuss each benchmark problem in which the percentage improvement between CW solution (cws) and obtained solution (obs) is calculated as follows: Moreover, the percentage deviation between obtained solution (obs) and the best known solution (bks) is also calculated as follows: The computational results for OVRP benchmark instances of Augerat et al. [41], Christofides and Eilon [42], and Fisher [43] are reported in Tables 3–5. We do not only consider the improvements of our solutions over CW solutions as shown in Table 3, but also show the performance of our solutions by comparing the proposed CW with the algorithms for OVRP as shown in Tables 4 and 5 by using the following abbreviations: MA for Mirhassani and Abolghasemi [21], B for Brandão [14], PR for Pisinger and Ropke [45], LGW for Li et al. [46] and FOH for Fleszar et al. [20]. Results from Tables 3–5 indicate that the proposed CW can find high quality solutions within reasonable time, especially for small and medium scale problems. Out of 62 problems, we find the optimal solutions for 60 problems with up to 134 customers. For two problems with 100–134 customers, the percentage deviations between our solutions and the optimal solutions are very low (E-n101-k8 and F-n135-k7). Nevertheless, in those optimal and near optimal solutions, there are four problems (A-n34-k5, P-n50-k7, F-n72-k4, and E-n76-k10) for which our results in Tables 4 and 5 are better than the others. Moreover, our results in Table 3 show that the proposed CW always performed better than CW. These indicate that the proposed CW is effective and efficient in producing high quality solutions for well-known benchmark problems. The important details of our improvement are discussed below.

The average percentage improvements between CW solutions and our solutions for benchmark of data sets A, B, P, E, and F are presented in Table 3. We have found that CW solutions were improved by the average of 15.712%. This finding shows that data set F has the highest average improvement and data set B has the lowest average deviation. The greatest improvements of CW solutions are, respectively, presented in top three instances including A-n39-k6 (26.019%), A-n54-k7 (25.458%), and F-n135-k7 (24.916%). We can conclude that the problems which have the features like clustered customers can be solved by CW better than the problems which have the features like dispersed customers. In addition, the results show that the proposed CW can solve both above-mentioned problems to obtain optimal or near optimal solutions.

The performance of route postimprovement procedure can be described as the reduction of the percentage deviation between CW-2 and CW-3 solutions. The average reduction of the percentage deviation between CW-2 solutions and CW-3 solutions for benchmark of data sets A, B, P, E, and F are 3.652, 3.857, 3.938, 3.699, and 4.806. We have found that CW-3 solutions were reduced by the average of 3.838%. The greatest reductions of CW-3 solutions are, respectively, presented in top three instances including B-n64-k9 (11.769%), P-n50-k7 (10.866%), and A-n45-k6 (10.460%). According to Table 3, some CW-3 solutions can be reduced to obtain the optimal solutions.

Another finding from our work is the infeasible solutions produced by CW in which the number of vehicles used is inadequate. This finding is referred to Vigo [47] that CW does not allow for the control of the number of routes of the final solution. The solution found for a given instance can, in fact, require more than routes to serve all the customers, hence being infeasible.

#### 4. Conclusions

In this paper, we have presented a new heuristic approach based on Clarke-Wright algorithm to solve the open vehicle routing problem (OVRP). We have modified the Clarke-Wright algorithm with three procedures composed of Clarke-Wright formula modification, open-route construction, and two-phase selection and have combined them with a route postimprovement procedure in which the neighborhood structures composed of shift, swap, and -opt move operators are used to improve our best solution. We also have done experiments using six well-known data sets of OVRP (composed of 62 instances) obtained from the literatures. The numerical results show that our approach is competitive and our solutions outperform Clarke and Wright [22] in all directions. Moreover, it also generates the best known solutions in 97% of all instances (60 out of 62).

During the development of our approach, we have mentioned the ideas related to the CW that deserve more attention in further studies. Consequently, it may be interesting to develop a more powerful postimprovement procedure. An additional study is to extend the proposed CW to deal with other variants of the studied problems such as simultaneous pickup and delivery (VRPSPD) or time windows (VRPTW).