| 63 | } |
| 64 | |
| 65 | Population RandomAlgorithm::runNextRound(Population _population) |
| 66 | { |
| 67 | RangeSelection elite(0.0, m_options.elitePoolSize); |
| 68 | |
| 69 | Population elitePopulation = _population.select(elite); |
| 70 | size_t replacementCount = _population.individuals().size() - elitePopulation.individuals().size(); |
| 71 | |
| 72 | return |
| 73 | std::move(elitePopulation) + |
| 74 | Population::makeRandom( |
| 75 | _population.fitnessMetric(), |
| 76 | replacementCount, |
| 77 | m_options.minChromosomeLength, |
| 78 | m_options.maxChromosomeLength |
| 79 | ); |
| 80 | } |
| 81 | |
| 82 | Population GenerationalElitistWithExclusivePools::runNextRound(Population _population) |
| 83 | { |
no test coverage detected