Skip to main content
. 2024 Mar 7;24(6):1742. doi: 10.3390/s24061742
Algorithm 2 eGA-based UAV trajectory optimization algorithm
  •    1:

    Initialize flight time tF with L, eGA-related parameters Np, Ng, Pc, Pm, Popt.

  •    2:

    Generate the initial population with Np chromosomes.

  •    3:

    Set the index of generation n=0.

  •    4:

    repeat

  •    5:

       Update the fitness values of Np chromosomes according to (21) and select the best chromosome remaining.

  •    6:

       Select the parent chromosomes with the binary tournament operator for mating.

  •    7:

       Perform the ordered crossover operations with probability Pc and shuffle indexes mutation operations with probability Pm on parent chromosomes.

  •    8:

       Perform the 2-OPT algorithm for local optimization with probability Popt.

  •    9:

       Update the fitness values of new chromosomes and generate the new population with Np chromosomes according to the elitist-preserving strategy.

  •  10:

       Update nn+1.

  •  11:

    until nNg.

  •  12:

    Select the best chromosome in the final generation as the best visiting sequence, i.e., q=argmaxf(q).