Record Class SolverTerminationConfig
java.lang.Object
java.lang.Record
ai.timefold.solver.service.definition.api.termination.SolverTerminationConfig
-
Constructor Summary
ConstructorsConstructorDescriptionSolverTerminationConfig(Duration spentLimit, Duration unimprovedSpentLimit) SolverTerminationConfig(Duration spentLimit, Duration unimprovedSpentLimit, Integer stepCountLimit) SolverTerminationConfig(Duration spentLimit, Duration unimprovedSpentLimit, Integer stepCountLimit, Duration slidingWindowDuration, Double minimumImprovementRatio) Creates an instance of aSolverTerminationConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theminimumImprovementRatiorecord component.override(SolverTerminationConfig configuration) Returns the value of theslidingWindowDurationrecord component.Returns the value of thespentLimitrecord component.Returns the value of thestepCountLimitrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theunimprovedSpentLimitrecord component.
-
Constructor Details
-
SolverTerminationConfig
public SolverTerminationConfig(Duration spentLimit, Duration unimprovedSpentLimit, Integer stepCountLimit, Duration slidingWindowDuration, Double minimumImprovementRatio) Creates an instance of aSolverTerminationConfigrecord class.- Parameters:
spentLimit- the value for thespentLimitrecord componentunimprovedSpentLimit- the value for theunimprovedSpentLimitrecord componentstepCountLimit- the value for thestepCountLimitrecord componentslidingWindowDuration- the value for theslidingWindowDurationrecord componentminimumImprovementRatio- the value for theminimumImprovementRatiorecord component
-
SolverTerminationConfig
-
SolverTerminationConfig
-
-
Method Details
-
override
-
toString
-
hashCode
-
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 withObjects::equals(Object,Object). -
spentLimit
Returns the value of thespentLimitrecord component.- Returns:
- the value of the
spentLimitrecord component
-
unimprovedSpentLimit
Returns the value of theunimprovedSpentLimitrecord component.- Returns:
- the value of the
unimprovedSpentLimitrecord component
-
stepCountLimit
Returns the value of thestepCountLimitrecord component.- Returns:
- the value of the
stepCountLimitrecord component
-
slidingWindowDuration
Returns the value of theslidingWindowDurationrecord component.- Returns:
- the value of the
slidingWindowDurationrecord component
-
minimumImprovementRatio
Returns the value of theminimumImprovementRatiorecord component.- Returns:
- the value of the
minimumImprovementRatiorecord component
-