Skip to main content
. 2025 Apr 16;25(8):2502. doi: 10.3390/s25082502
Algorithm 8 Partial Reassignment Process
Input:
  • i: UAV that detected the dynamic event.

    U: UAVs’ information, including assigned task lists (a), capacity loads (L), and velocities (v).

    newTasks: Newly detected task.

Output:
  • U: Updated UAVs’ task assignments.

  • 1:

    pUIdentifytopnpUAVsthesameclusterwiththesmallestdistancetonewTask  

  • 2:

    for each UkpU do

  • 3:

        releasedTaskskReleasetopnrtasks,inak,withthefarthestdistancefromUk

  • 4:

    end for 

  • 5:

    Combine newTasks with the released tasks into reassignedTasks.

    reassignedTasksreleasedTasks+newTasks

  • 6:

    Re-run the distributed CBBA Algorithm by calling Algorithm 9 with the selected np UAVs and reassignedTasks.

    pU Algorithm 9 (pU,reassignedTasks)

  • 7:

    Update task lists (a) of the np UAVs and re-initiate their operation by calling Algorithm 3.