Skip to main content
. 2022 Nov 27;22(23):9233. doi: 10.3390/s22239233
Algorithm 3: The Real-Coded GA
  1:    Create N random points in Ω from the uniform distribution.
  2:    Store the points in set S.
  3:    iter=0.
  4:    Evaluate each chromosome using its function value.
  5:    If the termination criteria are achieved, stop the GA.
  6:    Select mN parents from S.
  7:    Create m offspring using the selected parent chromosomes of the previous step.
  8:    Mutate the offspring with probability pm.
  9:    Remove the m worst chromosomes and replace them with the offspring.
  10: Create a trial point x˜. If f(x˜)f(xh) where xh is the current worst point in S, then replace xh with x˜.
  11: iter=iter+1.
  12: Go to step 4.