pub enum PopulationType {
    Greedy {
        selection_size: Option<usize>,
    },
    Elitism {
        max_size: Option<usize>,
        selection_size: Option<usize>,
    },
    Rosomaxa {
        selection_size: Option<usize>,
        max_elite_size: Option<usize>,
        max_node_size: Option<usize>,
        spread_factor: Option<f64>,
        distribution_factor: Option<f64>,
        objective_reshuffling: Option<f64>,
        learning_rate: Option<f64>,
        rebalance_memory: Option<usize>,
        exploration_ratio: Option<f64>,
    },
}

Variants

Greedy

Fields

selection_size: Option<usize>

Selection size. Default is number of cpus.

A greedy population keeps track only of one best-known individual.

Elitism

Fields

max_size: Option<usize>

Max population size. Default is 4.

selection_size: Option<usize>

Selection size. Default is number of cpus.

A basic population which sorts individuals based on their dominance order.

Rosomaxa

Fields

selection_size: Option<usize>

Selection size. Default is number of cpus.

max_elite_size: Option<usize>

Elite population size. Default is 2.

max_node_size: Option<usize>

Node population size. Default is 4.

spread_factor: Option<f64>

Spread factor. Default is 0.75.

distribution_factor: Option<f64>

Distribution factor. Default is 0.75.

objective_reshuffling: Option<f64>

Objective reshuffling. Default is 0.01.

learning_rate: Option<f64>

Learning rate. Default is 0.1.

rebalance_memory: Option<usize>

A rebalance memory. Default is 100.

exploration_ratio: Option<f64>

An exploration phase ratio. Default is 0.9.

A population algorithm based on SOM.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.