Skip to main content
. 2022 Oct 18;22(20):7930. doi: 10.3390/s22207930
Algorithm 3: Mutation
  • 1.

    Input:PopulationN,k; t; tmax; PBi;

  • 2.

    Output:Populationend,k;

  • 3.

    i=1

  • 4.

    while i N do

  • 5.

    if randPmut0×tmaxttmax then

  • 6.

    Randomly select gene node for mutation

  • 7.

    Select the result of mutation by probability

  • 8.

    The sub-individual is inserted at the end of the population

  • 9.

    end if

  • 10.

    i=i+1

  • 11.

    end while