|
Algorithm 1 Central Controller |
Input: N: Number of UAVs.
M: Number of tasks.
Q: Number of new tasks.
: Number of clusters.
: Width of the simulation map.
: Task distribution, which can be random, concentrated, or predetermined.
|
-
1:
Step 1: Initialize the environment and compute the initial offline UAV-task assignment by calling Algorithm 2.
Algorithm 2 ()
-
2:
Step 2: Initiate UAVs’ operations using a parallel loop, where each UAV executes its assigned tasks simultaneously by calling Algorithm 3.
Parallel for each :
Algorithm 3 ()
|