Class IntegerSBXCrossover
java.lang.Object
org.uma.jmetal.operator.crossover.impl.IntegerSBXCrossover
- All Implemented Interfaces:
Serializable,CrossoverOperator<IntegerSolution>,Operator<List<IntegerSolution>,List<IntegerSolution>>
This class allows to apply a SBX crossover operator using two parent solutions (Integer encoding)
- Author:
- Antonio J. Nebro
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIntegerSBXCrossover(double crossoverProbability, double distributionIndex) ConstructorIntegerSBXCrossover(double crossoverProbability, double distributionIndex, RandomGenerator<Double> randomGenerator) Constructor -
Method Summary
Modifier and TypeMethodDescriptiondoubledoCrossover(double probability, IntegerSolution parent1, IntegerSolution parent2) doCrossover methodexecute(List<IntegerSolution> solutions) Execute() methoddoubleintintvoidsetCrossoverProbability(double crossoverProbability) voidsetDistributionIndex(double distributionIndex)
-
Constructor Details
-
IntegerSBXCrossover
public IntegerSBXCrossover(double crossoverProbability, double distributionIndex) Constructor -
IntegerSBXCrossover
public IntegerSBXCrossover(double crossoverProbability, double distributionIndex, RandomGenerator<Double> randomGenerator) Constructor
-
-
Method Details
-
crossoverProbability
public double crossoverProbability()- Specified by:
crossoverProbabilityin interfaceCrossoverOperator<IntegerSolution>
-
getDistributionIndex
public double getDistributionIndex() -
setDistributionIndex
public void setDistributionIndex(double distributionIndex) -
setCrossoverProbability
public void setCrossoverProbability(double crossoverProbability) -
execute
Execute() method- Specified by:
executein interfaceOperator<List<IntegerSolution>,List<IntegerSolution>> - Parameters:
solutions- The data to process
-
doCrossover
public List<IntegerSolution> doCrossover(double probability, IntegerSolution parent1, IntegerSolution parent2) doCrossover method -
numberOfRequiredParents
public int numberOfRequiredParents()- Specified by:
numberOfRequiredParentsin interfaceCrossoverOperator<IntegerSolution>
-
numberOfGeneratedChildren
public int numberOfGeneratedChildren()- Specified by:
numberOfGeneratedChildrenin interfaceCrossoverOperator<IntegerSolution>
-