public class QualityIndicator
extends java.lang.Object
Constructor and Description |
---|
QualityIndicator(Problem problem,
NondominatedPopulation referenceSet)
Constructs a quality indicator evaluator for the specified problem and corresponding reference set.
|
Modifier and Type | Method and Description |
---|---|
void |
calculate(NondominatedPopulation approximationSet)
Calculates all the metrics for the specified approximation set.
|
double |
getAdditiveEpsilonIndicator()
Returns the additive ε-indicator of the approximation set from the last invocation of
calculate . |
double |
getGenerationalDistance()
Returns the generational distance of the approximation set from the last invocation of
calculate . |
double |
getHypervolume()
Returns the hypervolume of the approximation set from the last invocation of
calculate . |
double |
getInvertedGenerationalDistance()
Returns the inverted generational distance of the approximation set from the last invocation of
calculate . |
double |
getMaximumParetoFrontError()
Returns the maximum Pareto front error of the approximation set from the last invocation of
calculate . |
Problem |
getProblem()
Returns the problem.
|
NondominatedPopulation |
getReferenceSet()
The reference set for the problem.
|
double |
getSpacing()
Returns the spacing of the approximation set from the last invocation of
calculate . |
public QualityIndicator(Problem problem, NondominatedPopulation referenceSet)
problem
- the problemreferenceSet
- the reference set for the problempublic Problem getProblem()
public double getGenerationalDistance()
calculate
.calculate
java.lang.IllegalStateException
- if the calculate
method has not been invokedpublic double getInvertedGenerationalDistance()
calculate
.calculate
java.lang.IllegalStateException
- if the calculate
method has not been invokedpublic double getAdditiveEpsilonIndicator()
calculate
.calculate
java.lang.IllegalStateException
- if the calculate
method has not been invokedpublic double getHypervolume()
calculate
.calculate
java.lang.IllegalStateException
- if the calculate
method has not been invokedpublic double getMaximumParetoFrontError()
calculate
.calculate
java.lang.IllegalStateException
- if the calculate
method has not been invokedpublic double getSpacing()
calculate
.calculate
java.lang.IllegalStateException
- if the calculate
method has not been invokedpublic NondominatedPopulation getReferenceSet()
public void calculate(NondominatedPopulation approximationSet)
approximationSet
- the approximation setCopyright 2009-2024 David Hadka and other contributors. All rights reserved.
Licensed under the GNU Lesser General Public License.
Return to the MOEA Framework homepage.