Skip to main content
. 2019 Sep 26;21(10):944. doi: 10.3390/e21100944
Algorithm 1 Constrained non-dominated sorting.
  • 1:

    Classify feasible and infeasible groups in the population by Equation (37)

  • 2:

    Forp=1 to feasible_population do

  • 3:

      Calculate Sp, a set of solutions that the pth individual dominates

  • 4:

      Calculate np, the number of individuals that dominate the pth individual

  • 5:

    End for

  • 6:

    Create first front whose np=0

  • 7:

    While (np>0)

  • 8:

      Create subsequent fronts by traversing Sp

  • 9:

      Crowding distance assignment by Equation (38)

  • 10:

    End While

  • 11:

    Forq=1 to infeasible_population do

  • 12:

      Sort infeasible individual by Equations (36) and (37)

  • 13:

    End for

  • 14:

    Combine the feasible and infeasible solutions