[][src]Trait optlib::Agent

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

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

fn get_goal(&self) -> f64

Returns value of a goal function for current agent.

Loading content...

Implementors

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

Loading content...