Skip to main content

anneal_accept

Function anneal_accept 

Source
pub fn anneal_accept(delta: f32, temperature: f32, rand01: f32) -> bool
Expand description

Simulated-annealing acceptance: accept a move with energy change delta at temperature with probability 1 if improving (delta <= 0), else exp(-delta/T). rand01 ∈ [0,1).