MCPcopy Create free account
hub / github.com/argotorg/solidity / runNextRound

Method runNextRound

tools/yulPhaser/GeneticAlgorithms.cpp:65–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65Population 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
82Population GenerationalElitistWithExclusivePools::runNextRound(Population _population)
83{

Callers 1

runMethod · 0.45

Calls 8

RangeSelectionClass · 0.85
fitnessMetricMethod · 0.80
mutateMethod · 0.80
crossoverMethod · 0.80
selectMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected