Struct vrp_core::solver::RefinementContext[][src]

pub struct RefinementContext {
    pub problem: Arc<Problem>,
    pub population: Box<dyn Population + Sync + Send>,
    pub state: HashMap<String, Box<dyn Any + Sync + Send>>,
    pub quota: Option<Arc<dyn Quota + Send + Sync>>,
    pub environment: Arc<Environment>,
    pub statistics: Statistics,
}
Expand description

A type which encapsulates information needed to perform solution refinement process.

Fields

problem: Arc<Problem>

Original problem definition.

population: Box<dyn Population + Sync + Send>

A population which tracks best discovered solutions.

state: HashMap<String, Box<dyn Any + Sync + Send>>

A collection of data associated with refinement process.

quota: Option<Arc<dyn Quota + Send + Sync>>

A quota for refinement process.

environment: Arc<Environment>

An environmental context.

statistics: Statistics

A refinement statistics.

Implementations

Creates a new instance of RefinementContext.

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