Package dealib.components.crossovers
Class ArithmeticCrossover
java.lang.Object
dealib.components.crossovers.ArithmeticCrossover
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncrossIndividuals
(Population p, Individual X, Individual V, Individual... individuals) Executes arithmetic crossover scheme over the target/current individual, X and the mutant individual V.toString()
Gets a string representing the visualization by console of the Crossover.
-
Constructor Details
-
ArithmeticCrossover
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 interfaceCrossover
- 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
Gets a string representing the visualization by console of the Crossover.
-