Esempio n. 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();
 }
Esempio n. 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();
 }