Skip to main content
. 2021 Apr 8;21(8):2628. doi: 10.3390/s21082628
Algorithm 2: ND-C_sort function
Function: (Hpopulation, Pt) = ND-C_sort (Hpopulation, Ppopulation, capacity)
Input: Hpopulation, Ppopulation, capacity
Output: Hpopulation, Pt
1: Add Ppopulation into Hpopulation
2: Update Hpopulation with the non-dominated solution of Hpopulation based on formula (6)
3: The solutions in Hpopulation are sorted by crowding degree by formula (14)
4: If size (Hpopulation) > capacity then
5:  Solutions that have poor crowding degrees are eliminated
6: End if
7: The optimal solution Pt is selected from Hpopulation by the roulette selection method by using (15)