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

Method randomiseDuplicates

tools/yulPhaser/AlgorithmRunner.cpp:166–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166void AlgorithmRunner::randomiseDuplicates()
167{
168 if (m_options.randomiseDuplicates)
169 {
170 assert(m_options.minChromosomeLength.has_value());
171 assert(m_options.maxChromosomeLength.has_value());
172
173 m_population = randomiseDuplicates(
174 m_population,
175 m_options.minChromosomeLength.value(),
176 m_options.maxChromosomeLength.value()
177 );
178 }
179}
180
181Population AlgorithmRunner::randomiseDuplicates(
182 Population _population,

Callers

nothing calls this directly

Calls 4

fitnessMetricMethod · 0.80
PopulationClass · 0.70
valueMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected