Enum argmin::sa::SATempFunc [] [src]

pub enum SATempFunc {
    TemperatureFast,
    Boltzmann,
    Exponential(f64),
    Custom,
}

Definition of build in temperature functions for Simulated Annealing.

Given the initial temperature t_init and the iteration number i, the current temperature t_i is given as follows:

SATempFunc::TemperatureFast: t_i = t_init / i SATempFunc::Boltzmann: t_i = t_init / ln(i) SATempFunc::Exponential: t_i = t_init * 0.95^i SATempFunc::Custom: User provided temperature update function which has to implement the function signature &Fn(init_temp: f64, iteration_number: u64) -> f64. See SimulatedAnnealing::custom_temp_func() for details on how to provide a custom temperature update function.

Variants

t_i = t_init / i

t_i = t_init / ln(i)

t_i = t_init * x^i

User-provided temperature function. See SimulatedAnnealing::custom_temp_func() for details.