Class ArithmeticCrossover

java.lang.Object
dealib.components.crossovers.ArithmeticCrossover
All Implemented Interfaces:
Crossover

public class ArithmeticCrossover extends Object implements Crossover
ArithmeticCrossover is a class implementing a binomial scheme for crossover step over the interface Crossover.
Since:
1.0
Version:
1.0
Author:
Alicia Vazquez Ramos
  • Constructor Details

    • ArithmeticCrossover

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

    • crossIndividuals

      public Individual crossIndividuals(Population p, Individual X, Individual V, Individual... individuals) throws IncompatibleConfigurationException
      Executes arithmetic crossover scheme over the target/current individual, X and the mutant individual V.
      Specified by:
      crossIndividuals in interface Crossover
      Parameters:
      p - current population.
      X - the target/current individual.
      V - the mutant individual.
      individuals - position 0 represents K individual with k genotype as paremeter for this crossover scheme.
      Returns:
      the trial individual, U.
      Throws:
      IncompatibleConfigurationException - when the length of the individuals array is incompatible with the operation which is going to be performed. In this case, needs an Individual representing the k vector at position 0.
    • toString

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