Skip to main content
. 2025 Aug 20;18(8):1227. doi: 10.3390/ph18081227
Algorithm 1 The framework of the algorithm for NSGA-II.
  • Require: 

    P (initial population), N (number of generations)

  • Ensure: 

    Pfinal (pareto front)

  • 1:

    frontsfrontssorting(P)

  • 2:

    crowding_distancecrowdingdistance(fronts)

  • 3:

    for i=0 to N do

  • 4:

        Pimutation(Pi)+crossover(Pi)

  • 5:

        frontsfrontssorting(Pi+Pi)

  • 6:

        crowding_distancecrowdingdistance(fronts)

  • 7:

        Pi+1Selectsatisfyconditions()

  • 8:

    end for