Class SingleBenchmarkResult
java.lang.Object
org.optaplanner.benchmark.impl.result.SingleBenchmarkResult
- All Implemented Interfaces:
 BenchmarkResult
Represents 1 benchmark for 1 
Solver configuration for 1 problem instance (data set).- 
Constructor Summary
ConstructorsConstructorDescriptionSingleBenchmarkResult(SolverBenchmarkResult solverBenchmarkResult, ProblemBenchmarkResult problemBenchmarkResult)  - 
Method Summary
Modifier and TypeMethodDescriptionvoidaccumulateResults(BenchmarkReport benchmarkReport) protected static SingleBenchmarkResultcreateMerge(SolverBenchmarkResult solverBenchmarkResult, ProblemBenchmarkResult problemBenchmarkResult, SingleBenchmarkResult oldResult) getBest()getName()longdouble[]intgetSubSingleStatistic(ProblemStatisticType problemStatisticType) intlongScore<?>Score<?>getWorst()booleanbooleanvoidbooleanbooleanbooleanisWinner()voidmakeDirs()voidsetAverageAndTotalScoreForTesting(Score<?> averageAndTotalScore) voidsetFailureCount(Integer failureCount) voidsetProblemBenchmarkResult(ProblemBenchmarkResult problemBenchmarkResult) voidsetRanking(Integer ranking) voidsetScoreCalculationCount(long scoreCalculationCount) voidsetSolverBenchmarkResult(SolverBenchmarkResult solverBenchmarkResult) voidsetSubSingleBenchmarkResultList(List<SubSingleBenchmarkResult> subSingleBenchmarkResultList) voidsetTimeMillisSpent(long timeMillisSpent) voidsetUsedMemoryAfterInputSolution(Long usedMemoryAfterInputSolution) voidsetWinningScoreDifference(Score<?> winningScoreDifference) voidsetWorstScoreCalculationSpeedDifferencePercentage(Double worstScoreCalculationSpeedDifferencePercentage) voidsetWorstScoreDifferencePercentage(ScoreDifferencePercentage worstScoreDifferencePercentage) toString() 
- 
Constructor Details
- 
SingleBenchmarkResult
public SingleBenchmarkResult() - 
SingleBenchmarkResult
public SingleBenchmarkResult(SolverBenchmarkResult solverBenchmarkResult, ProblemBenchmarkResult problemBenchmarkResult)  
 - 
 - 
Method Details
- 
initSubSingleStatisticMaps
public void initSubSingleStatisticMaps() - 
getSolverBenchmarkResult
 - 
setSolverBenchmarkResult
 - 
getProblemBenchmarkResult
 - 
setProblemBenchmarkResult
 - 
getSubSingleBenchmarkResultList
 - 
setSubSingleBenchmarkResultList
public void setSubSingleBenchmarkResultList(List<SubSingleBenchmarkResult> subSingleBenchmarkResultList)  - 
getUsedMemoryAfterInputSolution
- Returns:
 - null if 
PlannerBenchmarkResult.hasMultipleParallelBenchmarks()return true 
 - 
setUsedMemoryAfterInputSolution
 - 
getFailureCount
 - 
setFailureCount
 - 
getTimeMillisSpent
public long getTimeMillisSpent() - 
setTimeMillisSpent
public void setTimeMillisSpent(long timeMillisSpent)  - 
getScoreCalculationCount
public long getScoreCalculationCount() - 
setScoreCalculationCount
public void setScoreCalculationCount(long scoreCalculationCount)  - 
getScoreExplanationSummary
 - 
getWinningScoreDifference
 - 
setWinningScoreDifference
 - 
getWorstScoreDifferencePercentage
 - 
setWorstScoreDifferencePercentage
public void setWorstScoreDifferencePercentage(ScoreDifferencePercentage worstScoreDifferencePercentage)  - 
getWorstScoreCalculationSpeedDifferencePercentage
 - 
setWorstScoreCalculationSpeedDifferencePercentage
public void setWorstScoreCalculationSpeedDifferencePercentage(Double worstScoreCalculationSpeedDifferencePercentage)  - 
getRanking
 - 
setRanking
 - 
getAverageScore
- Specified by:
 getAverageScorein interfaceBenchmarkResult
 - 
setAverageAndTotalScoreForTesting
 - 
getMedian
 - 
getBest
 - 
getWorst
 - 
getStandardDeviationDoubles
public double[] getStandardDeviationDoubles() - 
getInfeasibleScoreCount
 - 
getUninitializedSolutionCount
 - 
getTotalScore
 - 
getAnchorId
 - 
getName
- Specified by:
 getNamein interfaceBenchmarkResult- Returns:
 - never null, filename safe
 
 - 
getBenchmarkReportDirectory
 - 
hasAllSuccess
public boolean hasAllSuccess()- Specified by:
 hasAllSuccessin interfaceBenchmarkResult- Returns:
 - true if all child benchmarks were a success and the variable is initialized
 
 - 
isInitialized
public boolean isInitialized() - 
hasAnyFailure
public boolean hasAnyFailure()- Specified by:
 hasAnyFailurein interfaceBenchmarkResult- Returns:
 - true if there is a failed child benchmark and the variable is initialized
 
 - 
isScoreFeasible
public boolean isScoreFeasible() - 
getScoreCalculationSpeed
 - 
isWinner
public boolean isWinner() - 
getSubSingleStatistic
 - 
getSuccessCount
public int getSuccessCount() - 
getStandardDeviationString
 - 
getResultDirectoryName
- Specified by:
 getResultDirectoryNamein interfaceBenchmarkResult- Returns:
 - the name of the directory that holds the benchmark's results
 
 - 
getResultDirectory
- Specified by:
 getResultDirectoryin interfaceBenchmarkResult- Returns:
 - the benchmark result directory as a file
 
 - 
makeDirs
public void makeDirs() - 
getSubSingleCount
public int getSubSingleCount() - 
accumulateResults
 - 
createMerge
protected static SingleBenchmarkResult createMerge(SolverBenchmarkResult solverBenchmarkResult, ProblemBenchmarkResult problemBenchmarkResult, SingleBenchmarkResult oldResult)  - 
toString
 
 -