MOEA Framework 2.12
API Specification

org.moeaframework.core.fitness
Class CrowdingDistanceFitnessEvaluator

java.lang.Object
  extended by 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.


Field Summary
 
Fields inherited from interface org.moeaframework.core.FitnessEvaluator
FITNESS_ATTRIBUTE
 
Constructor Summary
CrowdingDistanceFitnessEvaluator()
          Constructs a new crowding distance fitness evaluator.
 
Method Summary
 boolean areLargerValuesPreferred()
          Returns true if larger fitness values are preferred; otherwise smaller fitness values are preferred.
 void evaluate(Population population)
          Evaluates the solutions in the specified population assigning the FITNESS_ATTRIBUTE attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CrowdingDistanceFitnessEvaluator

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

Method Detail

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

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

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!