public class OrderCrossover extends AbstractCrossOverFunction
CrossOverFunction.NoCross
CROSS_PROB, DEFAULT_CROSS_PROB, DEFAULT_MAX_CROSS, MAX_CROSSES, NO_CROSS
Constructor and Description |
---|
OrderCrossover()
Sets the maximal number of crossover points to two and the crossover
probability to 0.5 and initializes this object.
|
Modifier and Type | Method and Description |
---|---|
GACrossResult |
performCrossOver(SymbolList chromA,
SymbolList chromB)
Performs a cross between the pair of chromosomes
|
getCrossOverProbs, getMaxCrossOvers, setCrossOverProbs, setMaxCrossOvers
addChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener
public OrderCrossover()
public GACrossResult performCrossOver(SymbolList chromA, SymbolList chromB) throws ChangeVetoException
CrossOverFunction
chromA
- The first chromosome in the crosschromB
- The second chromosome in the crossGACross
that holds the results of the crossChangeVetoException
- if the chromosomes are unmodifiableCopyright © 2014 BioJava. All rights reserved.