public class CombinationCrossover<R extends NAryTree> extends AbstractCrossover<NAryTree>
Constructor and Description |
---|
CombinationCrossover(int crossoverPoints,
org.uncommons.maths.random.Probability crossoverProbability) |
CombinationCrossover(int crossoverPoints,
org.uncommons.maths.random.Probability crossoverProbability,
CentralRegistry registry,
TreeFitnessAbstract fitness) |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<NAryTree> |
mate(NAryTree parent1,
NAryTree parent2,
int numberOfCrossoverPoints,
java.util.Random rng)
Perform cross-over on a pair of parents to generate a pair of offspring.
|
apply
public CombinationCrossover(int crossoverPoints, org.uncommons.maths.random.Probability crossoverProbability)
public CombinationCrossover(int crossoverPoints, org.uncommons.maths.random.Probability crossoverProbability, CentralRegistry registry, TreeFitnessAbstract fitness)
protected java.util.List<NAryTree> mate(NAryTree parent1, NAryTree parent2, int numberOfCrossoverPoints, java.util.Random rng)
AbstractCrossover
mate
in class AbstractCrossover<NAryTree>
parent1
- One of two individuals that provides the source material
for generating offspring.parent2
- One of two individuals that provides the source material
for generating offspring.numberOfCrossoverPoints
- The number of cross-overs performed on the
two parents.rng
- A source of randomness used to determine the location of
cross-over points.