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
ConstructorsConstructorDescriptionConstructs 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 TypeMethodDescriptionbooleanReturnstrueif larger fitness values are preferred; otherwise smaller fitness values are preferred.voidevaluate(Population population) Evaluates the fitness of solutions in the population, updating theFitnessattribute.
-
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:FitnessEvaluatorEvaluates the fitness of solutions in the population, updating theFitnessattribute.- Specified by:
evaluatein interfaceFitnessEvaluator- Parameters:
population- the population to be evaluated
-
areLargerValuesPreferred
public boolean areLargerValuesPreferred()Description copied from interface:FitnessEvaluatorReturnstrueif larger fitness values are preferred; otherwise smaller fitness values are preferred.- Specified by:
areLargerValuesPreferredin interfaceFitnessEvaluator- Returns:
trueif larger fitness values are preferred; otherwise smaller fitness values are preferred
-