Package dealib.components.mutators
Class CurrentToBest2Mutator
java.lang.Object
dealib.components.mutators.CurrentToBest2Mutator
- All Implemented Interfaces:
Mutator
CurrentToBest2Mutator is a class implementing DE/current-to-best/2 mutation
scheme over the interface Mutator.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Alicia Vazquez Ramos
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmutateIndividual
(Population p, Individual X, Individual... individuals) Executes DE/current-to-best/2 over the target/current individual, X.toString()
Gets a string representing the visualization by console of the Mutator.
-
Constructor Details
-
CurrentToBest2Mutator
Constructor.- Parameters:
exe
- Configurarion of the current execution.
-
-
Method Details
-
mutateIndividual
Executes DE/current-to-best/2 over the target/current individual, X.- Specified by:
mutateIndividual
in interfaceMutator
- Parameters:
p
- current population.X
- the target/current individual.individuals
- some possible auxiliary individuals, not used in this scheme.- Returns:
- mutant vector, V.
-
toString
Gets a string representing the visualization by console of the Mutator.
-