|
Watchmaker Framework API (Version 0.6.2) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.uncommons.watchmaker.framework.operators.AbstractCrossover<List<T>>
org.uncommons.watchmaker.framework.operators.ListOrderCrossover<T>
T - The component type of the lists that are combined.public class ListOrderCrossover<T>
Implements ordered cross-over between arbitrary lists. The algorithm is the Partially Mapped Cross-over (PMX) algorithm.
| Constructor Summary | |
|---|---|
ListOrderCrossover()
Creates a cross-over operator with a cross-over probability of 1. |
|
ListOrderCrossover(org.uncommons.maths.random.Probability crossoverProbability)
Creates a cross-over operator with the specified cross-over probability. |
|
| Method Summary | |
|---|---|
protected List<List<T>> |
mate(List<T> parent1,
List<T> parent2,
int numberOfCrossoverPoints,
Random rng)
Perform cross-over on a pair of parents to generate a pair of offspring. |
| Methods inherited from class org.uncommons.watchmaker.framework.operators.AbstractCrossover |
|---|
apply |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ListOrderCrossover()
public ListOrderCrossover(org.uncommons.maths.random.Probability crossoverProbability)
crossoverProbability - The probability that cross-over will be performed
for any given pair.| Method Detail |
|---|
protected List<List<T>> mate(List<T> parent1,
List<T> parent2,
int numberOfCrossoverPoints,
Random rng)
mate in class AbstractCrossover<List<T>>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.
|
Watchmaker Framework API (Version 0.6.2) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||