Class SolverBenchmarkResult
java.lang.Object
org.optaplanner.benchmark.impl.result.SolverBenchmarkResult
Represents 1
Solver
configuration benchmarked on multiple problem instances (data sets).-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accumulateResults
(BenchmarkReport benchmarkReport) Does not callSingleBenchmarkResult.accumulateResults(BenchmarkReport)
, becausePlannerBenchmarkResult.accumulateResults(BenchmarkReport)
does that already onPlannerBenchmarkResult.getUnifiedProblemBenchmarkResultList()
.protected static Map<SolverBenchmarkResult,
SolverBenchmarkResult> createMergeMap
(PlannerBenchmarkResult newPlannerBenchmarkResult, List<SingleBenchmarkResult> singleBenchmarkResultList) protected void
findSingleBenchmark
(ProblemBenchmarkResult problemBenchmarkResult) getName()
int
boolean
boolean
boolean
boolean
boolean
void
void
setPlannerBenchmarkResult
(PlannerBenchmarkResult plannerBenchmarkResult) void
setRanking
(Integer ranking) void
setScoreDefinition
(ScoreDefinition scoreDefinition) void
setSingleBenchmarkResultList
(List<SingleBenchmarkResult> singleBenchmarkResultList) void
setSolverConfig
(SolverConfig solverConfig) void
setSubSingleCount
(Integer subSingleCount) toString()
-
Constructor Details
-
SolverBenchmarkResult
-
-
Method Details
-
getPlannerBenchmarkResult
-
setPlannerBenchmarkResult
-
getName
- Returns:
- never null, filename safe
-
setName
-
getSubSingleCount
-
setSubSingleCount
-
getSolverConfig
-
setSolverConfig
-
getScoreDefinition
-
setScoreDefinition
-
getSingleBenchmarkResultList
-
setSingleBenchmarkResultList
-
getFailureCount
-
getUninitializedSolutionCount
-
getInfeasibleScoreCount
-
getTotalScore
-
getAverageScore
-
getTotalWinningScoreDifference
-
getAverageWorstScoreDifferencePercentage
-
getAverageScoreCalculationSpeed
-
getAverageTimeMillisSpent
-
getAverageWorstScoreCalculationSpeedDifferencePercentage
-
getRanking
-
setRanking
-
getAnchorId
-
getNameWithFavoriteSuffix
-
getSuccessCount
public int getSuccessCount() -
hasAnySuccess
public boolean hasAnySuccess() -
hasAnyFailure
public boolean hasAnyFailure() -
hasAnyUninitializedSolution
public boolean hasAnyUninitializedSolution() -
hasAnyInfeasibleScore
public boolean hasAnyInfeasibleScore() -
isFavorite
public boolean isFavorite() -
getAverageWinningScoreDifference
-
getScoreList
-
findSingleBenchmark
- Parameters:
problemBenchmarkResult
- never null- Returns:
- sometimes null
-
getSolverConfigAsString
-
getEnvironmentMode
-
getStandardDeviationString
-
accumulateResults
Does not callSingleBenchmarkResult.accumulateResults(BenchmarkReport)
, becausePlannerBenchmarkResult.accumulateResults(BenchmarkReport)
does that already onPlannerBenchmarkResult.getUnifiedProblemBenchmarkResultList()
.- Parameters:
benchmarkReport
- never null
-
determineTotalsAndAverages
protected void determineTotalsAndAverages() -
createMergeMap
protected static Map<SolverBenchmarkResult,SolverBenchmarkResult> createMergeMap(PlannerBenchmarkResult newPlannerBenchmarkResult, List<SingleBenchmarkResult> singleBenchmarkResultList) -
toString
-