pub trait AgentsState<T>: AlgorithmState<T> {
type Agent: Agent<T>;
// Required method
fn get_agents(&self) -> Vec<&Self::Agent>;
}Expand description
The trait for algotithms where use agents (genetic algorithm, partical swarm algorithm etc).
T - type of a point in search space for goal function.
Required Associated Types§
Required Methods§
Sourcefn get_agents(&self) -> Vec<&Self::Agent>
fn get_agents(&self) -> Vec<&Self::Agent>
Returns vector with references to all agents