pub trait AlgorithmState<T> {
// Required methods
fn get_best_solution(&self) -> Option<(T, f64)>;
fn get_iteration(&self) -> usize;
}
Expand description
The trait for a struct with information about current algorithm state. For example: population for genetic algorithm, swarm for particle swarm algorithm etc
T
- type of a point in search space for goal function.