|
Algorithm 2 GDOP Optimal Beacon Placement |
-
Input:
Drone domain (D), Beacon domain (B), Beacon Range (R), K-connectivity (K), threshold (g), The number of required beacons (N) obtained from the other Algorithm, The final set obtained from the other Algorithm.
-
Output:
Optimal Placement for N beacons that provides four-connectivity and keeps the below the threshold g over the entire domain D.
-
Initialization:
Individuals in this algorithm are sets of N beacons. The initial individuals are from the last algorithm.
-
Optimization Framework:
-
1:
while
do
-
2:
while do
-
3:
for to do
-
4:
for all the points do
-
5:
Calculate the at point from ;
-
6:
end for
-
7:
Calculate the over all the points in D.
-
8:
end for
-
9:
Sort individuals based on the calculated (fitness) from the lowest to highest (lower is better);
-
10:
Select the individuals with better fitness as Parents;
-
11:
Crossover each two adjacent parents and make a new offspring individual;
-
12:
Kill the worst ones to keep having C individuals;
-
13:
Update with these new survivor individuals.
-
14:
end while
-
15:
if at least one of the has the full four-connectivity coverage over entire set D then
-
16:
-
17:
end if
-
18:
end while
|