|
Algorithm 2 Pseudocode for our algorithm |
-
1:
For any , ∈
-
2:
Initialize , initialize by (10)
-
3:
for n > 0 do
UEs upload their data rate information to the serving UAV.
-
4:
UAV-UAV virtual force
broadcast its location.
creates its neighboring UAV set according to the received location.
shares with its neighboring UAVs, (including ).
calculates by (15).
updates by (16).
-
5:
UAV-UE virtual force
calculates , by (20), (13), respectively.
-
6:
Resultant virtual force
calculate the resultant virtual force by (21).
-
7:
Motion Control
-
8:
Calculate the velocity by (22).
-
9:
if all <
-
10:
breake
-
11:
else do
-
12:
-
13:
end if
|