TemperatureSpec

@Serializable
sealed class TemperatureSpec(source)

Strategy for choosing the initial temperature of a simulated-annealing solver.

Mirrors ksl.simopt.solvers.algorithms.TemperatureConfiguration. Two options are supported: a Fixed starting temperature, or AutoCalibrate that performs a brief random walk during initialization to estimate a temperature that yields the requested initial acceptance probability.

Inheritors

Constructors

Link copied to clipboard
protected constructor()

Types

Link copied to clipboard
@Serializable
@SerialName(value = "autoCalibrate")
data class AutoCalibrate(val targetProbability: Double = 0.8, val sampleSize: Int = 100) : TemperatureSpec

Estimate the initial temperature by random-walk calibration.

Link copied to clipboard
@Serializable
@SerialName(value = "fixed")
data class Fixed(val temperature: Double) : TemperatureSpec

Use a fixed starting temperature.