Record Class ProblemSizeStatistics

java.lang.Object
java.lang.Record
ai.timefold.solver.core.api.solver.ProblemSizeStatistics
Record Components:
entityCount - The number of genuine entities defined by the problem.
variableCount - The number of genuine variables defined by the problem.
approximateValueCount - The estimated number of values defined by the problem. Can be larger than the actual value count.
approximateProblemSizeLog - The estimated log_10 of the problem's search space size.

public record ProblemSizeStatistics(long entityCount, long variableCount, long approximateValueCount, double approximateProblemSizeLog) extends Record
The statistics of a given problem submitted to a Solver.
  • Constructor Details

    • ProblemSizeStatistics

      public ProblemSizeStatistics(long entityCount, long variableCount, long approximateValueCount, double approximateProblemSizeLog)
      Creates an instance of a ProblemSizeStatistics record class.
      Parameters:
      entityCount - the value for the entityCount record component
      variableCount - the value for the variableCount record component
      approximateValueCount - the value for the approximateValueCount record component
      approximateProblemSizeLog - the value for the approximateProblemSizeLog record component
  • Method Details

    • approximateProblemScaleLogAsFixedPointLong

      public long approximateProblemScaleLogAsFixedPointLong()
      Return the approximateProblemSizeLog as a fixed point integer.
    • approximateProblemScaleAsFormattedString

      public String approximateProblemScaleAsFormattedString()
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • entityCount

      public long entityCount()
      Returns the value of the entityCount record component.
      Returns:
      the value of the entityCount record component
    • variableCount

      public long variableCount()
      Returns the value of the variableCount record component.
      Returns:
      the value of the variableCount record component
    • approximateValueCount

      public long approximateValueCount()
      Returns the value of the approximateValueCount record component.
      Returns:
      the value of the approximateValueCount record component
    • approximateProblemSizeLog

      public double approximateProblemSizeLog()
      Returns the value of the approximateProblemSizeLog record component.
      Returns:
      the value of the approximateProblemSizeLog record component