Skip to Content
ComputationComputation
  • Article
  • Open Access

18 August 2026

24 Pages

A Two-Stage Matheuristic for the Capacitated Arc Routing Problem with Vehicle Dependence

,
and
1
Departamento de Ingeniería Química, Industrial y de Alimentos, Universidad Iberoamericana Ciudad de México, Mexico City 01219, Mexico
2
Centro de Investigación en Matemáticas A.C., Calzada de la Plenitud 103, Fracc. José Vasconcelos Calderón, Aguascalientes 20200, Mexico
3
Department of Industrial and Operations Engineering, Instituto Tecnológico Autónomo de Mexico, Mexico City 01080, Mexico
*
Author to whom correspondence should be addressed.

Abstract

In the capacitated arc routing problem (CARP), a fleet of capacitated vehicles based at a depot must cover the streets of a network where the demand is located at the lowest possible total cost. Waste collection, street sweeping, winter gritting, and mail delivery are among its best-known applications. This work introduces the CARP with vehicle dependence (CARP-VD), an extension in which the cost of servicing an edge, and that of traversing it without service, are specific to each vehicle type and formulates it as a mixed-integer linear program. A two-stage matheuristic is proposed: the first stage distributes the required edges among the vehicles without exceeding their capacities, and the second builds the route of each vehicle. A bound is derived that limits the optimality loss of this decomposition by its own deadheading cost. Both approaches are evaluated on 47 benchmark instances adapted from the literature under a common one-hour budget, and their robustness is assessed over six scenarios that vary the parameters of the adaptation. The matheuristic returns good-quality solutions in a fraction of the time on the smaller instances, and on those in which almost every edge requires service it improves the best solutions found by a commercial solver applied to the complete model by up to 44%.

1. Introduction

The Municipal Solid Waste (MSW) collection and transportation are among the costliest services provided by local governments, and in developing countries it can absorb most of the waste management budget [1]. In these settings, route design is particularly challenging: urban networks combine wide arterial roads with narrow, steep, or unpaved streets, and collection fleets are typically heterogeneous, mixing large compactor trucks with smaller and more maneuverable vehicles operating from a single depot [2]. As a consequence, the cost of servicing or merely traversing a street segment is not uniform across the fleet; it depends on the specific vehicle assigned to it, and some vehicle–street combinations may even be infeasible.
Since the demand for collection service lies along the streets themselves, this class of problems is naturally modeled as an arc routing problem (ARP) [3]. However, classical arc routing models assume either a homogeneous fleet or vehicle costs that scale uniformly over the network, an assumption that breaks down when a large truck is efficient on main roads but prohibitively expensive, or simply unable to operate, on narrow residential streets. Capturing this reality requires a formulation in which both servicing and deadheading costs are defined for each individual vehicle–edge pair, which motivates the problem introduced in this work.
Arc routing problems (ARPs) have been studied for several decades. One of the first compilations on the subject appeared in the chapter by Assad and Golden [4] in the handbook Network Routing. Later, the book edited by Corberán and Laporte [5], published in 2014, concisely compiles relevant information on arc routing problems. In 2017, Mourão and Pinto [6] presented an updated annotated bibliography on ARPs. More recently, Corberán et al. [7] presented an extensive review of the past, present, and future of ARPs.
An ARP consists of determining a least-cost traversal of a set (or subset) of edges in a graph G = ( V , E ) , where V is the set of vertices and E is the set of edges. The graph can be undirected, directed, or mixed. A cost c i j ≥ 0 is associated with each edge ( i , j ) , i ≠ j ; if ( i , j ) ∉ E , then c i j = ∞ . The CARP, introduced by Golden and Wong [8], is a special case of the ARP. In addition, this problem considers positive demands q i j assigned to each required edge e = [ v i , v j ] , with E R ⊆ E denoting the set of required edges, which must be served by a fleet of identical vehicles with limited capacity Q based at a depot vertex; the CARP can also be defined on an undirected, directed, or mixed graph. The CARP arises in a wide variety of real-world applications, such as waste collection, salt gritting, and mail delivery, among others [6].
Several seminal contributions shaped the study of the CARP. Golden and Wong [8] formalized the problem, established its NP-hardness, and introduced the first integer programming formulation together with approximate solution procedures; Christofides [9] had earlier proposed the Construct-Strike heuristic for arc routing problems of this family; Belenguer and Benavent [10] developed the polyhedral study and the cutting planes on which most exact algorithms and lower bounds for the CARP still rely; and Ulusoy [11] introduced the fleet size and mix variant together with the route-first cluster-second principle that underlies many two-phase methods, including the matheuristic proposed in this work.
The CARP has attracted such interest that, in the book Arc Routing: Problems, Methods, and Applications [5], several chapters are devoted exclusively to it. The work by Wøhlk [12] reviewed heuristics, exact algorithms, and formulations, as well as different variants and extensions of the CARP. Furthermore, Muyldermans and Pang [13] pointed out that proposing new CARP formulations remains a fertile field for research; for example, Kiilerich and Wøhlk [14] presented five new CARP formulations inspired by waste collection operations in several Danish municipalities.
In this paper, we introduce and study the capacitated arc routing problem with vehicle dependence (CARP-VD), which extends the classical CARP by attaching to every individual edge one servicing cost and one deadheading cost per vehicle type. The problem arises in municipal solid waste collection, where the expense of operating a street segment varies from one truck to another in a way that is local to that segment and therefore cannot be summarized by a single coefficient per vehicle type. The contributions of this work are threefold. First, we formally define the CARP-VD and propose a mathematical formulation for it; the classical CARP is recovered with a single vehicle type, and the vehicle–site restrictions of the CARP-VSD are managed by charging prohibitive costs to the forbidden pairs. Second, we develop a two-stage matheuristic to solve instances of practical size. Third, we adapt benchmark CARP instances to the CARP-VD and report computational results comparing the proposed approaches.
The remainder of this paper is organized as follows: Section 2 describes the most prominent related works. Section 3 introduces the mathematical formulation and the two-stage matheuristic proposed for its solution. Section 4 reports the experimental results obtained on instances adapted for the CARP-VD. Finally, Section 5 presents the concluding remarks.

2. Literature Review

The CARP has been studied extensively, and multiple works on the subject have been published over the years. Many properties, such as the type of graph, the types of vehicles and arcs, and the presence of fixed or mobile depots, among others, complicate the positioning of the scientific contribution of this research. To overcome this difficulty, the reviewed literature was classified according to the two characteristics that identify our contribution: (a) heterogeneous vehicle fleets (Section 2.1) and (b) cost dependence on the vehicle in the problem studied (Section 2.2). Section 2.3 reviews the main techniques and methods used to solve the CARP and its variants. Finally, Section 2.4 positions the contribution of this work with respect to the reviewed literature.

2.1. Heterogeneous Vehicle Fleet

Sniezek et al. [15] introduced the vehicle–site arc routing problem, together with a heuristic that partitions the required street segments and assigns each partition to a vehicle of a heterogeneous fleet. Its distinctive feature is that every segment restricts which vehicle types may service it and which may merely cross it. In a later case study on residential waste collection [16], the same authors named this feature vehicle–site dependency and defined the CARP with vehicle–site dependencies (CARP-VSD): physical limitations such as very narrow streets or weight-limited bridges make certain vehicle classes unable to operate on certain streets, which the model expresses as hard prohibitions. This is the reference point for our own proposal, since the CARP-VD replaces those prohibitions by costs.
Tirkolaee et al. [17] presented a novel mathematical model for the periodic CARP (PCARP) that considers multiple trips, drivers, and crew scheduling under uncertain demand. In the PCARP, each required edge must be served within a time horizon; thus, the objective is to determine which edges are visited each day, taking into account the service frequencies of the edges, and to solve a CARP for each day so that the total routing cost over the time horizon is minimized [5]. The model in [17] considers the cost of using each vehicle type, estimated as the driver’s wage plus the cost assigned to the vehicle, and assumes that each vehicle has a maximum usage time determined by the working time of the driver and crew. The authors assume a heterogeneous fleet with fixed costs associated with the use of each vehicle type in a given period. The objective of the model is to minimize the service cost and the cost of using the vehicles over the time horizon.
Liu et al. [18] studied the multi-depot heterogeneous-fleet CARP (MDHCARP), an extension of the CARP in which there are several depots and a finite number of heterogeneous vehicles located at these depots. The model defines a fixed cost, a variable cost per unit distance, and a capacity for each vehicle type at each depot. The objective is to minimize the total routing cost, subject to constraints ensuring that each vehicle does not exceed its capacity, that no more vehicles than those available at each depot and of each type are used, and that each vehicle starts and ends its route at its depot, among other restrictions.
Rodrigues and Ferreira [19] addressed a real-life waste collection routing problem in Northern Portugal through three mixed CARP models involving heterogeneous fleets and/or limited multiple landfills. In two of these models, the servicing and deadheading costs of each link depend on the vehicle type, an access matrix imposes hard restrictions that forbid certain vehicle types from servicing some links, and a type-dependent emptying cost is incurred at the disposal sites. However, the fleet composition and the number of trips per vehicle type are input parameters, the circuits are partitioned a priori among the vehicle types, and a sectorization phase precedes the route planning. The models were solved exactly with CPLEX on adapted benchmark and real instances.
Chen et al. [20] presented a problem that consists of scheduling the vehicle routes for each day of a time horizon while optimizing the number of vehicles and minimizing the total cost. That work proposes a hybrid local search algorithm for the PCARP. In the first phase, the algorithm seeks to determine the number of vehicles, while in the second phase it optimizes both the number of vehicles (used as an upper bound) and the total cost of the route design in order to prune the search space.

2.2. Vehicle-Dependent Costs

Tagmouti et al. [21] studied the dynamic CARP (DyCARP), in which the servicing cost of the required arcs is also a function of the time at which the service on the arc begins. The DyCARP considers that certain dynamic events, such as a canceled demand or traffic congestion, may occur after the vehicles have started their routes. In that work, set in the context of the winter gritting problem, the servicing cost is represented as a piecewise linear function of the service start time. The network is directed, and only a subset of its arcs requires service. In addition to the usual length, travel time, and travel cost, each required arc carries a demand, a service time, and a service cost expressed as a piecewise linear function of the instant at which its service begins. That work proposes a dynamic variant that starts from a solution obtained with a variable neighborhood descent (VND) heuristic, using a time-dependent service cost function based on initial forecasts; subsequent weather report updates then allow modifications of the optimal service time interval associated with each required arc.
Lacomme et al. [22] proposed a classification of the PCARP, in the context of waste collection, to study the service costs, arguing that these costs derive from the demand and that the demand depends on the period considered. That work classifies the PCARP into two classes: class A, in which the demand does not result from a daily accumulation of waste and is the same in every period; and class B, in which each required task generates a production p r o d ( u , p ) for each day type p, thereby capturing extraordinary amounts of waste, such as those produced during winter holidays. Finally, a general PCARP formulation is presented that incorporates the aspects of this classification through a day-combination system, allowing a transparent treatment of both class A and class B problems.
de Armas et al. [23] proposed a heuristic and a metaheuristic algorithm to solve the time CARP (TCARP) on real instances with 599 vertices and 647 edges. In that problem, the costs of servicing and traversing the edges, as well as the vehicle capacity, are expressed in terms of time. The objective is to find the vehicle routes that minimize the total time.
Bartolini et al. [24] proposed an exact algorithm, based on cut-and-column generation and branch-and-price, for the CARP with deadheading demand (CARP-DD). In that variant, every edge carries a traversal demand in addition to its service demand, so the load of a vehicle is the demand of the edges it services plus the traversal demands of those it only crosses.
More recently, Zhu et al. [25] introduced the CARP with heterogeneous services and time-dependent profits (CARP-HSTP), motivated by on-road anti-dust operations, in which the profit of serving each edge depends on the service type applied and decays with the service start time. However, the fleet is composed of identical multi-functional vehicles, so the edge-level dependence concerns the service performed rather than the vehicle type that performs it.
Our literature review also included studies of real-world waste collection problems, but no works addressing the model proposed here were found. In general, in the reviewed works, the servicing and traversal costs of an edge are independent of the vehicle chosen to cover the route—with the partial exception of Rodrigues and Ferreira [19], discussed in Section 2.4—even when other features are considered, such as time periods for demand fulfillment, stochastic demand, or multiple depots, as well as further characteristics discussed in the CARP surveys mentioned in Section 1. The positioning of our proposal with respect to this literature is detailed in Section 2.4.

2.3. Solution Methods

Several methods have been proposed to solve the CARP, including heuristics, exact algorithms, metaheuristics, and matheuristics. Among the most popular constructive heuristics are (1) construct-strike, proposed by Christofides in 1973 [9]; (2) path-scanning (PS), proposed by Golden, DeArmon, and Baker [26]; (3) augment-merge (AM), proposed by Golden and Wong [8]; and (4) Ulusoy’s route-first cluster-second method [11]. More recent constructive heuristics are frequently based on these classical procedures; for example, an efficient heuristic based on PS to solve the CARP was proposed in [27], and a concise description of these methods can be found in [5]. Approaches based on artificial intelligence have also been introduced to solve routing problems; for example, a learning heuristic for arc routing problems named SPLICE, which follows the route-first split-second scheme, was presented in [28].
In general, the most widely used techniques for routing problems are constructive heuristics. These algorithms build the routes following rules that are reasonable for the problem under study. Problems with multiple vehicles combine two different aspects [5]: a clustering aspect, in which a subgraph is assigned to each vehicle, and a routing aspect, in which a route is determined for every vehicle (such methods are classified as two-phase constructive methods; Ulusoy’s heuristic mentioned above is an example). The two-stage matheuristic proposed in Section 3.2 belongs to this family: it addresses the clustering aspect as a generalized assignment problem and the routing aspect as a sequence of rural postman problems.
Improvement heuristics are also popular for the CARP. They are based on local search methods, in which the moves consist of simple modifications of the current solution that change the position at which the required arcs are serviced within the routes [29] (for example, moving a serviced arc to another position or to another route).
Regarding classical metaheuristics, the following have been applied to the CARP (or variants): simulated annealing and tabu search [30,31], which were among the first techniques applied to this problem; variable neighborhood search [32]; greedy randomized adaptive search procedure (GRASP) [33]; genetic algorithms [34]; memetic algorithms [35]; ant colony optimization [36]; and, more recently, artificial bee colony algorithms for static and dynamic CARPs [37]. The RDG-MEANS algorithm proposed by Mei et al. [38] is one of the best-performing algorithms for CARP instances; in that work, the authors propose a hybrid metaheuristic that performs a refined local search, embedding a randomized tabu search within a memetic scheme. For applications of matheuristic algorithms to CARP variants, see [39], and for applications involving ARPs, see [40].
According to the book Arc Routing: Problems, Methods, and Applications [5], the exact approaches for the CARP are classified into two groups: (1) methods that compute lower and upper bounds by means of metaheuristics, and (2) exact methods that follow an enumeration scheme to reach an integer feasible solution. Within the second group, variants are continually derived from the branch-and-bound method, such as the branch-and-cut and branch-and-price techniques. As reported in [24], exact algorithms and lower bounds for the CARP rely on the cutting-plane method [10] and on transformations from the CARP to the CVRP (see [41]); moreover, some of the best exact algorithms employ column generation and cut-and-column generation to solve the CARP formulated as a set-covering problem or as a strengthened set-partitioning model with additional cuts [42]. Further recent contributions, beyond those discussed in this section, can be found in [6].

2.4. Contribution of This Work

Vehicle-dependent costs are not new in arc routing. In the fleet size and mix CARP introduced by Ulusoy [11], and in the heterogeneous-fleet and multi-depot variants studied later [18,43,44,45], each vehicle type may carry a fixed utilization cost and a variable cost per unit distance, so that the dependence on the vehicle is captured by type-level parameters: a vehicle of a given type is proportionally cheaper or more expensive on every street of the network. At the other extreme lies the CARP-VSD of Section 2.1, where the incompatibilities are imposed as hard constraints. The closest antecedent to our proposal is the work of Rodrigues and Ferreira [19], whose case-specific mixed CARP models embed link- and type-dependent servicing and deadheading costs. In those models, the vehicle-type dependence also extends to the emptying cost at the disposal sites, instead of a fixed utilization cost per vehicle type. Nevertheless, in those models, the fleet composition and the number of trips per vehicle type are fixed a priori, the vehicle–link incompatibilities are imposed as hard constraints, and the cost structure is tied to a sectorized waste collection system with limited multiple landfills rather than being studied as a problem in its own right. To the best of our knowledge, no previous work has isolated this structure as a generalization of the classical CARP, in which the assignment of vehicle types is a decision of the model, the servicing and deadheading costs c i j ( t ) and d i j ( t ) of each individual edge depend on the vehicle type, and the hard incompatibilities of the CARP-VSD are recovered by charging a prohibitively large cost to the forbidden pairs.
This intermediate structure is precisely the one required by our motivating application. In municipal solid waste collection, a large compactor truck is more efficient than a small vehicle on avenues but considerably more expensive to operate on narrow streets, unpaved segments, or weight-limited bridges, and these effects are local to each street rather than uniform across the network, so no scaling factor per vehicle type can capture them.
Table 1 positions our proposal within the literature reviewed in Section 2.1 and Section 2.2. Each row indicates whether the corresponding model considers a heterogeneous fleet, multiple depots, a fixed cost per vehicle type ( λ t ), a variable cost per unit distance and vehicle type ( μ t ), edge-specific servicing and deadheading costs per vehicle type ( c i j ( t ) , d i j ( t ) ), hard vehicle–site restrictions (VSD), and time- or period-dependent costs (TD). Since all the reviewed works address a single-objective formulation, the objective-function dimension is omitted, and only the remaining features are reported. Three clarifications are needed to read the table correctly. In the model of Amberg et al. [43], the fleet is heterogeneous only in the vehicle capacities, without vehicle-dependent costs. Rodrigues and Ferreira [19] consider a single garage, although two of their three models include multiple disposal facilities (landfills and transfer stations) with a limited number of visits per day. Finally, in the row corresponding to this work, the variable cost per unit distance is reported as absent because it is subsumed by the edge-specific costs—a uniform factor per type is recovered as the special case c i j ( t ) = μ t c i j —and the vehicle–site restrictions are reported as covered because they are subsumed as soft restrictions, assigning a prohibitively large cost to each incompatible vehicle–edge pair. The CARP-VD is the only model that isolates the edge-specific dependence of both the servicing and the deadheading costs as a generalization of the CARP in its own right, in which the assignment of vehicle types to edges is a decision of the model rather than fixed a priori. It generalizes the heterogeneous-fleet cost structure from a scalar factor per type to edge-specific costs; its relation to the classical CARP and to the CARP-VSD is stated in Section 3.1.
Table 1. Vehicle- and cost-dependence features of related CARP models. λ t : fixed cost per vehicle type; μ t : variable cost per unit distance and vehicle type (uniform over the network); c i j ( t ) , d i j ( t ) : edge-specific servicing and deadheading costs per vehicle type; VSD: hard vehicle–site restrictions; TD: time- or period-dependent costs.

3. Materials and Methods

This section presents the problem studied in this paper and the approaches proposed to solve it. Section 3.1 formally defines the CARP-VD, illustrates the cost structure that motivates it, and introduces a mixed-integer linear programming formulation. Section 3.2 describes the proposed two-stage matheuristic together with its design rationale and its main properties. Finally, Section 3.3 illustrates both approaches on a small instance, making the source of the quality loss of the decomposition visible.

3.1. Capacitated Arc Routing Problem with Vehicle Dependence

Let G = ( V , E ) be an undirected graph with vertex set V = { 0 , 1 , … , n } , where vertex 0 is the depot, and edge set E ⊆ { { i , j } : i , j ∈ V , i ≠ j } . Each edge { i , j } ∈ E is replaced by the two opposite arcs ( i , j ) and ( j , i ) , which define the arc set A = { ( i , j ) , ( j , i ) : { i , j } ∈ E } . Each edge has a demand q i j ≥ 0 , and the subset E R = { { i , j } ∈ E : q i j > 0 } of required edges must be serviced by exactly one vehicle, while any arc can be deadheaded (traversed without servicing) any number of times. The fleet is heterogeneous: T denotes the set of vehicle types and, for each type t ∈ T , there are k t identical vehicles of capacity Q t based at the depot; we write K t = { 1 , … , k t } for the set of vehicles of type t. Servicing arc ( i , j ) with a vehicle of type t costs c i j ( t ) ≥ 0 , and deadheading it costs d i j ( t ) ≥ 0 .
Figure 1 illustrates the cost structure that motivates the CARP-VD. The large vehicle benefits from economies of scale on regular streets, is penalized on narrow ones, where it must maneuver slowly and obstructs traffic, and becomes nearly prohibitive on weight-limited segments. On the three labeled edges, the ratio c e ( L ) / c e ( S ) therefore takes the values 0.85, 2.1, and 4.5: no scaling factor per vehicle type can reproduce such a cost structure, and this is why the servicing and deadheading costs of the CARP-VD, c i j ( t ) and d i j ( t ) , are defined for each edge and each vehicle type individually. Two relevant models arise as special cases. With a single vehicle type ( | T | = 1 ), the CARP-VD reduces to the classical CARP; and assigning a prohibitively large cost to a vehicle–edge pair reproduces the hard vehicle–site restrictions of the CARP-VSD [15,16].
Figure 1. Cost structure of the CARP-VD on a network with three classes of streets. Each labeled edge shows the pair ( c e ( S ) , c e ( L ) ) of servicing costs for the small (S) and the large (L) vehicle type.
We propose mixed-integer linear programming (MILP) based on arc variables indexed by vehicle. For an arc ( i , j ) of a required edge { i , j } ∈ E R and a vehicle k of type t, let x i j k t be a binary variable equal to 1 if and only if ( i , j ) is serviced by vehicle k of type t; non-required edges are never serviced and can only be deadheaded. For any arc ( i , j ) ∈ A , required or not, and a vehicle k of type t, let y i j k t be a binary variable equal to 1 if and only if vehicle k of type t deadheads arc ( i , j ) , i.e., traverses it from vertex i to vertex j without servicing it. Using these variables, the CARP-VD can be formulated as follows:
min Z = ∑ t ∈ T ∑ k ∈ K t ∑ ( i , j ) ∈ A c i j ( t ) x i j k t + d i j ( t ) y i j k t
subject to ∑ j ∈ δ − ( i ) x j i k t + y j i k t − ∑ j ∈ δ + ( i ) x i j k t + y i j k t = 0 , i ∈ V , k ∈ K t , t ∈ T
∑ t ∈ T ∑ k ∈ K t x i j k t + x j i k t = 1 , { i , j } ∈ E R
∑ ( i , j ) ∈ A q i j x i j k t ≤ Q t , k ∈ K t , t ∈ T
∑ j ∈ δ − ( i ) f j i k t − ∑ j ∈ δ + ( i ) f i j k t = ∑ j ∈ δ − ( i ) x j i k t + y j i k t , i ∈ V ∖ { 0 } , k ∈ K t , t ∈ T
f i j k t ≤ | V | 2 x i j k t + y i j k t , ( i , j ) ∈ A , k ∈ K t , t ∈ T
x i j k t ∈ { 0 , 1 } for { i , j } ∈ E R , x i j k t = 0 for { i , j } ∈ E ∖ E R , y i j k t ∈ { 0 , 1 } , f i j k t ≥ 0 .
The objective function (1) minimizes the total cost. Constraint (2) represents flow constraints. They ensure that the number of times of each vehicle entering in a vertex (servicing or deadheading) is the same number of times that the same vehicle exits from the vertex. Equation (3) ensures that each required edge is serviced by exactly one vehicle. Inequality (4) models the demand limitations imposed by the capacity Q t of each vehicle of type t. Constraints (5) and (6) are connectivity constraints as in the same idea introduced by Golden and Wong [8]. They eliminate subtours disjointed from the depot. Finally, Constraint (7) defines the variable domains.

3.2. Two-Stage Matheuristic: Assign-First, Route-Second

The CARP-VD is NP-hard, since it contains the classical CARP [8] as the special case with a single vehicle type; hence, solving instances of practical size within reasonable running times calls for a heuristic approach, and a two-stage matheuristic is proposed. It is possible to consider the model as a two-stages method: in the first stage, we deal with a part of the problem as a generalized assignment problem (GAP), thus we can define a model as follows:
min z 1 = ∑ t ∈ T ∑ k ∈ K t ∑ { i , j } ∈ E R c i j ( t ) x i j k t
subject to ∑ t ∈ T ∑ k ∈ K t x i j k t = 1 , { i , j } ∈ E R
∑ { i , j } ∈ E R q i j x i j k t ≤ Q t , k ∈ K t , t ∈ T
x i j k t ∈ { 0 , 1 } , { i , j } ∈ E R .
The objective function (8) minimizes the total servicing cost of the assignment. Constraints (9) and (10) play the same role as (3) and (4) in the complete model: every required edge is assigned to exactly one vehicle, and no vehicle exceeds its capacity.
In the second stage, the edges assigned to each vehicle in the first stage become the required edges of that vehicle, and the program (12)–(18) is built and solved for each vehicle as a rural postman problem (RPP) instance. Let R k t = { { i , j } ∈ E R : x ¯ i j k t = 1 } denote the set of edges assigned to vehicle k of type t, where x ¯ is the optimal solution of the first-stage model (8)–(11). For a fixed vehicle k of type t, let x i j be a binary variable equal to 1 if and only if this vehicle services arc ( i , j ) , with { i , j } ∈ R k t , and let y i j be a binary variable equal to 1 if and only if this vehicle deadheads arc ( i , j ) , with cost d i j ( t ) . The second-stage model for each vehicle is then:
min z k t = ∑ ( i , j ) ∈ A d i j ( t ) y i j
subject to x i j + x j i = 1 , { i , j } ∈ R k t
∑ j : { i , j } ∈ R k t x j i + ∑ j ∈ δ − ( i ) y j i − ∑ j : { i , j } ∈ R k t x i j − ∑ j ∈ δ + ( i ) y i j = 0 , i ∈ V
∑ j ∈ δ − ( i ) f j i − ∑ j ∈ δ + ( i ) f i j = ∑ j : { i , j } ∈ R k t x j i + ∑ j ∈ δ − ( i ) y j i , i ∈ V ∖ { 0 }
f i j ≤ | V | 2 x i j + y i j , ( i , j ) ∈ A , { i , j } ∈ R k t
f i j ≤ | V | 2 y i j , ( i , j ) ∈ A , { i , j } ∉ R k t
f i j ≥ 0 , x i j , y i j ∈ { 0 , 1 } , ( i , j ) ∈ A .
This model is solved separately for each vehicle, so the objective function (12) minimizes only its deadheading cost. Constraint (13) fixes the orientation in which each edge assigned to the vehicle is traversed, and (14) is the flow conservation condition of (2) written for a single vehicle. Constraints (15)–(17) eliminate subtours disconnected from the depot, as (5) and (6) do the same in the complete model.
In summary, the method decomposes the CARP-VD into the two subproblems introduced above: an assignment stage that decides which vehicle services each required edge, and a routing stage that decides how each vehicle traverses the network to cover its assigned edges. Algorithm 1 presents the pseudocode of the procedure, and Figure 2 depicts the flow of information between the two stages.
Algorithm 1 Two-stage matheuristic (assign-first, route-second) for the CARP-VD
Require: Graph G = ( V , E ) with depot 0; required edges E R ; demands q i j ; servicing and deadheading costs c i j ( t ) , d i j ( t ) ; fleet sizes k t and capacities Q t for each type t ∈ T .
Ensure: A set S of capacity-feasible closed routes and its total cost Z.
  1: ( x ¯ , z 1 ) ←  SolveGAP E R , q , c ( · ) , k , Q ▹ Stage 1: model (8)–(11)
  2: for  t ∈ T  do
  3:     for  k ∈ K t  do
  4:          R k t ← { i , j } ∈ E R : x ¯ i j k t = 1 ▹ edges assigned to vehicle k of type t
  5:         if  R k t ≠ ∅  then
  6:              ( S [ k , t ] , z k t ) ←  SolveRPP G , R k t , d ( t ) ▹ Stage 2: model (12)–(18)
  7:         else
  8:              S [ k , t ] ← ∅ ;    z k t ← 0 ▹ unused vehicle stays at the depot
  9:         end if
10:    end for
11: end for
12: Z ← z 1 + ∑ t ∈ T ∑ k ∈ K t z k t
13: return  ( S , Z )
Figure 2. Overview of the two-stage matheuristic for the CARP-VD (Algorithm 1).
Algorithm 1 proceeds as follows. Line 1 solves the generalized assignment model (8)–(11) and corresponds to the Stage 1 block of Figure 2: every required edge is assigned to exactly one vehicle at minimum total servicing cost, subject to the capacities Q t , yielding the optimal assignment x ¯ with cost z 1 . Lines 2–11 correspond to the Stage 2 block. For each vehicle k of type t, line 4 extracts from x ¯ the set R k t of edges assigned to that vehicle—the arrow labeled R k t in the figure—and line 6 solves the rural postman model (12)–(18) over the whole graph G, returning a closed route S [ k , t ] that starts and ends at the depot, covers all edges of R k t , and minimizes the deadheading cost z k t ; vehicles that received no edges remain at the depot at zero cost (line 8). Finally, line 12 assembles the total cost Z = z 1 + ∑ t ∈ T ∑ k ∈ K t z k t reported in the Solution block of Figure 2.
Note that the decomposition optimizes the two components of the objective function (1) separately: servicing costs in Stage 1 and deadheading costs in Stage 2. Because Stage 1 is blind to the deadheading needed to connect the assigned edges to each other and to the depot, optimality is not preserved, and Z is an upper bound on the optimal value of the CARP-VD. In exchange, each stage is a considerably smaller mixed-integer program than the complete model (1)–(7), which is what allows the method to produce feasible solutions within seconds on instances for which the complete model cannot be solved, as reported in Section 4.
The choice of an assign-first, route-second decomposition, rather than an integrated heuristic that modifies assignment and routing decisions simultaneously, is deliberate. First, the distinctive feature of the CARP-VD lies precisely in the vehicle–edge assignment: once the assignment is fixed, the vehicle-dependent costs are fixed as well, and what remains is a collection of independent, well-understood routing problems; the decomposition isolates the new decision and solves it exactly. Second, both subproblems are classical mixed-integer programs—a generalized assignment problem and rural postman problems—for which modern solvers are highly effective at the sizes induced by our instances, so the matheuristic leverages mature exact technology instead of requiring problem-specific neighborhoods. Third, the resulting method is deterministic and parameter-free, whereas an integrated metaheuristic would require redesigning the evaluation of moves under edge- and vehicle-dependent costs and a careful tuning effort. Finally, the decomposition concentrates the entire optimality loss in a single, analyzable decision, which yields the following per-instance guarantees.
Proposition 1.
Let Z ∗ be the optimal value of the CARP-VD model (1)–(7), and let z 1 be the optimal value of the first-stage model (8)–(11). Then z 1 ≤ Z ∗ .
Proof. 
Let ( x ∗ , y ∗ , f ∗ ) be an optimal solution of (1)–(7). Setting x ^ i j k t = x i j ∗ k t + x j i ∗ k t for every edge { i , j } ∈ E R yields a feasible solution of the first-stage model: Constraint (9) follows from (3), and Constraint (10) follows from (4). The objective value of this solution equals the servicing component of Z ∗ ; hence z 1 is at most that component, which in turn is at most Z ∗ because the deadheading costs are non-negative. □
Corollary 1.
Let Z = z 1 + ∑ t ∈ T ∑ k ∈ K t z k t be the value returned by Algorithm 1. Then Z − Z ∗ ≤ ∑ t ∈ T ∑ k ∈ K t z k t : the optimality gap of the matheuristic never exceeds its total deadheading cost, a bound that is computable for every instance.
This bound explains the empirical behavior reported in Section 4: the quality of the matheuristic degrades exactly when its routes require a large amount of deadheading. On the gdb19 instance of Section 3.3, for example, Corollary 1 guarantees a loss of at most 27.10, while the actual loss is 13.85.
Remark 1.
The complete model (1)–(7) is highly symmetric: the k t vehicles of each type are identical, so every solution admits up to ∏ t ∈ T k t ! equivalent permutations. Symmetry-breaking constraints, such as ordering the loads of the vehicles within each type, are a natural strengthening of the complete model, which we do not exploit here: the results reported in Section 4 correspond to the formulation as stated above.

3.3. Illustrative Example

This subsection illustrates the behavior of the CARP-VD and of the two-stage matheuristic on a small instance, comparing the solution obtained by solving the complete model (1)–(7) directly with CPLEX, denoted CPXfull, against the solution produced by Algorithm 1, denoted CPXstages. The instance used is gdb19, adapted to the CARP-VD following the procedure described in Section 4; it was selected because its small size allows the complete solutions to be displayed and because it clearly exhibits the source of the quality loss of the decomposition.
The adapted gdb19 instance consists of | V | = 8 vertices, with vertex 0 as the depot, and | E | = 11 edges, all of them required since q i j > 0 for every edge. The fleet comprises two vehicle types: k 1 = 2 vehicles of capacity Q 1 = 30 and k 2 = 1 vehicle of capacity Q 2 = 21 . Figure 3 shows the representation adopted for each edge { i , j } , which carries the servicing costs c i j ( t ) , the deadheading costs d i j ( t ) for each vehicle type t ∈ { 1 , 2 } , and the demand q i j . The complete data of the instance are reported in Table 2.
Figure 3. Representation graph for the gdb19 instance.
Table 2. Modified gdb19 instance.
Figure 4 presents the optimal solution obtained by CPXfull: Figure 4a shows the assignment of the required edges to the three vehicles, and Figure 4b–d the closed route of each vehicle, distinguishing serviced arcs (solid arrows) from deadheaded arcs (dotted arrows). Table 3 details the solution vehicle by vehicle: for each vehicle ( t , k ) , it lists the serviced and deadheaded arcs, reported with the orientation in which the vehicle traverses them, together with the servicing cost c, the deadheading cost d, the total route cost, and the load carried with respect to the capacity Q t . The optimal total cost is Z ∗ = 59.14 , of which 52.36 corresponds to servicing and 6.78 (11.5% of the total) to deadheading.
Figure 4. Solution of the gdb19 instance obtained by CPXfull: (a) assignment of the edges to the vehicles; (b–d) route of each vehicle. Solid arrows denote serviced arcs and dotted arrows denote deadheaded arcs; arrows indicate the traversal orientation, although the underlying graph is undirected. Vertex 0 is the depot (shaded). Vehicle ( 1 , 1 ) is shown in blue, ( 1 , 2 ) in red, and ( 2 , 1 ) in green.
Table 3. Per-vehicle solution detail for the gdb19 instance obtained by CPXfull. c and d denote the servicing and deadheading costs of the route; Load is the demand served with respect to the vehicle capacity Q t .
Figure 5 presents the solution produced by CPXstages on the same instance: Figure 5a shows the assignment computed in the first stage by the generalized assignment model (8)–(11), and Figure 5b–d the route obtained in the second stage for each vehicle by solving the rural postman model (12)–(18). Table 4 reports the corresponding per-vehicle detail. The servicing cost of the first-stage assignment is z 1 = 45.89 , the total deadheading cost of the second stage is ∑ t ∑ k z k t = 27.10 , and the total cost is therefore Z = 72.99 , a relative deviation of 23.4% with respect to the optimal value Z ∗ .
Figure 5. Solution of the gdb19 instance obtained by the two-stage matheuristic (CPXstages): (a) assignment computed in the first stage; (b–d) route of each vehicle obtained in the second stage. Drawing conventions and vehicle colors are those of Figure 4.
Table 4. Per-vehicle solution detail for the gdb19 instance obtained by the two-stage matheuristic (CPXstages); columns as in Table 3.
Comparing Table 3 and Table 4 makes the source of the quality loss of the decomposition visible. The servicing cost of the assignment computed in the first stage (45.89) is lower than the servicing cost of the solution of the complete model (52.36), since the generalized assignment model optimizes this cost in isolation. The routing consequences of that assignment, however, are considerably more expensive: the total deadheading cost rises from 6.78 to 27.10, i.e., from 11.5% to 37.1% of the total cost. A clear example is the type-2 vehicle ( 2 , 1 ) : in the solution of the complete model, it services the two adjacent edges { 0 , 5 } and { 5 , 7 } , closing its route with a minimum of deadheading, whereas the first stage of the matheuristic assigns it the edges { 0 , 5 } and { 2 , 6 } , which are cheap to service for this vehicle type but far apart, forcing five deadheaded arcs to connect them. Because the first stage is blind to the position of the edges relative to the depot and to each other, it may build assignments that are cheap to service but scattered over the network, which the second stage can only connect through additional deadheading. This is precisely the behavior anticipated in Section 3.2, and it explains the relative deviation of 23.4% observed for this instance in Table 7.

4. Computational Experiments

In the following subsections, we present the instances, the experimental setup, and the results obtained with the two solution approaches, together with their discussion.

4.1. Instance Generation and Experimental Conditions

Two sets of benchmark instances widely used in the literature were considered. The first set comprises the popular 23 instances for the undirected CARP published by Golden, DeArmon, and Baker [26], referred to as the gdb instances. The second set comprises the 24 instances proposed by Li and Eglese [46], generated from a real winter gritting problem in Lancashire, UK, and referred to as the egl instances; these instances are regarded in the literature as large-sized.
To adapt both sets to the CARP-VD, the vehicle-dependent costs were generated so as to reproduce the cost structure described in Section 3.1 and illustrated in Figure 1. Motivated by municipal solid waste collection, where the cost of operating a street depends on the vehicle that serves it, each edge was independently labeled as one of three street classes: regular streets, on which the largest vehicle benefits from economies of scale (probability 0.70); narrow streets, on which it is penalized (probability 0.25); and weight-limited segments, on which its use is softly prohibited (probability 0.05). The vehicle type with the smallest capacity keeps the original servicing costs of the instance, whereas the servicing cost of the largest-capacity type on each edge is obtained by multiplying the original cost by an edge-specific factor β , drawn uniformly from [0.80, 0.95], [1.50, 2.50], or [3.00, 5.00] according to the street class. For both vehicle types, the deadheading cost of each edge was set to 70% of its servicing cost, i.e., d i j ( t ) = 0.7 c i j ( t ) . Demands and fleet sizes were kept unchanged from the original instances. Because β is drawn independently for each edge, the cost ratio between the two vehicle types varies from edge to edge, and no single scaling factor per vehicle type can reproduce these instances. The complete set of adapted instances is publicly available in a repository (see the Data Availability Statement), together with, for every instance, the random seed, the number of edges per street class, and the ranges of factors used in its generation. Each instance was adapted using an independent random draw, whose seed and parameters are recorded in the repository; the aggregate comparisons reported below are therefore based on 47 independent realizations of the adaptation scheme, rather than on a single random experiment. The additional scenarios used in the sensitivity analysis of Section 4.6 were generated with the same procedure and are available in the same repository. The parameter values were chosen to represent a plausible urban collection network rather than an adversarial one. The class probabilities (0.70, 0.25, 0.05) reflect a street hierarchy in which most segments are regular streets, a sizeable minority are narrow residential streets, and only a few segments carry structural restrictions such as weight-limited bridges—precisely the situations documented in the vehicle–site dependency literature [15,16]. The ranges of β encode, respectively, moderate economies of scale of the larger vehicle on regular streets (cost reductions of 5–20%), a maneuvering penalty on narrow streets (costs 1.5–2.5 times higher), and a soft prohibition on restricted segments (costs 3–5 times higher), the continuous counterpart of the hard restrictions of the CARP-VSD [16]. The deadheading factor α = 0.7 preserves the usual assumption that traversing a street without servicing it is cheaper than servicing it.
Table 5 describes the parameters of the modified gdb instances, and Table 6 those of the modified egl instances. Finally, the vehicle capacities of the original instances were modified to obtain heterogeneous-fleet instances, while ensuring that the total demand can still be met. Computational experiments were carried out on a Dell Precision T1700 workstation with an Intel Xeon E3-1241 v3 processor at 3.50 GHz (4 cores, 8 threads) and 32 GB of RAM, running Ubuntu 22.04 LTS. All the models were implemented in Python 3.10 and solved with IBM ILOG CPLEX 22.1 through the docplex API. The solver was run with its default settings, which include the opportunistic parallel mode over the eight available threads; since this mode is non-deterministic, the running times reported below may vary between executions on the same machine.
Table 5. gdb instances with | T | = 2 .
Table 6. egl instances with | T | = 2 .

4.2. Solution Approaches and Evaluation Metric

Two solution approaches are compared: solving the complete model (1)–(7) directly with CPLEX, denoted CPXfull, and the two-stage matheuristic of Algorithm 1, denoted CPXstages, in which the assignment model (8)–(11) and each rural postman subproblem (12)–(18) are also solved with CPLEX. CPXfull was run with a time limit of 3600 s and the default relative MIP gap tolerance of CPLEX (10−4) so that optimality is proved whenever the time limit allows it; for the instances that reach the limit, the best incumbent found is reported. In CPXstages, the assignment stage and each rural postman subproblem were given limits of 1800 s and 300 s, respectively. On the gdb instances, none of the subproblems reached these limits, whereas on the largest egl instances some rural postman subproblems exhaust their 300 s budget; in all cases, the total running time of the matheuristic was kept within the same 3600 s budget given to CPXfull.
The relative deviation (RD, %) was computed to compare the solutions of both methods and to support the analysis of the results. This statistic measures the signed relative difference between the objective values obtained by the two approaches for each instance, taking CPXfull as the reference: positive values indicate that the matheuristic solution is worse than the CPXfull incumbent, and negative values indicate that it is better. For the calculation of RD, we used Equation (19):
RD ( % ) = CPX stages − CPX full CPX full × 100

4.3. Results on the gdb Instances

Table 7 reports, for each of the 23 modified gdb instances, the objective value, the CPU time, and the final gap of CPXfull, together with the objective value and CPU time of CPXstages and the relative deviation (RD) between both, computed with Equation (19). Figure 6 compares graphically the objective values obtained by the two approaches across the set.
Table 7. Computational results on the gdb instances for the CARP-VD. CPXfull was run with a 3600 s time limit and the default MIP gap tolerance of the solver. LB is the best lower bound proved by CPXfull within the time limit; it coincides with the objective value on the instances solved to optimality. The last row reports column averages. Best objective values are shown in bold.
Figure 6. Objective values obtained by CPXfull and CPXstages on the modified gdb instances.
CPXfull proved optimality on 15 of the 23 instances, while the remaining eight (gdb8, gdb9, gdb11, titgdb12, gdb13, gdb21, gdb22, and gdb23) exhausted the 3600-s limit with gaps between 0.3% and 24.5%; the largest gaps correspond to gdb8 and gdb9, which are the instances with the largest number of vertices. In contrast, the two-stage matheuristic produced a feasible solution for every instance in at most 2.2 s (0.5 s on average), that is, at least three orders of magnitude faster than the complete model on the hardest instances. The price of this speed is solution quality: the relative deviation ranges from 8.4% (gdb23) to 66.4% (gdb8), with an average of 26.1%. Column LB reports the best lower bound proved by CPXfull. On the fifteen instances solved to optimality, the bound coincides with the objective value, so for those instances the RD is a genuine deviation from the optimum and not merely from an incumbent. On the eight instances that reached the time limit, the RD is measured against the best incumbent found, so the true deviation may be smaller. The wide range of the CPXfull running times, from less than one second to the full hour, deserves an explanation, since it is not driven by the instance size alone. Three factors dominate. The first is the tightness of the fleet capacity: on the instances whose total fleet capacity exceeds the total demand by less than 10% (Table 5), CPXfull requires 1719 s on average, whereas on those with a capacity slack of at least 20% the average drops to 94 s. A tight capacity forces the solver to discriminate among assignments that are all close to infeasible, which weakens the linear relaxation. The second is the symmetry induced by identical vehicles (Remark 1): the four instances with the largest fleets (8–10 vehicles: gdb8, gdb9, gdb22, and gdb23) all exhaust the time limit, since every solution admits a large number of equivalent permutations that the search must eliminate. The third is the non-deterministic parallel search of the solver: repeated executions of the same instance explore different subtrees, which introduces a variability that is noticeable on the instances requiring several minutes. Instance size, by contrast, is a poor predictor by itself: gdb13, with only 10 vertices but an almost exact capacity fit, does not close within the hour, whereas gdb18, with 36 edges and ample capacity, is solved to optimality in 27 s.

4.4. Results on the egl Instances

Table 8 reports the results obtained on the 24 modified egl instances under the same experimental conditions used for the gdb set, and Figure 7 compares the objective values of both approaches. These instances are considerably harder for the complete model: CPXfull could not prove optimality for any of them within the 3600-s limit, and the final gaps range from 37.5% to 92.1%, with an average of 70.6%. The two-stage matheuristic solved all 24 instances within the same budget and well below it on the smaller network: at most 28 s on the instances with 77 vertices. Its running time grows with the size of the instance, reaching between 5 and 56 min on those with 140 vertices, where the second stage must solve up to 35 rural postman subproblems. The first stage is never the bottleneck, since the assignment model is solved in less than 5 s in every case. On egl24, the instance with the largest fleet, the accumulated 300 s budgets of its 35 subproblems could exceed one hour; to keep the comparison fair, the remaining global budget of 3600 s was redistributed dynamically among the pending subproblems, which yielded the solution reported in Table 8 in 3354.5 s.
Table 8. Computational results on the egl instances for the CARP-VD. CPXfull was run with a 3600 s time limit. Every instance of this set reaches the limit with a final gap above 37%, so the gap tolerance is never binding. RD is the signed relative deviation of CPXstages with respect to CPXfull; negative values indicate that the matheuristic found a better solution than the incumbent of the complete model. LB is the best lower bound proved by CPXfull within the time limit; the last row reports column averages. Best objective values are shown in bold.
Figure 7. Objective values obtained by CPXfull and CPXstages on the modified egl instances.
On these large instances, the picture changes with respect to the gdb set, where the incumbent of the complete model was always better. Here, the matheuristic finds a better solution than CPXfull on 10 of the 24 instances, with improvements of up to 44.1% (egl24) and 41.5% (egl17); the signed relative deviation ranges from −44.1% to 51.0%, with an average of 7.5%. The median deviation, +8.9%, is slightly above the mean, since the distribution is dominated by a few large improvements: egl24 and egl17 alone account for the whole difference between the total objective values of the two methods. The typical behavior is therefore a moderate loss of about 9%, combined with occasional large gains on the instances where the complete model barely progresses. The outcome is governed by the proportion of edges that require service. On the fifteen instances in which at least three-quarters of the edges are required, the matheuristic wins ten times and its average deviation is −5.5%; on the nine instances in which that proportion is lower, it never wins and its average deviation is +29.1%. The reason is the one identified in Section 3.3: when many edges are free of demand, the complete model can exploit cheap deadheading to connect its routes, whereas the first stage of the decomposition assigns the required edges without seeing that possibility, and the second stage can no longer recover it. Consistently with this reading, the deviation decreases as the proportion of required edges grows and, above all, as the final gap of CPXfull widens: the matheuristic gains ground precisely where the complete model makes least progress. It should be kept in mind that, since CPXfull never proves optimality on this set, the RD values are measured against incumbents of uncertain quality. The LB column makes this explicit: with an average gap of 70.6%, the bounds remain far below the incumbents, so neither method is known to be close to the optimum and the deviations should be read as a comparison between two heuristics rather than as a distance to optimality.

4.5. Discussion

As can be observed in Figure 6 and Figure 7, the relative performance of the two approaches depends on the size of the instance: on the small gdb instances, the complete model dominates in quality, whereas on the egl instances its gap grows until, on the instances where almost every edge requires service, its incumbents are overtaken by the matheuristic. This behavior reflects the combinatorial nature of the CARP-VD and delimits the practical scope of each approach: the complete model as a reference method for small instances, and the two-stage matheuristic as the applicable tool at operational scale.
The source of the quality loss of the decomposition is the one identified in Section 3.3: the assignment stage minimizes servicing costs while ignoring the deadheading needed to connect the assigned edges to each other and to the depot, a decision that the routing stage can no longer repair. This explains why the matheuristic pays a considerable quality premium on the small instances, where the complete model reaches near-optimal solutions, and why it becomes competitive, and often superior, on the instances where one hour of computation leaves the complete model far from convergence while the decomposition still solves each of its subproblems to near optimality.
The structure of the egl set, organized in groups of increasing number of required edges and increasing fleet size over two fixed networks, also allows a scalability analysis of the matheuristic. The first stage is never the bottleneck: the assignment model is solved in less than 5 s in every case, even with 190 required edges and 35 vehicles. The running time of the second stage grows with both dimensions jointly, that is, with the number of rural postman subproblems and with the size of the network over which each of them is solved: on the 77-vertex network, increasing | E R | from 51 to 98 and the fleet from 5 to 19 vehicles raises the total time from about 3 to 28 s, whereas on the 140-vertex network the same growth in | E R | , with fleets of 7 to 35 vehicles, raises it from about ten minutes to nearly the full budget. Since the subproblems are independent, this cost is naturally parallelizable: solving the rural postman subproblems concurrently would divide the second-stage time by up to the number of vehicles, an implementation refinement not exploited here.
A natural question is whether a refinement or local search procedure applied after the second stage could recover part of the quality loss. The structure of the decomposition sharpens the answer: since each route is solved to (near) optimality for its fixed set of assigned edges, intra-route improvement offers no margin, and any improvement must reassign edges across vehicles and re-route the vehicles affected. A local search in the space of assignments, guided by the deadheading actually paid in the second stage—for example, moving or swapping the assigned edges whose marginal deadheading cost is largest, and re-solving the corresponding rural postman subproblems—is therefore the appropriate refinement scheme. This is precisely the feedback mechanism identified as future research in Section 5, and we regard it as the most promising route to close the gap observed on the small instances.

4.6. Sensitivity Analysis

The adaptation of the benchmark instances described in Section 4 relies on a number of parameter choices: the probabilities of the three street classes, the ranges of the factor β , the deadheading ratio α , and the number of vehicle types. To assess whether the conclusions depend on these choices, six additional scenarios were generated by varying one factor at a time with respect to the configuration of Section 4, which we denote by S0. Scenarios S1 and S2 make the network, respectively, easier and harder, with class probabilities (0.85, 0.10, 0.05) and (0.55, 0.35, 0.10); S3 and S4 set the deadheading ratio to α = 0.5 and α = 0.9 ; S5 widens the vehicle dependence, with β ∼ U [ 2.0 , 3.0 ] on narrow streets and β ∼ U [ 5.0 , 8.0 ] on restricted segments; and T3 adds a third, intermediate vehicle type, with capacity Q 3 = ⌈ ( Q 1 + Q 2 ) / 2 ⌋ , a single vehicle, and a factor β med = 1 + ( β − 1 ) / 2 on each edge. All scenarios use the same random seeds as S0 so that the only difference between them is the parameter under study.
Each scenario was evaluated on a subset of nine instances covering both regimes: six gdb instances (gdb1, gdb8, gdb13, gdb19, gdb21, and gdb23) and three egl instances (egl6, egl13, and egl18), the last of which is one of those on which the matheuristic outperforms the complete model in the reference configuration, under the same time limits used in the main experiments. Table 9 reports, for each scenario, the average relative deviation over each subset and the number of egl instances on which the matheuristic improves the incumbent of the complete model.
Table 9. Sensitivity of the results to the parameters of the instance adaptation. RD is the average signed relative deviation of CPXstages with respect to CPXfull over each subset; negative values indicate that the matheuristic is better. S0 is the configuration used in Section 4. On the egl instances, CPXfull reaches the time limit in every scenario, so the comparison is against an incumbent.
Three conclusions follow. First, the qualitative behavior reported in Section 4 is robust: on the small gdb instances, the complete model dominates in every scenario, with average deviations between 21.0% and 36.6%, and the matheuristic keeps producing feasible solutions within seconds. Second, among the cost parameters, the deadheading ratio is the one that most affects the quality of the decomposition, and it does so in the direction predicted by Corollary 1: the average deviation on the gdb set grows monotonically from 21.0% when deadheading is cheap ( α = 0.5 ) to 35.8% when it is expensive ( α = 0.9 ) since the loss of the matheuristic is bounded by precisely that cost. The severity of the vehicle dependence acts in the same direction, though more mildly (30.1% in S5), whereas the class probabilities barely move the average deviation on this set (27.3% in both S1 and S2).
Third, the behavior on the egl subset is also stable, and it reproduces the pattern of Table 8. The instance with the largest fleet, egl18 with 27 vehicles, is better solved by the matheuristic in six of the seven configurations, with deviations between −10.9% and −2.8%, whereas egl6 and egl13, with 14 and 7 vehicles, are better solved by the complete model in all of them. The advantage of the decomposition on large fleets is therefore robust to the parameters of the adaptation and not an artifact of one configuration. The only exception is S5: when the vehicle dependence becomes extreme, even egl18 is better solved by the complete model (+15.9%), which is consistent with the mechanism of Corollary 1, since the more dissimilar the costs of the vehicle types, the more expensive an assignment error becomes. Two caveats should be kept in mind. On the egl instances, the complete model never proves optimality, so the comparison is between two incumbents; and the third vehicle type of T3 also increases the total capacity of the fleet, so part of its effect on the complete model is attributable to the extra vehicle rather than to the additional type alone. Overall, these results delimit the scope of the method: the two-stage decomposition is most attractive when the fleet is large and homogeneous in cost structure, and it is when the vehicle dependence is severe that a feedback mechanism between the two stages, as outlined in Section 5, would be most valuable.

5. Conclusions and Future Research

In this work, we introduced the capacitated arc routing problem with vehicle dependence (CARP-VD), an extension of the classical CARP in which the operating costs of each edge are defined per vehicle type. This cost structure, motivated by municipal solid waste collection, cannot be reproduced by the type-level factors used in previous heterogeneous-fleet models, and it contains both the classical CARP and the vehicle–site dependency models as special cases.
Two solution approaches were proposed and compared: a mixed-integer linear programming formulation solved directly with CPLEX (CPXfull), and a two-stage matheuristic (CPXstages) that first assigns the required edges to the vehicles by solving a generalized assignment problem and then routes each vehicle by solving a rural postman problem. Both approaches were evaluated on 47 benchmark instances (23 gdb and 24 egl) adapted to the CARP-VD through a reproducible and publicly available generation procedure.
The experimental results delimit the practical scope of each approach. On the small gdb instances, the complete model is the method of choice: it proved optimality on 15 of the 23 instances, while the matheuristic returned solutions with an average relative deviation of 26.1%, although in less than 2.2 s per instance. On the large egl instances, the situation changes: CPXfull could not prove optimality for any instance, with final gaps between 37.5% and 92.1%, whereas the matheuristic solved all 24 instances in a fraction of the budget and found better solutions than the incumbent of the complete model on 10 of them, with improvements of up to 44.1%. Those ten are concentrated in the instances where almost every edge requires service, and where the complete model makes least progress within the time limit. At operational scale, the two-stage decomposition is therefore competitive in quality, far cheaper in computing time, and superior precisely where the complete model struggles most. The sensitivity analysis of Section 4.6 shows that this advantage is robust: on the instance with the largest fleet, it is preserved in six of the seven configurations tested. It vanishes only when the vehicle dependence becomes extreme, because the first stage then pays a higher price for each misassigned edge, which is precisely what the bound of Corollary 1 predicts.
Several directions remain open for future research. First, extending the model with further features of the waste collection process, such as multiple types of solid waste or the opening of new disposal sites. Second, improving the assignment stage, which is blind to the routing consequences of its decisions: incorporating a proximity measure into the first-stage model, or a feedback mechanism between the two stages to correct the initial assignment, is a natural direction to reduce the deadheading cost of the final routes.

Author Contributions

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

Funding

This research received no external funding.

Data Availability Statement

The adapted CARP-VD instances used in this study, together with a description of the adaptation procedure and, for every instance, the random seed and generation parameters, are publicly available on GitHub at https://github.com/jvelascoal/CARP-VD-Benchmark-Instances (accessed on 31 July 2026).

Acknowledgments

H.P. acknowledges the sabbatical leave granted by Universidad Iberoamericana Ciudad de México (2025–2026), during which this work was carried out.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
AMAugment–Merge
ARPArc Routing Problem
CARPCapacitated Arc Routing Problem
CARP-DDCARP with Deadheading Demand
CARP-HSTPCARP with Heterogeneous Services and Time-dependent Profits
CARP-VDCARP with Vehicle Dependence
CARP-VSDCARP with Vehicle–Site Dependencies
CVRPCapacitated Vehicle Routing Problem
DyCARPDynamic CARP
FSM-CARPFleet Size and Mix CARP
GAPGeneralized Assignment Problem
GRASPGreedy Randomized Adaptive Search Procedure
LBLower Bound
MDCARPMulti-Depot CARP
MDHCARPMulti-Depot Heterogeneous-fleet CARP
MILPMixed-Integer Linear Programming
MSWMunicipal Solid Waste
PCARPPeriodic CARP
PSPath-Scanning
RDRelative Deviation
RPPRural Postman Problem
TCARPTime CARP
VNDVariable Neighborhood Descent

References

  1. Kaza, S.; Yao, L.C.; Bhada-Tata, P.; Van Woerden, F. What a Waste 2.0: A Global Snapshot of Solid Waste Management to 2050; Urban Development Series; World Bank: Washington, DC, USA, 2018. [Google Scholar] [CrossRef] [Scilit]
  2. Mahéo, A.; Rossit, D.G.; Kilby, P. Solving the integrated bin allocation and collection routing problem for municipal solid waste: A Benders decomposition approach. Ann. Oper. Res. 2023, 322, 441–465. [Google Scholar] [CrossRef] [Scilit]
  3. Janela, J.; Mourão, M.C.; Pinto, L.S. Arc routing with trip-balancing and attractiveness measures—A waste collection case study. Comput. Oper. Res. 2022, 105934. [Google Scholar] [CrossRef] [Scilit]
  4. Assad, A.A.; Golden, B.L. Arc Routing Methods and Applications. In Network Routing; Handbooks in Operations Research and Management Science; Ball, M.O., Magnanti, T.L., Monma, C.L., Nemhauser, G.L., Eds.; Elsevier: Amsterdam, The Netherlands, 1995; Volume 8, pp. 375–483. [Google Scholar] [CrossRef] [Scilit]
  5. Corberán, A.; Laporte, G. Arc Routing: Problems, Methods and Applications, 1st ed.; Society for Industrial and Applied Mathematics: Philadelphia, PA, USA, 2014. [Google Scholar] [CrossRef] [Scilit]
  6. Mourão, M.C.; Pinto, L.S. An updated annotated bibliography on arc routing problems. Networks 2017, 70, 144–194. [Google Scholar] [CrossRef] [Scilit]
  7. Corberán, A.; Eglese, R.; Hasle, G.; Plana, I.; Sanchis, J.M. Arc routing problems: A review of the past, present, and future. Networks 2021, 77, 88–115. [Google Scholar] [CrossRef] [Scilit]
  8. Golden, B. Capacitated arc routing problems. Networks 1981, 11, 305–315. [Google Scholar] [CrossRef] [Scilit]
  9. Christofides, N. The optimum traversal of a graph. Omega 1973, 1, 719–732. [Google Scholar] [CrossRef] [Scilit]
  10. Belenguer, J.; Benavent, E. The Capacitated Arc Routing Problem: Valid Inequalities and Facets. Comput. Optim. Appl. 1998, 10, 165–187. [Google Scholar] [CrossRef] [Scilit]
  11. Ulusoy, G. The fleet size and mix problem for capacitated arc routing. Eur. J. Oper. Res. 1985, 22, 329–337. [Google Scholar] [CrossRef] [Scilit]
  12. Wøhlk, S. A Decade of Capacitated Arc Routing. In The Vehicle Routing Problem: Latest Advances and New Challenges; Springer: Boston, MA, USA, 2008; pp. 29–48. [Google Scholar] [CrossRef] [Scilit]
  13. Muyldermans, L.; Pang, G. Chapter 10: Variants of the Capacitated Arc Routing Problem. In Arc Routing; Society for Industrial and Applied Mathematics: Philadelphia, PA, USA, 2014; pp. 223–254. [Google Scholar] [CrossRef] [Scilit]
  14. Kiilerich, L.; Wøhlk, S. New large-scale data instances for CARP and new variations of CARP. INFOR Inf. Syst. Oper. Res. 2017, 56, 1–32. [Google Scholar] [CrossRef] [Scilit]
  15. Sniezek, J.; Bodin, L. Arc routing vehicle routing problems with vehicle/site dependencies. In System Modelling and Optimization: Proceedings of the Seventeenth IFIP TC7 Conference on System Modelling and Optimization, 1995; Springer: Boston, MA, USA, 1996; pp. 607–613. [Google Scholar] [CrossRef] [Scilit][Green Version]
  16. Sniezek, J.; Bodin, L.; Levy, L.; Ball, M. Capacitated Arc Routing Problem with Vehicle-Site Dependencies: The Philadelphia Experience. In The Vehicle Routing Problem; Society for Industrial and Applied Mathematics: Philadelphia, PA, USA, 2002; Chapter 11; pp. 287–308. [Google Scholar] [CrossRef] [Scilit]
  17. Tirkolaee, E.B.; Mahdavi, I.; Esfahani, M.M.S. A robust periodic capacitated arc routing problem for urban waste collection considering drivers and crews working time. Waste Manag. 2018, 76, 138–146. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  18. Liu, T.; Jiang, Z.; Geng, N. A genetic local search algorithm for the multi-depot heterogeneous fleet capacitated arc routing problem. Flex. Serv. Manuf. J. 2014, 26, 540–564. [Google Scholar] [CrossRef] [Scilit]
  19. Rodrigues, A.M.; Soeiro Ferreira, J. Waste collection routing-limited multiple landfills and heterogeneous fleet. Networks 2015, 65, 155–165. [Google Scholar] [CrossRef] [Scilit]
  20. Chen, Y.; Hao, J.K. Two phased hybrid local search for the periodic capacitated arc routing problem. Eur. J. Oper. Res. 2018, 264, 55–65. [Google Scholar] [CrossRef] [Scilit]
  21. Tagmouti, M.; Gendreau, M.; Potvin, J.Y. A dynamic capacitated arc routing problem with time-dependent service costs. Transp. Res. Part C Emerg. Technol. 2011, 19, 20–28. [Google Scholar] [CrossRef] [Scilit]
  22. Lacomme, P.; Prins, C.; Ramdane-Chérif, W. Evolutionary algorithms for periodic arc routing problems. Eur. J. Oper. Res. Proj. Manag. Sched. 2005, 165, 535–553. [Google Scholar] [CrossRef] [Scilit]
  23. de Armas, J.; Keenan, P.; Juan, A.A.; McGarraghy, S. Solving large-scale time capacitated arc routing problems: From real-time heuristics to metaheuristics. Ann. Oper. Res. 2018, 273, 135–162. [Google Scholar] [CrossRef] [Scilit]
  24. Bartolini, E.; Cordeau, J.F.; Laporte, G. An Exact Algorithm for the Capacitated Arc Routing Problem with Deadheading Demand. Oper. Res. 2013, 61, 315–327. [Google Scholar] [CrossRef] [Scilit]
  25. Zhu, B.; Sun, Z.; Tan, Y.; Zhou, C.; Zhang, P.; Wang, X. The Capacitated Arc Routing Problem for On-Road Anti-Dust Operations. Sci. Rep. 2026; in press. [CrossRef] [Scilit] [PubMed]
  26. Golden, B.; DeArmon, J.; Baker, E. Computational Experiments with Algorithms for a Class of Routing Problems. Comput. Oper. Res. 1983, 10, 47–59. [Google Scholar] [CrossRef] [Scilit]
  27. Arakaki, R.K.; Usberti, F.L. An efficiency-based path-scanning heuristic for the capacitated arc routing problem. Comput. Oper. Res. 2019, 103, 288–295. [Google Scholar] [CrossRef] [Scilit]
  28. Ramamoorthy, M.; Syrotiuk, V.R. Learning heuristics for arc routing problems. Intell. Syst. Appl. 2024, 21, 200300. [Google Scholar] [CrossRef] [Scilit]
  29. Willemse, E.J. Heuristics for Large-Scale Capacitated Arc Routing Problems on Mixed Networks. Ph.D. Thesis, University of Pretoria, Faculty of Engineering, Built Environment and Information Technology, Pretoria, South Africa, 2016. [Google Scholar]
  30. Eglese, R.W. Routeing winter gritting vehicle. Discret. Appl. Math. 1994, 48, 231–244. [Google Scholar] [CrossRef] [Scilit]
  31. Mei, Y.; Tang, K.; Yao, X. A Global Repair Operator for Capacitated Arc Routing Problem. IEEE Trans. Syst. Man Cybern. Part B (Cybern.) 2009, 39, 723–734. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  32. Tagmouti, M.; Gendreau, M.; Potvin, J.Y. A variable neighborhood descent heuristic for arc routing problems with time-dependent service costs. Comput. Ind. Eng. 2010, 59, 954–963. [Google Scholar] [CrossRef] [Scilit]
  33. Christian, P.; Wolfler Calvo, R. A fast GRASP with path relinking for the capacitated arc routing problem. In Proceedings of the 3rd International Network Optimization Conference (INOC 2005); INFORMS: Lisbon, Portugal, 2005; pp. 289–295. [Google Scholar]
  34. Lacomme, P.; Prins, C.; Ramdane-Chérif, W. A Genetic Algorithm for the Capacitated Arc Routing Problem and Its Extensions. In Proceedings of the Applications of Evolutionary Computing; Boers, E.J.W., Ed.; Springer: Berlin/Heidelberg, Germany, 2001; pp. 473–483. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  35. Lacomme, P.; Prins, C.; Ramdane-Cherif, W. Competitive Memetic Algorithms for Arc Routing Problems. Ann. Oper. Res. 2004, 131, 159–185. [Google Scholar] [CrossRef] [Scilit]
  36. Bautista, J.; Fernández, E.; Pereira, J. Solving an Urban Waste Collection Problem Using Ants Heuristics. Comput. Oper. Res. 2008, 35, 3020–3033. [Google Scholar] [CrossRef] [Scilit]
  37. Nagy, Z.; Werner-Stark, Á.; Dulai, T. An Artificial Bee Colony Algorithm for Static and Dynamic Capacitated Arc Routing Problems. Mathematics 2022, 10, 2205. [Google Scholar] [CrossRef] [Scilit]
  38. Mei, Y.; Li, X.; Yao, X. Cooperative Coevolution with Route Distance Grouping for Large-Scale Capacitated Arc Routing Problems. IEEE Trans. Evol. Comput. 2014, 18, 435–449. [Google Scholar] [CrossRef] [Scilit]
  39. Bosco, A.; Laganà, D.; Musmanno, R.; Vocaturo, F. A matheuristic algorithm for the mixed capacitated general routing problem. Networks 2014, 64, 262–281. [Google Scholar] [CrossRef] [Scilit]
  40. Akbari, V.; Salman, F.S. Multi-vehicle prize collecting arc routing for connectivity problem. Comput. Oper. Res. 2017, 82, 52–68. [Google Scholar] [CrossRef] [Scilit]
  41. Longo, H.; de Aragao, M.P.; Uchoa, E. Solving capacitated arc routing problems using a transformation to the CVRP. Comput. Oper. Res. 2006, 33, 1823–1837. [Google Scholar] [CrossRef] [Scilit]
  42. Bode, C.; Irnich, S. The shortest-path problem with resource constraints with (k,2)-loop elimination and its application to the capacitated arc-routing problem. Eur. J. Oper. Res. 2014, 238, 415–426. [Google Scholar] [CrossRef] [Scilit]
  43. Amberg, A.; Domschke, W.; Voß, S. Multiple center capacitated arc routing problems: A tabu search algorithm using capacitated trees. Eur. J. Oper. Res. 2000, 124, 360–376. [Google Scholar] [CrossRef] [Scilit]
  44. Kansou, A.; Yassine, A. New upper bounds for the multi-depot capacitated arc routing problem. Int. J. Metaheuristics 2010, 1, 81–95. [Google Scholar] [CrossRef] [Scilit]
  45. Xing, L.; Rohlfshagen, P.; Chen, Y.; Yao, X. An Evolutionary Approach to the Multidepot Capacitated Arc Routing Problem. IEEE Trans. Evol. Comput. 2010, 14, 356–374. [Google Scholar] [CrossRef] [Scilit]
  46. Li, L.Y.O.; Eglese, R.W. An interactive Algorithm for Vehicle Routing for Winter Gritting. J. Oper. Res. Soc. 1996, 47, 217–228. [Google Scholar] [CrossRef]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.