Struct metaheuristics_nature::AlgorithmBase[][src]

pub struct AlgorithmBase<F: ObjFunc> {
    pub pop_num: usize,
    pub dim: usize,
    pub gen: u32,
    pub task: Task,
    pub best_f: f64,
    pub best: Vec<f64>,
    pub fitness: Vec<f64>,
    pub pool: Vec<Vec<f64>>,
    pub func: F,
    // some fields omitted
}

The base class of algorithms. Please see Algorithm for more information.

Fields

pop_num: usizedim: usizegen: u32task: Taskbest_f: f64best: Vec<f64>fitness: Vec<f64>pool: Vec<Vec<f64>>func: F

Implementations

impl<F: ObjFunc> AlgorithmBase<F>[src]

pub fn new(func: F, settings: Setting) -> Self[src]

Auto Trait Implementations

impl<F> RefUnwindSafe for AlgorithmBase<F> where
    F: RefUnwindSafe

impl<F> Send for AlgorithmBase<F> where
    F: Send

impl<F> Sync for AlgorithmBase<F> where
    F: Sync

impl<F> Unpin for AlgorithmBase<F> where
    F: Unpin

impl<F> UnwindSafe for AlgorithmBase<F> where
    F: UnwindSafe

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, 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>,