es.udc.gii.common.eaf.algorithm.operator.reproduction.mutation
Class DoubleRandomMutation
java.lang.Object
es.udc.gii.common.eaf.algorithm.operator.reproduction.ReproductionOperator
es.udc.gii.common.eaf.algorithm.operator.reproduction.mutation.MutationOperator
es.udc.gii.common.eaf.algorithm.operator.reproduction.mutation.DoubleRandomMutation
- All Implemented Interfaces:
- Operator, Configurable
public class DoubleRandomMutation
- extends MutationOperator
This class implements a double random mutation operator. When this operator is applied to an
individual, with a probability p a random value from an uniform distribution is added to
the gene value.
This operator does not need any configuration parameters, except the parameters needed to configure
the superclass MutationOperator
. So, to use this operator, the configuration file should
contains the following xml code:
<Operator>
<Class>es.udc.gii.common.eaf.algorithm.operator.reproduction.mutation.DoubleRandomMutation</Class>
<Probability>value</Probability>
</Operator>
Where, Class is the only mandatory tag. If the tag Probability does not appear, is set
to its default value.
Default values:
- Probability default value is 0.5.
- Since:
- 1.0
- Author:
- Grupo Integrado de IngenierĂa (www.gii.udc.es)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DoubleRandomMutation
public DoubleRandomMutation()
DoubleRandomMutation
public DoubleRandomMutation(int probability)
mutation
protected java.util.List<Individual> mutation(EvolutionaryAlgorithm algorithm,
Individual individual)
- Specified by:
mutation
in class MutationOperator