|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.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.SwapMutation
public class SwapMutation
This class implements a swap mutation operator. When this operator is applied to an individual, two genes at random positions are swaped.
This operator does not need any kind of configuration.
Constructor Summary | |
---|---|
SwapMutation()
Creates a new instance of SwapMutation |
|
SwapMutation(int probability)
|
Method Summary | |
---|---|
protected java.util.List<Individual> |
mutation(EvolutionaryAlgorithm algorithm,
Individual individual)
|
Methods inherited from class es.udc.gii.common.eaf.algorithm.operator.reproduction.mutation.MutationOperator |
---|
configure, getProbability, operate, setProbability |
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, toString, wait, wait, wait |
Constructor Detail |
---|
public SwapMutation()
public SwapMutation(int probability)
Method Detail |
---|
protected java.util.List<Individual> mutation(EvolutionaryAlgorithm algorithm, Individual individual)
mutation
in class MutationOperator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |