Improved Approximation Algorithms for Capacitated Vehicle Routing with Fixed Capacity
Abstract
The Capacitated Vehicle Routing Problem (CVRP) is one of the most extensively studied problems in combinatorial optimization. Based on customer demand, we distinguish three variants of CVRP: unit-demand, splittable, and unsplittable. In this paper, we consider -CVRP in general metrics and on general graphs, where is the vehicle capacity. All three versions are APX-hard for any fixed . Assume that the approximation ratio of metric TSP is . We present a -approximation algorithm for the splittable and unit-demand cases, and a -approximation algorithm for the unsplittable case. Our approximation ratio is better than the previous results when is less than a sufficiently large value, approximately .
For small values of , we design independent and elegant algorithms with further improvements. For the splittable and unit-demand cases, we improve the approximation ratio from to for , and from to for . For the unsplittable case, we improve the approximation ratio from to for , from to for , and from to for . The approximation ratio for surprisingly achieves the same value as in the splittable case. Our techniques, such as EX-ITP – an extension of the classic ITP method, have the potential to improve algorithms for other routing problems as well.
Keywords and phrases:
Combinatorial Optimization, Capacitated Vehicle Routing, Approximation Algorithms, Graph AlgorithmsCopyright and License:
2012 ACM Subject Classification:
Theory of computation Approximation algorithms analysisAcknowledgements:
We would like to thank all reviewers for their valuable comments.Funding:
The work is supported by the Postdoctoral Fellowship Program of CPSF under Grant Number GZC20251102, and the National Natural Science Foundation of China under the grants 62372095, 62172077, and 62350710215.Editors:
Paweł Gawrychowski, Filip Mazowiecki, and Michał SkrzypczakSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
In the Capacitated Vehicle Routing Problem (CVRP), we are given an undirected complete graph with edge weights satisfying the symmetric and triangle inequality properties. The nodes in represent customers and each customer has a demand . A vehicle with a capacity of is initially located at the depot . A tour is a walk that begins and ends at the depot and the sum of deliveries to all customers in it is at most . The distance of a tour is the sum of the weights of edges in the tour. In CVRP, we wish to find a set of tours to satisfy the demand of every customer with minimum total distance. We use -CVRP to denote the problem where the capacity is a fixed integer. In the unsplittable version of the problem, the demand of each customer can only be delivered by a single tour. In the splittable version, the demand of each customer can be delivered by more than one tour. If the demand of each customer is 1, it is called the unit-demand version.
Since CVRP was raised by Dantzig and Ramser [12] in 1959, it has become a very famous problem with numerous applications in combinatorial optimization. It has been widely studied in both theory and application. Readers can refer to a survey [36] for its applications and fast solvers in practice. In theory, it is a rather rich problem in approximation algorithms [8, 7, 30, 31, 11, 14].
When or , -CVRP can be solved in polynomial time [4]. However, for each fixed , the problem becomes APX-hard, even for the unit-demand case [3]. A classic algorithm known as Iterated Tour Partitioning (ITP) was introduced about 40 years ago [19]. ITP is not only efficient in practice but also achieves strong theoretical approximation guarantees. Assuming we are given an -approximation algorithm for metric TSP, for both splittable -CVRP and unit-demand -CVRP, ITP achieves an approximation ratio of [19]. For unsplittable -CVRP, a variant of ITP called UITP achieves an approximation ratio of for even and for odd [1].
For metric TSP, there is a well-known -approximation algorithm [9, 35]. Although a recent breakthrough by Karlin, Klein, and Oveis Gharan [24, 25] has improved the approximation ratio to , where , this improvement is too small to significantly affect the analysis for -CVRP. Thus, for ease of comparison, we may continue to assume an approximation ratio of for metric TSP in our algorithms.
Due to its simplicity and versatility, the ITP algorithm has been adapted for various other vehicle routing problems [29]. However, for general metrics, there have been few improvements over ITP in approximating -CVRP.
One interesting improvement was done by Bompadre et al. [8] about 20 years ago. For any , they improved the approximation ratio by a term of for all three versions of -CVRP. Specifically, for , the improvement was for the splittable and unit-demand cases, and for the unsplittable case. These results are still the best-known approximation ratios for many small values of . Recently, one significant progress was done by Blauth et al. [7]. They improved the approximation ratio to for the splittable and unit-demand cases, and to for the unsplittable case, where is a small value related to , with when . While this provides a slight improvement in the constant part of the approximation ratio, it does not outperform the approximation ratio in [8] for small values of . Friggstad et al. [15] proposed two further improvements for unsplittable -CVRP. The first is an -approximation algorithm using a combinatorial method, while the second is an -approximation algorithm based on LP rounding, with a running time of . They also showed that both approximation ratios can be further improved by a small constant through the method from [7].
For small , -CVRP has garnered independent interest [2, 23, 8]. For unit-demand -CVRP, ITP achieves an approximation ratio of . Based on the -approximation algorithm for MAX TSP on general graphs [23], Bazgan et al. [5] proposed a -approximation algorithm, marking the first known improvement. Leveraging the best-known -approximation algorithm for MAX TSP [13], the approximation ratio of their algorithm can be further improved to . For unit-demand 4-CVRP, ITP achieves an approximation ratio of 2.125. Anily and Bramel [2] proposed an approximation algorithm for Capacitated TSP with Pickups and Deliveries, demonstrating that their algorithm can be applied to unit-demand -CVRP. Their approach achieves an improved approximation ratio only for , with an approximation ratio of 1.750, which remains the best-known result.
Beyond the aforementioned algorithms, another approach for solving -CVRP with is to reduce it to the more general minimum weight -set cover problem [10, 21, 18]. By treating each feasible tour as a -set, this reduction applies to both unit-demand -CVRP and unsplittable -CVRP. For splittable -CVRP, it can be shown that it is equivalent to unit-demand -CVRP when . Since there are feasible tours, the reduction is polynomial for . Gupta et al. [18] improved the approximation ratio for the minimum weight -set cover problem to , where is the -th harmonic number. For , this achieves an approximation ratio of 1.792, surpassing all previous results for both splittable 3-CVRP and unit-demand 3-CVRP. Furthermore, this algorithm yields the best-known approximation ratio for unsplittable -CVRP when .
In this paper, we focus on approximation algorithms for -CVRP with bounded . As highlighted in [6, 8], many practical problems involve small values of . For example, a logistics company raised the need to transport newly produced cars using a truck with a capacity of at most six cars, where the capacity . In benchmark datasets, the capacities of the instances are also typically in the range of hundreds or thousands [37]. These examples demonstrate the practical relevance and significance of studying -CVRP with bounded .
1.1 Our Contributions
We present several algorithms for -CVRP, improving the best-known approximation ratios for any . This threshold is quite large, and to our knowledge, the capacity of all practical and artificial instances does not exceed this value. We summarize our contributions to splittable (including unit-demand) -CVRP and unsplittable -CVRP separately below.
For splittable -CVRP and unit-demand -CVRP, we have the following contributions.
-
1.
Based on a new concept of home-edges, which are edges incident to the depot in an optimal solution, we obtain tighter lower bounds for -CVRP based on the minimum weight spanning tree and several different kinds of cycle covers (Sect. 3). Our analysis shows that if the lower bound used for the connection part of ITP in [1, 19] is tight, the optimal solution weight (denoted by OPT) will be dominated by home-edges, enabling the computation of a Hamiltonian cycle with cost OPT and a cycle cover with zero cost in polynomial time. Since the upper bound on the cost of the Hamiltonian cycle in [1, 19] is , we can obtain significant improvements for this case. Otherwise, since the lower bound for the connection part is not tight, we obtain improvements as well. Note that our lower bounds are also suitable for the unsplittable case.
-
2.
The classic ITP algorithm is based on a given Hamiltonian cycle of the graph. We extend ITP to an algorithm based on any cycle cover, called EX-ITP. One advantage is that an optimal cycle cover is polynomially computable [20]. Based on EX-ITP with our new lower bounds, we can quickly improve the approximation ratio from 1.792 to 1.500 for 3-CVRP and from 1.750 to 1.667 for 4-CVRP. Then, based on a good structural property related to perfect matchings, we can surprisingly improve the approximation ratio to for 4-CVRP (Sect. 5). Then, to obtain improvements for larger , we also consider mod--cycle covers (the length of each cycle in it is divisible by ). We show that given an -approximation algorithm for metric TSP, by making a trade-off among two Hamiltonian cycles and a cycle cover with ITP and EX-ITP, we can achieve an approximation ratio of , improving the previous approximation ratio of [7, 8] for small (Sect. 6.1)222With a more careful analysis, the previous results may be further improved slightly. However, the improvement is small and not mentioned in any published paper.. Our approximation ratio achieves when . If is smaller, we obtain better results.
-
3.
The best approximation ratio for metric TSP is still about . Under , the current best approximation ratio of -CVRP is approximately [7, 8]. By generalizing the concept of home-edges, we improve two previously-used lower bounds. Based on these bounds and a detailed analysis of ITP, we derive an approximation ratio of , which improves the previous results for any (Sect. 6.2). The exact approximation ratio is presented in Theorem 24, and some numerical values for specific are shown in Table 1.
For unsplittable -CVRP, we achieve similar improvements, though additional techniques are required. A summary of our results is provided in Table 2. Due to limited space, we omit the details for the unsplittable case but outline our main ideas and contributions below.
-
1.
We first propose a refined UITP, improving its approximation ratio for fixed . Building on this, we extend UITP to EX-UITP, similar to the EX-ITP approach. However, due to the unsplittable constraint, EX-UITP requires that each customer’s demand cannot be too large. For cycles involving large-demand customers, we assign a single tour to each, then apply shortcutting to create a simplified cycle before applying EX-UITP. While shortcutting can significantly alter a cycle’s structure, we carefully analyze these cycles’ local properties and address them separately. Using this approach, along with ideas from algorithms for splittable -CVRP and -CVRP, we improve the approximation ratios for unsplittable -CVRP to 1.500 and -CVRP to 1.750.
-
2.
For larger , we combine the refined UITP with the LP-based technique from [15] to obtain the LP-UITP algorithm. By making a trade-off between two Hamiltonian cycles using LP-UITP333For the unsplittable case, we focus on the trade-off between two algorithms instead of three, as the third algorithm based on cycle cover is not applicable here., we obtain an approximation ratio of , improving the previous approximation ratio of [15] for small .
-
3.
Based on the refined two lower bounds (provided in Sect. 6.2) and using a deep analysis on LP-UITP, we achieve an approximation ratio of , improving the previous approximation ratio of in [15] for any . Additionally, for unsplittable 5-CVRP, we further refine the analysis to improve the approximation ratio to 2.157.
In Tables 1 and 2, the previous results are and for splittable and unsplittable -CVRP, respectively, as well as for both versions. The constant behind is available in [8]. The values and depending on and can be calculated using the results in [7, 15]. We adopt . For this case, the values and are less than and , respectively. Hence, the approximation ratio of splittable -CVRP and unit-demand -CVRP in [7] is at least for . The approximation ratio of unsplittable -CVRP in [15] is at least for even . Note that for unsplittable -CVRP with odd , we need to double the capacity and the demand, resulting in a slightly worse approximation ratio of at least .
Due to limited space, we only present our results for the splittable and unit-demand cases, and that for the unsplittable case are omitted. The proofs of lemmas and theorems marked with “*” are also omitted. The full version is available at https://arxiv.org/abs/2210.16534.
2 Definitions, Assumptions, and Notations
A walk in a graph is a succession of edges in the graph, where the same edge can appear more than one time. We will use a sequence of vertices to denote a walk: means a walk with edges , , and so on. A path in a graph is a walk such that no vertex appears twice in the sequence, and a cycle is a walk such that only the first and the last vertices are the same. A cycle containing edges is called an -cycle and the length of it is . Two subgraphs (or two sets of edges) are vertex-disjoint if they do not have a common vertex. Given an edge-weighted graph, where the number of vertices is a multiple of , a minimum weight -cycle cover is a set of exactly vertex-disjoint -cycles with the minimum total weight of edges in the -cycles in the set. A minimum weight mod--cycle cover (resp., minimum weight mod--tree cover) is a set of vertex-disjoint cycles (resp., trees) such that the length of each cycle (resp., the number of vertices on each tree) is divisible by , each vertex of the graph appears in exactly one cycle, and the total weight of edges in the cycles in the set is minimized. A minimum weight cycle cover is a set of vertex-disjoint cycles such that the length of each cycle is at least three, each vertex of the graph appears in exactly one cycle, and the total weight of edges in the cycles in the set is minimized.
Problem Definitions.
We use to denote a complete graph, where the vertex represents the depot and vertices in represent customers. There is a non-negative weight function on the edges in , which denotes the distance between two endpoints of the edge. The weight function is a metric function, i.e., it satisfies the symmetric and triangle inequality properties. For any weight function , we extend it to subsets of by defining for any . An itinerary is a walk starting and ending at vertex . It can be partitioned into several minimal itineraries containing , each of which is called a tour.
The Capacitated Vehicle Routing Problem (CVRP) can be described as follows.
Definition 1.
An instance of CVRP consists of:
-
a complete graph , where represents the customers and represents the depot;
-
a metric weight function on edges : , which represents the distances;
-
the demand of each customer , where is the demand required by customer ;
-
the capacity of the vehicle that initially stays at the depot .
A feasible solution is an itinerary such that
-
each tour delivers at most of the demand to customers on the tour;
-
the union of tours meets the demand of every customer.
The goal is to find such an itinerary , minimizing the total distances of the succession of edges in the walk, i.e., .
We define three variants of the problem. If the demand of each customer must be delivered in one tour, we call it unsplittable CVRP. If the demand of a customer can be split into multiple tours, we call it splittable CVRP. If the demand of each customer is a unit, we call it unit-demand CVRP.
Some Assumptions.
We make some assumptions which can be guaranteed by simple observations or polynomial-time reductions (see the full version of this paper).
Assumption 1.
In an optimal itinerary, each tour is a cycle, and in each tour, the vehicle delivers an integer amount of the demand to each customer.
Assumption 2.
For splittable -CVRP, we have for each ; for unsplittable -CVRP, we have for each .
For a customer with of the demand in splittable -CVRP, we take it as customers with unit-demand. Then, we obtain an equivalent instance of unit-demand -CVRP. By Assumption 2, splittable -CVRP can be reduced to unit-demand -CVRP in polynomial time.
Assumption 3.
There is an optimal itinerary where every tour delivers exactly of the demand.
Assumption 3 can be ensured by adding some dummy customers at the depot. It guarantees the existence of an optimal solution with a good structure. It will be helpful in our analysis. For unit-demand -CVRP, such an itinerary consists of a set of -cycles intersecting only at the depot.
Some Important Notations.
The following notations are illustrated with the unit-demand case. Most of them will be used to establish some lower bounds for our problems.
-
: an optimal solution to our problem;
-
: the sum of the weight of the edges from the depot to the customer, i.e., ;
-
: a minimum weight Hamiltonian cycle on ;
-
: a minimum weight perfect matching in ;
-
MST: the total weight of the edges in a minimum weight spanning tree in ;
-
: a minimum weight cycle cover in ;
-
: a minimum weight -cycle cover in ;
-
: a minimum weight mod--cycle cover in .
For an instance of splittable or unsplittable CVRP, we construct a corresponding unit-demand instance by replacing each customer with demand with unit-demand customers. By Assumption 2, this reduction can be done in polynomial time when . It is easy to observe that the optimal value in is at most the optimal value in . Thus, for an instance of splittable or unsplittable CVRP, the lower bound computed in the unit-demand instance also constitutes a valid lower bound for .
Although the above notations are defined for the unit-demand case, they can also be applied to the splittable and unsplittable cases. For an instance of splittable or unsplittable CVRP, the above notations, including , , , , MST, , , and , are defined based on the instance .
Thus, in the splittable and unsplittable cases, becomes the sum of each customer’s demand multiplied by the weight of the edge from to the customer, i.e., , represents a minimum weight -cycle cover in , and so on. Note that, for , , and MST, there is no difference between and , so we do not distinguish between them.
We also mention the following. A minimum weight perfect matching in a complete graph can be found in time using classical algorithms [16, 27], although faster and simpler algorithms exist for other graphs; see, for example, Schrijver’s book [34]. A minimum weight spanning tree in a complete graph can be computed in time using Prim’s algorithm [33], or in optimal time using the algorithm of Pettie and Ramachandran [32]. It is NP-hard to compute a minimum weight -cycle cover for any [26]. There exists an -time 2-approximation algorithm for the minimum weight mod--cycle cover problem based on the primal-dual method [17]. Additionally, a minimum weight cycle cover can be computed via a reduction to the minimum weight perfect matching problem, for which more efficient algorithms are also known [20, 34]. These results will be used in our algorithms.
For an optimal itinerary , the edges incident to in are called home-edges, and the set of home-edges of is denoted by . We define as the proportion of the weight of home-edges in , i.e., , where we assume to exclude the trivial case.
3 Lower Bounds on Unit-Demand CVRP
In this section, we study lower bounds related to , , , , MST, , , and . As previously mentioned, the optimal value for is at most the optimal value for for an instance of splittable or unsplittable CVRP. Therefore, the lower bounds we establish for the unit-demand case in this section will hold for all three versions of CVRP. We now assume that the problem under consideration is unit-demand CVRP and proceed to prove some lower bounds.
We will use the concept of to derive some refined lower bounds, which were not considered in previous work. The first lower bound, related to the minimum weight Hamiltonian cycle on , has been used in most previous papers.
Lemma 3.
.
Proof.
Since , we have , which proves the first inequality.
Now, we show the second inequality. By Assumption 3, consists of a set of -cycles. We consider an arbitrary -cycle in . Since , the triangle inequality implies that for each . Thus, we have
Summing the above inequality over all cycles in , we obtain
as desired.
Lemma 4.
.
Proof.
For each tour in , there are exactly two home-edges. We can obtain a spanning tree of the graph from by deleting the longer home-edge in each tour. Since by definition, the weight of this spanning tree is at least , which is at least the weight of the minimum weight spanning tree.
Recall that is obtained by the Christofides-Serdyukov algorithm.
Lemma 6.
.
Lemma 7.
.
Proof.
We first show that there exists a -cycle cover in whose weight is at most .
By Assumption 3, consists of a set of -cycles. Consider an arbitrary -cycle in . Let be the -cycle obtained by shortcutting from . By the triangle inequality, we have . Thus, we have . Note that the edges and are home-edges of the cycle . By summing the above inequality over all cycles in , we obtain the desired result.
Since is the minimum weight -cycle cover in , we have Moreover, since any -cycle cover is a mod--cycle cover, and any mod--cycle cover is also a cycle cover, we have the relationship .
Since is a -approximate Hamiltonian cycle [9, 35], some papers [1, 19] used the inequalities and in the analysis of ITP and UITP. However, if the upper bound of is tight, i.e., , we have by Lemma 3. In this case, by Lemma 6, we also have . Therefore, our new lower bounds show that these two bounds cannot be tight simultaneously, indicating the potential for better approximation ratios. Besides, if , by Lemma 7, we have . So, any -approximate cycle covers may outperform the optimal Hamiltonian cycle.
4 The ITP Algorithms
ITP (Iterated Tour Partitioning) is a frequently used technique for unit-demand CVRP. The main idea of ITP is to construct feasible solutions for CVRP based on given Hamiltonian cycles: first split the Hamiltonian cycle into several connected pieces of length at most and then construct a tour for each piece. There are two versions of the ITP algorithm for CVRP according to the Hamiltonian cycle containing the depot or not [1, 19].
Lemma 8 ([1]).
Given a Hamiltonian cycle on as part of the input, for unit-demand -CVRP with any , the AG-ITP algorithm in time outputs a solution with weight at most .
Lemma 9 ([19]).
Given a Hamiltonian cycle on as part of the input, for unit-demand -CVRP with any , the HR-ITP algorithm in time outputs a solution with weight at most .
An Extension of ITP.
The above two ITP algorithms are based on given Hamiltonian cycles. In fact, the requirement of Hamiltonian cycles is not necessary. We can replace the Hamiltonian cycle with a cycle cover.
Given any cycle cover in the graph or (either containing the depot or not), for each cycle , we call the HR-ITP algorithm on it if does not contain the depot , and call the AG-ITP algorithm on it if contains the depot . By putting all toobtainher, we can obtain a feasible solution for -CVRP. The quality of the solution is related to the cycle cover. We refer to this algorithm as the EX-ITP algorithm.
Lemma 10.
Given a cycle cover in or as part of the input, for unit-demand -CVRP with any , the EX-ITP algorithm in time outputs a solution with weight at most , where .
Proof.
Define . For the cycle satisfying , the AG-ITP algorithm can generate an itinerary on with weight at most . For each cycle satisfying , the HR-ITP algorithm can generate an itinerary on with weight at most .
By the triangle inequality, we have . Then, for any , we can obtain . Since , we have
Therefore, the itinerary on has a weight of at most .
Since , EX-ITP outputs a solution with weight at most
as desired.
Intuitively, the value in Lemma 10 represents the maximum, over all cycles (excluding the depot), of the average number of customers per tour used to serve that cycle. Thus, a larger value of indicates that each tour serves fewer customers on average.
If the cycle cover used in Lemma 10 satisfies , as in Lemma 7, and if , we have the following corollary.
Corollary 11 (*).
Given a cycle cover in or as part of the input, where and , for unit-demand -CVRP with any , EX-ITP achieves an approximation ratio of . Moreover, in the worst case, we have . (If , the approximation ratio remains the same for any .)
5 Applications of the EX-ITP Algorithm
In this section, we demonstrate that the EX-ITP algorithm can be used to design improved approximation algorithms for splittable -CVRP and unit-demand -CVRP. We show as examples, the approximation ratio can be significantly improved from [18] to for 3-CVRP, and from [2] to for 4-CVRP. At last, we show that the approximation ratio of 4-CVRP can be further improved to .
Splittable 3-CVRP and Unit-demand 3-CVRP.
There are little improvements for 3-CVRP in the last 20 years. Only recently an improved result for the general weighted -set cover problem [18] leads to the current best result for 3-CVRP. We show that we can easily improve the approximation ratio by using EX-ITP. Our algorithm computes a minimum weight cycle cover in , and then calls EX-ITP on .
Theorem 12.
For splittable 3-CVRP and unit-demand 3-CVRP, there is a -approximation.
Proof.
Splittable 4-CVRP and Unit-demand 4-CVRP.
The idea is similar. However, we will construct a good mod-2-cycle cover on , instead of using a minimum weight cycle cover on , and then call EX-ITP.
We compute the mod-2-cycle cover in this way: first find a minimum weight perfect matching in graph , find a minimum weight perfect matching in graph , and then let .
Note that is a mod-2-cycle cover without 2-cycles since and are two edge-disjoint perfect matchings in . Recall that denotes a minimum weight 4-cycle cover in . We have the following result.
Lemma 13.
.
Proof.
We first prove the following property.
Claim 14.
Given a minimum weight 4-cycle cover and a minimum weight perfect matching , there is a way to color edges in with red and blue such that
-
(1)
the blues (resp., red) edges form a perfect matching (resp., );
-
(2)
;
-
(3)
is a mod-2-cycle cover without 2-cycles.
Proof.
For each 4-cycle , we color its edges by considering three cases.
Case 1: .
We color the edges and with blue and the edges and with red. Now, blue edges (resp., red edges) are vertex-disjoint.
Case 2: .
We assume w.l.o.g. that . Then, we color the edges and with red and the edges and with blue.
Case 3: .
We assume w.l.o.g. that . Then, we color the edges and with red and the edges and with blue.
It is easy to see that the set of blues edges and the set of red edges are two perfect matchings, and . Moreover, we know that , and hence is a mod-2-cycle cover without 2-cycles. Thus, the claim holds.
By the claim, we have
Since the mod-2-cycle cover is the minimum weight mod-2-cycle cover containing the minimum weight perfect matching , we have
Thus, and the lemma holds.
If we use the lower bound from Lemma 7, Lemma 13 shows that performs as well as . By calculations, we obtain and . Then, by Corollary 11, it is better to use when invoking EX-ITP, which achieves an approximation ratio of . Thus, we have the following result.
Theorem 15.
For splittable 4-CVRP and unit-demand 4-CVRP, there is a -approximation.
A Further Improvement on Splittable 4-CVRP and Unit-demand 4-CVRP.
Note that we can obtain a solution with weight at most for unit-demand 4-CVRP by calling EX-ITP on a minimum weight 4-cycle cover . However, it is NP-hard to compute as mentioned before. Surprisingly, we can obtain a solution with the same upper bound in polynomial time without using , and hence obtain an improved -approximation algorithm, which even matches the approximation ratio for unit-demand 3-CVRP.
The main idea is that we can use the minimum weight matching algorithm to optimally compute a minimum weight itinerary containing all edges in : first we construct a multi-graph by contracting every edge in ; for each edge in where , we set its weight as the minimum weight of a tour in containing and ; then a minimum weight matching in corresponds to a minimum weight itinerary in containing all edges in . Next, through a property of , we prove that this solution has a weight of at most .
Lemma 16.
For unit-demand 4-CVRP, there is a polynomial-time algorithm that can generate a solution with weight at most .
Proof.
First, the claim in Lemma 13 can be strengthened using a similar odd cycle elimination technique in [22].
Claim 17.
Given a minimum weight 4-cycle cover and a minimum weight perfect matching , there is a way to color edges in with red and blue such that
-
(1)
the blues (resp., red) edges form a perfect matching (resp., );
-
(2)
;
-
(3)
is a mod-4-cycle cover.
Proof.
Previously, we have shown that (1) and (2) holds, and is a mod-2-cycle cover without 2-cycles.
Then, we modify the cycle cover so that (1), (2), and (3) hold. By the previous coloring, we know that each cycle of contains two blue edges and two red edges. Two blue/red edges are called matched if they fall on the same cycle of .
Consider a cycle with a minimum length not divisible by 4. Since is a cycle cover without 2-cycles and the length of every cycle is divisible by 2, the number of blue edges on is odd. Hence, there must be a blue edge such that its matched blue edge falls on a different cycle . Moreover, there are two red edges and sharing common vertices with them. See Figure 1 for an illustration.
We can modify the colors of such that the new color of is red, and the new color of is blue. We can see that (1) and (2) still holds. Moreover, by repeating this, we obtain a cycle cover such that the length of every cycle is divisible by 4. So, (3) also holds.
Now, consider the multi-graph , i.e., is obtained by contracting edges of in . There are super-vertices in with each corresponding to an edge of . For any two super-vertices , there are four parallel edges between them. Assume that and . The augmented weights on the four edges are
which measure the weights of tours: , , , , respectively. Then, a matching in corresponds to a solution of unit-demand 4-CVRP with an augmented weight of . The minimum augmented weight matching in , denoted by , has the following property.
Claim 18.
.
Proof.
By Lemma 17, is a mod-4-cycle cover. So, the number of blue edges on each cycle is even. All blue edges in can be decomposed into two matchings and in . Note that . We have . Recall that and . We have .
Since the minimum augmented weight matching in can be found by the minimum weight matching algorithm in time [16, 27], we can find a solution of unit-demand 4-CVRP with weight in polynomial time.
Theorem 19.
For splittable 4-CVRP and unit-demand 4-CVRP, there is a -approximation.
6 Improvements for the Splittable Case
Given an -approximate Hamiltonian cycle in , by Lemma 8, the ITP algorithm outputs a solution with weight at most , where denotes an optimal TSP tour. Recall that by Lemma 2 and by Lemma 3. Thus, ITP achieves an approximation ratio of .
In the following, we apply ITP and EX-ITP to design three algorithms and use the lower bounds in Sect. 3 to obtain initial improvements over the approximation ratio . Then, we introduce two refined lower bounds and use them to obtain further improvements by carefully analyzing one of the three algorithms.
6.1 Initial Improvements
Recall that if the upper bound of is tight, we have by Lemma 3. And, we have and by Lemmas 6 and 7. Hence, apart from using an -approximate Hamiltonian cycle , we also consider the Hamiltonian cycle [9, 35] and a modification of a 2-approximate mod--cycle cover [17]. We apply these two Hamiltonian cycles to call the AG-ITP algorithm and the mod--cycle cover to call the EX-ITP algorithm. Based on the lower bounds in Sect. 3, the approximation ratios of these three algorithms can be expressed as functions of the parameter , and then we can make a trade-off.
Our first algorithm is to call the EX-ITP algorithm on a mod--cycle cover on . Note that the 2-approximate mod--cycle cover [17] is obtained by doubling a mod--tree cover and then shortcutting. We may find a minimum weight matching on odd-degree vertices in the mod--tree cover and then shortcutting like the Christofides-Serdyukov algorithm [9, 35]. We use the following three steps to compute .
Step 1.
Compute a mod--tree cover in using the algorithm in [17].
Step 2.
Find a minimum weight matching on odd-degree vertices of .
Step 3.
Construct a mod--cycle cover in from by shortcutting.
The second algorithm is to call the AG-ITP algorithm on any -approximate Hamiltonian cycle on . The third algorithm is to call the AG-ITP algorithm on the Hamiltonian cycle on .
We first analyze some properties of the first algorithm. The mod--tree cover computed in the first step has the following property.
Lemma 20 ([17]).
There is a polynomial-time algorithm that can generate a mod--tree cover in such that .
In Steps 2 and 3, we generate a mod--cycle cover based on the mod--tree cover and a minimum weight perfect matching on odd-degree vertices of using the Christifides-Serdykov method for TSP. Although it may not guarantee a better approximation ratio for the minimum weight mod--cycle cover problem, it is useful for CVRP.
Lemma 21 (*).
There is a polynomial-time algorithm that generates a mod--cycle cover in such that .
Now, we are ready to analyze the three algorithms.
Theorem 22 (*).
Given an -approximate Hamiltonian cycle on , there is an approximation algorithm for splittable -CVRP and unit-demand -CVRP such that
-
If and , the approximation ratio is ;
-
If and , the approximation ratio is ;
-
If and , the approximation ratio is .
We can obtain an approximation ratio of for splittable -CVRP, which improves the previous approximation ratio of [7, 8] for some small . Specifically, when , our approximation ratio achieves , and in the worst case we have . Further details and some comparisons can be found in the full version of this paper.
6.2 Further Improvements
When , we can further improve the approximation ratio to . Our motivation is that the approximation ratio is obtained with in the worst case. That is, in the worst case, the total weight of all home-edges in the optimal solution is zero. Recall that each tour of contains two home-edges and the lower bound based on MST in Lemma 4 is obtained by deleting the more weighted home-edge in each tour of . Since in the worst case, we have by Lemma 4. So, by deleting a zero-weighted home-edge, we gain no revenues. We may obtain a refined lower bound based on MST by deleting the highest weighted edge in each tour, which is clearly better than just deleting a zero-weighted home-edge. Based on this, we give two refined lower bounds based on MST as well as to combine them.
Our algorithm is simply to call the classic AG-ITP algorithm on the Hamiltonian cycle on . By Lemmas 2, 5, and 8, the solution is at most
| (1) |
To prove an approximation ratio of , we show that .
Now, we analyze the structure in more details.
By Assumption 3, consists of a set of -cycles. Consider an arbitrary -cycle . First, let denote the sum of the weights of edges between vertices and for , i.e., . Note that . Then, let denote the spanning tree in obtained by deleting the highest weighted edge in , i.e., . After we delete the highest weighted edge for each cycle , the remaining graph is a spanning tree in . So, .
Moreover, since , to prove , it is sufficient to prove .
Lemma 23.
When , for any cycle , we have that where .
Proof Sketch.
Our proof is based on generalizing the concept of home-edges.
When is odd (resp., even), the number of edges in the cycle is even (resp., odd). Due to different structural properties, these two cases have to be handled separately. We consider the case that is odd. Another case can be analyzed in a similar way.
We may assume ; otherwise, Lemma 23 holds trivially. Let . We define
where . See Figure 2 for an illustration of the definition on .
It is easy to see that and for each . Note that measures the proportion of weights of home-edges in , so it can be regarded as a generalization of but works on a single cycle.
Then, by the definitions of and , we have
Thus, it holds that
In the worst case of the above linear program, we can obtain ; otherwise, if there exists for some , we can exchange their values, and then since the value does not change, we can obtain a bigger solution since the coefficients of and satisfy , which causes a contradiction. So, .
Consequently, we have , where LP is the value of the following linear program:
In the full version, we prove that the linear program exists an optimal solution, denoted by , satisfying that and for all , where . Therefore, it holds that
Therefore, we have
where .
Next, we are ready to analyze the AG-ITP algorithm.
Theorem 24.
For splittable -CVRP and unit-demand -CVRP, the AG-ITP algorithm admits an approximation ratio of , where .
Proof.
Using the Hamiltonian cycle , by (1), AG-ITP can output a solution with weight at most . Recall that and . By Lemma 23, we have
To show the approximation ratio holds for any , it is sufficient to prove
The latter holds since the discriminant of the quadratic equation satisfies for any .
In the initial improvements, when and , the approximation ratio of our algorithm is . In further improvements, we achieve a result of , which is strictly better for any . This is also better than for any (see Table 1). When , the approximation ratio is , which is tight for this algorithm, since it has been shown [28] that the approximation ratio of AG-ITP is at least in general metrics, even using an optimal Hamiltonian cycle.
Our further improvements only consider . For other values of , similar improved results, as in Theorem 22, could potentially be obtained by applying refined lower bounds based on MST and . However, the analysis is sophisticated and achieving significant improvements for metric TSP appears challenging. We leave the exploration of this direction for future research.
7 Concluding Remarks
In this paper, we consider -CVRP in general metrics and improve the approximation ratio for less than a sufficiently large value, approximately . Although most of our algorithms, such as EX-ITP, are simple or extensions of the classic methods, the analysis is technically involved. We need to carefully analyze the structure of the solutions and most of our analysis is based on pure combinatorial analysis. We think that analyzing better theoretical bounds for simple and classic algorithms is an interesting and important task in algorithm research. We also believe that our methods have potential to be applied to more routing problems.
References
- [1] Kemal Altinkemer and Bezalel Gavish. Heuristics for unequal weight delivery problems with a fixed error guarantee. Oper. Res. Lett., 6(4):149–158, 1987.
- [2] Shoshana Anily and Julien Bramel. Approximation algorithms for the capacitated traveling salesman problem with pickups and deliveries. Naval Research Logistics, 46(6):654–670, 1999.
- [3] Tetsuo Asano, Naoki Katoh, Hisao Tamaki, and Takeshi Tokuyama. Covering points in the plane by k-tours: a polynomial approximation scheme for fixed k. IBM Tokyo Research Laboratory Research Report RT0162, 1996.
- [4] Tetsuo Asano, Naoki Katoh, Hisao Tamaki, and Takeshi Tokuyama. Covering points in the plane by k-tours: Towards a polynomial time approximation scheme for general k. In Frank Thomson Leighton and Peter W. Shor, editors, Proceedings of the Twenty-Ninth Annual ACM Symposium on the Theory of Computing, El Paso, Texas, USA, May 4-6, 1997, pages 275–283. ACM, 1997. doi:10.1145/258533.258602.
- [5] Cristina Bazgan, Refael Hassin, and Jérôme Monnot. Approximation algorithms for some vehicle routing problems. Discret. Appl. Math., 146(1):27–42, 2005. doi:10.1016/j.dam.2004.07.003.
- [6] Walter J Bell, Louis M Dalberto, Marshall L Fisher, Arnold J Greenfield, Ramchandran Jaikumar, Pradeep Kedia, Robert G Mack, and Paul J Prutzman. Improving the distribution of industrial gases with an on-line computerized routing and scheduling optimizer. Interfaces, 13(6):4–23, 1983.
- [7] Jannis Blauth, Vera Traub, and Jens Vygen. Improving the approximation ratio for capacitated vehicle routing. Math. Program., 197(2):451–497, 2023. doi:10.1007/s10107-022-01841-4.
- [8] Agustín Bompadre, Moshe Dror, and James B. Orlin. Improved bounds for vehicle routing solutions. Discret. Optim., 3(4):299–316, 2006. doi:10.1016/j.disopt.2006.04.002.
- [9] Nicos Christofides. Worst-case analysis of a new heuristic for the travelling salesman problem. Oper. Res. Forum, 3(1), 2022. doi:10.1007/s43069-021-00101-z.
- [10] Vasek Chvátal. A greedy heuristic for the set-covering problem. Math. Oper. Res., 4(3):233–235, 1979. doi:10.1287/moor.4.3.233.
- [11] Vincent Cohen-Addad, Arnold Filtser, Philip N. Klein, and Hung Le. On light spanners, low-treewidth embeddings and efficient traversing in minor-free graphs. In Sandy Irani, editor, 61st IEEE Annual Symposium on Foundations of Computer Science, FOCS 2020, Durham, NC, USA, November 16-19, 2020, pages 589–600. IEEE, 2020. doi:10.1109/FOCS46700.2020.00061.
- [12] George B Dantzig and John H Ramser. The truck dispatching problem. Manag. Sci., 6(1):80–91, 1959.
- [13] Szymon Dudycz, Jan Marcinkowski, Katarzyna E. Paluch, and Bartosz Rybicki. A 4/5 - approximation algorithm for the maximum traveling salesman problem. In Friedrich Eisenbrand and Jochen Könemann, editors, Integer Programming and Combinatorial Optimization - 19th International Conference, IPCO 2017, Waterloo, ON, Canada, June 26-28, 2017, Proceedings, volume 10328 of Lecture Notes in Computer Science, pages 173–185. Springer, 2017. doi:10.1007/978-3-319-59250-3_15.
- [14] Arnold Filtser and Hung Le. Low treewidth embeddings of planar and minor-free metrics. In 63rd IEEE Annual Symposium on Foundations of Computer Science, FOCS 2022, Denver, CO, USA, October 31 - November 3, 2022, pages 1081–1092. IEEE, 2022. doi:10.1109/FOCS54457.2022.00105.
- [15] Zachary Friggstad, Ramin Mousavi, Mirmahdi Rahgoshay, and Mohammad R. Salavatipour. Improved approximations for capacitated vehicle routing with unsplittable client demands. In Karen I. Aardal and Laura Sanità, editors, Integer Programming and Combinatorial Optimization - 23rd International Conference, IPCO 2022, Eindhoven, The Netherlands, June 27-29, 2022, Proceedings, volume 13265 of Lecture Notes in Computer Science, pages 251–261. Springer, 2022. doi:10.1007/978-3-031-06901-7_19.
- [16] Harold Neil Gabow. Implementation of algorithms for maximum matching on nonbipartite graphs. PhD thesis, Stanford University, 1974.
- [17] Michel X. Goemans and David P. Williamson. A general approximation technique for constrained forest problems. SIAM J. Comput., 24(2):296–317, 1995. doi:10.1137/S0097539793242618.
- [18] Anupam Gupta, Euiwoong Lee, and Jason Li. A local search-based approach for set covering. In Telikepalli Kavitha and Kurt Mehlhorn, editors, 2023 Symposium on Simplicity in Algorithms, SOSA 2023, Florence, Italy, January 23-25, 2023, pages 1–11. SIAM, SIAM, 2023. doi:10.1137/1.9781611977585.ch1.
- [19] Mordecai Haimovich and Alexander H. G. Rinnooy Kan. Bounds and heuristics for capacitated routing problems. Math. Oper. Res., 10(4):527–542, 1985. doi:10.1287/moor.10.4.527.
- [20] David Hartvigsen. Extensions of matching theory. PhD thesis, Carnegie-Mellon University, 1984.
- [21] Refael Hassin and Asaf Levin. A better-than-greedy approximation algorithm for the minimum set cover problem. SIAM J. Comput., 35(1):189–200, 2005. doi:10.1137/S0097539704444750.
- [22] Refael Hassin and Shlomi Rubinstein. An approximation algorithm for maximum packing of 3-edge paths. Inf. Process. Lett., 63(2):63–67, 1997. doi:10.1016/S0020-0190(97)00097-5.
- [23] Refael Hassin and Shlomi Rubinstein. Better approximations for max TSP. Inf. Process. Lett., 75(4):181–186, 2000. doi:10.1016/S0020-0190(00)00097-1.
- [24] Anna R. Karlin, Nathan Klein, and Shayan Oveis Gharan. A (slightly) improved approximation algorithm for metric TSP. In Samir Khuller and Virginia Vassilevska Williams, editors, STOC 2021: 53rd Annual ACM SIGACT Symposium on Theory of Computing, Virtual Event, Italy, June 21-25, 2021, pages 32–45. ACM, 2021. doi:10.1145/3406325.3451009.
- [25] Anna R. Karlin, Nathan Klein, and Shayan Oveis Gharan. A deterministic better-than-3/2 approximation algorithm for metric TSP. In Alberto Del Pia and Volker Kaibel, editors, Integer Programming and Combinatorial Optimization - 24th International Conference, IPCO 2023, Madison, WI, USA, June 21-23, 2023, Proceedings, volume 13904 of Lecture Notes in Computer Science, pages 261–274. Springer, 2023. doi:10.1007/978-3-031-32726-1_19.
- [26] David G. Kirkpatrick and Pavol Hell. On the completeness of a generalized matching problem. In Richard J. Lipton, Walter A. Burkhard, Walter J. Savitch, Emily P. Friedman, and Alfred V. Aho, editors, Proceedings of the 10th Annual ACM Symposium on Theory of Computing, May 1-3, 1978, San Diego, California, USA, pages 240–245. ACM, 1978. doi:10.1145/800133.804353.
- [27] Eugene Lawler. Combinatorial Optimization: Networks and Matroids. Holt, Rinehart and Winston, 1976.
- [28] Chung-Lun Li and David Simchi-Levi. Worst-case analysis of heuristics for multidepot capacitated vehicle routing problems. INFORMS J. Comput., 2(1):64–73, 1990. doi:10.1287/ijoc.2.1.64.
- [29] Claire Mathieu and Hang Zhou. Probabilistic analysis of euclidean capacitated vehicle routing. In Hee-Kap Ahn and Kunihiko Sadakane, editors, 32nd International Symposium on Algorithms and Computation, ISAAC 2021, December 6-8, 2021, Fukuoka, Japan, volume 212 of LIPIcs, pages 43:1–43:16. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2021. doi:10.4230/LIPIcs.ISAAC.2021.43.
- [30] Claire Mathieu and Hang Zhou. A PTAS for capacitated vehicle routing on trees. In Mikolaj Bojanczyk, Emanuela Merelli, and David P. Woodruff, editors, 49th International Colloquium on Automata, Languages, and Programming, ICALP 2022, July 4-8, 2022, Paris, France, volume 229 of LIPIcs, pages 95:1–95:20. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2022. doi:10.4230/LIPIcs.ICALP.2022.95.
- [31] Claire Mathieu and Hang Zhou. A tight (1.5+)-approximation for unsplittable capacitated vehicle routing on trees. In Kousha Etessami, Uriel Feige, and Gabriele Puppis, editors, 50th International Colloquium on Automata, Languages, and Programming, ICALP 2023, July 10-14, 2023, Paderborn, Germany, volume 261 of LIPIcs, pages 91:1–91:16. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2023. doi:10.4230/LIPIcs.ICALP.2023.91.
- [32] Seth Pettie and Vijaya Ramachandran. An optimal minimum spanning tree algorithm. J. ACM, 49(1):16–34, 2002. doi:10.1145/505241.505243.
- [33] Robert Clay Prim. Shortest connection networks and some generalizations. Bell Syst. Tech. J., 36(6):1389–1401, 1957.
- [34] Alexander Schrijver. Combinatorial optimization: polyhedra and efficiency, volume 24. Springer, 2003.
- [35] Anatolii Ivanovich Serdyukov. Some extremal bypasses in graphs. Upravlyaemye Sistemy, 17:76–79, 1978.
- [36] Paolo Toth and Daniele Vigo. Vehicle routing: problems, methods, and applications. SIAM, 2014.
- [37] Eduardo Uchoa, Diego Pecin, Artur Alves Pessoa, Marcus Poggi, Thibaut Vidal, and Anand Subramanian. New benchmark instances for the capacitated vehicle routing problem. Eur. J. Oper. Res., 257(3):845–858, 2017. doi:10.1016/j.ejor.2016.08.012.
