Skip to main content
. 2025 Apr 16;25(8):2502. doi: 10.3390/s25082502
Algorithm 2 Initial . Offline Tasks-UAVs Assignment
Input: N: Number of UAVs.
  • M: Number of tasks.

  • Q: Number of new tasks.

  • nC: Number of clusters.

  • mpS: Width of the simulation map.

  • dist: Task distribution, which can be random, concentrated, or predetermined.

Output:
  • U: UAVs after updating their assigned task list upon generating the offline assignment.

  • 1:

    Generate a set of tasks T={T1,,TM} and set of new tasks nT={nT1,,nTQ} based on the given distribution dist, by calling Algorithm 4.

    T Algorithm 4 (M,Q,mpS,dist)  

  • 2:

    Define a set of UAVs U={U1,,UN}, by calling Algorithm 5.

    U Algorithm 5 (N)  

  • 3:

    Divide the tasks into clusters, using KMean algorithm, based on their geographical locations.

    C KMean(T,nC)  

  • 4:

    Distribute UAVs across clusters in a balanced manner, considering each UAV’s capacity load (Li) and task density in the respective cluster, by calling Algorithm 6.

    C Algorithm 6 (N,M,nC,C)  

  • 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 (ai) for each Ui.

    U Algorithm 9 (U,T)