pub enum Schedule<F: Float> {
Logarithmic,
Exponential {
gamma: F,
},
Fast,
Custom {
f: fn(k: usize, t: F, t_0: F) -> F,
},
}
Expand description
Annealing schedule
Variants
Logarithmic
Logarithmic:
$ t^{(k)} = t^{(1)} \ln(2) / \ln(k + 1) $
Exponential
Exponential:
$ t^{(k+1)} = \gamma t^{(k)} \; \text{for} \; \gamma \in (0, 1) $
Fast
Fast:
$ t^{(k)} = t^{(1)} / k $
Custom
Custom: choose your own!
Implementations
Auto Trait Implementations
impl<F> RefUnwindSafe for Schedule<F> where
F: RefUnwindSafe,
impl<F> Send for Schedule<F> where
F: Send,
impl<F> Sync for Schedule<F> where
F: Sync,
impl<F> Unpin for Schedule<F> where
F: Unpin,
impl<F> UnwindSafe for Schedule<F> where
F: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more