Trait metaheuristics_nature::AlgCfg

source ·
pub trait AlgCfg {
    type Algorithm<F: ObjFunc>: Algorithm<F> + 'static;

    // Required method
    fn algorithm<F: ObjFunc>(self) -> Self::Algorithm<F>;

    // Provided method
    fn pop_num() -> usize { ... }
}
Expand description

Algorithm configurations. A trait for preparing the algorithm.

The setting type is actually a builder of the AlgCfg::Algorithm type.

Please note that the setting should not overlap with the SolverBuilder.

Required Associated Types§

source

type Algorithm<F: ObjFunc>: Algorithm<F> + 'static

Associated algorithm.

Required Methods§

source

fn algorithm<F: ObjFunc>(self) -> Self::Algorithm<F>

Create the algorithm.

Provided Methods§

source

fn pop_num() -> usize

Default population number.

Object Safety§

This trait is not object safe.

Implementors§