pub struct SimAnnealingParams { /* private fields */ }
Implementations
sourceimpl SimAnnealingParams
impl SimAnnealingParams
sourcepub fn new(
n_tries: usize,
iters: usize,
step_size: f64,
k: f64,
t_initial: f64,
mu_t: f64,
t_min: f64
) -> SimAnnealingParams
pub fn new(
n_tries: usize,
iters: usize,
step_size: f64,
k: f64,
t_initial: f64,
mu_t: f64,
t_min: f64
) -> SimAnnealingParams
These are the parameters that control a run of the simulated annealing algorithm. This structure contains all the information needed to control the search, beyond the energy function, the step function and the initial guess.
- n_tries: The number of points to try for each step.
- iters: The number of iterations at each temperature.
- step_size: The maximum step size in the random walk.
- k, t_initial, mu_t, t_min: The parameters of the Boltzmann distribution and cooling schedule.
Auto Trait Implementations
impl RefUnwindSafe for SimAnnealingParams
impl Send for SimAnnealingParams
impl Sync for SimAnnealingParams
impl Unpin for SimAnnealingParams
impl UnwindSafe for SimAnnealingParams
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