Class EpsilonProgressCollector
java.lang.Object
org.moeaframework.analysis.collector.EpsilonProgressCollector
- All Implemented Interfaces:
Collector
Collects the number of ε-progress improvements detected in an
EpsilonBoxEvolutionaryAlgorithm
.-
Constructor Summary
ConstructorDescriptionConstructs an unattached collector for recording the number of ε-progress improvements detected in anEpsilonBoxEvolutionaryAlgorithm
.Constructs a collector for recording the number of ε-progress improvements detected in the specifiedEpsilonBoxEvolutionaryAlgorithm
. -
Method Summary
Modifier and TypeMethodDescriptionReturns a new instance of this collector which has been attached to the specified object as identified by the attach point returned throughCollector.getAttachPoint()
.void
collect
(Observation observation) Collects the requested information from the object, storing the data to the specified observation.Returns the attach point describing where this collector is attached.static int
getNumberOfDominatingImprovements
(Observation observation) Reads the number of dominating improvements from the observation.static int
getNumberOfImprovements
(Observation observation) Reads the number of improvements from the observation.
-
Constructor Details
-
EpsilonProgressCollector
public EpsilonProgressCollector()Constructs an unattached collector for recording the number of ε-progress improvements detected in anEpsilonBoxEvolutionaryAlgorithm
. -
EpsilonProgressCollector
Constructs a collector for recording the number of ε-progress improvements detected in the specifiedEpsilonBoxEvolutionaryAlgorithm
.- Parameters:
algorithm
- the algorithm this collector records data from
-
-
Method Details
-
collect
Description copied from interface:Collector
Collects the requested information from the object, storing the data to the specified observation. This method must only be invoked after this collector has been attached to an appropriate object. -
getAttachPoint
Description copied from interface:Collector
Returns the attach point describing where this collector is attached. The matched object should be unique.- Specified by:
getAttachPoint
in interfaceCollector
- Returns:
- the attach point describing where this collector is attached
-
attach
Description copied from interface:Collector
Returns a new instance of this collector which has been attached to the specified object as identified by the attach point returned throughCollector.getAttachPoint()
. -
getNumberOfImprovements
Reads the number of improvements from the observation.- Parameters:
observation
- the observation- Returns:
- the number of improvements
-
getNumberOfDominatingImprovements
Reads the number of dominating improvements from the observation.- Parameters:
observation
- the observation- Returns:
- the number of dominating improvements
-