CoolingSchedule

abstract class CoolingSchedule(initialTemperature: Double) : CoolingScheduleIfc

Abstract base class for defining cooling schedules in optimization algorithms like simulated annealing. A cooling schedule manages the temperature reduction process as the algorithm iterates.

Parameters

initialTemperature

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

Throws

if the provided initial temperature is not positive.

Inheritors

Constructors

Link copied to clipboard
constructor(initialTemperature: Double)

Initializes the cooling schedule with the specified initial temperature.

Properties

Link copied to clipboard
open override var initialTemperature: Double

Functions

Link copied to clipboard
abstract 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.