public class VEGA extends AbstractEvolutionaryAlgorithm
There is one small algorithmic difference between this implementation and [1]. In [1], applying the genetic operators fills the entire population. However, since custom variation operators can be specified, it is possible that the population will not be filled completely. As a result, this implementation will continue selecting parents until the population is full.
References:
initialized, numberOfEvaluations, problem, terminated
Constructor and Description |
---|
VEGA(Problem problem)
Constructs a new VEGA instance with default settings.
|
VEGA(Problem problem,
int initialPopulationSize,
Population population,
NondominatedPopulation archive,
Initialization initialization,
Variation variation)
Constructs a new VEGA instance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
iterate()
Performs one iteration of the algorithm.
|
void |
setInitialPopulationSize(int initialPopulationSize)
Sets the initial population size.
|
void |
setVariation(Variation variation)
Replaces the variation operator to be used by this algorithm.
|
getArchive, getInitialization, getInitialPopulationSize, getPopulation, getResult, getVariation, initialize, loadState, saveState, setArchive, setInitialization, setPopulation
assertNotInitialized, evaluate, evaluateAll, evaluateAll, getNumberOfEvaluations, getProblem, isInitialized, isTerminated, step, terminate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
evaluate, getNumberOfEvaluations, getProblem, isTerminated, run, run, step, terminate
checkTypeSafety, getState, setState, writeTypeSafety
applyConfiguration, getConfiguration
public VEGA(Problem problem)
problem
- the problempublic VEGA(Problem problem, int initialPopulationSize, Population population, NondominatedPopulation archive, Initialization initialization, Variation variation)
problem
- the probleminitialPopulationSize
- the initial population sizepopulation
- the populationarchive
- the external archive; or null
if no external archive is usedinitialization
- the initialization operatorvariation
- the variation operatorpublic void setVariation(Variation variation)
AbstractEvolutionaryAlgorithm
setVariation
in class AbstractEvolutionaryAlgorithm
variation
- the variation operatorpublic void setInitialPopulationSize(int initialPopulationSize)
AbstractEvolutionaryAlgorithm
setInitialPopulationSize
in class AbstractEvolutionaryAlgorithm
initialPopulationSize
- the initial population sizeprotected void iterate()
AbstractAlgorithm
iterate
in class AbstractAlgorithm
Copyright 2009-2024 David Hadka and other contributors. All rights reserved.
Licensed under the GNU Lesser General Public License.
Return to the MOEA Framework homepage.