Class CurrentToPBestMutator

java.lang.Object
dealib.components.mutators.CurrentToPBestMutator
All Implemented Interfaces:
Mutator

public class CurrentToPBestMutator extends Object implements 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 Details

    • CurrentToPBestMutator

      public CurrentToPBestMutator(Execution exe)
      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:
      mutateIndividual in interface Mutator
      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

      public String toString()
      Gets a string representing the visualization by console of the Mutator.
      Overrides:
      toString in class Object
      Returns:
      the name of the Mutator.