예제 #1
0
 // Selects the offspring population. A new population object is returned.
 private Population<G, C> selectOffspring(final Population<G, C> population) {
   return _offspringCount > 0
       ? _offspringSelector.select(population, _offspringCount, _optimize)
       : Population.empty();
 }
예제 #2
0
 // Selects the survivors population. A new population object is returned.
 private Population<G, C> selectSurvivors(final Population<G, C> population) {
   return _survivorsCount > 0
       ? _survivorsSelector.select(population, _survivorsCount, _optimize)
       : Population.empty();
 }