Skip to main content
. 2019 Sep 26;21(10):944. doi: 10.3390/e21100944
Algorithm 3 The pseudo-codes of the HDA-GA.
  • 1:

    Define the max_iter, ArchiveMaxSize, ub, lb and r

  • 2:

    Initialize Xi by Xi=random(ublb)+lb and ΔXi by ΔXi=random(ublb)+lb

  • 3:

    Calculate the initialized objective function values

  • 4:

    Initialized constrained non-dominated sorting by Algorithm 1

  • 5:

    While (tmax_iter)

  • 6:

      Update neighboring radius and the factors w,s,a,c,fe

  • 7:

      Calculate the objective function values

  • 8:

      Update The Archive with respect to Algorithm 2

  • 9:

      Select the Food source and Enemy from Archive1

  • 10:

      If ArchiveArchiveMaxSize

  • 11:

       Select individuals from the particular front based on crowding distance by Equation (38)

  • 12:

      end if

  • 13:

      For i=1 to Archive1 do

  • 14:

       Find their neighbors with respect to the Euclidean distance

  • 15:

       Calculate S,A,C,FandE

  • 16:

       If an individual has one neighbor at least

  • 17:

        Update ΔXt by Equation (27) and Xt+1 by Equation (28)

  • 18:

       end if

  • 19:

       If an individual has no neighbor

  • 20:

        Update Xt+1 by Equation (29)

  • 21:

       end if

  • 22:

      end for

  • 23:

      For j=1 to Archive2

  • 24:

       Selected()

  • 25:

       Crossover()

  • 26:

       Mutation()

  • 27:

      end for

  • 28:

    End While