Struct cisat::Cohort[][src]

pub struct Cohort<T> {
    parameters: Parameters,
    team_list: Vec<Team<T>>,
}

This is the Cohort class, a container for multiple teams

Fields

parameters: Parameters

This contains the parameters for the class

team_list: Vec<Team<T>>

This contains the teams in the cohort

Implementations

impl<T: Clone + Solution<T>> Cohort<T>[src]

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

This generates a new cohort

pub fn solve(&mut self)[src]

This runs the cohort

pub fn iterate(&mut self)[src]

This runs a single iteration

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

Get the current best solution

Trait Implementations

impl<T: Clone> Clone for Cohort<T>[src]

impl<T: Debug> Debug for Cohort<T>[src]

Auto Trait Implementations

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

impl<T> Send for Cohort<T> where
    T: Send
[src]

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

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

impl<T> UnwindSafe for Cohort<T> where
    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> 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>,