pub struct Team<S, A>where
S: Solution,
A: AgentMethods<S>,{ /* private fields */ }
Expand description
This is the Team construct, which contains a set of Agents
Trait Implementations§
Source§impl<S, A> TeamMethods<S, A> for Team<S, A>where
S: Solution,
A: AgentMethods<S>,
impl<S, A> TeamMethods<S, A> for Team<S, A>where
S: Solution,
A: AgentMethods<S>,
Source§fn new(parameters: Parameters) -> Self
fn new(parameters: Parameters) -> Self
This generates a new team
Source§fn get_best_solution_so_far(&mut self) -> S
fn get_best_solution_so_far(&mut self) -> S
This pulls out the best solution from the team
Source§fn communicate(&mut self)
fn communicate(&mut self)
Tell the team to talk
Auto Trait Implementations§
impl<S, A> Freeze for Team<S, A>
impl<S, A> RefUnwindSafe for Team<S, A>where
S: RefUnwindSafe,
A: RefUnwindSafe,
impl<S, A> Send for Team<S, A>
impl<S, A> Sync for Team<S, A>
impl<S, A> Unpin for Team<S, A>
impl<S, A> UnwindSafe for Team<S, A>where
S: UnwindSafe,
A: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more