eaLib API Docs
Last Modified : January 7 2002

mss.ea.rec
Class OXListRecombination

java.lang.Object
  |
  +--mss.ea.core.GeneticOperator
        |
        +--mss.ea.rec.Recombination
              |
              +--mss.ea.rec.ChromosomeRecombination
                    |
                    +--mss.ea.rec.ListRecombination
                          |
                          +--mss.ea.rec.OXListRecombination

public class OXListRecombination
extends ListRecombination

Order Crossover (OX) for lists. This operator requires two parents and produces two descendants.

Since:
0.1
Version:
0.1 (08-13-2001)
Author:
Andreas Rummler

Field Summary
protected  int[] intersectionPoints
          Exchange interval.
 
Fields inherited from class mss.ea.rec.Recombination
quantity, required
 
Fields inherited from class mss.ea.core.GeneticOperator
description, ID, name
 
Constructor Summary
OXListRecombination()
          Constructor.
OXListRecombination(int[] intersectionPoints)
          Constructor with intersection points.
 
Method Summary
protected  int chrLength(java.util.List parent0, java.util.List parent1)
           
 ListChromosome[] recombine(ListChromosome[] cra)
          Executes the recombination.
 
Methods inherited from class mss.ea.rec.ListRecombination
recombine
 
Methods inherited from class mss.ea.rec.Recombination
getQuantity, getRequired
 
Methods inherited from class mss.ea.core.GeneticOperator
getDescription, getID, getName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

intersectionPoints

protected int[] intersectionPoints
Exchange interval. The interval is defined between lowerBound (inclusive) and upperBound (exclusive).
Constructor Detail

OXListRecombination

public OXListRecombination()
Constructor.

OXListRecombination

public OXListRecombination(int[] intersectionPoints)
Constructor with intersection points. This constructor should only be used for debugging purposes.
Parameters:
intersectionPoints - array with intersection points
Method Detail

recombine

public ListChromosome[] recombine(ListChromosome[] cra)
                           throws RecombinationException
Executes the recombination.
Overrides:
recombine in class ListRecombination
Parameters:
cra - array with at least two parents
Returns:
array with two descendants
Throws:
RecombinationException - thrown, if recombination fails

chrLength

protected int chrLength(java.util.List parent0,
                        java.util.List parent1)

eaLib API Docs
Last Modified : January 7 2002

Copyright © 2000-2001 Technical University of Ilmenau, Department ESS