Skip to main content
. 2022 May 12;27(10):3112. doi: 10.3390/molecules27103112
Algorithm 1 Initialization
  • Input: M: the amount of individuals in a population.

  • K: the amount of feature subsets in an individual.

  • Sfs: the size of feature index in a feature subset.

  • Sf: feature size.

  • Output: P0: the first population of R-E-GA

  • 1: for m=0M do

  • 2:   m=m+1

  • 3:   reset feature_subset to []

  • 4:   while k=0K do

  • 5:   k=k+1

  • 6:   add the feature_index randomly generated in Sf range to feature_subset

  • 7:   add feature_subset to P0