ExponentialCoolingSchedule

constructor(initialTemperature: Double, coolingRate: Double = defaultCoolingRate)(source)

Creates an exponential cooling schedule with the provided initial temperature and cooling rate.

Parameters

initialTemperature

The starting temperature for the cooling schedule. Must be positive.

coolingRate

The rate at which the temperature decreases in each iteration. Defaults to 0.95. Must be a value between 0.0 (exclusive) and 1.0 (exclusive).


constructor(initialTemperature: Double, stoppingTemperature: Double = defaultStoppingTemperature, maxIterations: Int = defaultMaxNumberIterations)(source)

Secondary constructor that dynamically calculates the optimal cooling rate based on the desired initial temperature, stopping temperature, and max iterations.

Parameters

initialTemperature

The starting temperature for the cooling schedule.

stoppingTemperature

The desired temperature at the final iteration.

maxIterations

The total number of iterations to reach the stopping temperature.