Trait ew::Agent[][src]

pub trait Agent<T> {
    fn get_parameter(&self) -> &T;
fn get_goal(&self) -> f64; }

The trait for single point in search space. The trait used with AlgorithmWithAgents.

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

Required methods

fn get_parameter(&self) -> &T[src]

Returns parameter (point in search space) of the agent.

fn get_goal(&self) -> f64[src]

Returns value of a goal function for current agent.

Loading content...

Implementors

impl<T> Agent<Vec<T, Global>> for Particle<T>[src]

impl<T> Agent<T> for Individual<T>[src]

Loading content...