Package org.moeaframework.core.indicator
Class GenerationalDistance
java.lang.Object
org.moeaframework.core.indicator.NormalizedIndicator
org.moeaframework.core.indicator.GenerationalDistance
- All Implemented Interfaces:
Indicator
Generational distance (GD) indicator. Represents average distance from solutions in an approximation set to the
nearest solution in the reference set.
-
Field Summary
Fields inherited from class org.moeaframework.core.indicator.NormalizedIndicator
problem
-
Constructor Summary
ConstructorDescriptionGenerationalDistance
(Problem problem, NondominatedPopulation referenceSet) Constructs a generational distance evaluator for the specified problem and corresponding reference set.GenerationalDistance
(Problem problem, NondominatedPopulation referenceSet, double d) Constructs a generational distance evaluator for the specified problem and corresponding reference set.GenerationalDistance
(Problem problem, NondominatedPopulation referenceSet, Normalizer normalizer, double d) Constructs a generational distance evaluator with a user-provided normalizer. -
Method Summary
Modifier and TypeMethodDescriptiondouble
evaluate
(NondominatedPopulation approximationSet) Returns the value of this unary quality indicator given the specified non-dominated population.Methods inherited from class org.moeaframework.core.indicator.NormalizedIndicator
getNormalizedReferenceSet, normalize
-
Constructor Details
-
GenerationalDistance
Constructs a generational distance evaluator for the specified problem and corresponding reference set. The default normalization procedure, as specified byDefaultNormalizer
, is used.- Parameters:
problem
- the problemreferenceSet
- the reference set for the problem
-
GenerationalDistance
Constructs a generational distance evaluator for the specified problem and corresponding reference set. The default normalization procedure, as specified byDefaultNormalizer
, is used.- Parameters:
problem
- the problemreferenceSet
- the reference set for the problemd
- the power, typically2.0
-
GenerationalDistance
public GenerationalDistance(Problem problem, NondominatedPopulation referenceSet, Normalizer normalizer, double d) Constructs a generational distance evaluator with a user-provided normalizer.- Parameters:
problem
- the problemreferenceSet
- the reference set for the problemnormalizer
- the user-provided normalizer, ornull
if the default is usedd
- the power, typically2.0
-
-
Method Details
-
evaluate
Description copied from interface:Indicator
Returns the value of this unary quality indicator given the specified non-dominated population.- Parameters:
approximationSet
- the non-dominated population to be evaluated- Returns:
- the value of this quality indicator given the specified non-dominated population
-