Skip to main content
. 2023 Jan 11;23(2):863. doi: 10.3390/s23020863
Algorithm 2 Trajectory design for minimizing the average service time
  • 1:

    Input: Optimal served group selection o*

  • 2:

    Init: UAV trajectory e, time slot τ=0

  • 3:

    Calculate the service time t^j of each potential served group j

  • 4:

    Rank the service time from small to large

  • 5:

    repeat

  • 6:

       ττ+1

  • 7:

       Select the next served group j with the τ-th shortest service time

  • 8:

       ee,j

  • 9:

    untilτ=T

  • 10:

    e*e

  • 11:

    Output: Optimal UAV trajectory e* with minimal average user service time