Class SimpleGeneticOptimizationSolverCombinatorics.FitnessComparator
java.lang.Object
org.tweetyproject.math.opt.solver.SimpleGeneticOptimizationSolverCombinatorics.FitnessComparator
- All Implemented Interfaces:
Comparator<ArrayList<ElementOfCombinatoricsProb>>
- Enclosing class:
SimpleGeneticOptimizationSolverCombinatorics
public class SimpleGeneticOptimizationSolverCombinatorics.FitnessComparator
extends Object
implements Comparator<ArrayList<ElementOfCombinatoricsProb>>
Compares individuals by the fitness (value of the target function)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Methods inherited from class java.lang.Object
equals, 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
-
-
Method Details
-
compare
public int compare(ArrayList<ElementOfCombinatoricsProb> ind1, ArrayList<ElementOfCombinatoricsProb> ind2) - Specified by:
compare
in interfaceComparator<ArrayList<ElementOfCombinatoricsProb>>
-