Skip to main content
. 2024 Mar 14;24(6):1865. doi: 10.3390/s24061865
Algorithm 2 GDOP Optimal Beacon Placement
  • Input: 

    Drone domain (D), Beacon domain (B), Beacon Range (R), K-connectivity (K), GDOPavg threshold (g), The number of required beacons (N) obtained from the other Algorithm, The final set {P1,,PC} obtained from the other Algorithm.

  • Output: 

    Optimal Placement for N beacons that provides four-connectivity and keeps the GDOPavg below the threshold g over the entire domain D.

  • Initialization: 

    Individuals in this algorithm are sets of N beacons. The initial individuals are {P1,,PC} from the last algorithm.

  • Optimization Framework: 

     

  •  1:

    while  fourconnectivity==0 do

  •  2:

       while GDOPavg>g do

  •  3:

         for i=1 to i=C do

  •  4:

            for all the points (x,y,z)D do

  •  5:

              Calculate the GDOP at point (x,y,z) from (CTC)1;

  •  6:

            end for

  •  7:

            Calculate the GDOPavg over all the points in D.

  •  8:

         end for

  •  9:

         Sort individuals based on the calculated GDOPavg (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 P1,,PC with these new survivor individuals.

  • 14:

       end while

  • 15:

       if at least one of the {P1,,PC} has the full four-connectivity coverage over entire set D then

  • 16:

         fourconnectivity=1

  • 17:

       end if

  • 18:

    end while