Package org.moeaframework.core.fitness
Class AdditiveEpsilonIndicatorFitnessEvaluator
java.lang.Object
org.moeaframework.core.fitness.IndicatorFitnessEvaluator
org.moeaframework.core.fitness.AdditiveEpsilonIndicatorFitnessEvaluator
- All Implemented Interfaces:
FitnessEvaluator
Indicator-based fitness using the additive ε-indicator.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an additive ε-indicator fitness evaluator. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstrueif larger fitness values are preferred; otherwise smaller fitness values are preferred.protected doublecalculateIndicator(Solution solution1, Solution solution2) Returns the indicator value relative to the two solutions.Methods inherited from class org.moeaframework.core.fitness.IndicatorFitnessEvaluator
evaluate, getProblem, removeAndUpdate
-
Constructor Details
-
AdditiveEpsilonIndicatorFitnessEvaluator
Constructs an additive ε-indicator fitness evaluator.- Parameters:
problem- the problem
-
-
Method Details
-
calculateIndicator
Description copied from class:IndicatorFitnessEvaluatorReturns the indicator value relative to the two solutions.- Specified by:
calculateIndicatorin classIndicatorFitnessEvaluator- Parameters:
solution1- the first solutionsolution2- the second solution- Returns:
- the indicator value relative to the two solutions
-
areLargerValuesPreferred
public boolean areLargerValuesPreferred()Description copied from interface:FitnessEvaluatorReturnstrueif larger fitness values are preferred; otherwise smaller fitness values are preferred.- Returns:
trueif larger fitness values are preferred; otherwise smaller fitness values are preferred
-