public class MaximizationComparator
extends java.lang.Object
implements java.util.Comparator
| Constructor and Description |
|---|
MaximizationComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(java.lang.Object a,
java.lang.Object b)
Implements a Comparator for the fitness of Individuals, where a
fitness value of 1.0 is greater than a fitness of 0.0.
|
public int compare(java.lang.Object a,
java.lang.Object b)
throws java.lang.ClassCastException
compare in interface java.util.Comparatora - an Individualb - another onejava.lang.ClassCastException