@FunctionalInterface public interface Evolution<G extends Gene<?,G>,C extends Comparable<? super C>>
Modifier and Type | Method and Description |
---|---|
EvolutionResult<G,C> |
evolve(EvolutionStart<G,C> start)
Perform one evolution step with the given evolution
start object
New phenotypes are created with the fitness function and fitness scaler
defined by this engine |
default EvolutionResult<G,C> |
evolve(ISeq<Phenotype<G,C>> population,
long generation)
Perform one evolution step with the given
population and
generation . |
EvolutionResult<G,C> evolve(EvolutionStart<G,C> start)
start
object
New phenotypes are created with the fitness function and fitness scaler
defined by this enginestart
- the evolution start objectNullPointerException
- if the given evolution
start
is null
evolve(ISeq, long)
default EvolutionResult<G,C> evolve(ISeq<Phenotype<G,C>> population, long generation)
population
and
generation
. New phenotypes are created with the fitness function
and fitness scaler defined by this engine
This method is thread-safe.
population
- the population to evolvegeneration
- the current generation; used for calculating the
phenotype age.NullPointerException
- if the given population
is
null
IllegalArgumentException
- if the given generation
is
smaller then oneevolve(EvolutionStart)
© 2007-2019 Franz Wilhelmstötter (2019-11-18 20:30)