public class OrderCrossover extends AbstractCrossOverFunction
CrossOverFunction.NoCrossCROSS_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, setMaxCrossOversaddChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListenerpublic OrderCrossover()
public GACrossResult performCrossOver(SymbolList chromA, SymbolList chromB) throws ChangeVetoException
CrossOverFunctionchromA - The first chromosome in the crosschromB - The second chromosome in the crossGACross that holds the results of the crossChangeVetoException - if the chromosomes are unmodifiableCopyright © 2020 BioJava. All rights reserved.