Module org.maxicp
Package org.maxicp.search.blackbox
Record Class BlackBoxSearch.RestartPhaseOptions
java.lang.Object
java.lang.Record
org.maxicp.search.blackbox.BlackBoxSearch.RestartPhaseOptions
- Enclosing class:
BlackBoxSearch
public static record BlackBoxSearch.RestartPhaseOptions(int baseFailureLimit, double randomSwapProbability, long randomSeed)
extends Record
Configuration for restart-based feasibility phase.
-
Constructor Summary
ConstructorsConstructorDescriptionRestartPhaseOptions(int baseFailureLimit, double randomSwapProbability, long randomSeed) Creates an instance of aRestartPhaseOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebaseFailureLimitrecord component.defaults()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of therandomSeedrecord component.doubleReturns the value of therandomSwapProbabilityrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RestartPhaseOptions
public RestartPhaseOptions(int baseFailureLimit, double randomSwapProbability, long randomSeed) Creates an instance of aRestartPhaseOptionsrecord class.- Parameters:
baseFailureLimit- the value for thebaseFailureLimitrecord componentrandomSwapProbability- the value for therandomSwapProbabilityrecord componentrandomSeed- the value for therandomSeedrecord component
-
-
Method Details
-
defaults
-
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 '=='. -
baseFailureLimit
public int baseFailureLimit()Returns the value of thebaseFailureLimitrecord component.- Returns:
- the value of the
baseFailureLimitrecord component
-
randomSwapProbability
public double randomSwapProbability()Returns the value of therandomSwapProbabilityrecord component.- Returns:
- the value of the
randomSwapProbabilityrecord component
-
randomSeed
public long randomSeed()Returns the value of therandomSeedrecord component.- Returns:
- the value of the
randomSeedrecord component
-