Solver

Trait Solver 

Source
pub trait Solver<N, R, V> {
    // Required methods
    fn best_result_objs(&self) -> &[N];
    fn best_result_objs_avg(&self) -> N;
    fn do_work_after(&mut self);
    fn do_work_before(&mut self);
    fn into_result(self) -> R;

    // Provided methods
    fn initialize(&mut self) { ... }
    fn terminate(&mut self) { ... }
}

Required Methods§

Source

fn best_result_objs(&self) -> &[N]

Source

fn best_result_objs_avg(&self) -> N

Source

fn do_work_after(&mut self)

Do solving work after stoping criteria verification.

Source

fn do_work_before(&mut self)

Do solving work before stoping criteria verification.

Source

fn into_result(self) -> R

Provided Methods§

Source

fn initialize(&mut self)

Source

fn terminate(&mut self)

Implementors§