Type Alias metaheuristics_nature::methods::fa::Method

source ·
pub type Method = Fa;
Expand description

Algorithm of the Firefly Algorithm.

Aliased Type§

struct Method {
    pub alpha: f64,
    pub beta_min: f64,
    pub gamma: f64,
}

Fields§

§alpha: f64

Alpha factor

§beta_min: f64

Min beta value

§gamma: f64

Gamma factor

Trait Implementations§

source§

impl<F: ObjFunc> Algorithm<F> for Method

source§

fn generation(&mut self, ctx: &mut Ctx<F>, rng: &mut Rng)

Processing implementation of each generation.
source§

fn init(&mut self, ctx: &mut Ctx<F>, rng: &mut Rng)

Initialization implementation. Read more