Enum argmin::solver::simulatedannealing::SATempFunc [−][src]
pub enum SATempFunc<F> { TemperatureFast, Boltzmann, Exponential(F), }
Expand description
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
Variants
t_i = t_init / i
t_i = t_init / ln(i)
t_i = t_init * x^i
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl<F> RefUnwindSafe for SATempFunc<F> where
F: RefUnwindSafe,
impl<F> Send for SATempFunc<F> where
F: Send,
impl<F> Sync for SATempFunc<F> where
F: Sync,
impl<F> Unpin for SATempFunc<F> where
F: Unpin,
impl<F> UnwindSafe for SATempFunc<F> where
F: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V