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: Array1<f64>,
    pub fitness: Array1<f64>,
    pub pool: Array2<f64>,
    pub func: F,
    // some fields omitted
}
Expand description

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

Fields

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

Implementations

Get fitness from individual i.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.