Function metaheuristics::simulated_annealing::solve
[−]
[src]
pub fn solve<T>(problem: &mut Metaheuristics<T>, runtime: Duration) -> T
Returns an approximate solution to your optimisation problem using Simulated Annealing
let solution = metaheuristics::simulated_annealing::solve(&mut problem, runtime);
problem
is the type that implements the Metaheuristics
trait.
runtime
is a time::Duration
specifying how long to spend searching for a solution.