Package edu.cnu.mdi.sim.simanneal
Record Class InitialTemperature
java.lang.Object
java.lang.Record
edu.cnu.mdi.sim.simanneal.InitialTemperature
- Record Components:
T0- positive absolute initial temperatureenergyMedian- median energy in the heuristic's sampleenergyMad- median absolute deviation of sampled energiessamples- number of solutions sampled
public record InitialTemperature(double T0, double energyMedian, double energyMad, int samples)
extends Record
Result of estimating the initial annealing temperature.
-
Constructor Summary
ConstructorsConstructorDescriptionInitialTemperature(double T0, double energyMedian, double energyMad, int samples) Creates an instance of aInitialTemperaturerecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theenergyMadrecord component.doubleReturns the value of theenergyMedianrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intsamples()Returns the value of thesamplesrecord component.doubleT0()Returns the value of theT0record component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InitialTemperature
public InitialTemperature(double T0, double energyMedian, double energyMad, int samples) Creates an instance of aInitialTemperaturerecord class.- Parameters:
T0- the value for theT0record componentenergyMedian- the value for theenergyMedianrecord componentenergyMad- the value for theenergyMadrecord componentsamples- the value for thesamplesrecord component
-
-
Method Details
-
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 '=='. -
T0
public double T0()Returns the value of theT0record component.- Returns:
- the value of the
T0record component
-
energyMedian
public double energyMedian()Returns the value of theenergyMedianrecord component.- Returns:
- the value of the
energyMedianrecord component
-
energyMad
public double energyMad()Returns the value of theenergyMadrecord component.- Returns:
- the value of the
energyMadrecord component
-
samples
public int samples()Returns the value of thesamplesrecord component.- Returns:
- the value of the
samplesrecord component
-