Next Article in Journal
Experimental and Numerical Study of the Jib Connection Frame of a Wheeled Crane
Previous Article in Journal
Frequency-Dependent Acoustic Reflection for Soil Classification in a Controlled Aquatic Environment
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

An Improved Genetic Algorithm for Solving the Semi-Soft Clustered Vehicle Routing Problem

College of Information Technology, Shanghai Ocean University, Shanghai 201306, China
*
Author to whom correspondence should be addressed.
Appl. Sci. 2025, 15(9), 4871; https://doi.org/10.3390/app15094871
Submission received: 17 March 2025 / Revised: 25 April 2025 / Accepted: 26 April 2025 / Published: 27 April 2025
(This article belongs to the Section Computing and Artificial Intelligence)

Abstract

:
The Semi-Soft Clustered Vehicle Routing Problem (SemiSoftCluVRP) is a relaxed version of the Clustered Vehicle Routing Problem (CluVRP) and an enhanced variant of the Soft Clustered Vehicle Routing Problem (SoftCluVRP). In the SemiSoftCluVRP, all customers are partitioned into several clusters, and these clusters are further divided into two types: hard clusters and soft clusters. Within a hard cluster, customers must be served by the same vehicle without interruption, whereas within a soft cluster, customers must also be served by the same vehicle, but interruptions are permitted. To solve this problem, a mathematical model is first developed, followed by the design of a two-level genetic algorithm that integrates a variable neighborhood descent method. Computational experiments demonstrate that the proposed algorithm produces high-quality solutions and exhibits excellent performance. Compared with the results of CluVRP and SoftCluVRP, the results of SemiSoftCluVRP can reduce and increase logistics costs by up to 6.50% and 7.52%, respectively. In practical applications, by adjusting the hard and soft attributes of clusters, more flexible decision-making references can be provided for relevant decision-makers.

1. Introduction

The Vehicle Routing Problem (VRP) [1] is a classical combinatorial optimization problem. Since the problem was proposed, it has attracted extensive attention from researchers. As research has deepened, many variants of the VRP have been developed by integrating practical applications, such as the VRP with time windows [2], two-echelon VRP [3], multi-compartment VRP [4], electric VRP [5], green VRP [6], pickup and delivery VRP [7], stochastic VRP [8], multi-objective VRP [9], and so on. The Clustered VRP (CluVRP) [10] and the Soft Clustered VRP (SoftCluVRP) [11] are two other variants of the VRP. In the CluVRP, customers to be served are divided into several subsets, each of which is called a cluster. A feasible route requires that customers within each cluster must be served continuously by the same vehicle without interruption. That is, once a vehicle enters a cluster to serve customers, it must serve all customers within that cluster before entering the next cluster for service or returning to the depot. The SoftCluVRP is a relaxed version of the CluVRP, in which the service of customers within a cluster is allowed to be interrupted, as long as they are served by the same vehicle.
The CluVRP was originally developed to simulate the package delivery operations of courier companies [10]. All customers are divided into several clusters based on their geographical locations. According to the information of these clusters, the packages to be delivered are sorted into corresponding containers. During the delivery process, the packages in a cluster must be delivered completely before moving on to deliver the packages in the next cluster. The CluVRP can also be used to simulate many other practical scenarios, such as urban solid waste collection [12], medical services in emergency environments [13], services within gated communities [14], and so on. In the CluVRP, if a deliveryman can always access all containers carried by the vehicle, it then becomes a SoftCluVRP [11].
In the SoftCluVRP, when a vehicle is serving clusters assigned to it, it is assumed that any cluster can be interrupted by other clusters, which is too loose. In the CluVRP, it is assumed that all clusters are not allowed to be interrupted, which is too strict. Therefore, this paper considers a problem that falls between these two assumptions, namely the Semi-Soft CluVRP (SemiSoftCluVRP). In the SemiSoftCluVRP, all clusters are classified into two categories: hard clusters and soft clusters. Customers within hard clusters are not allowed to interrupt service, while customers within soft clusters are allowed to interrupt service. By setting the hard and soft attributes of clusters, decision-makers are provided with greater operational flexibility and richer decision-making insights, ultimately improving delivery efficiency and reducing operational costs. Specifically, the main contributions of this paper are as follows:
(1) The SemiSoftCluVRP is proposed, which is a generalization of the CluVRP and the SoftCluVRP. Therefore, the SemiSoftCluVRP can simulate a wider range of practical scenarios, and designing solution methods for it holds greater practical significance.
(2) Based on the existing mathematical models of the CluVRP and the SoftCluVRP in the literature, an integer linear programming model is established.
(3) A two-level genetic algorithm integrated with a variable neighborhood descent (VND) method is designed. The algorithm decomposes the original problem into a low-level traveling salesman problem (TSP) and a high-level capacitated VRP (CVRP), and then solves each using a specific genetic algorithm. In addition, to enhance the local search ability of the algorithm, a VND method with inter-route and intra-route neighborhood search operators is applied after each generation of genetic operations.
(4) Extensive computational experiments are conducted using a set of instances adapted from the existing literature, which includes 77 instances, thereby verifying the effectiveness of the proposed algorithm.
The remainder of the paper is organized as follows: Section 2 provides a literature review related to SemiSoftCluVRP; Section 3 introduces the SemiSoftCluVRP and its mathematical model; and Section 4 presents an improved genetic algorithm for solving the SemiSoftCluVRP. The experimental results and discussion are given in Section 5. Finally, the conclusions are drawn in Section 6.

2. Literature Review

For the CluVRP, Barthélemy et al. [15] converted the problem into a CVRP by adding a sufficiently large positive constant M to all inter-cluster edges, and then applied a simulated annealing method to solve it. Pop et al. [16] provided two mathematical models for the Generalized VRP (GVRP) and then further extended them to the CluVRP. Battarra et al. [12] proposed two exact solution approaches: a branch and cut as well as a branch and cut and price. The algorithms were tested on benchmark instances and applied to solve real-world scenarios of solid waste collection. Vidal et al. [17] introduced two iterative local search algorithms and a hybrid genetic algorithm. By decomposing the original problem into two sub-problems at high-level and low-level: the former is the route problem of determining the visiting order between clusters, and the latter is the route problem of determining the visiting order of customers within each cluster, Expósito-Izquierdo et al. [13] proposed a two-level optimization technique, in which a meta-heuristic algorithm is used to solve the high-level sub-problem and several exact and approximate methods are dedicated to solve the low-level sub-problem; Defryn and Sörensen [11] developed an efficient two-level variable neighborhood search (VNS) heuristic algorithm to solve the CluVRP; Horvat-Marc et al. [18] solved the two sub-problems using a genetic algorithm and a simulated annealing algorithm, respectively; Pop et al. [19] solved the high-level sub-problem using a genetic algorithm and transformed the low-level sub-problem into a TSP, which was then solved using the Concorde TSP solver. Hintsch and Irnich [20] presented a large multiple neighborhood search algorithm. In the proposed method, multiple cluster destroy and repair operations were employed, and then a local search improvement scheme based on VND was adopted for further optimization. Islam et al. [14] developed a particle swarm optimization (PSO) algorithm integrating a VNS. The PSO is responsible for ensuring the solution diversity, while the VNS is in charge of enhancing the local search capability of the algorithm.
For the SoftCluVRP, Defryn and Sörensen [11] proposed a two-level VNS solution method by making slight modifications to the algorithm for solving the CluVRP. Hintsch and Irnich [21] designed and analyzed different branch-and-price exact algorithms. The computational experiments demonstrated that their method is capable of optimally solving SoftCluVRP instances with over 500 customers or more than 50 clusters. Heßler and Irnich [22] introduced a branch-and-cut exact algorithm. The computational experiments showed that several previously open instances can now be solved to proven optimality. Hintsch [23] proposed a large multiple neighborhood search algorithm where multiple cluster destroy and repair operations were employed, followed by the use of two post-optimization components based on VND. Cosma et al. [24] developed a two-level based genetic algorithm that splits the original problem into two sub-problems at macro-level and micro-level. The former sub-problem aims to determine the assignment of clusters to vehicles, while the latter sub-problem focuses on determining the order in which each vehicle serves its customers. Zhou et al. [25] introduced an efficient bilevel memetic search method that integrates three modules: a group matching-based crossover, a bilevel hybrid neighborhood search, and a tabu-driven population reconstruction strategy, to explore search space at both cluster and customer levels. Xu [26] proposed a two-level VND algorithm that includes two-stage construction, intensification at cluster and customer levels, and a perturbation mechanism, to solve a split delivery clustered vehicle routing problem with soft cluster conflicts and customer-related costs arising in automotive parts of milk-run logistics with supplier cluster distribution in China.

3. Problem Description and Mathematical Modeling

3.1. Problem Description

The SemiSoftCluVRP can be described as follows: Let G = ( V , E ) be a complete undirected graph, where V = { 0 , 1 , , n } is the set of vertices, and E = { ( i , j ) | i , j V , i j } is the set of edges. Vertex 0 represents the depot, and vertices 1 , 2 , , n are customer, denoted by N = { 1 , 2 , , n } . Each customer i N is associated with a demand q i > 0 . The vertex set V is divided into m + 1 non-empty and mutually disjoint subsets V 0 , V 1 , V 2 , , V m , where V 0 = { 0 } . Each subset is called a cluster. Let R = { V 1 , V 2 , , V m } . R is further divided into two disjoint subsets R 1 and R 2 , where R 1 represents the set of hard clusters, and R 2 represents the set of soft clusters. Each edge ( i , j ) E is associated with a distance d i j > 0 . There are K identical vehicles available at the depot, each with a capacity of Q .
The requirement of the problem is to design a route for each vehicle such that each customer is visited exactly once, subject to the following constraints: (1) the total demand of customers assigned to a vehicle cannot exceed its capacity Q ; (2) each vehicle’s route must start and end at the depot; (3) customers within each cluster V i R must be served by the same vehicle. Meanwhile, if V i is a hard cluster, the service for its customers is not allowed to be interrupted, while if V i is a soft cluster, there is no such restriction for its customers. The objective of the problem is to minimize the total distance traveled by all vehicles.
Figure 1 provides a schematic diagram of feasible solutions for the CluVRP, SoftCluVRP, and SemiSoftCluVRP, where the number of customers is 16, and all the customers are divided into five clusters: V1, V2, V3, V4, and V5. Furthermore, in the SemiSoftCluVRP, V1, V2, and V3 are hard clusters, while V4 and V5 are soft clusters. In the figure, to more intuitively distinguish between hard clusters and soft clusters, we use solid-line rectangular boxes to represent hard clusters and dashed-line rectangular boxes to represent soft clusters.

3.2. Mathematical Modeling

For convenience in modeling, the following notations are introduced: Let S denote any non-empty subset of V . Let δ + ( S ) denote the set of arcs ( i , j ) S × V \ S . Let δ ( S ) denote the set of arcs ( i , j ) V \ S × S . Additionally, the following two decision variables are defined:
x i j k = 1 ,   if   vehicle   k   travels   from   node   i   to   node   j 0 ,   otherwise
y i k = 1 ,   if   customer   i   is   served   by   vehicle   k 0 ,   otherwise
The mathematical programming model for the SemiSoftCluVRP is as follows:
min ( i , j ) E k K d i j x i j k
k K y i k = 1 i N
k K y 0 k m
y 0 k y i k i N , k K
j N x i j k = j N x j i k = y i k   k K , i V
i V q i y i k Q k K
i S j S x i j k y h k S N , h S , k K
( i , j ) δ + ( V r ) k K x i j k = ( i , j ) δ ( V r ) k K x i j k = 1   V r R 1
( i , j ) δ + ( V r ) k K x i j k = ( i , j ) δ ( V r ) k K x i j k 1   V r R 2
y i k = y j k i , j V r , k K
x i j k { 0 , 1 } ( i , j ) E , k K
y i k { 0 , 1 } i V , k K
In the above mathematical model, the objective function (1) minimizes the total distance traveled by all vehicles. Constraint (2) ensures that each customer is visited exactly once. Constraint (3) indicates that the number of vehicles does not exceed the number of clusters. Constraint (4) guarantees that all the vehicles used should visit the depot. Constraint (5) ensures that the same vehicle that arrives at a customer also leaves from that customer. Constraints (6) and (7) are the vehicle capacity constraint and the subtour elimination constraint, respectively. Constraints (8) and (9) impose the service restrictions for hard and soft clusters, respectively. Constraint (10) ensures that the customers in each cluster are served by the same vehicle. Finally, constraints (11) and (12) define the domain of the decision variables.

4. Solution Methodology

Genetic algorithm is a meta-heuristic method. Due to its strong global search capability and parallelism, it can effectively solve complex problems. Meanwhile, one of the encodings of chromosomes, the integer representation, can be directly mapped to the solution of the VRP, that is, the allocation of customers to vehicles and the service order of customers. Therefore, the use of genetic algorithm to solve the VRP has also been favored by researchers (Chen et al. [27], Zhang et al. [28], Palamutçuoglu et al. [29], Liu et al. [30]). This paper proposes a two-level genetic algorithm integrated with a VND method to solve the SemiSoftCluVRP. Next, we first introduce the proposed improved genetic algorithm in detail and then analyze its time complexity.

4.1. Improved Genetic Algorithm

The algorithm proposed in this paper employs a two-level strategy to solve the SemiSoftCluVRP, which is also one of the widely used methods for solving the CluVRP and the SoftCluVRP. The algorithm decomposes the original problem into two sub-problems at low-level and high-level. The former aims to determine the visiting order of customers within each cluster, while the latter aims to determine the allocation of all clusters to vehicles and the visiting order between them. For these two sub-problems, first abstract them as a TSP and a CVRP, respectively, and then use genetic algorithms tailored to solve the corresponding problems. In addition, after each generation of genetic operations, a VND method including inter-route and intra-route neighborhood search operators is used to enhance the local search capability of the algorithm. The flowchart of the proposed algorithm is shown in Figure 2 and the pseudocode of the proposed algorithm is shown in Algorithm 1.
Algorithm 1: Pseudocode of the improved genetic algorithm
Input: Maximum number of iterations T , population size η , crossover probability θ 1 , mutation probability θ 2
Output: Optimal solution S *
Begin
1: Solve the low-level sub-problem and provide the initial visiting order of customers within each cluster;
2: P ← Initialize population for the high-level sub-problem;
3: S * ← Compute the fitness values of all individuals and record the best individual;
4: While the stopping criteria is not met
5:     While the population size is not satisfied
6:         P 1 , P 2 ← Randomly select two individuals from the current population using the binary tournament method;
7:         P 1 , P 2 ← Crossover ( P 1 , P 2 , θ 1 );
8:     End While
9:      P c ← Population generated by the crossover operator;
10:     P m ← Mutation ( P c , θ 2 );
11:     P c l u 1 ← Perform VND at inter-route cluster level ( P m );
12:     P c l u 2 ← Perform VND at intra-route cluster level ( P c l u 1 );
13:     P c u s ← Perform VND at intra-route customer level ( P c l u 2 );
14:     P ← Truncation selection ( P c u s );
15:     S * ← Compute the fitness values of all individuals and record the best individual;
16: End While
17: Return the optimal solution S * ;
End

4.1.1. Handling the Low-Level Sub-Problem

For each cluster, since the sum of the demands of all customers within it must not exceed the vehicle’s capacity, the determination of their visiting order can be achieved by solving the corresponding TSP while disregarding the customer demands. A genetic algorithm is employed to solve this TSP. Here, chromosomes are encoded using integer encoding, where each gene corresponds to a customer, and the gene sorting determines the visiting order of customers; the initial population is generated in a random manner; the fitness function is the reciprocal of the length of the TSP tour; the selection operator uses the binary tournament method; the crossover operator uses the partial matching crossover and two-point order crossover strategies with equal probability; and the mutation operator uses the swap mutation and inversion mutation strategies with equal probability.

4.1.2. Handling the High-Level Sub-Problem

Each cluster is treated as a whole, with its demand being the sum of the demands of all customers within it, thus abstracting a CVRP. A genetic algorithm is used to solve this CVRP. Here, chromosomes are encoded using integer encoding, where the total number of genes is m + K 1 , the m non-zero genes correspond to the m clusters, the K 1 zero genes are used to determine the assignment of all clusters to the k vehicles, and the order of genes within each segment determines the order in which the vehicle visits the clusters; the initial population is randomly generated from the feasible solution space; the fitness function is the reciprocal of the objective function value of the SemiSoftCluVRP feasible solution; select and use selection operator, crossover operator, and mutation operator in the same way as in Section 4.1.1.
In the above genetic algorithm, the following points need to be noted:
(1)
The method for generating the SemiSoftCluVRP feasible solution corresponding to each chromosome is as follows: Each vehicle first departs from the depot, and then selects the nearest customer from the first cluster as the entrance to serve that cluster. From the two customers adjacent to that customer, it selects the customer closest to the second cluster as the exit, and so on, until the vehicle returns to the depot.
(2)
During the generation of the initial population and after the completion of the crossover and mutation operations, it is necessary to check the vehicle capacity. If the demand load exceeds the vehicle capacity, it needs to be repaired. The repair method is as follows: First, arrange the vehicle loads in descending order, then randomly select a cluster from the vehicle with the highest load, and place the cluster into the vehicle with the highest loading rate after loading it, and so on, until all vehicles meet the load requirements.
(3)
When the next generation is generated from the current population, the truncation selection strategy is used. Specifically, for the current population and its offspring generated, sort them in descending order according to their fitness values, and then select the best μ individuals as the next generation population.

4.1.3. Variable Neighborhood Descent

The proposed algorithm employs the VND method at three levels: inter-route cluster level, intra-route cluster level, and intra-route customer level. The neighborhood search operators at inter-route cluster level consist of Relocate, Relocate2, and Swap. The neighborhood search operators at intra-route cluster level include Relocate and Swap. In this case, each customer in the soft clusters is treated as an independent cluster and is executed together with the hard clusters using these two operators. The neighborhood search operators at intra-route customer level also include Relocate and Swap. At this time, only customers within the hard clusters are subjected to these two operators. The function of Relocate is to move a gene to a different position, the function of Relocate2 is to move two adjacent genes to a different position, and the function of Swap is to exchange two genes.

4.2. Computational Complexity of Improved Genetic Algorithm

The time complexity of the improved genetic algorithm mainly consists of processing the low-level and high-level sub-problems and executing the VND. Because the time complexities of the partial matching crossover, two-point order crossover, and inversion mutation are all of the order of the chromosome length, while the time complexity of the swap mutation is O ( 1 ) , the time complexity for processing the low-level sub-problem is
l = 1 m 1 2 O ( | V l | ) + 1 2 O ( | V l | ) + 1 2 O ( | V l | ) + 1 2 O ( 1 ) = O ( n ) .
Since the time complexities for generating feasible solutions for the SemiSoftCluVRP from the chromosomes corresponding to the high-level sub-problem, repairing the vehicle capacities, and generating the next generation population through the truncation selection are O ( n ) , O ( K log K ) , and O ( η log η ) , respectively, the time complexity for processing the high-level sub-problem is
1 2 O ( m + K 1 ) + 1 2 O ( m + K 1 ) + 1 2 O ( m + K 1 ) + 1 2 O ( 1 ) + O ( n ) + O ( K log K ) + O ( η log η ) ,
that is, O ( m + K 1 ) + O ( n ) + O ( K log K ) + O ( η log η ) . Because the time complexities of Relocate, Relocate2, and Swap are all of the order of the square of the chromosome length, the time complexities of the VND strategies at the inter-route cluster level, intra-route cluster level, and intra-route customer level are O ( m 2 ) , O ( m 1 + n 2 ) 2 , and i = 1 m 1 O ( | V i | ) 2 , respectively. Here, m 1 and m 2 represent the numbers of hard clusters and soft clusters, respectively, while n 1 and n 2 represent the numbers of customers within hard clusters and soft clusters, respectively. In summary, the time complexity of the proposed improved genetic algorithm is
O T ( O ( n ) + O ( m + K 1 ) + O ( K log K ) + O ( η log η ) + O ( m 2 ) + O ( m 1 + n 2 ) 2 + i = 1 m 1 O ( | V i | ) 2 ) .

5. Results and Discussion

5.1. Experimental Environment

The proposed algorithm was implemented using Python 3.9.13, and the computational environment consists of an Intel(R) Core (TM) i5-8300H CPU @ 2.30 GHz with 16 GB of RAM. Based on the CluVRP instances from Defryn and Sörensen [11], 77 SemiSoftCluVRP instances of types A, B, M, and P were constructed by setting the hard–soft attributes of the clusters. The details of the test instances are shown in Appendix A. In Table A1, the first instance A-n32-C11-V2-Q100 is taken as an example, and its meaning is as follows: “A” represents the instance type, 32 indicates the number of vertices, 11 represents the number of clusters, 2 denotes the number of vehicles, and 100 is the vehicle capacity.

5.2. Determination of Algorithm Parameters

The dynamic experimental method is one of the commonly used methods for determining algorithm parameters in the literature. The basic idea of the method is to vary one selected parameter within a certain range while keeping the other parameters constant, and to determine the value of that parameter by comparing fitness values. Here, we also use this method to determine the relevant parameters of the proposed improved genetic algorithm. The parameters of the algorithm are determined as follows: the population size μ has been set at 50, the crossover probability was set at 95%, and the mutation probability was set at 5%. The algorithm terminates when the best individual in the population does not improve for 30 consecutive iterations or when the maximum iteration number of 50 is reached.

5.3. Computational Experiments

To validate the effectiveness of the algorithm proposed in this paper, and to analyze the impact of the hard–soft attributes of the clusters on the experimental results, the proposed algorithm was applied to solve the 77 test instances in Table A1, as well as their corresponding CluVRP and SoftCluVRP instances. The results are shown in Table 1. In Table 1, Column 3 shows the best results for the CluVRP instances from the literature [11]; Columns 4 and 8 present the best results obtained by running the proposed algorithm 10 times to solve the CluVRP and SoftCluVRP instances, respectively; Columns 5 and 6, respectively, present the best and average results obtained by running the proposed algorithm 10 times to solve the SemiSoftCluVRP instances; Column 7 shows the deviation between the average and best results obtained by running the proposed algorithm 10 times to solve the SemiSoftCluVRP instances; Column 9 shows the best results for the SoftCluVRP instances from the literature [23]. Here, the calculation formula for Gap is as follows: Gap = (Avg − Best)/Best × 100%.
In addition, the meaning of the values in parentheses in the relevant columns in Table 1 is as follows: Column 4 (8) shows the difference between the results obtained by the proposed algorithm and the corresponding results in [11,23] when solving the CluVRP (SoftCluVRP) instances. The values in the left (right) parentheses of Column 5 represent the difference between the results obtained using the proposed algorithm to solve the SemiSoftCluVRP and CluVRP (SoftCluVRP) instances.

5.3.1. Stability Evaluation of the Proposed Algorithm

To analyze the stability of the proposed algorithm, in Table 1, we present the best and average results obtained by running the algorithm 10 times to solve the SemiSoftCluVRP instances. The experimental results show that among the 77 test instances, the average values of 63 instances are equal to the optimal values, that is, the Gap is 0%. In the remaining 14 test instances, the maximum value of Gap does not exceed 0.82%. Therefore, the algorithm proposed in this paper demonstrates excellent stability.

5.3.2. Comparisons of Results for the CluVRP Instances

In the SemiSoftCluVRP, if all clusters are set to be hard, it will degenerate into a CluVRP. Therefore, the CluVRP is a special case of the SemiSoftCluVRP. To verify the effectiveness of the algorithm proposed in this paper to a certain extent, we compared the results with those of [11] for the CluVRP instances. From Columns 3 and 4 of Table 1, it can be seen that the algorithm proposed in this paper can obtain 73 existing best results among 77 CluVRP instances; among the remaining four results, the deviation of solving the instance P-n101-C34-V2-Q400 is 2.80%, and the deviation of solving the three instances of type M is at most 6.84%, indicating the effectiveness of the algorithm proposed in this paper.

5.3.3. Comparisons of Results for the SoftCluVRP Instances

In the SemiSoftCluVRP, if all clusters are set to be soft, it will degenerate into a SoftCluVRP. Therefore, the SoftCluVRP is another special case of the SemiSoftCluVRP. To verify the effectiveness of the algorithm proposed in this paper to a certain extent, we compared the results with those of [23] for the SoftCluVRP instances. From Columns 8 and 9 of Table 1, it can be observed that the algorithm proposed in this paper can obtain 73 existing best results among 77 SoftCluVRP instances; among the remaining four results, the deviation of solving the instance P-n101-C34-V2-Q400 is 5.08%, and the deviation of solving the three instances of type M is at most 9.79%, indicating the effectiveness of the algorithm proposed in this paper.

5.3.4. Comparisons of Results for the SemiSoftCluVRP Instances

To analyze the influence of the hard–soft attributes of clusters on the experimental results, we set up two groups of comparative experiments. The first group is the comparison of the results of the SemiSoftCluVRP instances with the corresponding CluVRP instances, and the second group is the comparison of the results of the SemiSoftCluVRP instances with the corresponding SoftCluVRP instances.
For the first group of comparative experiments, the results are shown in the left parentheses in Column 5 of Table 1. From these results, it can be seen that compared to the results of the CluVRP, 55 of the results of the SemiSoftCluVRP have been improved, accounting for 71.43% of the total number of instances, with a maximum improvement of 6.50%. From the perspective of the type of instances, the number of improved results for A, B, P, and M-type instances accounted for 74.07%, 60.87%, 79.17%, and 66.67% of their respective total numbers, respectively; the maximum improvements in results were 4.93%, 2.41%, 6.50%, and 1.12%, respectively. Therefore, in the CluVRP, relaxing the hard attributes of some clusters to soft can help reduce the logistics costs of enterprises, but the specific effect is also related to the type of instance, as well as further factors such as the location of customers and depot.
For the second group of comparative experiments, the results are shown in the right parentheses in Column 5 of Table 1. From these results, it can be observed that compared to the results of the SoftCluVRP, the objective function values of 54 corresponding SemiSoftCluVRP instances increased, accounting for 70.13% of the total number of instances, with a maximum increase of 7.52%. From the perspective of the type of instances, for A, B, P, and M-type instances, the number of instances with increased objective function values accounted for 62.96%, 56.52%, 87.50%, and 100% of their respective total numbers, respectively; the maximum increments in results were 7.52%, 3.27%, 7.30%, and 3.01%, respectively. Therefore, in the SoftCluVRP, if some clusters are enhanced to be hard, it will lead to an increase in the objective function values of most instances, with the magnitude of the increase varying depending on the type of instance. However, overall, it can be shown that the hard attributes of clusters have a significant impact on the logistics costs of enterprises.

5.3.5. Sensitivity Analysis and Management Insights

To analyze the impact of the hard–soft attributes of clusters on the experimental results, we conducted a sensitivity analysis on the proportion of hard–soft clusters among all clusters. Let ρ denote the percentage of soft clusters among all clusters. The values of ρ are set to 0%, 25%, 50%, 75%, and 100%, respectively. It is noted that when ρ takes the values of 0% and 100%, the corresponding instances degenerate into CluVRP and SoftCluVRP instances, respectively. We selected one test instance of each type A and B for experimentation. The experimental results are shown in Figure 3.
From the results of the above two instances, it can be seen that for the Type A instance, when ρ = 0%, the objective function value was 712. At this time, since the number of soft clusters was 0, the constraint conditions were relatively strict, resulting in a higher objective value. When ρ increased to 25%, the objective value dropped to 701. This indicates that moderately increasing the proportion of soft clusters can reduce the objective value. When ρ was further increased to 50%, the objective value remained at 701. This shows that at this stage, the further increase in the proportion of soft clusters had little effect on objective value reduction. When ρ reached 75%, the objective value was further reduced to 669, achieving a significant objective value improvement. When ρ = 100%, the objective value was 652 and continued to decrease. This indicates that when all clusters were soft, the route delivery scheme obtained was the most efficient. For the Type B instance, when ρ ranged from 0% to 50%, the objective value remained at 476 all the time. This may be due to the combined influence of factors such as customer distribution in this instance. When ρ increased to 75%, the objective value dropped to 471. This shows that at this point, the increase in the proportion of soft clusters began to have an impact on the cost. When ρ = 100%, the objective value was 469, and the objective value continued to decrease as well.
By synthesizing the experimental results of the above two instances, it can be seen that as ρ gradually increases, the objective value generally shows a downward trend, and the extent of the decrease is related to the type of the instance. In Figure 4, we present the representation of the solutions of the instance A-n45-C15-V3-Q100 when ρ = 0%, 75%, and 100%. Here, the red solid circle represents the depot, while other solid circles of the same color represent customers from the same cluster, and the solid lines of the same color constitute the route of the same vehicle. The figure more clearly illustrates the changes in vehicle routes in the corresponding solutions after the clusters are relaxed from hard to soft.
From the above experimental results, we can offer some managerial suggestions to provide decision-making references for managers of relevant enterprises. Since in most cases the logistics costs of enterprises can be significantly reduced when the proportion of soft clusters among all clusters is relatively high, relaxing some hard clusters into soft clusters can bring considerable economic benefits to enterprises. To relax hard clusters into soft clusters, we believe that two aspects should be considered. On the one hand, a thorough investigation of all clusters should be conducted. Based on the actual conditions of these clusters, they should initially be classified into hard clusters and soft clusters. On the other hand, through computational experiments, several key hard clusters that can significantly reduce the enterprise’s logistics costs should be identified. Subsequently, measures such as cooperation or compensation should be taken to relax these key hard clusters into soft clusters as much as possible, thereby minimizing the enterprise’s logistics costs.

6. Conclusions

There have been many studies on the CluVRP and the SoftCluVRP in the literature. In this paper, we considered a problem that falls between these two problems regarding the assumptions of customers, namely the SemiSoftCluVRP. In the SemiSoftCluVRP, all customers are divided into clusters, and all clusters are further partitioned into hard clusters and soft clusters. Customers within the hard cluster require uninterrupted service from the same vehicle, while customers within the soft cluster only need to be served by the same vehicle. For the SemiSoftCluVRP, a two-level genetic algorithm that integrates a VND method was proposed.
To verify the effectiveness of the algorithm proposed in this paper, we applied it to solve the CluVRP and SoftCluVRP instances from the literature, which are special cases of the SemiSoftCluVRP instances. From the results obtained, it can be seen that in 77 test instances, the proposed algorithm can achieve more than 94% of the literature results, while the four instances that did not achieve the literature results had differences of no more than 6.84% and 9.79%, respectively, which to some extent demonstrates the effectiveness of the algorithm proposed in this paper. To analyze the impact of the hard–soft attributes of clusters on the experimental results, we compared the results of SemiSoftCluVRP with those of CluVRP and SoftCluVRP. From the results obtained, it can be observed that compared to the results of CluVRP, the results of SemiSoftCluVRP can improve logistics costs by up to 6.50%; compared to the results of SoftCluVRP, the results of SemiSoftCluVRP can be increased by up to 7.52%. Therefore, in practical applications, decision-makers can provide more flexible operational options and richer decision-making references for enterprises by setting the hard–soft attributes of clusters, which can ultimately meet the actual needs of customers while reducing the logistics costs of enterprises.
However, from the results of CluVRP and SoftCluVRP, it can be seen that there is still room for further improvement in the performance of the proposed algorithm when solving large-scale instances. In future research, firstly, we will further design high-performance solution methods tailored for the SemiSoftCluVRP, such as exploiting novel algorithmic operators and developing new hybrid algorithms. Secondly, we will explore its related variants, such as multi-depot variants, multi-objective variants that incorporate additional objectives, etc., in order to better simulate a wider range of practical problems. Thirdly, we will conduct surveys of real enterprises and solve their real-world cases to address their genuine practical challenges.

Author Contributions

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

Funding

This work was supported by the National Natural Science Foundation of China under grant number 11701363.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The raw data supporting the conclusions of this article will be made available by the authors on request.

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A

Table A1. The hard–soft attributes of the clusters in the SemiSoftCluVRP instances.
Table A1. The hard–soft attributes of the clusters in the SemiSoftCluVRP instances.
IndexInstancesHard ClustersSoft Clusters
1A-n32-C11-V2-Q100[5, 10, 3][8, 9, 1, 6, 2, 11, 4, 7]
2A-n33-C11-V2-Q100[4, 5, 1][8, 9, 10, 3, 7, 2, 11, 6]
3A-n33-C11-V2-Q100[8, 4, 2][11, 3, 9, 5, 1, 7, 6, 10]
4A-n34-C12-V2-Q100[6, 9, 1][7, 8, 4, 10, 12, 3, 5, 2, 11]
5A-n36-C12-V2-Q100[8, 2, 9][11, 3, 6, 5, 10, 12, 1, 4, 7]
6A-n37-C13-V2-Q100[10, 11, 9, 5][4, 7, 8, 6, 2, 1, 13, 3, 12]
7A-n37-C13-V2-Q100[5, 3, 4, 6][12, 10, 7, 2, 11, 13, 8, 9, 1]
8A-n38-C13-V2-Q100[6, 4, 10, 8][12, 5, 2, 11, 9, 13, 1, 3, 7]
9A-n39-C13-V2-Q100[4, 1, 3, 11][10, 5, 2, 12, 13, 9, 8, 7, 6]
10A-n39-C13-V2-Q100[11, 13, 1, 5][8, 3, 2, 12, 4, 10, 6, 7, 9]
11A-n44-C15-V2-Q100[2, 11, 13, 6][8, 7, 4, 10, 3, 15, 14, 12, 5, 1, 9]
12A-n45-C15-V3-Q100[3, 12, 5, 13][15, 1, 2, 10, 8, 7, 11, 9, 4, 6, 14]
13A-n45-C16-V3-Q100[8, 3, 12, 14][1, 11, 2, 7, 5, 15, 13, 4, 9, 6, 10]
14A-n46-C16-V3-Q100[1, 8, 12, 9][11, 5, 7, 13, 2, 14, 10, 3, 4, 16, 6, 15]
15A-n48-C16-V3-Q100[2, 11, 5, 8][6, 16, 4, 12, 7, 3, 15, 9, 1, 14, 10, 13]
16A-n53-C18-V3-Q100[4, 8, 12, 16, 3][18, 2, 5, 14, 1, 7, 13, 6, 15, 17, 11, 10, 9]
17A-n54-C18-V3-Q100[13, 7, 8, 11, 4][5, 15, 6, 18, 3, 14, 12, 10, 17, 16, 2, 9, 1]
18A-n55-C19-V3-Q100[18, 19, 17, 11, 3][5, 9, 14, 10, 6, 16, 7, 8, 13, 15, 12, 1, 2, 4]
19A-n60-C20-V3-Q100[20, 7, 11, 4, 10][9, 8, 6, 13, 1, 5, 19, 2, 17, 3, 16, 14, 18, 15, 12]
20A-n61-C21-V4-Q100[9, 18, 13, 4, 3, 16][20, 15, 21, 17, 11, 1, 8, 14, 12, 2, 19, 5, 7, 6, 10]
21A-n62-C21-V3-Q100[17, 6, 9, 18, 8, 3][11, 14, 13, 21, 16, 2, 7, 12, 19, 5, 1, 10, 20, 15, 4]
22A-n63-C21-V4-Q100[12, 14, 11, 3, 18, 1][7, 16, 4, 6, 2, 20, 15, 19, 21, 10, 9, 13, 17, 8, 5]
23A-n63-C21-V3-Q100[1, 14, 5, 16, 4, 6][10, 19, 8, 13, 12, 21, 7, 9, 11, 3, 18, 17, 2, 20, 15]
24A-n64-C22-V3-Q100[6, 14, 21, 10, 16, 2][3, 7, 11, 19, 1, 9, 20, 17, 15, 18, 5, 13, 4, 8, 22, 12]
25A-n65-C22-V3-Q100[4, 1, 2, 9, 14, 17][15, 20, 12, 10, 11, 21, 7, 18, 22, 13, 5, 16, 3, 8, 19, 6]
26A-n69-C23-V3-Q100[6, 3, 5, 18, 8, 2][17, 10, 7, 22, 11, 9, 20, 16, 15, 19, 13, 21, 23, 1, 4, 12, 14]
27A-n80-C27-V4-Q100[22, 14, 11, 8, 3, 20, 7][1, 19, 18, 12, 25, 27, 13, 4, 24, 5, 26, 2, 16, 15, 10, 23, 17, 21, 6, 9]
28B-n31-C11-V2-Q100[3, 9, 7][6, 11, 5, 8, 2, 4, 10, 1]
29B-n34-C12-V2-Q100[10, 7, 1][12, 3, 6, 2, 5, 9, 8, 11, 4]
30B-n35-C12-V2-Q100[6, 3, 5][9, 8, 12, 7, 1, 2, 11, 4, 10]
31B-n38-C13-V2-Q100[9, 13, 1, 6][7, 10, 5, 2, 3, 11, 4, 12, 8]
32B-n39-C13-V2-Q100[12, 13, 3, 1][8, 4, 11, 7, 6, 5, 2, 10, 9]
33B-n41-C14-V2-Q100[1, 2, 10, 3][12, 4, 5, 8, 7, 9, 6, 11, 14, 13]
34B-n43-C15-V2-Q100[7, 9, 11, 8][10, 3, 6, 1, 4, 12, 15, 2, 13, 14, 5]
35B-n44-C15-V3-Q100[11, 14, 9, 3][10, 8, 5, 12, 6, 13, 1, 15, 4, 2, 7]
36B-n45-C15-V2-Q100[14, 3, 8, 9][5, 13, 2, 12, 15, 7, 10, 6, 1, 11, 4]
37B-n45-C15-V2-Q100[14, 12, 9, 13][15, 4, 1, 3, 2, 8, 6, 10, 11, 7, 5]
38B-n50-C17-V3-Q100[13, 2, 4, 11, 17][12, 3, 6, 14, 5, 10, 9, 1, 8, 16, 15, 7]
39B-n50-C17-V3-Q100[6, 14, 16, 2, 11][8, 1, 15, 12, 13, 17, 5, 3, 4, 7, 10, 9]
40B-n51-C17-V3-Q100[16, 9, 5, 6, 7][1, 4, 15, 10, 13, 14, 3, 2, 12, 17, 11, 8]
41B-n52-C18-V3-Q100[15, 6, 12, 1, 17][7, 5, 4, 13, 3, 11, 14, 10, 16, 9, 2, 8, 18]
42B-n56-C19-V3-Q100[6, 12, 2, 16, 10][17, 1, 14, 7, 8, 9, 11, 15, 18, 19, 5, 3, 13, 4]
43B-n57-C19-V3-Q100[15, 19, 16, 11, 13][14, 8, 12, 3, 5, 18, 7, 2, 1, 9, 10, 17, 6, 4]
44B-n57-C19-V3-Q100[10, 16, 5, 1, 11][13, 14, 6, 18, 4, 3, 12, 9, 7, 2, 15, 8, 17, 19]
45B-n63-C21-V3-Q100[10, 5, 11, 2, 7, 1][13, 14, 15, 9, 12, 8, 6, 20, 16, 3, 21, 17, 4, 18, 19]
46B-n64-C22-V4-Q100[17, 16, 3, 14, 18, 21][12, 4, 22, 19, 13, 20, 5, 15, 11, 2, 9, 10, 6, 7, 8, 1]
47B-n66-C22-V3-Q100[6, 21, 4, 9, 15, 18][10, 12, 22, 5, 14, 16, 19, 20, 3, 17, 11, 7, 8, 13, 2, 1]
48B-n67-C23-V4-Q100[22, 12, 15, 8, 5, 14][18, 20, 6, 10, 11, 2, 9, 17, 4, 16, 23, 1, 7, 3, 21, 19, 13]
49B-n68-C23-V3-Q100[4, 12, 8, 10, 19, 14][5, 1, 16, 13, 11, 7, 23, 22, 18, 2, 17, 21, 20, 9, 3, 15, 6]
50B-n78-C26-V4-Q100[9, 3, 21, 4, 5, 25, 18][24, 19, 14, 2, 23, 20, 6, 17, 8, 26, 13, 15, 7, 12, 1, 10, 22, 11, 16]
51P-n16-C6-V4-Q35[4, 2][6, 3, 5, 1]
52P-n19-C7-V1-Q160[4, 1][2, 5, 6, 3, 7]
53P-n20-C7-V1-Q160[6, 2][5, 3, 4, 1, 7]
54P-n21-C7-V1-Q160[5, 6][4, 3, 2, 1, 7]
55P-n22-C8-V1-Q160[8, 1][5, 6, 7, 4, 2, 3]
56P-n22-C8-V4-Q160[5, 1][3, 4, 8, 7, 6, 2]
57P-n23-C8-V3-Q40[2, 4][7, 5, 6, 3, 1, 8]
58P-n40-C14-V2-Q140[14, 13, 10, 6][4, 12, 9, 7, 2, 1, 8, 3, 11, 5]
59P-n45-C15-V2-Q150[4, 2, 13, 14][7, 8, 12, 3, 11, 10, 6, 15, 1, 9, 5]
60P-n50-C17-V4-Q150[14, 1, 5, 13, 11][16, 2, 8, 10, 17, 4, 15, 9, 6, 12, 3, 7]
61P-n50-C17-V3-Q120[9, 12, 11, 4, 17][6, 1, 15, 10, 5, 14, 16, 3, 2, 7, 13, 8]
62P-n50-C17-V3-Q100[14, 3, 6, 11, 15][9, 13, 1, 10, 5, 7, 2, 12, 17, 16, 8, 4]
63P-n51-C17-V4-Q80[4, 14, 3, 1, 15][2, 6, 5, 12, 11, 8, 7, 16, 13, 9, 10, 17]
64P-n55-C19-V4-Q115[2, 17, 15, 18, 10][16, 8, 3, 12, 5, 6, 7, 13, 1, 11, 19, 9, 4, 14]
65P-n55-C19-V6-Q70[8, 1, 7, 13, 10][9, 3, 5, 16, 19, 12, 4, 11, 2, 14, 17, 18, 6, 15]
66P-n55-C19-V3-Q170[10, 1, 5, 15, 17][8, 13, 14, 11, 19, 6, 12, 4, 18, 2, 3, 7, 9, 16]
67P-n55-C19-V3-Q160[4, 8, 15, 3, 1][2, 6, 5, 7, 18, 19, 12, 13, 16, 17, 9, 10, 11, 14]
68P-n60-C20-V4-Q120[8, 16, 11, 2, 15][5, 3, 20, 18, 6, 13, 12, 4, 7, 10, 14, 17, 9, 19, 1]
69P-n60-C20-V5-Q80[9, 12, 2, 15, 16][6, 13, 8, 11, 20, 3, 19, 17, 7, 18, 14, 10, 1, 4, 5]
70P-n65-C22-V4-Q130[15, 19, 7, 6, 10, 16][8, 14, 4, 5, 9, 2, 20, 21, 22, 18, 13, 17, 3, 12, 11, 1]
71P-n70-C24-V4-Q135[1, 23, 10, 15, 11, 14][4, 9, 17, 20, 18, 6, 12, 21, 22, 5, 19, 13, 24, 3, 8, 2, 7, 16]
72P-n76-C26-V2-Q350[18, 24, 26, 8, 16, 1, 22][6, 21, 14, 19, 10, 7, 17, 23, 13, 15, 4, 25, 11, 20, 2, 9, 12, 3, 5]
73P-n76-C26-V2-Q280[2, 20, 17, 23, 25, 13, 12][1, 6, 21, 8, 19, 3, 14, 5, 10, 18, 11, 16, 26, 24, 4, 15, 7, 22, 9]
74P-n101-C34-V2-Q400[27, 22, 8, 23, 14, 20, 18, 15, 29][34, 25, 28, 9, 13, 12, 19, 24, 31, 32, 2, 3, 5, 26, 30, 6, 16, 10, 17, 11, 33, 1, 4, 21, 7]
75M-n101-k10-C34-V4-Q200[10, 25, 3, 9, 19, 1, 2, 29, 8][7, 23, 32, 31, 4, 16, 33, 20, 17, 28, 24, 13, 22, 15, 18, 11, 27, 21, 5, 14, 12, 30, 6, 34, 26]
76M-n121-k7-C41-V3-Q200[1, 2, 30, 12, 11, 7, 35, 14, 9, 34, 22][19, 6, 31, 4, 37, 40, 10, 17, 13, 15, 27, 20, 32, 18, 8, 28, 26, 39, 21, 36, 23, 16, 33, 5, 3, 24, 41, 25, 29, 38]
77M-n151-k12-C51-V4-Q200[19, 29, 48, 46, 39, 49, 17, 45, 38, 30, 31, 3, 1][18, 44, 13, 41, 33, 15, 2, 10, 20, 42, 35, 14, 6, 22, 26, 5, 8, 23, 50, 32, 21, 16, 37, 36, 51, 28, 24, 9, 25, 34, 7, 12, 40, 11, 43, 27, 4, 47]

References

  1. Dantzig, G.B.; Ramser, J.H. The Truck Dispatching Problem. Manag. Sci. 1959, 6, 80–91. [Google Scholar] [CrossRef]
  2. Chen, G.; Gao, J.; Chen, D. Research on Vehicle Routing Problem with Time Windows Based on Improved Genetic Algorithm and Ant Colony Algorithm. Electronics 2025, 14, 647. [Google Scholar] [CrossRef]
  3. Zamal, M.A.; Schrotenboer, A.H.; Van Woensel, T. The Two-Echelon Vehicle Routing Problem with Pickups, Deliveries, and Deadlines. Comput. Oper. Res. 2025, 179, 107016. [Google Scholar] [CrossRef]
  4. Baptista, G.; Vieira, M.; Pinto, T. An Exact Approach to the Multi-Compartment Vehicle Routing Problem: The Case of a Fuel Distribution Company. Mathematics 2024, 12, 527. [Google Scholar] [CrossRef]
  5. Wang, Y.; Chen, C.; Wei, Y.; Wei, Y.; Wang, H. Collaboration and Resource Sharing for the Multi-Depot Electric Vehicle Routing Problem with Time Windows and Dynamic Customer Demands. Sustainability 2025, 17, 2700. [Google Scholar] [CrossRef]
  6. Meng, W.; He, Y.; Zhou, Y. Q-Learning-Driven Butterfly Optimization Algorithm for Green Vehicle Routing Problem Considering Customer Preference. Biomimetics 2025, 10, 57. [Google Scholar] [CrossRef]
  7. Wang, Y.; Gou, M.; Luo, S.; Fan, J.; Wang, H. The Multi-Depot Pickup and Delivery Vehicle Routing Problem with Time Windows and Dynamic Demands. Eng. Appl. Artif. Intell. 2025, 139, 109700. [Google Scholar] [CrossRef]
  8. Vargas-Quintero, A.; Morillo-Torres, D.; Escobar, J.W. Two-Stage Linear Stochastic Programming Formulations for the Stochastic Vehicle Routing Problem with Backhauls and Time Windows. Int. J. Syst. Sci.-Oper. Logist. 2025, 12, 2451223. [Google Scholar] [CrossRef]
  9. Nourmohammadi, Z.; Hu, B.; Rey, D.; Saberi, M. A Data-Driven Preference Learning Approach for Multi-Objective Vehicle Routing Problems in Last-Mile Delivery. Transp. Res. Pt. C-Emerg. Technol. 2025, 174, 105101. [Google Scholar] [CrossRef]
  10. Sevaux, M.; Sörensen, K. Hamiltonian Paths in Large Clustered Routing Problems. In Proceedings of the EU/Meeting 2008 Workshop on Metaheuristics for Logistics and Vehicle Routing, Troyes, France, 23–24 October 2008. [Google Scholar]
  11. Defryn, C.; Sörensen, K. A Fast Two-Level Variable Neighborhood Search for the Clustered Vehicle Routing Problem. Comput. Oper. Res. 2017, 83, 78–94. [Google Scholar] [CrossRef]
  12. Battarra, M.; Erdoğan, G.; Vigo, D. Exact Algorithms for the Clustered Vehicle Routing Problem. Oper. Res. 2014, 62, 58–71. [Google Scholar] [CrossRef]
  13. Expósito-Izquierdo, C.; Rossi, A.; Sevaux, M. A Two-Level Solution Approach to Solve the Clustered Capacitated Vehicle Routing Problem. Comput. Ind. Eng. 2016, 91, 274–289. [Google Scholar] [CrossRef]
  14. Islam, M.A.; Gajpal, Y.; ElMekkawy, T.Y. Hybrid Particle Swarm Optimization Algorithm for Solving the Clustered Vehicle Routing Problem. Appl. Soft Comput. 2021, 110, 107655. [Google Scholar] [CrossRef]
  15. Barthélemy, T.; Rossi, A.; Sevaux, M.; Sörensen, K. Metaheuristic Approach for the Clustered VRP. In Proceedings of the EU/ME 2010-10th Anniversary of the Metaheuristics Community, Lorient, France, 3–4 June 2010. [Google Scholar]
  16. Pop, P.C.; Kara, I.; Marc, A.H. New Mathematical Models of the Generalized Vehicle Routing Problem and Extensions. Appl. Math. Modell. 2012, 36, 97–107. [Google Scholar] [CrossRef]
  17. Vidal, T.; Battarra, M.; Subramanian, A.; Erdogan, G. Hybrid Metaheuristics for the Clustered Vehicle Routing Problem. Comput. Oper. Res. 2015, 58, 87–99. [Google Scholar] [CrossRef]
  18. Horvat-Marc, A.; Fuksz, L.; Pop, P.C.; Dănciulescu, D. A Decomposition-Based Method for Solving the Clustered Vehicle Routing Problem. Log. J. IGPL 2018, 26, 83–95. [Google Scholar] [CrossRef]
  19. Pop, P.C.; Fuksz, L.; Marc, A.H.; Sabo, C. A Novel Two-Level Optimization Approach for Clustered Vehicle Routing Problem. Comput. Ind. Eng. 2018, 115, 304–318. [Google Scholar] [CrossRef]
  20. Hintsch, T.; Irnich, S. Large Multiple Neighborhood Search for the Clustered Vehicle-Routing Problem. Eur. J. Oper. Res. 2018, 270, 118–131. [Google Scholar] [CrossRef]
  21. Hintsch, T.; Irnich, S. Exact Solution of the Soft-Clustered Vehicle-Routing Problem. Eur. J. Oper. Res. 2020, 280, 164–178. [Google Scholar]
  22. Heßler, K.; Irnich, S. A Branch-and-Cut Algorithm for the Soft-Clustered Vehicle-Routing Problem. Discrete Appl. Math. 2021, 288, 218–234. [Google Scholar]
  23. Hintsch, T. Large Multiple Neighborhood Search for the Soft-Clustered Vehicle-Routing Problem. Comput. Oper. Res. 2021, 129, 105132. [Google Scholar] [CrossRef]
  24. Cosma, O.; Pop, P.C.; Sitar, C.P. A Two-Level Based Genetic Algorithm for Solving the Soft-Clustered Vehicle Routing Problem. Carpathian J. Math. 2022, 38, 117–128. [Google Scholar] [CrossRef]
  25. Zhou, Y.; Kou, Y.; Zhou, M. Bilevel Memetic Search Approach to the Soft-Clustered Vehicle Routing Problem. Transp. Sci. 2023, 57, 701–716. [Google Scholar] [CrossRef]
  26. Xu, R.; Huang, Y.; Xiao, W. A Two-Level Variable Neighborhood Descent for a Split Delivery Clustered Vehicle Routing Problem with Soft Cluster Conflicts and Customer-Related Costs. Sustainability 2023, 15, 7639. [Google Scholar] [CrossRef]
  27. Chen, L.; Zhu, Y.; Lee, K.Y. Two-Step Genetic Algorithm for Dynamic Route Optimization of Electric Vehicles Based on Demand Analysis. Arab. J. Sci. Eng. 2025. [Google Scholar] [CrossRef]
  28. Zhang, X.; Hao, Y.; Zhang, L.; Yuan, X. Application of Improved Genetic Algorithm to Vehicle Routing Problem Considering the Environmental Self-Regulation of the Freight Companies. Expert Syst. Appl. 2025, 274, 127010. [Google Scholar] [CrossRef]
  29. Palamutçuoğlu, B.; Çavuşoğlu, S.; Çamlı, A.; Virlanuta, F.; Bacalum, S.; Züngün, D.; Moisescu, F. Solution of the Capacity-Constrained Vehicle Routing Problem Considering Carbon Footprint within the Scope of Sustainable Logistics with Genetic Algorithm. Sustainability 2025, 17, 727. [Google Scholar] [CrossRef]
  30. Liu, J.; Tong, L.; Xia, X. A Genetic Algorithm for Vehicle Routing Problems with Time Windows Based on Cluster of Geographic Positions and Time Windows. Appl. Soft Comput. 2025, 169, 112593. [Google Scholar] [CrossRef]
Figure 1. Schematic diagram of feasible solutions for the CluVRP, SoftCluVRP, and SemiSoftCluVRP.
Figure 1. Schematic diagram of feasible solutions for the CluVRP, SoftCluVRP, and SemiSoftCluVRP.
Applsci 15 04871 g001
Figure 2. Flowchart of the improved genetic algorithm.
Figure 2. Flowchart of the improved genetic algorithm.
Applsci 15 04871 g002
Figure 3. The objective function values of the test instances under different values of ρ.
Figure 3. The objective function values of the test instances under different values of ρ.
Applsci 15 04871 g003
Figure 4. Representation of the solutions of instance A-n45-C15-V3-Q100.
Figure 4. Representation of the solutions of instance A-n45-C15-V3-Q100.
Applsci 15 04871 g004
Table 1. The results obtained by the algorithm proposed in this paper for solving CluVRP, SoftCluVRP, and SemiSoftCluVRP instances and comparisons from the literature.
Table 1. The results obtained by the algorithm proposed in this paper for solving CluVRP, SoftCluVRP, and SemiSoftCluVRP instances and comparisons from the literature.
IndexInstancesCluVRP
[11]
CluVRP
(This Paper)
SemiSoftCluVRP (This Paper)SoftCluVRP (This Paper)SoftCluVRP
[23]
BestAverageGap
1A-n32-C11-V2-Q100522522(0)(−1.34%)515(0)515.0 0%515(0)515
2A-n33-C11-V2-Q100472472(0)(0)472(+2.39%)472.0 0%461(0)461
3A-n33-C11-V2-Q100562562(0)(−1.42%)554(0)554.0 0%554(0)554
4A-n34-C12-V2-Q100547547(0)(−1.65%)538(0)538.0 0%538(0)538
5A-n36-C12-V2-Q100588588(0)(−4.93%)559(+2.95%)559.0 0%543(0)543
6A-n37-C13-V2-Q100569569(0)(−0.53%)566(+3.85%)566.0 0%545(0)545
7A-n37-C13-V2-Q100615615(0)(−0.98%)609(+0.66%)610.8 0.30%605(0)605
8A-n38-C13-V2-Q100507507(0)(0)507(0)507.0 0%507(0)507
9A-n39-C13-V2-Q100610610(0)(−1.48%)601(+2.21%)601.0 0%588(0)588
10A-n39-C13-V2-Q100613613(0)(0)613(+1.66%)613.0 0%603(0)603
11A-n44-C15-V2-Q100714714(0)(−3.22%)691(0)693.3 0.33%691(0)691
12A-n45-C15-V3-Q100712712(0)(−1.54%)701(+7.52%)701.0 0%652(0)652
13A-n45-C16-V3-Q100664664(0)(0)664(+0.45%)664.0 0%661(0)661
14A-n46-C16-V3-Q100664664(0)(−1.05%)657(+2.34%)657.0 0%642(0)642
15A-n48-C16-V3-Q100683683(0)(−0.44%)680(0)680.0 0%680(0)680
16A-n53-C18-V3-Q100651651(0)(−3.69%)627(0)627.0 0%627(0)627
17A-n54-C18-V3-Q100724724(0)(0)724(+3.58%)724.0 0%699(0)699
18A-n55-C19-V3-Q100653653(0)(−1.23%)645(0)647.4 0.37%645(0)645
19A-n60-C20-V3-Q100787787(0)(−1.52%)775(+1.71%)779.8 0.62%762(0)762
20A-n61-C21-V4-Q100682682(0)(−1.61%)671(0)671.0 0%671(0)671
21A-n62-C21-V3-Q100778778(0)(0)778(+0.91%)778.0 0%771(0)771
22A-n63-C21-V4-Q100801801(0)(−1.25%)791(+1.54%)791.0 0%779(0)779
23A-n63-C21-V3-Q100865865(0)(0)865(+3.35%)865.0 0%837(0)837
24A-n64-C22-V3-Q100773773(0)(−0.78%)767(0)767.0 0%767(0)767
25A-n65-C22-V3-Q100725725(0)(−0.69%)720(+3.90%)720.0 0%693(0)693
26A-n69-C23-V3-Q100814814(0)(−1.11%)805(+1.39%)809.4 0.55%794(0)794
27A-n80-C27-V4-Q100972972(0)(−2.16%)951(+0.74%)951.0 0%944(0)944
28B-n31-C11-V2-Q100375375(0)(0)375(0)375.00%375(0)375
29B-n34-C12-V2-Q100416416(0)(−0.24%)415(0)415.00%415(0)415
30B-n35-C12-V2-Q100562562(0)(0)562(+0.90%)562.00%557(0)557
31B-n38-C13-V2-Q100431431(0)(−0.93%)427(0)427.0 0%427(0)427
32B-n39-C13-V2-Q100321321(0)(−1.25%)317(0)317.0 0%317(0)317
33B-n41-C14-V2-Q100476476(0)(−1.05%)471(+0.43%)472.0 0.21%469(0)469
34B-n43-C15-V2-Q100415415(0)(−2.41%)405(0)405.0 0%405(0)405
35B-n44-C15-V3-Q100447447(0)(−0.45%)445(+0.45%)445.0 0%443(0)443
36B-n45-C15-V2-Q100506506(0)(−0.20%)505(+3.27%)505.0 0%489(0)489
37B-n45-C15-V2-Q100391391(0)(0)391(+1.30%)391.0 0%386(0)386
38B-n50-C17-V3-Q100467467(0)(−0.64%)464(0)464.0 0%464(0)464
39B-n50-C17-V3-Q100666666(0)(−0.30%)664(+0.45%)664.8 0.12%661(0)661
40B-n51-C17-V3-Q100585585(0)(0)585(+1.21%)585.0 0%578(0)578
41B-n52-C18-V3-Q100427427(0)(0)427(0)427.0 0%427(0)427
42B-n56-C19-V3-Q100433433(0)(−1.39%)427(+1.67%)427.0 0%420(0)420
43B-n57-C19-V3-Q100634634(0)(−0.47%)631(+1.45%)631.0 0%622(0)622
44B-n57-C19-V3-Q100753753(0)(−0.93%)746(0)746.0 0%746(0)746
45B-n63-C21-V3-Q100685685(0)(0)685(0)685.0 0%685(0)685
46B-n64-C22-V4-Q100526526(0)(0)526(+0.38%)526.0 0%524(0)524
47B-n66-C22-V3-Q100687687(0)(0)687(+0.59%)687.0 0%683(0)683
48B-n67-C23-V4-Q100626626(0)(0)626(+1.13%)626.0 0%619(0)619
49B-n68-C23-V3-Q100588588(0)(−1.02%)582(0)584.4 0.41%582(0)582
50B-n78-C26-V4-Q100721721(0)(−0.83%)715(+1.56%)717.0 0.28%704(0)704
51P-n16-C6-V4-Q35253253(0)(0)253(+0.80%)253.0 0%251(0)251
52P-n19-C7-V1-Q160186186(0)(−5.91%)175(+2.94%)175.0 0%170(0)170
53P-n20-C7-V1-Q160200200(0)(−6.50%)187(+5.65%)187.0 0%177(0)177
54P-n21-C7-V1-Q160190190(0)(−5.79%)179(0)179.0 0%179(0)179
55P-n22-C8-V1-Q160202202(0)(−5.45%)191(+4.37%)191.0 0%183(0)183
56P-n22-C8-V4-Q160365365(0)(0)365(0)365.0 0%365(0)365
57P-n23-C8-V3-Q40279279(0)(−3.23%)270(0)270.0 0%270(0)270
58P-n40-C14-V2-Q140396396(0)(0)396(+3.94%)396.0 0%381(0)381
59P-n45-C15-V2-Q150440440(0)(−2.50%)429(+1.66%)429.0 0%422(0)422
60P-n50-C17-V4-Q150491491(0)(−2.65%)478(+1.49%)481.90.82%471(0)471
61P-n50-C17-V3-Q120447447(0)(0)447(+1.36%)447.0 0%441(0)441
62P-n50-C17-V3-Q100460460(0)(−2.17%)450(+2.04%)450.0 0%441(0)441
63P-n51-C17-V4-Q80537537(0)(−2.42%)524(+6.29%)524.0 0%493(0)493
64P-n55-C19-V4-Q115500500(0)(−1.80%)491(+2.08%)493.7 0.55%481(0)481
65P-n55-C19-V6-Q70595595(0)(−1.01%)589(+2.97%)589.0 0%572(0)572
66P-n55-C19-V3-Q170462462(0)(0)462(+1.76%)462.0 0%454(0)454
67P-n55-C19-V3-Q160471471(0)(−1.06%)466(+2.64%)466.0 0%454(0)454
68P-n60-C20-V4-Q120552552(0)(−0.18%)551(+3.18%)551.0 0%534(0)534
69P-n60-C20-V5-Q80611611(0)(−2.29%)597(+1.02%)597.0 0%591(0)591
70P-n65-C22-V4-Q130619619(0)(−0.32%)617(+7.30%)617.0 0%575(0)575
71P-n70-C24-V4-Q135643643(0)(−0.93%)637(+5.81%)637.0 0%602(0)602
72P-n76-C26-V2-Q350581581(0)(−0.52%)578(+3.96%)578.0 0%556(0)556
73P-n76-C26-V2-Q280581581(0)(−2.24%)568(+2.16%)568.0 0%556(0)556
74P-n101-C34-V2-Q400679698(+2.80%)(−1.00%)691(+1.32%)691.0 0.41%682(+5.08%)649
75M-n101-C34-V4-Q200607612(+0.82%)(0)612(+1.16%)612.00%605(+1.17%)598
76M-n121-C41-V3-Q200691716(+3.62%)(−1.12%)708(+0.28%)713.60.79%706(+3.82%)680
77M-n151-C51-V4-Q200804859(+6.84%)(−0.47%)855(+3.01%)858.20.37%830(+9.79%)756
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.

Share and Cite

MDPI and ACS Style

Miao, Y.; Bao, X. An Improved Genetic Algorithm for Solving the Semi-Soft Clustered Vehicle Routing Problem. Appl. Sci. 2025, 15, 4871. https://doi.org/10.3390/app15094871

AMA Style

Miao Y, Bao X. An Improved Genetic Algorithm for Solving the Semi-Soft Clustered Vehicle Routing Problem. Applied Sciences. 2025; 15(9):4871. https://doi.org/10.3390/app15094871

Chicago/Turabian Style

Miao, Yihao, and Xiaoguang Bao. 2025. "An Improved Genetic Algorithm for Solving the Semi-Soft Clustered Vehicle Routing Problem" Applied Sciences 15, no. 9: 4871. https://doi.org/10.3390/app15094871

APA Style

Miao, Y., & Bao, X. (2025). An Improved Genetic Algorithm for Solving the Semi-Soft Clustered Vehicle Routing Problem. Applied Sciences, 15(9), 4871. https://doi.org/10.3390/app15094871

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

Article Metrics

Back to TopTop