Class BLXAlphaCrossover
java.lang.Object
org.uma.jmetal.operator.crossover.impl.BLXAlphaCrossover
- All Implemented Interfaces:
java.io.Serializable,CrossoverOperator<DoubleSolution>,Operator<java.util.List<DoubleSolution>,java.util.List<DoubleSolution>>
public class BLXAlphaCrossover extends java.lang.Object implements CrossoverOperator<DoubleSolution>
This class allows to apply a BLX-alpha crossover operator to two parent solutions.
- Author:
- Antonio J. Nebro
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description BLXAlphaCrossover(double crossoverProbability)ConstructorBLXAlphaCrossover(double crossoverProbability, double alpha)ConstructorBLXAlphaCrossover(double crossoverProbability, double alpha, RepairDoubleSolution solutionRepair)ConstructorBLXAlphaCrossover(double crossoverProbability, double alpha, RepairDoubleSolution solutionRepair, RandomGenerator<java.lang.Double> randomGenerator)Constructor -
Method Summary
Modifier and Type Method Description java.util.List<DoubleSolution>doCrossover(double probability, DoubleSolution parent1, DoubleSolution parent2)doCrossover methodjava.util.List<DoubleSolution>execute(java.util.List<DoubleSolution> solutions)Execute() methoddoublegetAlpha()doublegetCrossoverProbability()intgetNumberOfGeneratedChildren()intgetNumberOfRequiredParents()voidsetAlpha(double alpha)voidsetCrossoverProbability(double crossoverProbability)
-
Constructor Details
-
BLXAlphaCrossover
public BLXAlphaCrossover(double crossoverProbability)Constructor -
BLXAlphaCrossover
public BLXAlphaCrossover(double crossoverProbability, double alpha)Constructor -
BLXAlphaCrossover
public BLXAlphaCrossover(double crossoverProbability, double alpha, RepairDoubleSolution solutionRepair)Constructor -
BLXAlphaCrossover
public BLXAlphaCrossover(double crossoverProbability, double alpha, RepairDoubleSolution solutionRepair, RandomGenerator<java.lang.Double> randomGenerator)Constructor
-
-
Method Details
-
getCrossoverProbability
public double getCrossoverProbability()- Specified by:
getCrossoverProbabilityin interfaceCrossoverOperator<DoubleSolution>
-
getAlpha
public double getAlpha() -
setCrossoverProbability
public void setCrossoverProbability(double crossoverProbability) -
setAlpha
public void setAlpha(double alpha) -
execute
Execute() method- Specified by:
executein interfaceOperator<java.util.List<DoubleSolution>,java.util.List<DoubleSolution>>- Parameters:
solutions- The data to process
-
doCrossover
public java.util.List<DoubleSolution> doCrossover(double probability, DoubleSolution parent1, DoubleSolution parent2)doCrossover method -
getNumberOfRequiredParents
public int getNumberOfRequiredParents()- Specified by:
getNumberOfRequiredParentsin interfaceCrossoverOperator<DoubleSolution>
-
getNumberOfGeneratedChildren
public int getNumberOfGeneratedChildren()- Specified by:
getNumberOfGeneratedChildrenin interfaceCrossoverOperator<DoubleSolution>
-