Class TotalRankSolverRankingWeightFactory
java.lang.Object
org.optaplanner.benchmark.impl.ranking.TotalRankSolverRankingWeightFactory
- All Implemented Interfaces:
- SolverRankingWeightFactory
public class TotalRankSolverRankingWeightFactory
extends Object
implements SolverRankingWeightFactory
This 
SolverRankingWeightFactory orders a SolverBenchmarkResult by how many times each of its
 SingleBenchmarkResults beat SingleBenchmarkResults of the other SolverBenchmarkResult.
 It maximizes the overall ranking.
 
 When the inputSolutions differ greatly in size or difficulty, this often produces a difference in
 Score magnitude between each PlanningSolution. For example: score 10 for dataset A versus 1000 for dataset B.
 In such cases, this ranking is more fair than TotalScoreSolverRankingComparator,
 because in this ranking, dataset B wouldn't marginalize dataset A.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic class
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncreateRankingWeight(List<SolverBenchmarkResult> solverBenchmarkResultList, SolverBenchmarkResult solverBenchmarkResult) The ranking function.
- 
Constructor Details- 
TotalRankSolverRankingWeightFactorypublic TotalRankSolverRankingWeightFactory()
 
- 
- 
Method Details- 
createRankingWeightpublic Comparable createRankingWeight(List<SolverBenchmarkResult> solverBenchmarkResultList, SolverBenchmarkResult solverBenchmarkResult) Description copied from interface:SolverRankingWeightFactoryThe ranking function. Takes the provided solverBenchmarkResultList and ranks them.- Specified by:
- createRankingWeightin interface- SolverRankingWeightFactory
- Parameters:
- solverBenchmarkResultList- never null
- solverBenchmarkResult- never null
- Returns:
- never null
 
 
-