public class DifferentialEvolution extends AbstractDifferentialEvolution<DoubleSolution>
crossoverOperator, selectionOperator| Constructor and Description |
|---|
DifferentialEvolution(DoubleProblem problem,
int maxEvaluations,
int populationSize,
DifferentialEvolutionCrossover crossoverOperator,
DifferentialEvolutionSelection selectionOperator,
SolutionListEvaluator<DoubleSolution> evaluator)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected List<DoubleSolution> |
createInitialPopulation() |
protected List<DoubleSolution> |
evaluatePopulation(List<DoubleSolution> population) |
int |
getEvaluations() |
DoubleSolution |
getResult()
Returns the best individual
|
protected void |
initProgress() |
protected boolean |
isStoppingConditionReached() |
protected List<DoubleSolution> |
replacement(List<DoubleSolution> population,
List<DoubleSolution> offspringPopulation) |
protected List<DoubleSolution> |
reproduction(List<DoubleSolution> matingPopulation) |
protected List<DoubleSolution> |
selection(List<DoubleSolution> population) |
void |
setEvaluations(int evaluations) |
protected void |
updateProgress() |
getPopulation, run, setPopulationpublic DifferentialEvolution(DoubleProblem problem, int maxEvaluations, int populationSize, DifferentialEvolutionCrossover crossoverOperator, DifferentialEvolutionSelection selectionOperator, SolutionListEvaluator<DoubleSolution> evaluator)
problem - Problem to solvemaxEvaluations - Maximum number of evaluations to performpopulationSize - crossoverOperator - selectionOperator - evaluator - public int getEvaluations()
public void setEvaluations(int evaluations)
protected void initProgress()
initProgress in class AbstractEvolutionaryAlgorithm<DoubleSolution,DoubleSolution>protected void updateProgress()
updateProgress in class AbstractEvolutionaryAlgorithm<DoubleSolution,DoubleSolution>protected boolean isStoppingConditionReached()
isStoppingConditionReached in class AbstractEvolutionaryAlgorithm<DoubleSolution,DoubleSolution>protected List<DoubleSolution> createInitialPopulation()
createInitialPopulation in class AbstractEvolutionaryAlgorithm<DoubleSolution,DoubleSolution>protected List<DoubleSolution> evaluatePopulation(List<DoubleSolution> population)
evaluatePopulation in class AbstractEvolutionaryAlgorithm<DoubleSolution,DoubleSolution>protected List<DoubleSolution> selection(List<DoubleSolution> population)
selection in class AbstractEvolutionaryAlgorithm<DoubleSolution,DoubleSolution>protected List<DoubleSolution> reproduction(List<DoubleSolution> matingPopulation)
reproduction in class AbstractEvolutionaryAlgorithm<DoubleSolution,DoubleSolution>protected List<DoubleSolution> replacement(List<DoubleSolution> population, List<DoubleSolution> offspringPopulation)
replacement in class AbstractEvolutionaryAlgorithm<DoubleSolution,DoubleSolution>public DoubleSolution getResult()
getResult in interface Algorithm<DoubleSolution>getResult in class AbstractEvolutionaryAlgorithm<DoubleSolution,DoubleSolution>Copyright © 2015. All rights reserved.