Package org.opt4j.operators.crossover
Class CrossoverListXPoint<G extends org.opt4j.core.genotype.ListGenotype<?>>
- java.lang.Object
-
- org.opt4j.operators.crossover.CrossoverListXPoint<G>
-
- All Implemented Interfaces:
org.opt4j.core.optimizer.Operator<G>
,Crossover<G>
- Direct Known Subclasses:
CrossoverBooleanXPoint
,CrossoverIntegerXPoint
public abstract class CrossoverListXPoint<G extends org.opt4j.core.genotype.ListGenotype<?>> extends java.lang.Object implements Crossover<G>
The
CrossoverListXPoint
performs a crossover onGenotype
objects that are lists of values.The crossover is performed on
x
points of theGenotype
.
-
-
Constructor Summary
Constructors Constructor Description CrossoverListXPoint(int x, org.opt4j.core.common.random.Rand random)
Constructs aCrossoverListXPoint
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Pair<G>
crossover(G p1, G p2)
Performs a crossover for twoGenotype
parents.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opt4j.operators.crossover.Crossover
getOperatorType
-
-
-
-
Constructor Detail
-
CrossoverListXPoint
@Inject public CrossoverListXPoint(int x, org.opt4j.core.common.random.Rand random)
Constructs aCrossoverListXPoint
.- Parameters:
x
- the number of crossover pointsrandom
- the random number generator
-
-