[][src]Trait optlib::AlgorithmWithAgents

pub trait AlgorithmWithAgents<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> AlgorithmWithAgents<T> for GeneticOptimizer<T>[src]

type Agent = Individual<T>

Loading content...