Trait cisat::AgentMethods[][src]

pub trait AgentMethods<S: Solution>: Send {
    fn new(parameters: Parameters) -> Self;
fn iterate(&mut self);
fn get_best_solution_so_far(&mut self) -> S; }

This is a trait for implementing new agents

Required methods

fn new(parameters: Parameters) -> Self[src]

Generates a new agent

fn iterate(&mut self)[src]

Iterates on the solution

fn get_best_solution_so_far(&mut self) -> S[src]

Gets the best solution found by the agent so far

Loading content...

Implementors

impl<S: Solution> AgentMethods<S> for Agent<S>[src]

Loading content...