es.udc.gii.common.eaf.algorithm.operator.reproduction.crossover.real_code
Class FlatCrossOver

java.lang.Object
  extended by es.udc.gii.common.eaf.algorithm.operator.reproduction.ReproductionOperator
      extended by es.udc.gii.common.eaf.algorithm.operator.reproduction.crossover.CrossOverOperator
          extended by es.udc.gii.common.eaf.algorithm.operator.reproduction.crossover.real_code.FlatCrossOver
All Implemented Interfaces:
Operator, Configurable

public class FlatCrossOver
extends CrossOverOperator

An offspring, H = (h1...hi...hn), is generated, where hi is a randomly (uniformly) chosen value of the interval [c1, c2].

To config this operator add these lines to the config file:

 <Operator>
      <Class>es.udc.gii.common.eaf.algorithm.operator.reproduction.crossover.real_code.FlatCrossOver</Class>
      <Probability>value</Probability>
 </Operator>
 
 

 Where probability is a double value in the range [0, 100] which represents the probability of crossover.
 If this does not appear in the configuration, the parameter is set to the default values. 

Default values:

Since:
1.0
Author:
Grupo Integrado de IngenierĂ­a (www.gii.udc.es)

Constructor Summary
FlatCrossOver()
          Creates a new instance of FlatCrossOver
 
Method Summary
protected  java.util.List<Individual> crossOver(EvolutionaryAlgorithm ea, java.util.List<Individual> individuals)
           
 
Methods inherited from class es.udc.gii.common.eaf.algorithm.operator.reproduction.crossover.CrossOverOperator
configure, getCrossPoints, getProbability, operate, setProbability, toString
 
Methods inherited from class es.udc.gii.common.eaf.algorithm.operator.reproduction.ReproductionOperator
checkBounds
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FlatCrossOver

public FlatCrossOver()
Creates a new instance of FlatCrossOver

Method Detail

crossOver

protected java.util.List<Individual> crossOver(EvolutionaryAlgorithm ea,
                                               java.util.List<Individual> individuals)
Specified by:
crossOver in class CrossOverOperator