Class Best2Mutator

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

public class Best2Mutator extends Object implements Mutator
Best2Mutator is a class implementing DE/best/2 mutation scheme over the interface Mutator.
Since:
1.0
Version:
1.0
Author:
Alicia Vazquez Ramos
  • Constructor Details

    • Best2Mutator

      public Best2Mutator(Execution exe)
      Constructor.
      Parameters:
      exe - Configurarion of the current execution.
  • Method Details

    • mutateIndividual

      public Individual mutateIndividual(Population p, Individual X, Individual... individuals)
      Executes DE/best/2 over the target/current individual, X.
      Specified by:
      mutateIndividual in interface Mutator
      Parameters:
      p - current population.
      X - the target/current individual.
      individuals - some possible auxiliary individuals, not used in this scheme.
      Returns:
      mutant vector, V.
    • 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.