Class SingleBenchmarkResult
- java.lang.Object
-
- org.optaplanner.benchmark.impl.result.SingleBenchmarkResult
-
- All Implemented Interfaces:
BenchmarkResult
public class SingleBenchmarkResult extends Object implements BenchmarkResult
Represents 1 benchmark for 1Solver
configuration for 1 problem instance (data set).
-
-
Constructor Summary
Constructors Constructor Description SingleBenchmarkResult()
SingleBenchmarkResult(SolverBenchmarkResult solverBenchmarkResult, ProblemBenchmarkResult problemBenchmarkResult)
-
Method Summary
-
-
-
Constructor Detail
-
SingleBenchmarkResult
public SingleBenchmarkResult()
-
SingleBenchmarkResult
public SingleBenchmarkResult(SolverBenchmarkResult solverBenchmarkResult, ProblemBenchmarkResult problemBenchmarkResult)
-
-
Method Detail
-
initSubSingleStatisticMaps
public void initSubSingleStatisticMaps()
-
getSolverBenchmarkResult
public SolverBenchmarkResult getSolverBenchmarkResult()
-
setSolverBenchmarkResult
public void setSolverBenchmarkResult(SolverBenchmarkResult solverBenchmarkResult)
-
getProblemBenchmarkResult
public ProblemBenchmarkResult getProblemBenchmarkResult()
-
setProblemBenchmarkResult
public void setProblemBenchmarkResult(ProblemBenchmarkResult problemBenchmarkResult)
-
getSubSingleBenchmarkResultList
public List<SubSingleBenchmarkResult> getSubSingleBenchmarkResultList()
-
setSubSingleBenchmarkResultList
public void setSubSingleBenchmarkResultList(List<SubSingleBenchmarkResult> subSingleBenchmarkResultList)
-
getUsedMemoryAfterInputSolution
public Long getUsedMemoryAfterInputSolution()
- Returns:
- null if
PlannerBenchmarkResult.hasMultipleParallelBenchmarks()
return true
-
setUsedMemoryAfterInputSolution
public void setUsedMemoryAfterInputSolution(Long usedMemoryAfterInputSolution)
-
getFailureCount
public Integer getFailureCount()
-
setFailureCount
public void setFailureCount(Integer failureCount)
-
getTimeMillisSpent
public long getTimeMillisSpent()
-
setTimeMillisSpent
public void setTimeMillisSpent(long timeMillisSpent)
-
getScoreCalculationCount
public long getScoreCalculationCount()
-
setScoreCalculationCount
public void setScoreCalculationCount(long scoreCalculationCount)
-
getScoreExplanationSummary
public String getScoreExplanationSummary()
-
getScoreExplanationSummaryAsHtmlEscaped
public String getScoreExplanationSummaryAsHtmlEscaped()
-
getWinningScoreDifference
public Score<?> getWinningScoreDifference()
-
setWinningScoreDifference
public void setWinningScoreDifference(Score<?> winningScoreDifference)
-
getWorstScoreDifferencePercentage
public ScoreDifferencePercentage getWorstScoreDifferencePercentage()
-
setWorstScoreDifferencePercentage
public void setWorstScoreDifferencePercentage(ScoreDifferencePercentage worstScoreDifferencePercentage)
-
getWorstScoreCalculationSpeedDifferencePercentage
public Double getWorstScoreCalculationSpeedDifferencePercentage()
-
setWorstScoreCalculationSpeedDifferencePercentage
public void setWorstScoreCalculationSpeedDifferencePercentage(Double worstScoreCalculationSpeedDifferencePercentage)
-
getRanking
public Integer getRanking()
-
setRanking
public void setRanking(Integer ranking)
-
getAverageScore
public Score getAverageScore()
- Specified by:
getAverageScore
in interfaceBenchmarkResult
-
setAverageAndTotalScoreForTesting
public void setAverageAndTotalScoreForTesting(Score<?> averageAndTotalScore)
-
getMedian
public SubSingleBenchmarkResult getMedian()
-
getBest
public SubSingleBenchmarkResult getBest()
-
getWorst
public SubSingleBenchmarkResult getWorst()
-
getStandardDeviationDoubles
public double[] getStandardDeviationDoubles()
-
getInfeasibleScoreCount
public Integer getInfeasibleScoreCount()
-
getUninitializedSolutionCount
public Integer getUninitializedSolutionCount()
-
getTotalScore
public Score<?> getTotalScore()
-
getAnchorId
public String getAnchorId()
-
getName
public String getName()
- Specified by:
getName
in interfaceBenchmarkResult
- Returns:
- never null, filename safe
-
getBenchmarkReportDirectory
public File getBenchmarkReportDirectory()
-
hasAllSuccess
public boolean hasAllSuccess()
- Specified by:
hasAllSuccess
in 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:
hasAnyFailure
in interfaceBenchmarkResult
- Returns:
- true if there is a failed child benchmark and the variable is initialized
-
isScoreFeasible
public boolean isScoreFeasible()
-
getScoreCalculationSpeed
public Long getScoreCalculationSpeed()
-
isWinner
public boolean isWinner()
-
getSubSingleStatistic
public SubSingleStatistic getSubSingleStatistic(ProblemStatisticType problemStatisticType)
-
getSuccessCount
public int getSuccessCount()
-
getStandardDeviationString
public String getStandardDeviationString()
-
getResultDirectoryName
public String getResultDirectoryName()
- Specified by:
getResultDirectoryName
in interfaceBenchmarkResult
- Returns:
- the name of the directory that holds the benchmark's results
-
getResultDirectory
public File getResultDirectory()
- Specified by:
getResultDirectory
in interfaceBenchmarkResult
- Returns:
- the benchmark result directory as a file
-
makeDirs
public void makeDirs()
-
getSubSingleCount
public int getSubSingleCount()
-
accumulateResults
public void accumulateResults(BenchmarkReport benchmarkReport)
-
createMerge
protected static SingleBenchmarkResult createMerge(SolverBenchmarkResult solverBenchmarkResult, ProblemBenchmarkResult problemBenchmarkResult, SingleBenchmarkResult oldResult)
-
-