public class IntegerSBXCrossover extends Object implements CrossoverOperator<IntegerSolution>
| Constructor and Description |
|---|
IntegerSBXCrossover(double crossoverProbability,
double distributionIndex)
Constructor
|
IntegerSBXCrossover(double crossoverProbability,
double distributionIndex,
RandomGenerator<Double> randomGenerator)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
List<IntegerSolution> |
doCrossover(double probability,
IntegerSolution parent1,
IntegerSolution parent2)
doCrossover method
|
List<IntegerSolution> |
execute(List<IntegerSolution> solutions)
Execute() method
|
double |
getCrossoverProbability() |
double |
getDistributionIndex() |
int |
getNumberOfGeneratedChildren() |
int |
getNumberOfRequiredParents() |
void |
setCrossoverProbability(double crossoverProbability) |
void |
setDistributionIndex(double distributionIndex) |
public IntegerSBXCrossover(double crossoverProbability,
double distributionIndex)
public IntegerSBXCrossover(double crossoverProbability,
double distributionIndex,
RandomGenerator<Double> randomGenerator)
public double getCrossoverProbability()
public double getDistributionIndex()
public void setDistributionIndex(double distributionIndex)
public void setCrossoverProbability(double crossoverProbability)
public List<IntegerSolution> execute(List<IntegerSolution> solutions)
execute in interface Operator<List<IntegerSolution>,List<IntegerSolution>>solutions - The data to processpublic List<IntegerSolution> doCrossover(double probability, IntegerSolution parent1, IntegerSolution parent2)
public int getNumberOfRequiredParents()
getNumberOfRequiredParents in interface CrossoverOperator<IntegerSolution>public int getNumberOfGeneratedChildren()
getNumberOfGeneratedChildren in interface CrossoverOperator<IntegerSolution>Copyright © 2018. All rights reserved.