Trait ew::AlgorithmState[][src]

pub trait AlgorithmState<T> {
    fn get_best_solution(&self) -> Option<(T, f64)>;
fn get_iteration(&self) -> usize; }

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.

Required methods

Loading content...

Implementors

Loading content...