|
Algorithm 2 Initial . Offline Tasks-UAVs Assignment |
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.
Output:
|
-
1:
Generate a set of tasks and set of new tasks based on the given distribution , by calling Algorithm 4.
Algorithm 4 ()
-
2:
Define a set of UAVs , by calling Algorithm 5.
Algorithm 5 (N)
-
3:
Divide the tasks into clusters, using KMean algorithm, based on their geographical locations.
KMean()
-
4:
Distribute UAVs across clusters in a balanced manner, considering each UAV’s capacity load () and task density in the respective cluster, by calling Algorithm 6.
Algorithm 6 ()
-
5:
Assign tasks to UAVs by locally running the Distributed CBBA Algorithm 9 in each cluster to maximize s given in Equation (1), then update the assigned task lists () for each .
Algorithm 9 ()
|