public class DifferentialEvolutionCrossover extends Object implements CrossoverOperator<DoubleSolution>
| Constructor and Description |
|---|
DifferentialEvolutionCrossover()
Constructor
|
DifferentialEvolutionCrossover(double cr,
double f,
double k,
String variant)
Constructor
|
DifferentialEvolutionCrossover(double cr,
double f,
String variant)
Constructor
|
DifferentialEvolutionCrossover(double cr,
double f,
String variant,
BoundedRandomGenerator<Integer> jRandomGenerator,
BoundedRandomGenerator<Double> crRandomGenerator)
Constructor
|
DifferentialEvolutionCrossover(double cr,
double f,
String variant,
RandomGenerator<Double> randomGenerator)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
List<DoubleSolution> |
execute(List<DoubleSolution> parentSolutions)
Execute() method
|
double |
getCr() |
double |
getF() |
double |
getK() |
int |
getNumberOfParents()
Three parents are required to apply this operator.
|
String |
getVariant() |
void |
setCr(double cr) |
void |
setCurrentSolution(DoubleSolution current) |
void |
setF(double f) |
void |
setK(double k) |
public DifferentialEvolutionCrossover()
public DifferentialEvolutionCrossover(double cr,
double f,
String variant)
cr - f - variant - public DifferentialEvolutionCrossover(double cr,
double f,
String variant,
RandomGenerator<Double> randomGenerator)
cr - f - variant - jRandomGenerator - crRandomGenerator - public DifferentialEvolutionCrossover(double cr,
double f,
String variant,
BoundedRandomGenerator<Integer> jRandomGenerator,
BoundedRandomGenerator<Double> crRandomGenerator)
cr - f - variant - jRandomGenerator - crRandomGenerator - public DifferentialEvolutionCrossover(double cr,
double f,
double k,
String variant)
public double getCr()
public double getF()
public double getK()
public String getVariant()
public void setCurrentSolution(DoubleSolution current)
public void setCr(double cr)
public void setF(double f)
public void setK(double k)
public List<DoubleSolution> execute(List<DoubleSolution> parentSolutions)
execute in interface Operator<List<DoubleSolution>,List<DoubleSolution>>parentSolutions - The data to processpublic int getNumberOfParents()
getNumberOfParents in interface CrossoverOperator<DoubleSolution>Copyright © 2017. All rights reserved.