mss.ea.rec
Class MPBinaryStringRecombination
java.lang.Object
|
+--mss.ea.core.GeneticOperator
|
+--mss.ea.rec.Recombination
|
+--mss.ea.rec.ChromosomeRecombination
|
+--mss.ea.rec.BinaryStringRecombination
|
+--mss.ea.rec.MPBinaryStringRecombination
- public class MPBinaryStringRecombination
- extends BinaryStringRecombination
Multipoint Crossover for binary strings.
This operator produces two children from two parents. Fot the number of intersections na obtains:
0 < na < Width(BinaryString).
- Since:
- 0.1
- Version:
- 0.1 (01-10-2001)
- Author:
- Andreas Rummler
Field Summary |
protected int |
intersection
Number of intersections of the binary string. |
protected java.util.Random |
rand
Random generator. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
rand
protected java.util.Random rand
- Random generator.
intersection
protected int intersection
- Number of intersections of the binary string.
MPBinaryStringRecombination
public MPBinaryStringRecombination(int intersectionNumber)
- Constructor.
- Parameters:
intersectionNumber
- number of intersections
recombine
public Chromosome[] recombine(Chromosome[] cra)
throws RecombinationException
- Performs the recombination.
- Overrides:
recombine
in class ChromosomeRecombination
- Parameters:
cra
- array with at least two parents- Returns:
- array with two children
Copyright © 2000-2001 Technical University of Ilmenau, Department ESS