Class IndicatorFitnessEvaluator

java.lang.Object
org.moeaframework.core.fitness.IndicatorFitnessEvaluator
All Implemented Interfaces:
FitnessEvaluator
Direct Known Subclasses:
AdditiveEpsilonIndicatorFitnessEvaluator, HypervolumeFitnessEvaluator

public abstract class IndicatorFitnessEvaluator extends Object implements FitnessEvaluator
Abstract class for assigning fitness based on a binary indicator. This class combines the pair-wise fitness of each solution into an aggregate fitness within the entire population.
  • Constructor Details

    • IndicatorFitnessEvaluator

      public IndicatorFitnessEvaluator(Problem problem)
      Constructs an indicator-based fitness for the specified problem.
      Parameters:
      problem - the problem
  • Method Details

    • getProblem

      public Problem getProblem()
      Returns the problem.
      Returns:
      the problem
    • evaluate

      public void evaluate(Population population)
      Description copied from interface: FitnessEvaluator
      Evaluates the solutions in the specified population assigning the FITNESS_ATTRIBUTE attribute.
      Specified by:
      evaluate in interface FitnessEvaluator
      Parameters:
      population - the population to be evaluated
    • removeAndUpdate

      public void removeAndUpdate(Population population, int removeIndex)
      After calling evaluate(Population), this method is used to iteratively remove solutions from the population while updating the fitness value. There must be no other modifications to the population between invocations of evaluate(Population) and this method other than removing solutions using this method.
      Parameters:
      population - the population
      removeIndex - the index to remove
    • calculateIndicator

      protected abstract double calculateIndicator(Solution solution1, Solution solution2)
      Returns the indicator value relative to the two solutions.
      Parameters:
      solution1 - the first solution
      solution2 - the second solution
      Returns:
      the indicator value relative to the two solutions