public class DBEA extends AbstractEvolutionaryAlgorithm
References:
initialized, numberOfEvaluations, problem, terminated
Constructor and Description |
---|
DBEA(Problem problem)
Constructs a new instance of the DBEA algorithm with default settings.
|
DBEA(Problem problem,
NormalBoundaryDivisions divisions)
Constructs a new instance of the DBEA algorithm with the given number of divisions.
|
Modifier and Type | Method and Description |
---|---|
void |
applyConfiguration(TypedProperties properties)
Applies the properties to this instance.
|
TypedProperties |
getConfiguration()
Gets the current configuration of this instance.
|
NormalBoundaryDivisions |
getDivisions()
Returns the number of divisions used to generate reference points.
|
NondominatedPopulation |
getResult()
Returns the current best-known result.
|
protected void |
initialize()
Performs any initialization that is required by this algorithm.
|
protected void |
iterate()
Performs one iteration of the algorithm.
|
void |
setDivisions(NormalBoundaryDivisions divisions)
Sets the number of divisions used to generate reference points.
|
void |
setVariation(Variation variation)
Replaces the variation operator to be used by this algorithm.
|
getArchive, getInitialization, getInitialPopulationSize, getPopulation, getVariation, loadState, saveState, setArchive, setInitialization, setInitialPopulationSize, 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
public DBEA(Problem problem)
problem
- the problem being solvedpublic DBEA(Problem problem, NormalBoundaryDivisions divisions)
problem
- the problem being solveddivisions
- the number of divisionspublic NormalBoundaryDivisions getDivisions()
public void setDivisions(NormalBoundaryDivisions divisions)
divisions
- the number of divisionspublic void setVariation(Variation variation)
AbstractEvolutionaryAlgorithm
setVariation
in class AbstractEvolutionaryAlgorithm
variation
- the variation operatorprotected void initialize()
AbstractAlgorithm
AbstractAlgorithm.step()
. Implementations should always invoke
super.initialize()
to ensure the algorithm is initialized
correctly.initialize
in class AbstractEvolutionaryAlgorithm
protected void iterate()
AbstractAlgorithm
iterate
in class AbstractAlgorithm
public NondominatedPopulation getResult()
Algorithm
getResult
in interface Algorithm
getResult
in class AbstractEvolutionaryAlgorithm
public void applyConfiguration(TypedProperties properties)
Configurable
TypedProperties.warnIfUnaccessedProperties()
to verify all properties were processed. This can identify simple mistakes like typos.
If overriding this method, properties should only be updated if a new value is provided. Additionally, if
updating any Configurable
objects inside this object, they should be updated before calling
super.applyConfiguration(properties)
.properties
- the user-defined propertiespublic TypedProperties getConfiguration()
Configurable
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.