mop_solver/lib.rs
1
2pub trait Solver<N, R, V> {
3
4 fn best_result_objs(&self) -> &[N];
5
6
7 fn best_result_objs_avg(&self) -> N;
8
9 /// Do solving work after stoping criteria verification.
10 fn do_work_after(&mut self);
11
12 /// Do solving work before stoping criteria verification.
13 fn do_work_before(&mut self);
14
15
16 fn initialize(&mut self) {}
17
18
19 fn into_result(self) -> R;
20
21
22 fn terminate(&mut self) {}
23}