public class PESA2 extends AbstractEvolutionaryAlgorithm
References:
Modifier and Type | Class and Description |
---|---|
class |
PESA2.RegionBasedSelection
Region-based selection.
|
initialized, numberOfEvaluations, problem, terminated
Constructor and Description |
---|
PESA2(Problem problem)
Constructs a new PESA2 instance with default settings.
|
PESA2(Problem problem,
int initialPopulationSize,
Variation variation,
Initialization initialization,
int bisections,
int archiveSize)
Constructs a new PESA2 instance.
|
Modifier and Type | Method and Description |
---|---|
void |
applyConfiguration(TypedProperties properties)
Applies the properties to this instance.
|
protected java.util.Map<java.lang.Integer,java.util.List<Solution>> |
createGridMap()
Returns a mapping from grid index to the solutions occupying that grid
index.
|
AdaptiveGridArchive |
getArchive()
Returns the current non-dominated archive of the best solutions generated
by this evolutionary algorithm, or
null if no archive is used. |
TypedProperties |
getConfiguration()
Gets the current configuration of this instance.
|
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.
|
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
public PESA2(Problem problem)
problem
- the problempublic PESA2(Problem problem, int initialPopulationSize, Variation variation, Initialization initialization, int bisections, int archiveSize)
problem
- the probleminitialPopulationSize
- the initial population sizevariation
- the mutation operatorinitialization
- the initialization operatorbisections
- the number of bisections in the adaptive grid archivearchiveSize
- the capacity of the adaptive grid archivepublic AdaptiveGridArchive getArchive()
EvolutionaryAlgorithm
null
if no archive is used.getArchive
in interface EvolutionaryAlgorithm
getArchive
in class AbstractEvolutionaryAlgorithm
null
if no archive is
usedpublic 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
protected java.util.Map<java.lang.Integer,java.util.List<Solution>> createGridMap()
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.