[][src]Trait optlib::AgentsState

pub trait AgentsState<T>: AlgorithmState<T> {
    type Agent: Agent<T>;
    fn get_agents(&self) -> Vec<&Self::Agent>;
}

The trait for algotithms where use agents (genetic algorithm, partical swarm algorithm etc).

T - type of a point in search space for goal function.

Associated Types

type Agent: Agent<T>

Loading content...

Required methods

fn get_agents(&self) -> Vec<&Self::Agent>

Returns vector with references to all agents

Loading content...

Implementors

impl<T: Clone + Debug> AgentsState<Vec<T>> for Swarm<T>[src]

type Agent = Particle<T>

fn get_agents(&self) -> Vec<&Self::Agent>[src]

Returns vector with references to all agents

Loading content...