Skip to main content
. 2023 Jul 2;23(13):6095. doi: 10.3390/s23136095
Algorithm 3 Exhaustive Search Algorithm.
  • 1:

    Determine clusters and centroids

  • 2:

    Initial 3D UAVs placement(xm,ym,hm) ← centroids

  • 3:

    for m=1 to M do

  • 4:

        for xm[xmrngexm+rnge], stepx do

  • 5:

            for ym[ymrngeym+rnge], stepy do

  • 6:

               for hm[hminhmax], steph do

  • 7:

                   Calculate the local total throughput in cluster m based on (5) and (8) for the updated 3D coordinates, xm,ym,hm. Save this throughput.

  • 8:

               end for

  • 9:

            end for

  • 10:

        end for

  • 11:

        Find maximum of the local total throughput for cluster m

  • 12:

        Define 3D coordinates xm,ym,hm corresponding to the maximum local total throughput in cluster m

  • 13:

    end for

  • 14:

    Optimal UAVs placement is found

  • 15:

    Total throughput ← sum (local total throughput)