public class TotalScoreSolverRankingComparator extends Object implements Comparator<SolverBenchmarkResult>, Serializable
Comparator orders a SolverBenchmarkResult by its total Score.
It maximize the overall score, so it minimizes the overall cost if all PlanningSolutions would be executed.
When the inputSolutions differ greatly in size or difficulty, this often results in a big difference in
Score magnitude between each PlanningSolution. For example: score 10 for dataset A versus 1000 for dataset B.
In such cases, dataset B would marginalize dataset A.
To avoid that, use TotalRankSolverRankingWeightFactory.
| Constructor and Description |
|---|
TotalScoreSolverRankingComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(SolverBenchmarkResult a,
SolverBenchmarkResult b) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic int compare(SolverBenchmarkResult a, SolverBenchmarkResult b)
compare in interface Comparator<SolverBenchmarkResult>Copyright © 2006–2020 JBoss by Red Hat. All rights reserved.