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 Summary
ConstructorsConstructorDescriptionProblemSizeStatistics(long entityCount, long variableCount, long approximateValueCount, double approximateProblemSizeLog) Creates an instance of aProblemSizeStatisticsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturn theapproximateProblemSizeLogas a fixed point integer.doubleReturns the value of theapproximateProblemSizeLogrecord component.longReturns the value of theapproximateValueCountrecord component.longReturns the value of theentityCountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.longReturns the value of thevariableCountrecord component.
-
Constructor Details
-
ProblemSizeStatistics
public ProblemSizeStatistics(long entityCount, long variableCount, long approximateValueCount, double approximateProblemSizeLog) Creates an instance of aProblemSizeStatisticsrecord class.- Parameters:
entityCount- the value for theentityCountrecord componentvariableCount- the value for thevariableCountrecord componentapproximateValueCount- the value for theapproximateValueCountrecord componentapproximateProblemSizeLog- the value for theapproximateProblemSizeLogrecord component
-
-
Method Details
-
approximateProblemScaleLogAsFixedPointLong
public long approximateProblemScaleLogAsFixedPointLong()Return theapproximateProblemSizeLogas a fixed point integer. -
approximateProblemScaleAsFormattedString
-
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. -
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. -
equals
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 '=='. -
entityCount
public long entityCount()Returns the value of theentityCountrecord component.- Returns:
- the value of the
entityCountrecord component
-
variableCount
public long variableCount()Returns the value of thevariableCountrecord component.- Returns:
- the value of the
variableCountrecord component
-
approximateValueCount
public long approximateValueCount()Returns the value of theapproximateValueCountrecord component.- Returns:
- the value of the
approximateValueCountrecord component
-
approximateProblemSizeLog
public double approximateProblemSizeLog()Returns the value of theapproximateProblemSizeLogrecord component.- Returns:
- the value of the
approximateProblemSizeLogrecord component
-