public class TreeEvolutionEngine extends LoggingEvolutionEngine<NAryTree>
NAryTree
s. Adds
functionality such as logging whole populations for analysis.centralRegistry, generation, params
evolutionScheme, fitnessEvaluator, selectionStrategy
candidateFactory, rng, satisfiedTerminationConditions
Constructor and Description |
---|
TreeEvolutionEngine(ETMParam param) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
logResult(java.util.List<EvaluatedCandidate<NAryTree>> result)
Builds a string that described the whole provided result such that it can
be logged
|
protected java.util.List<EvaluatedCandidate<NAryTree>> |
nextEvolutionStep(java.util.List<EvaluatedCandidate<NAryTree>> evaluatedPopulation,
int eliteCount,
java.util.Random rng)
This method performs a single step/iteration of the evolutionary process.
|
evaluatePopulation, evolve, evolvePopulation, getGeneration, getLogModulo, logPopulation, setCentralRegistry, setLogModulo, setParameterObject
addEvolutionObserver, evolve, evolve, evolvePopulation, evolvePopulation, getSatisfiedTerminationConditions, notifyPopulationChange, removeEvolutionObserver, setSingleThreaded
public TreeEvolutionEngine(ETMParam param)
protected java.util.List<EvaluatedCandidate<NAryTree>> nextEvolutionStep(java.util.List<EvaluatedCandidate<NAryTree>> evaluatedPopulation, int eliteCount, java.util.Random rng)
nextEvolutionStep
in class GenerationalEvolutionEngine<NAryTree>
evaluatedPopulation
- The population at the beginning of the process.eliteCount
- The number of the fittest individuals that must be preserved.rng
- A source of randomness.public java.lang.String logResult(java.util.List<EvaluatedCandidate<NAryTree>> result)
logResult
in class LoggingEvolutionEngine<NAryTree>