LogarithmicCoolingSchedule

Implements a logarithmic cooling schedule for optimization algorithms such as simulated annealing. The temperature decreases proportionally to the inverse of the natural logarithm of the iteration number.

Parameters

initialTemperature

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

Throws

if the provided initial temperature is not positive.

Constructors

Link copied to clipboard
constructor(initialTemperature: Double)

Creates a logarithmic cooling schedule with the specified initial temperature.

Properties

Link copied to clipboard
open override var initialTemperature: Double

Functions

Link copied to clipboard
open override fun nextTemperature(iteration: Int): Double

Computes the next temperature value based on the given iteration. This method is typically used in optimization algorithms to manage the cooling schedule of a process.