[][src]Trait optlib::AlgorithmState

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

fn get_best_solution(&self) -> Option<(T, f64)>

fn get_iteration(&self) -> usize

Loading content...

Implementors

impl<'a, T: Clone> AlgorithmState<T> for Population<'a, T>[src]

impl<T: Clone> AlgorithmState<Vec<T>> for Swarm<T>[src]

Loading content...