MOEA Framework 2.12
API Specification

org.moeaframework.core.fitness
Class IndicatorFitnessEvaluator

java.lang.Object
  extended by org.moeaframework.core.fitness.IndicatorFitnessEvaluator
All Implemented Interfaces:
FitnessEvaluator
Direct Known Subclasses:
AdditiveEpsilonIndicatorFitnessEvaluator, HypervolumeFitnessEvaluator

public abstract class IndicatorFitnessEvaluator
extends Object
implements FitnessEvaluator

Abstract class for assigning fitness based on a binary indicator. This class combines the pair-wise fitness of each solution into an aggregate fitness within the entire population.


Field Summary
 
Fields inherited from interface org.moeaframework.core.FitnessEvaluator
FITNESS_ATTRIBUTE
 
Constructor Summary
IndicatorFitnessEvaluator(Problem problem)
          Constructs an indicator-based fitness for the specified problem.
 
Method Summary
protected abstract  double calculateIndicator(Solution solution1, Solution solution2)
          Returns the indicator value relative to the two solutions.
 void evaluate(Population population)
          Evaluates the solutions in the specified population assigning the FITNESS_ATTRIBUTE attribute.
 Problem getProblem()
          Returns the problem.
 void removeAndUpdate(Population population, int removeIndex)
          After calling evaluate(Population), this method is used to iteratively remove solutions from the population while updating the fitness value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.moeaframework.core.FitnessEvaluator
areLargerValuesPreferred
 

Constructor Detail

IndicatorFitnessEvaluator

public IndicatorFitnessEvaluator(Problem problem)
Constructs an indicator-based fitness for the specified problem.

Parameters:
problem - the problem
Method Detail

getProblem

public Problem getProblem()
Returns the problem.

Returns:
the problem

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

removeAndUpdate

public void removeAndUpdate(Population population,
                            int removeIndex)
After calling evaluate(Population), this method is used to iteratively remove solutions from the population while updating the fitness value. There must be no other modifications to the population between invocations of evaluate(Population) and this method other than removing solutions using this method.

Parameters:
population - the population
removeIndex - the index to remove

calculateIndicator

protected abstract double calculateIndicator(Solution solution1,
                                             Solution solution2)
Returns the indicator value relative to the two solutions.

Parameters:
solution1 - the first solution
solution2 - the second solution
Returns:
the indicator value relative to the two solutions

MOEA Framework 2.12
API Specification

Copyright 2009-2016 MOEA Framework. All rights reserved.
Licensed under the GNU Lesser General Public License.
Return to the MOEA Framework homepage. Visit us on Github!