Class SolverBenchmarkResult
- java.lang.Object
-
- org.optaplanner.benchmark.impl.result.SolverBenchmarkResult
-
-
Constructor Summary
Constructors Constructor Description SolverBenchmarkResult(PlannerBenchmarkResult plannerBenchmarkResult)
-
Method Summary
-
-
-
Constructor Detail
-
SolverBenchmarkResult
public SolverBenchmarkResult(PlannerBenchmarkResult plannerBenchmarkResult)
-
-
Method Detail
-
getPlannerBenchmarkResult
public PlannerBenchmarkResult getPlannerBenchmarkResult()
-
setPlannerBenchmarkResult
public void setPlannerBenchmarkResult(PlannerBenchmarkResult plannerBenchmarkResult)
-
getName
public String getName()
- Returns:
- never null, filename safe
-
setName
public void setName(String name)
-
getSubSingleCount
public Integer getSubSingleCount()
-
setSubSingleCount
public void setSubSingleCount(Integer subSingleCount)
-
getSolverConfig
public SolverConfig getSolverConfig()
-
setSolverConfig
public void setSolverConfig(SolverConfig solverConfig)
-
getScoreDefinition
public ScoreDefinition getScoreDefinition()
-
setScoreDefinition
public void setScoreDefinition(ScoreDefinition scoreDefinition)
-
getSingleBenchmarkResultList
public List<SingleBenchmarkResult> getSingleBenchmarkResultList()
-
setSingleBenchmarkResultList
public void setSingleBenchmarkResultList(List<SingleBenchmarkResult> singleBenchmarkResultList)
-
getFailureCount
public Integer getFailureCount()
-
getUninitializedSolutionCount
public Integer getUninitializedSolutionCount()
-
getInfeasibleScoreCount
public Integer getInfeasibleScoreCount()
-
getTotalScore
public Score getTotalScore()
-
getAverageScore
public Score getAverageScore()
-
getTotalWinningScoreDifference
public Score getTotalWinningScoreDifference()
-
getAverageWorstScoreDifferencePercentage
public ScoreDifferencePercentage getAverageWorstScoreDifferencePercentage()
-
getAverageScoreCalculationSpeed
public Long getAverageScoreCalculationSpeed()
-
getAverageTimeMillisSpent
public Long getAverageTimeMillisSpent()
-
getAverageWorstScoreCalculationSpeedDifferencePercentage
public Double getAverageWorstScoreCalculationSpeedDifferencePercentage()
-
getRanking
public Integer getRanking()
-
setRanking
public void setRanking(Integer ranking)
-
getAnchorId
public String getAnchorId()
-
getNameWithFavoriteSuffix
public String 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
public Score getAverageWinningScoreDifference()
-
findSingleBenchmark
public SingleBenchmarkResult findSingleBenchmark(ProblemBenchmarkResult problemBenchmarkResult)
- Parameters:
problemBenchmarkResult
- never null- Returns:
- sometimes null
-
getSolverConfigAsString
public String getSolverConfigAsString()
-
getEnvironmentMode
public EnvironmentMode getEnvironmentMode()
-
getStandardDeviationString
public String getStandardDeviationString()
-
accumulateResults
public void accumulateResults(BenchmarkReport benchmarkReport)
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)
-
-