mss.ea.core
Interface FitnessComparator
- All Superinterfaces:
- java.util.Comparator
- All Known Implementing Classes:
- AbstractFitnessComparator
- public interface FitnessComparator
- extends java.util.Comparator
Interface for fitness comparators.
This comparator compares the fitness of two individuals. The method compare() returns 0 in case that both objects
equal, -1 if object a is better and 1, if object a is worse as object b. In an array with individuals
sorted in natural order, the best individuals come first in that case.
- Since:
- 0.1
- Version:
- 0.1 (06-20-2001)
- Author:
- Andreas Rummler
Methods inherited from interface java.util.Comparator |
compare, equals |
compare
public int compare(Fitness fa,
Fitness fb)
- Compares the fitness of two individuals.
- Parameters:
fa
- first fitness valuefb
- second fitness value- Returns:
- result of comparison
Copyright © 2000-2001 Technical University of Ilmenau, Department ESS