|
Algorithm 9 Consensus-Based Bundle Algorithm (CBBA) for Distributed Task Assignment |
Input:-
T: Tasks information, including their start time (), end time (), duration (), and reward ().
U: UAVs information, including their assigned tasks lists (a), capacity load (L) and velocity (v).
Output:
|
-
1:
Initialization: For each , initialize , bid list , and winning UAV list .
-
2:
while Tasks remain unassigned do
-
3:
for each
do ▹ Bundle Construction (Task Bidding)
-
4:
Compute given in Equation (1) for each
-
5:
Select the task maximizing while satisfying constraints
-
6:
if is feasible then
-
7:
Add to , update , and set
-
8:
end if
-
9:
end for
-
10:
for each do ▹ Consensus Phase (Conflict Resolution)
-
11:
Exchange and with neighbors
-
12:
for each do
-
13:
if another UAV has then
-
14:
Remove from , update
-
15:
end if
-
16:
end for
-
17:
end for
-
18:
end while
|