Class HypervolumeContributionFitnessEvaluator

java.lang.Object
org.moeaframework.core.fitness.HypervolumeContributionFitnessEvaluator
All Implemented Interfaces:
FitnessEvaluator

public class HypervolumeContributionFitnessEvaluator extends Object implements FitnessEvaluator
Assigns the fitness of solutions based on their contribution to the overall hypervolume.
  • Constructor Details

    • HypervolumeContributionFitnessEvaluator

      public HypervolumeContributionFitnessEvaluator(Problem problem)
      Constructs a new hypervolume contribution fitness evaluator with an offset of 100.
      Parameters:
      problem - the problem
    • HypervolumeContributionFitnessEvaluator

      public HypervolumeContributionFitnessEvaluator(Problem problem, double offset)
      Constructs a new hypervolume contribution fitness evaluator.
      Parameters:
      problem - the problem
      offset - the offset used when determining the reference point for the hypervolume calculation.
  • Method Details

    • 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
    • areLargerValuesPreferred

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