Struct cisat::Cohort[][src]

pub struct Cohort<S, A = Agent<S>, T = Team<S, A>> where
    S: Solution,
    A: AgentMethods<S>,
    T: TeamMethods<S, A>, 
{ parameters: Parameters, team_list: Vec<T>, solution_type: PhantomData<S>, agent_type: PhantomData<A>, }

This is the Cohort class, a container for multiple teams

Fields

parameters: Parameters

This contains the parameters for the class

team_list: Vec<T>

This contains the teams in the cohort

solution_type: PhantomData<S>

Bookkeeping the solution type

agent_type: PhantomData<A>

Bookkeeping the agent-type

Implementations

impl<S, A, T> Cohort<S, A, T> where
    S: Solution,
    A: AgentMethods<S>,
    T: TeamMethods<S, A>, 
[src]

pub fn new(parameters: Parameters) -> Cohort<S, A, T>[src]

This generates a new cohort

pub fn solve(&mut self)[src]

This runs the cohort using parallelism

pub fn iterate(&mut self)[src]

This runs a single iteration

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

Get the current best solution

Trait Implementations

impl<S: Clone, A: Clone, T: Clone> Clone for Cohort<S, A, T> where
    S: Solution,
    A: AgentMethods<S>,
    T: TeamMethods<S, A>, 
[src]

impl<S: Debug, A: Debug, T: Debug> Debug for Cohort<S, A, T> where
    S: Solution,
    A: AgentMethods<S>,
    T: TeamMethods<S, A>, 
[src]

Auto Trait Implementations

impl<S, A, T> RefUnwindSafe for Cohort<S, A, T> where
    A: RefUnwindSafe,
    S: RefUnwindSafe,
    T: RefUnwindSafe
[src]

impl<S, A, T> Send for Cohort<S, A, T>[src]

impl<S, A, T> Sync for Cohort<S, A, T> where
    A: Sync,
    S: Sync,
    T: Sync
[src]

impl<S, A, T> Unpin for Cohort<S, A, T> where
    A: Unpin,
    S: Unpin,
    T: Unpin
[src]

impl<S, A, T> UnwindSafe for Cohort<S, A, T> where
    A: UnwindSafe,
    S: UnwindSafe,
    T: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,