Package org.moeaframework.core.fitness
Class HypervolumeContributionFitnessEvaluator
java.lang.Object
org.moeaframework.core.fitness.HypervolumeContributionFitnessEvaluator
- All Implemented Interfaces:
FitnessEvaluator
Assigns the fitness of solutions based on their contribution to the overall hypervolume.
-
Constructor Summary
ConstructorDescriptionConstructs a new hypervolume contribution fitness evaluator with an offset of 100.HypervolumeContributionFitnessEvaluator
(Problem problem, double offset) Constructs a new hypervolume contribution fitness evaluator. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returnstrue
if larger fitness values are preferred; otherwise smaller fitness values are preferred.void
evaluate
(Population population) Evaluates the fitness of solutions in the population, updating theFitness
attribute.
-
Constructor Details
-
HypervolumeContributionFitnessEvaluator
Constructs a new hypervolume contribution fitness evaluator with an offset of 100.- Parameters:
problem
- the problem
-
HypervolumeContributionFitnessEvaluator
Constructs a new hypervolume contribution fitness evaluator.- Parameters:
problem
- the problemoffset
- the offset used when determining the reference point for the hypervolume calculation.
-
-
Method Details
-
evaluate
Description copied from interface:FitnessEvaluator
Evaluates the fitness of solutions in the population, updating theFitness
attribute.- Specified by:
evaluate
in interfaceFitnessEvaluator
- Parameters:
population
- the population to be evaluated
-
areLargerValuesPreferred
public boolean areLargerValuesPreferred()Description copied from interface:FitnessEvaluator
Returnstrue
if larger fitness values are preferred; otherwise smaller fitness values are preferred.- Specified by:
areLargerValuesPreferred
in interfaceFitnessEvaluator
- Returns:
true
if larger fitness values are preferred; otherwise smaller fitness values are preferred
-