[][src]Enum vrp_cli::extensions::solve::config::PopulationType

pub enum PopulationType {
    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>,
        reduction_factor: Option<f64>,
        distribution_factor: Option<f64>,
        learning_rate: Option<f64>,
        rebalance_memory: Option<usize>,
        rebalance_count: Option<usize>,
        exploration_ratio: Option<f64>,
    },
}

Variants

Elitism

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

Fields of Elitism

max_size: Option<usize>

Max population size. Default is 4.

selection_size: Option<usize>

Selection size. Default is number of cpus.

Rosomaxa

A population algorithm based on SOM.

Fields of Rosomaxa

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 2.

spread_factor: Option<f64>

Spread factor. Default is 0.25.

reduction_factor: Option<f64>

The reduction factor. Default is 0.1.

distribution_factor: Option<f64>

Distribution factor. Default is 0.25.

learning_rate: Option<f64>

Learning rate. Default is 0.1.

rebalance_memory: Option<usize>

A rebalance memory. Default is 500.

rebalance_count: Option<usize>

A rebalance count. Default is 10.

exploration_ratio: Option<f64>

An exploration phase ratio. Default is 0.9.

Trait Implementations

impl Clone for PopulationType[src]

impl Debug for PopulationType[src]

impl<'de> Deserialize<'de> for PopulationType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,