Package org.opt4j.optimizer.ea
Class ElitismSelector.FitnessComparator
java.lang.Object
org.opt4j.optimizer.ea.ElitismSelector.FitnessComparator
- All Implemented Interfaces:
Comparator<Individual>
- Enclosing class:
- ElitismSelector
Comparator that sorts the
Individual
s based on their fitness
values.-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
FitnessComparator
protected FitnessComparator()
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<Individual>
-