Package dealib.components.mutators
Class CurrentToPBestMutator
java.lang.Object
dealib.components.mutators.CurrentToPBestMutator
- All Implemented Interfaces:
Mutator
CurrentToPBestMutator is a class implementing DE/current-to-pbest 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-pbest over the target/current individual, X.toString()Gets a string representing the visualization by console of the Mutator.
-
Constructor Details
-
CurrentToPBestMutator
Constructor.- Parameters:
exe- Configurarion of the current execution.
-
-
Method Details
-
mutateIndividual
public Individual mutateIndividual(Population p, Individual X, Individual... individuals) throws IncompatibleConfigurationException Executes DE/current-to-pbest over the target/current individual, X.- Specified by:
mutateIndividualin interfaceMutator- Parameters:
p- current population.X- the target/current individual.individuals- provides auxiliary individuals needed for its execution: position 0 needs PBEST individual, position 1 needs a random individual and position 2 individual from the population, P, and the archive, A.- Returns:
- mutant vector, V.
- Throws:
IncompatibleConfigurationException- when the length of the individuals array is incompatible with the operation which is going to be performed. In this case, needs the PBEST individual, a random individual and the archive one.
-
toString
Gets a string representing the visualization by console of the Mutator.
-