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

pub enum MutationType {
    Decomposition {
        routes: MinMaxConfig,
        repeat: usize,
        probability: MutationProbabilityType,
    },
    LocalSearch {
        probability: MutationProbabilityType,
        times: MinMaxConfig,
        operators: Vec<LocalOperatorType>,
    },
    RuinRecreate {
        probability: MutationProbabilityType,
        ruins: Vec<RuinGroupConfig>,
        recreates: Vec<RecreateMethod>,
    },
}
Expand description

A mutation operator configuration.

Variants

Decomposition

A metaheuristic which splits problem into smaller and solves them independently.

Fields of Decomposition

routes: MinMaxConfig

Max routes to be selected in decomposed solution.

repeat: usize

Amount of attempts to repeat refinement.

probability: MutationProbabilityType

Probability of mutation.

LocalSearch

A local search heuristic.

Fields of LocalSearch

probability: MutationProbabilityType

Probability of mutation.

times: MinMaxConfig

Amount of times one of operators is applied.

operators: Vec<LocalOperatorType>

Local search operator.

RuinRecreate

A ruin and recreate metaheuristic settings.

Fields of RuinRecreate

probability: MutationProbabilityType

Probability.

ruins: Vec<RuinGroupConfig>

Ruin methods.

recreates: Vec<RecreateMethod>

Recreate methods.

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.