This section develops a path planning algorithm to minimize the cost of collaborative deployment and retrieval of communication devices by multiple MUAVs and SUAVs, as described earlier. Due to the differing roles of MUAVs and SUAVs, we continue to use a two-stage approach that first clusters the target locations and then solves the path planning problem. The basic steps of the algorithm are as follows: first, deployment points are divided into several sub-regions that satisfy constraints (2–4, 6, 11–13); then, the optimal path for MUAV between sub-regions is solved. Here, since only the flight between sub-regions by MUAV is considered, only path cost is involved. The MUAV inter-region visiting sequence can be abstracted as a TSP subproblem, because only the visiting order and path cost between sub-regions are considered at this stage.
3.1. Clustering Algorithm Design
Due to the addition of MUAV payload capacity constraints in this paper, clustering must comprehensively consider the total weight of communication devices delivered by SUAVs (i.e., satisfying constraints (2–4) and (6)) and the weight of communication devices retrieved by MUAV (i.e., satisfying constraints (11–13)). To avoid a situation in any sub-region where the total weight of communication devices to be delivered is less than the total weight of communication devices to be retrieved, which would lead to exceeding the MUAV’s payload capacity constraint, this paper must ensure that after clustering, the total weight of communication devices to be deployed in each sub-region is not less than the total weight of communication devices to be retrieved. The increase in constraint conditions and the heightened coupling between MUAVs and SUAVs make the clustering problem significantly more complex, rendering the clustering method proposed in [
25] inadequate. Following this line of thinking, this subsection improves upon the Ck-means algorithm by adding neighborhood search to the original algorithm, designing a K-means clustering algorithm based on neighborhood search.
Among them, (20) is the objective function for clustering; (21) indicates that the distance between any deployment point with deployment demand within a sub-region and its cluster center does not exceed the maximum flight range of the SUAV; (22) states that the total demand of deployment points requiring retrieval deployment in sub-region k does not exceed the MUAV’s maximum load capacity; (23) states that the total demand of deployment points requiring deployment in the k-th sub-region does not exceed the combined maximum payload capacity of all SUAVs; (24) states that the total demand for deployment within sub-region k is not less than the total demand for retrieval; (25) ensures that no sub-region consists solely of deployment points with no demand.
Specific clustering steps are as follows:
- (a)
Cluster the deployment points using the CK-means algorithm to obtain an initial clustering result. Since the state of each deployment point is determined by its deployment quantity and retrieval quantity, any deployment point can be uniquely represented by a two-dimensional array, that is , where and denote the deployment quantity and retrieval quantity of deployment point , respectively. It should be noted that the clustering result at this stage already satisfies the payload capacity and range constraints of the SUAVs. Therefore, it is only necessary to further adjust the clustering to meet the MUAV’s payload capacity constraint. As the MUAV has no range limitation, the process essentially involves reassigning those deployment points that only require retrieval service, represented as , which do not satisfy the requirements within the current clusters.
- (b)
Calculate the distances from each cluster center to all others, obtaining a distance matrix between the cluster centers.
- (c)
Calculate the deployment volume and the retrieval volume within each sub-region to obtain a set of sub-regions that satisfy constraint (24) (valid) and a set of sub-regions that do not satisfy constraint (24).
- (d)
Process each sub-region within the set. First, calculate the distances from all deployment points satisfying to the cluster center within each sub-region. Then sort these distances in descending order.
- (e)
For each illegal sub-region, sequentially strip away deployment points that satisfy until the sub-region becomes legal. The stripped deployment points are collectively referred to as noise points.
- (f)
Legitimate sub-regions perform a neighborhood search around their cluster centers. Under the premise of satisfying constraint (24), noise points near the cluster center are incorporated into the sub-region. This process continues until all noise points have been assigned, completing the regional division.
The pseudocode is provided in Algorithm 1.
| Algorithm 1: K-means-NS Pseudocode |
|
(Iter is the iteration count) D ←Calculate the distance from each point to all cluster centers and ← Update deployment points within the subregion End while Else continue End if End while satisfies the constraints
End if End while End while
|
| ; the set of cluster centers
|
Note: Not all noise points in can be assigned to feasible sub-regions after neighborhood search. If a noise point cannot be inserted into any sub-region without violating constraint (24), it is temporarily kept outside the sub-region set rather than being forced into an infeasible cluster. Since the MUAV is not subject to the SUAV range constraint, these unassigned noise points are subsequently treated as independent MUAV service points and are considered together with the cluster centers during the MUAV inter-sub-region route planning. The MUAV route is then solved under the premise of satisfying the MUAV payload constraint.
3.2. Design of a Coordinated Deployment Path Planning Algorithm for Heterogeneous Platforms Within Sub-Regions
First, the traversal order between sub-regions is solved using the ant colony algorithm. Then, within each sub-region, an IAGA is designed to solve the path planning problem for MUAVs and SUAVs with the minimum cost. The SUAV intra-region routing subproblem is related to the 2p-mVRPTW class because it involves multiple SUAVs, pickup-and-delivery operations, and mission time-window constraints. Therefore, this paper takes the minimum-cost path planning of the SUAV swarm within a sub-region as an example to illustrate the algorithm design in detail. The specific algorithm design is as follows:
This paper still adopts the sequence encoding method, setting the population size to
. Each individual’s gene consists of two parts, the routing sequence and the breakpoint sequence, and is initialized using prior knowledge. The individual gene is illustrated in
Figure 2 below:
The ‘Routes sequence’ defines the overall task visiting order, and the ‘Interruption sequence’ separates the routes of individual SUAVs.
The launch point is the location of the deployment point within this region that has deployment or retrieval needs and is closest to the landing point of the previous sub-region (or the starting point where the warehouse is located). The endpoint is the cluster center point of the sub-region.
The hybrid encoding jointly represents the MUAV visiting sequence and the SUAV task assignment in one chromosome, which allows the fitness function to evaluate heterogeneous platform coordination directly. The feasibility flag is used to distinguish feasible and infeasible individuals after repair, so that infeasible solutions caused by payload or range violations can be retained with lower priority instead of being immediately discarded. Compared with a conventional adaptive GA, this design preserves population diversity while guiding the search toward feasible coordinated routes under the coupled MUAV–SUAV constraints.
- 2.
Population Individual Adjustment
For individuals that do not satisfy the constraint conditions (2–4, 6), the adjustment strategy from [
25] is still employed to modify them, aiming to make each individual feasible. However, due to the randomness inherent in the initial path permutation and the demand of each deployment point, a small number of individuals may still fail to meet the constraints even after adjustment. Therefore, in this paper, and considering the need for genetic diversity, such individuals are defined as infeasible solutions but are nonetheless retained within the population. To distinguish between feasible and infeasible solutions, the encoding of an individual’s gene is adjusted as follows in this paper. It is stipulated that the first code of the individual’s gene serves as a flag bit. If the flag bit is 0, the solution represented by that individual’s gene is a feasible solution; if the flag bit is −1, it represents an infeasible solution.
- 3.
Adaptive Configuration
Inspired by the adaptive setup in genetic manipulation in ref. [
22], this paper dynamically adjusts the number of crossover offspring and mutation offspring within the iteration period. The adaptive formula is as follows:
Here, denotes the total number of iterations, denotes the current iteration number, represents the rounding operation, is the number of offspring obtained through the crossover operator, is the number of offspring selected by the selection operator to enter the next generation, and is the number of offspring obtained through the mutation operator.
- 4.
Selection Operator Design
First, an elitism approach is adopted to select optimal feasible individuals to enter the next generation. Infeasible individuals, which typically violate payload or range constraints, are retained by relaxing these constraints during fitness evaluation. They are then evaluated for fitness in the same way as other feasible individuals, so that all individuals in the population can participate in selecting the remaining individuals to enter the next generation through a roulette wheel selection method.
- 5.
Reproduction Operator Design
The design of reproduction operators mainly includes the design of the crossover operator and the mutation operator.
- (a)
Crossover Operator Design
Two individuals are randomly selected as parents from within feasible solutions, between feasible and infeasible solutions, and within infeasible solutions, respectively, to perform crossover and generate offspring, aiming to achieve global optimization of the algorithm. The specific operation is as follows:
A conventional crossover algorithm randomly selects a segment of the parents for crossover, generating two offspring. This approach results in low utilization of parental genes and low crossover efficiency. Therefore, to fully utilize the genes of each parent pair, this paper employs a method where a pair of genomes, each with a gene count of
, are crossed over group by group, with each group consisting of
genes. This generates a set of offspring numbering
, from which the best individual is selected as the offspring. Taking
as an example, the specific operation is illustrated in the following
Figure 3:
- (b)
Mutation Operator Design
- (i)
For the optimal cost path planning problem for MUAVs, the mutation operator in this paper adopts a commonly used multi-point mutation method. This involves randomly selecting a parent and rearranging chromosomes from multiple parent individuals to generate new offspring.
- (ii)
For the optimal cost path planning problem involving multiple UAVs, considering that the selection of mutation individuals in existing mutation operators is random and cannot evolve in a specific direction to find better solutions, this paper treats the path segment of each UAV as an operator. By altering the path of each UAV to achieve optimal individual cost, the overall optimal cost for the UAV swarm is ultimately realized. However, considering the high time complexity of mutating the gene segments of all UAV individuals, inspired by the pheromone setting in ant colony optimization algorithms, this paper uses the change in fitness value of each UAV in the parent individual as a reference for selecting each UAV’s path segment in the next iteration. The roulette wheel algorithm is employed to select only one UAV’s path segment for rearrangement in each iteration. Consequently, a larger change in the fitness value of a UAV’s path segment indicates greater room for improvement, and thus a higher probability of being selected in the next iteration, allowing the parent individual to exhibit a trend of evolution towards optimizing the objective function. This operator thereby serves the algorithm’s function of local search.
The pseudo code is provided in Algorithm 2:
| Algorithm 2: IAGA pseudo code. |
|
←Calculate the deployment point in the next sub-region that is closest to the previous sub-region1. C ←The cluster center set C serves as the destination is the iteration count) R, Dr Initialize the population to obtain path genes R and interrupted genes Dr Constraints are not met ←Adjust the path genes and interrupted genes of individuals that do not meet the constraints End if ← Calculate the fitness value for each individual ← Assign labels to the deployment points in each subregion End while ### Design of Selection Operator ### through elitism individuals as offspring using the roulette wheel method ### Design of Crossover Operator ### ← Two individuals are selected as parents to generate offspring End for ### Design of Mutation Operator ### If MUAV route genes R, Dr ← Parent individuals End for Else if SUAV path genes ← Parent individuals ←Mutation of parent genes End for End for End if End while The optimal cost Dr and route planning R for the MUAV and multiple SUAVs in the region End while
|
| for the MUAV and multiple SUAVs performing deployment and retrieval tasks within the region. |
From the design of the adaptive function, as the number of iterations increases, the number of offspring generated by the crossover operator decreases, while the number generated by the mutation operator increases. This achieves a shift in the entire algorithm from global to local optimization, which will effectively address the shortcomings of traditional genetic algorithms, such as poor local search capability and slow convergence speed. The computational complexity of IAGA depends on the population size, the maximum number of generations, the chromosome length, and the fitness-evaluation procedure; therefore, the original linear-complexity statement has been removed.
It should be noted that the proposed IAGA is a heuristic algorithm and therefore does not provide a theoretical guarantee of global optimality. Nevertheless, its convergence behavior and solution quality are supported by several algorithmic mechanisms. First, the elitist selection strategy preserves the best feasible individuals found so far, preventing the current best solution from being lost during iteration. Second, the adaptive crossover and mutation mechanism balances global exploration and local exploitation by emphasizing crossover in the early stage and mutation-based refinement in the later stage. Third, infeasible individuals are retained with a feasibility flag, which helps maintain population diversity while guiding the search toward feasible solutions. Therefore, although the optimality gap cannot be theoretically guaranteed, the convergence curves and multi-scale numerical experiments in
Section 4 empirically demonstrate that IAGA achieves stable convergence and improved solution quality compared with the benchmark algorithms. Further theoretical analysis of optimality gaps and convergence bounds will be considered in future work.