MOEA Framework 2.12
API Specification

org.moeaframework.core.fitness
Class HypervolumeFitnessEvaluator

java.lang.Object
  extended by org.moeaframework.core.fitness.IndicatorFitnessEvaluator
      extended by org.moeaframework.core.fitness.HypervolumeFitnessEvaluator
All Implemented Interfaces:
FitnessEvaluator

public class HypervolumeFitnessEvaluator
extends IndicatorFitnessEvaluator

Indicator-based fitness using the hypervolume metric.


Field Summary
static double rho
          Determines the reference point for the hypervolume metric.
 
Fields inherited from interface org.moeaframework.core.FitnessEvaluator
FITNESS_ATTRIBUTE
 
Constructor Summary
HypervolumeFitnessEvaluator(Problem problem)
          Constructs a hypervolume fitness evaluator.
 
Method Summary
 boolean areLargerValuesPreferred()
          Returns true if larger fitness values are preferred; otherwise smaller fitness values are preferred.
protected  double calculateHypervolume(Solution solution1, Solution solution2, int d)
          Calculates the hypervolume of the portion of the objective space that is dominated by solution1 but not by solution2.
protected  double calculateIndicator(Solution solution1, Solution solution2)
          Returns the indicator value relative to the two solutions.
 
Methods inherited from class org.moeaframework.core.fitness.IndicatorFitnessEvaluator
evaluate, getProblem, removeAndUpdate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rho

public static final double rho
Determines the reference point for the hypervolume metric. ** larger fitness values are worse **

See Also:
Constant Field Values
Constructor Detail

HypervolumeFitnessEvaluator

public HypervolumeFitnessEvaluator(Problem problem)
Constructs a hypervolume fitness evaluator.

Parameters:
problem - the problem
Method Detail

calculateIndicator

protected double calculateIndicator(Solution solution1,
                                    Solution solution2)
Description copied from class: IndicatorFitnessEvaluator
Returns the indicator value relative to the two solutions.

Specified by:
calculateIndicator in class IndicatorFitnessEvaluator
Parameters:
solution1 - the first solution
solution2 - the second solution
Returns:
the indicator value relative to the two solutions

calculateHypervolume

protected double calculateHypervolume(Solution solution1,
                                      Solution solution2,
                                      int d)
Calculates the hypervolume of the portion of the objective space that is dominated by solution1 but not by solution2.

Parameters:
solution1 - the first solution
solution2 - the second solution
d - the current objective
Returns:
the hypervolume of the portion of the objective space that is dominated by solution1 but not by solution2.

areLargerValuesPreferred

public boolean areLargerValuesPreferred()
Description copied from interface: FitnessEvaluator
Returns true if larger fitness values are preferred; otherwise smaller fitness values are preferred.

Returns:
true if larger fitness values are preferred; otherwise smaller fitness values are preferred

MOEA Framework 2.12
API Specification

Copyright 2009-2016 MOEA Framework. All rights reserved.
Licensed under the GNU Lesser General Public License.
Return to the MOEA Framework homepage. Visit us on Github!