Exemple #1
0
 @Override
 protected void doReplacement() {
   // Select individuals to replace, ensuring that selected
   // individuals are different
   while (true) {
     // Select individuals to replace
     rset = parentsSelector.select(bset, 2);
     // If selected individuals are different, exit
     if (!(rset.get(0).equals(rset.get(1)))) break;
   }
   // Remove individuals from bset
   bset.removeAll(rset);
 }
Exemple #2
0
 @Override
 protected void doSelection() {
   pset = parentsSelector.select(bset, mu);
 }