es.udc.gii.common.eaf.algorithm.operator.reproduction.crossover.real_code
Class FlatCrossOver
java.lang.Object
es.udc.gii.common.eaf.algorithm.operator.reproduction.ReproductionOperator
es.udc.gii.common.eaf.algorithm.operator.reproduction.crossover.CrossOverOperator
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:
- Probability is set to 60.0
- Since:
- 1.0
- Author:
- Grupo Integrado de IngenierĂa (www.gii.udc.es)
Constructor Summary |
FlatCrossOver()
Creates a new instance of FlatCrossOver |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FlatCrossOver
public FlatCrossOver()
- Creates a new instance of FlatCrossOver
crossOver
protected java.util.List<Individual> crossOver(EvolutionaryAlgorithm ea,
java.util.List<Individual> individuals)
- Specified by:
crossOver
in class CrossOverOperator