T
- The type of evolved candidate that this pipeline operates on.public class EvolutionPipeline<T> extends Object implements EvolutionaryOperator<T>
A compound evolutionary operator that applies multiple operators (of the same type) in series.
By combining EvolutionPipeline operators with SplitEvolution
operators,
elaborate evolutionary schemes can be constructed.
Constructor and Description |
---|
EvolutionPipeline(List<EvolutionaryOperator<T>> pipeline)
Creates a pipeline consisting of the specified operators in
the order that they are supplied.
|
Modifier and Type | Method and Description |
---|---|
List<T> |
apply(List<T> selectedCandidates,
Random rng)
Applies each operation in the pipeline in turn to the selection.
|
public EvolutionPipeline(List<EvolutionaryOperator<T>> pipeline)
pipeline
- An ordered list of operators that make up the
pipeline.public List<T> apply(List<T> selectedCandidates, Random rng)
apply
in interface EvolutionaryOperator<T>
selectedCandidates
- The candidates to subjected to evolution.rng
- A source of randomness used by all stochastic processes in
the pipeline.