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

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>,
        rebalance_count: Option<usize>,
        exploration_ratio: Option<f64>,
    },
}

Variants

Greedy

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

Fields of Greedy

selection_size: Option<usize>

Selection size. Default is number of cpus.

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.

distribution_factor: Option<f64>

Distribution factor. Default is 0.25.

objective_reshuffling: Option<f64>

Objective reshuffling. Default is 0.05.

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

exploration_ratio: Option<f64>

An exploration phase ratio. Default is 0.9.

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

Performs the conversion.

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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.