Class TotalScoreSolverRankingComparator
- java.lang.Object
- 
- org.optaplanner.benchmark.impl.ranking.TotalScoreSolverRankingComparator
 
- 
- All Implemented Interfaces:
- Comparator<SolverBenchmarkResult>
 
 public class TotalScoreSolverRankingComparator extends Object implements Comparator<SolverBenchmarkResult> This rankingComparatororders aSolverBenchmarkResultby its totalScore. It maximize the overall score, so it minimizes the overall cost if allPlanningSolutions would be executed.When the inputSolutions differ greatly in size or difficulty, this often results in a big difference in Scoremagnitude between eachPlanningSolution. For example: score 10 for dataset A versus 1000 for dataset B. In such cases, dataset B would marginalize dataset A. To avoid that, useTotalRankSolverRankingWeightFactory.
- 
- 
Constructor SummaryConstructors Constructor Description TotalScoreSolverRankingComparator()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(SolverBenchmarkResult a, SolverBenchmarkResult b)- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface java.util.Comparatorequals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
 
- 
 
- 
- 
- 
Method Detail- 
comparepublic int compare(SolverBenchmarkResult a, SolverBenchmarkResult b) - Specified by:
- comparein interface- Comparator<SolverBenchmarkResult>
 
 
- 
 
-