AbstractListChromosomes for crossover
This policy works by applying the following rules:
Example (random sublist from index 3 to 7, underlined):
p1 = (8 4 7 3 6 2 5 1 9 0) X c1 = (0 4 7 3 6 2 5 1 8 9)
--------- ---------
p2 = (0 1 2 3 4 5 6 7 8 9) X c2 = (8 1 2 3 4 5 6 7 9 0)
This policy works only on AbstractListChromosome, and therefore it
is parameterized by T. Moreover, the chromosomes must have same lengths.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ChromosomePair | crossover(final Chromosome
the first chromosome. first, final Chromosome the second chromosome. second)Implements org. Perform a crossover operation on the given chromosomes. |
| protected ChromosomePair | Returns: the pair of new chromosomes that resulted from the crossoverthe first chromosome first, final AbstractListChromosome<T> the second chromosome second)Helper for |
| OrderedCrossover | back to summary |
|---|---|
| public OrderedCrossover() | |
| crossover | back to summary |
|---|---|
| public ChromosomePair crossover(final Chromosome first, final Chromosome second) throws DimensionMismatchException, MathIllegalArgumentException Implements org. Doc from org. Perform a crossover operation on the given chromosomes.
| |
| mate | back to summary |
|---|---|
| protected ChromosomePair mate(final AbstractListChromosome<T> first, final AbstractListChromosome<T> second) throws DimensionMismatchException Helper for
| |