Package org.moeaframework.algorithm
Class GDE3
java.lang.Object
org.moeaframework.algorithm.AbstractAlgorithm
org.moeaframework.algorithm.AbstractEvolutionaryAlgorithm
org.moeaframework.algorithm.GDE3
- All Implemented Interfaces:
Algorithm,EvolutionaryAlgorithm,Extensible,Configurable,Named,Stateful
Implementation of the Generalized Differential Evolution (GDE3) algorithm.
References:
- Kukkonen and Lampinen (2005). "GDE3: The Third Evolution Step of Generalized Differential Evolution." KanGAL Report Number 2005013.
-
Field Summary
Fields inherited from class org.moeaframework.algorithm.AbstractAlgorithm
initialized, numberOfEvaluations, problem, terminated -
Constructor Summary
ConstructorsConstructorDescriptionConstructs the GDE3 algorithm with default settings.GDE3(Problem problem, int initialPopulationSize, NondominatedSortingPopulation population, DominanceComparator comparator, DifferentialEvolutionSelection selection, DifferentialEvolutionVariation variation, Initialization initialization) Constructs the GDE3 algorithm with the specified components.GDE3(Problem problem, int initialPopulationSize, NondominatedSortingPopulation population, DifferentialEvolutionSelection selection, DifferentialEvolutionVariation variation, Initialization initialization) Constructs the GDE3 algorithm with the specified components. -
Method Summary
Modifier and TypeMethodDescriptiongetName()Returns the name of this algorithm.Returns the current population of this evolutionary algorithm.Returns the variation operator currently in use by this algorithm.voiditerate()Performs one iteration of the algorithm.voidsetInitialPopulationSize(int initialPopulationSize) Sets the initial population size.voidsetVariation(DifferentialEvolutionVariation variation) Replaces the differential evolution variation operator to be used by this algorithm.Methods inherited from class org.moeaframework.algorithm.AbstractEvolutionaryAlgorithm
getArchive, getInitialization, getInitialPopulationSize, getResult, initialize, loadState, saveState, setArchive, setInitialization, setPopulation, setVariationMethods inherited from class org.moeaframework.algorithm.AbstractAlgorithm
assertNotInitialized, evaluate, getExtensions, getNumberOfEvaluations, getProblem, isInitialized, isTerminated, step, terminateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.moeaframework.algorithm.Algorithm
evaluate, evaluateAll, evaluateAll, getNumberOfEvaluations, getProblem, isInitialized, isTerminated, run, run, step, terminateMethods inherited from interface org.moeaframework.core.configuration.Configurable
applyConfiguration, getConfigurationMethods inherited from interface org.moeaframework.algorithm.extension.Extensible
addExtension, getExtensions, removeExtension
-
Constructor Details
-
GDE3
Constructs the GDE3 algorithm with default settings.- Parameters:
problem- the problem being solved
-
GDE3
public GDE3(Problem problem, int initialPopulationSize, NondominatedSortingPopulation population, DifferentialEvolutionSelection selection, DifferentialEvolutionVariation variation, Initialization initialization) Constructs the GDE3 algorithm with the specified components.- Parameters:
problem- the problem being solvedinitialPopulationSize- the initial population sizepopulation- the population used to store solutionsselection- the selection operatorvariation- the variation operatorinitialization- the initialization method
-
GDE3
public GDE3(Problem problem, int initialPopulationSize, NondominatedSortingPopulation population, DominanceComparator comparator, DifferentialEvolutionSelection selection, DifferentialEvolutionVariation variation, Initialization initialization) Constructs the GDE3 algorithm with the specified components.- Parameters:
problem- the problem being solvedinitialPopulationSize- the initial population sizepopulation- the population used to store solutionscomparator- the dominance comparator used to determine if offspring survive until the non-dominated sorting stepselection- the selection operatorvariation- the variation operatorinitialization- the initialization method
-
-
Method Details
-
getName
Description copied from interface:AlgorithmReturns the name of this algorithm. Whenever possible, this name should match the name recognized byAlgorithmFactory.- Returns:
- the name of this algorithm
-
iterate
public void iterate()Description copied from class:AbstractAlgorithmPerforms one iteration of the algorithm. This method should be overridden by implementations to perform each logical iteration of the algorithm.- Specified by:
iteratein classAbstractAlgorithm
-
getPopulation
Description copied from interface:EvolutionaryAlgorithmReturns the current population of this evolutionary algorithm.- Specified by:
getPopulationin interfaceEvolutionaryAlgorithm- Overrides:
getPopulationin classAbstractEvolutionaryAlgorithm- Returns:
- the current population of this evolutionary algorithm
-
getVariation
Description copied from class:AbstractEvolutionaryAlgorithmReturns the variation operator currently in use by this algorithm.- Overrides:
getVariationin classAbstractEvolutionaryAlgorithm- Returns:
- the variation operator
-
setVariation
Replaces the differential evolution variation operator to be used by this algorithm.- Parameters:
variation- the differential evolution variation operator
-
setInitialPopulationSize
public void setInitialPopulationSize(int initialPopulationSize) Description copied from class:AbstractEvolutionaryAlgorithmSets the initial population size. This value can not be set after initialization.- Overrides:
setInitialPopulationSizein classAbstractEvolutionaryAlgorithm- Parameters:
initialPopulationSize- the initial population size
-