Trait cisat::TeamMethods[][src]

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

This is a trait for implementing new teams

Required methods

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

Generates a new agent

fn iterate(&mut self)[src]

Iterates on the solution

fn solve(&mut self)[src]

Solves all the way for a solution

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

Gets the best solution found by the team so far

Loading content...

Implementors

impl<S, A> TeamMethods<S, A> for Team<S, A> where
    S: Solution,
    A: AgentMethods<S>, 
[src]

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

This generates a new team

fn iterate(&mut self)[src]

This runs a single iteration

fn solve(&mut self)[src]

This runs a bunch of iterations to solve

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

This pulls out the best solution from the team

Loading content...