public final class GenerationEvolverImpl extends Object implements GenerationEvolver
GeneticOperator instances to evolve new generations from existing generations.| Constructor and Description |
|---|
GenerationEvolverImpl(int elitismSize,
NodeSelectorFactory selectorFactory,
Map<GeneticOperator,Integer> operators)
Creates a
GenerationEvolverImpl that uses the given values to evolve new generations. |
| Modifier and Type | Method and Description |
|---|---|
Collection<Node> |
evolve(RankedCandidates oldGeneration)
Returns a new generation of
Node instances evolved from the specified existing generation. |
public GenerationEvolverImpl(int elitismSize,
NodeSelectorFactory selectorFactory,
Map<GeneticOperator,Integer> operators)
GenerationEvolverImpl that uses the given values to evolve new generations.elitismSize - the number of best candidates from an existing generation to automatically include "as-is" in the next generationselectorFactory - used to select candidates from an existing generation to be used as a basis for evolving candidates for the next generationoperators - the genetic operators to be used to evolve new candidates where the key = a genetic operator and the value = the number of times that genetic
operator should be applied during each single invocation of evolve(RankedCandidates)public Collection<Node> evolve(RankedCandidates oldGeneration)
Node instances evolved from the specified existing generation.evolve in interface GenerationEvolveroldGeneration - the existing generation to use as a basis for evolving a new generationNode instances evolved from the existing generation specified by oldGenerationOakGP Genetic Programming Framework