Class CrowdingDistanceFitnessEvaluator

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

public class CrowdingDistanceFitnessEvaluator extends Object implements FitnessEvaluator
Assigns fitness values based on the crowding distance from fast non-dominated sorting.
  • Constructor Details

    • CrowdingDistanceFitnessEvaluator

      public CrowdingDistanceFitnessEvaluator()
      Constructs a new crowding distance fitness evaluator.
  • Method Details

    • evaluate

      public void evaluate(Population population)
      Description copied from interface: FitnessEvaluator
      Evaluates the fitness of solutions in the population, updating the Fitness 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