Class ProblemBenchmarkResult<Solution_>

java.lang.Object
ai.timefold.solver.benchmark.impl.result.ProblemBenchmarkResult<Solution_>

public class ProblemBenchmarkResult<Solution_> extends Object
Represents 1 problem instance (data set) benchmarked on multiple Solver configurations.
  • Constructor Details

  • Method Details

    • 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)
    • getProblemProvider

      public ai.timefold.solver.benchmark.impl.loader.ProblemProvider<Solution_> getProblemProvider()
    • setProblemProvider

      public void setProblemProvider(ai.timefold.solver.benchmark.impl.loader.ProblemProvider<Solution_> problemProvider)
    • isWriteOutputSolutionEnabled

      public boolean isWriteOutputSolutionEnabled()
    • setWriteOutputSolutionEnabled

      public void setWriteOutputSolutionEnabled(boolean writeOutputSolutionEnabled)
    • getProblemStatisticList

      public List<ai.timefold.solver.benchmark.impl.statistic.ProblemStatistic> getProblemStatisticList()
    • setProblemStatisticList

      public void setProblemStatisticList(List<ai.timefold.solver.benchmark.impl.statistic.ProblemStatistic> problemStatisticList)
    • getSingleBenchmarkResultList

      public List<SingleBenchmarkResult> getSingleBenchmarkResultList()
    • setSingleBenchmarkResultList

      public void setSingleBenchmarkResultList(List<SingleBenchmarkResult> singleBenchmarkResultList)
    • getEntityCount

      public Long getEntityCount()
    • getVariableCount

      public Long getVariableCount()
    • getMaximumValueCount

      public Long getMaximumValueCount()
    • getFormattedProblemScale

      public String getFormattedProblemScale()
    • getProblemScale

      public Long getProblemScale()
      Returns the fixed-point long of the problem scale log
    • getInputSolutionLoadingTimeMillisSpent

      public Long getInputSolutionLoadingTimeMillisSpent()
    • getMaximumSubSingleCount

      public Integer getMaximumSubSingleCount()
    • getAverageUsedMemoryAfterInputSolution

      public Long getAverageUsedMemoryAfterInputSolution()
    • getFailureCount

      public Integer getFailureCount()
    • getWinningSingleBenchmarkResult

      public SingleBenchmarkResult getWinningSingleBenchmarkResult()
    • getWorstSingleBenchmarkResult

      public SingleBenchmarkResult getWorstSingleBenchmarkResult()
    • getWorstScoreCalculationSpeed

      public Long getWorstScoreCalculationSpeed()
    • getAnchorId

      public String getAnchorId()
    • findScoreLevelLabel

      public String findScoreLevelLabel(int scoreLevel)
    • getBenchmarkReportDirectory

      public File getBenchmarkReportDirectory()
    • hasAnyFailure

      public boolean hasAnyFailure()
    • hasAnySuccess

      public boolean hasAnySuccess()
    • hasAnyStatistic

      public boolean hasAnyStatistic()
    • hasProblemStatisticType

      public boolean hasProblemStatisticType(ProblemStatisticType problemStatisticType)
    • extractSingleStatisticTypeList

      public Collection<SingleStatisticType> extractSingleStatisticTypeList()
    • extractPureSubSingleStatisticList

      public List<ai.timefold.solver.benchmark.impl.statistic.PureSubSingleStatistic> extractPureSubSingleStatisticList(SingleStatisticType singleStatisticType)
    • getProblemReportDirectoryName

      public String getProblemReportDirectoryName()
    • getProblemReportDirectory

      public File getProblemReportDirectory()
    • makeDirs

      public void makeDirs()
    • getTotalSubSingleCount

      public int getTotalSubSingleCount()
    • readProblem

      public Solution_ readProblem()
    • writeSolution

      public void writeSolution(SubSingleBenchmarkResult subSingleBenchmarkResult, Solution_ solution)
    • accumulateResults

      public void accumulateResults(BenchmarkReport benchmarkReport)
    • registerProblemSizeStatistics

      public void registerProblemSizeStatistics(ai.timefold.solver.core.api.solver.ProblemSizeStatistics problemSizeStatistics)
      HACK to avoid loading the problem just to extract its problemScale. Called multiple times, for every SingleBenchmarkResult of this ProblemBenchmarkResult.
      Parameters:
      problemSizeStatistics - never null
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
      Parameters:
      other - sometimes null
      Returns:
      true if equal
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • createMergeMap

      protected static <Solution_> Map<ProblemBenchmarkResult, ProblemBenchmarkResult> createMergeMap(PlannerBenchmarkResult newPlannerBenchmarkResult, List<SingleBenchmarkResult> singleBenchmarkResultList)
    • toString

      public String toString()
      Overrides:
      toString in class Object