Package org.moeaframework.algorithm
Class GDE3
java.lang.Object
org.moeaframework.algorithm.AbstractAlgorithm
org.moeaframework.algorithm.AbstractEvolutionaryAlgorithm
org.moeaframework.algorithm.GDE3
- All Implemented Interfaces:
Extensible
,Algorithm
,Configurable
,EvolutionaryAlgorithm
,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
ConstructorDescriptionConstructs 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 TypeMethodDescriptionReturns the current population of this evolutionary algorithm.Returns the variation operator currently in use by this algorithm.void
iterate()
Performs one iteration of the algorithm.void
setInitialPopulationSize
(int initialPopulationSize) Sets the initial population size.void
setVariation
(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, setVariation
Methods inherited from class org.moeaframework.algorithm.AbstractAlgorithm
assertNotInitialized, evaluate, getExtensions, getNumberOfEvaluations, getProblem, isInitialized, isTerminated, step, terminate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.moeaframework.core.Algorithm
evaluate, evaluateAll, evaluateAll, getNumberOfEvaluations, getProblem, isInitialized, isTerminated, run, run, step, terminate
Methods inherited from interface org.moeaframework.core.configuration.Configurable
applyConfiguration, getConfiguration
Methods 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
-
iterate
public void iterate()Description copied from class:AbstractAlgorithm
Performs one iteration of the algorithm. This method should be overridden by implementations to perform each logical iteration of the algorithm.- Specified by:
iterate
in classAbstractAlgorithm
-
getPopulation
Description copied from interface:EvolutionaryAlgorithm
Returns the current population of this evolutionary algorithm.- Specified by:
getPopulation
in interfaceEvolutionaryAlgorithm
- Overrides:
getPopulation
in classAbstractEvolutionaryAlgorithm
- Returns:
- the current population of this evolutionary algorithm
-
getVariation
Description copied from class:AbstractEvolutionaryAlgorithm
Returns the variation operator currently in use by this algorithm.- Overrides:
getVariation
in 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:AbstractEvolutionaryAlgorithm
Sets the initial population size. This value can not be set after initialization.- Overrides:
setInitialPopulationSize
in classAbstractEvolutionaryAlgorithm
- Parameters:
initialPopulationSize
- the initial population size
-