|
Algorithm 1 Four-Connectivity Optimal Beacon Placement |
-
Input:
Drone domain (D), Beacon domain (B), Beacon Range (R), K-connectivity (K).
-
Output:
Beacon placement configuration with the minimum number of beacons and 4-connectivity full coverage.
-
Initialization:
-
1:
for to do
-
2:
Generate one beacon at random position ;
-
3:
Calculate the overall coverage provided by this beacon (fitness).
-
4:
end for
-
5:
Sort all of the individuals (P sets of one beacon) with respect to their fitness from the highest to the lowest;
-
6:
Select the first C of them (the C best of them according to their fitness) and eliminate the rest (Evolution chooses the best as parents for the next generation and kills the rest);
-
7:
Update with these survivor individuals which are going to be used in the next generation.
-
Optimization Framework:
-
8:
for to do
-
9:
while do
-
10:
for to do
-
11:
For each of the selected individuals from previous generation , generate one beacon at random position and add it to them;
-
12:
Calculate the k fitness (maximum coverage with respect to each point has access to k beacon) for each of these individuals.
-
13:
end for
-
14:
Sort all of these new individuals (P sets of some beacons) with respect to their k fitness from the highest to the lowest;
-
15:
Select the first C of them (the C best of them according to their fitness) and eliminate the rest (Evolution chooses the best as parents for the next generation and kills the rest);
-
16:
Update with these individuals which are going to be used in the next generation;
-
17:
if at least one of the has a k connectivity coverage then
-
18:
-
19:
end if
-
20:
end while
-
21:
end for
|