java.lang.Object
java.lang.Record
org.maxicp.search.blackbox.BlackBoxSearch.LnsPhaseOptions
- Enclosing class:
BlackBoxSearch
public static record BlackBoxSearch.LnsPhaseOptions(int failureLimitPerRestart, int freezeRatePercent, double randomSwapProbability, long randomSeed, BlackBoxSearch.FragmentSelectionStrategy fragmentSelectionStrategy)
extends Record
Configuration for LNS improvement phase.
-
Constructor Summary
ConstructorsConstructorDescriptionLnsPhaseOptions(int failureLimitPerRestart, int freezeRatePercent, double randomSwapProbability, long randomSeed) LnsPhaseOptions(int failureLimitPerRestart, int freezeRatePercent, double randomSwapProbability, long randomSeed, BlackBoxSearch.FragmentSelectionStrategy fragmentSelectionStrategy) Creates an instance of aLnsPhaseOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondefaults()final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefailureLimitPerRestartrecord component.Returns the value of thefragmentSelectionStrategyrecord component.intReturns the value of thefreezeRatePercentrecord component.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
-
LnsPhaseOptions
public LnsPhaseOptions(int failureLimitPerRestart, int freezeRatePercent, double randomSwapProbability, long randomSeed, BlackBoxSearch.FragmentSelectionStrategy fragmentSelectionStrategy) Creates an instance of aLnsPhaseOptionsrecord class.- Parameters:
failureLimitPerRestart- the value for thefailureLimitPerRestartrecord componentfreezeRatePercent- the value for thefreezeRatePercentrecord componentrandomSwapProbability- the value for therandomSwapProbabilityrecord componentrandomSeed- the value for therandomSeedrecord componentfragmentSelectionStrategy- the value for thefragmentSelectionStrategyrecord component
-
LnsPhaseOptions
public LnsPhaseOptions(int failureLimitPerRestart, int freezeRatePercent, double randomSwapProbability, long randomSeed)
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
failureLimitPerRestart
public int failureLimitPerRestart()Returns the value of thefailureLimitPerRestartrecord component.- Returns:
- the value of the
failureLimitPerRestartrecord component
-
freezeRatePercent
public int freezeRatePercent()Returns the value of thefreezeRatePercentrecord component.- Returns:
- the value of the
freezeRatePercentrecord 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
-
fragmentSelectionStrategy
Returns the value of thefragmentSelectionStrategyrecord component.- Returns:
- the value of the
fragmentSelectionStrategyrecord component
-