Struct differential_evolution::Population [] [src]

pub struct Population<F, R> where F: Fn(&[f32]) -> f32, R: Rng {
    // some fields omitted
}

Holds the population for the differential evolution based on the given settings.

Methods

impl<F, R> Population<F, R> where F: Fn(&[f32]) -> f32, R: Rng
[src]

Creates a new population based on the given settings.

Gets a tuple of the best cost and best position found so far.

Gets the total number of times the cost function has been evaluated.

Performs a single cost evaluation, and updates best positions and evolves the population if the whole population has been evaluated. Returns the cost value of the current best solution found.

Gets an iterator for this population. Each call to next() performs one cost evaluation.