Class WorstScoreSolverRankingComparator
- java.lang.Object
-
- org.optaplanner.benchmark.impl.ranking.WorstScoreSolverRankingComparator
-
- All Implemented Interfaces:
Serializable
,Comparator<SolverBenchmarkResult>
public class WorstScoreSolverRankingComparator extends Object implements Comparator<SolverBenchmarkResult>, Serializable
This rankingComparator
orders aSolverBenchmarkResult
by its worstScore
. It minimizes the worst case scenario.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WorstScoreSolverRankingComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(SolverBenchmarkResult a, SolverBenchmarkResult b)
-
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
-
-
-
-
Method Detail
-
compare
public int compare(SolverBenchmarkResult a, SolverBenchmarkResult b)
- Specified by:
compare
in interfaceComparator<SolverBenchmarkResult>
-
-