Initialize population
for   to
  
  ,
end  for
repeat
 Cal_acceptability();
for    to  
  ;
  ;
  ;
end  for
until  termination rule is met
Algorithm 2: Pseudocode for the PREA.