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:

    fronts⇐frontssorting(P)

  • 2:

    crowding_distance⇐crowdingdistance(fronts)

  • 3:

    for i=0 to N do

  • 4:

        Pi′⇐mutation(Pi)+crossover(Pi)

  • 5:

        fronts⇐frontssorting(Pi′+Pi)

  • 6:

        crowding_distance⇐crowdingdistance(fronts)

  • 7:

        Pi+1⇐Selectsatisfyconditions()

  • 8:

    end for