pub struct RefinementContext {
    pub problem: Arc<Problem>,
    pub environment: Arc<Environment>,
    pub state: HashMap<String, Box<dyn Any + Sync + Send>>,
    /* private fields */
}
Expand description

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

Fields

problem: Arc<Problem>

Original problem definition.

environment: Arc<Environment>

An environmental context.

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

A collection of data associated with refinement process.

Implementations

Creates a new instance of RefinementContext.

Adds solution to population.

Trait Implementations

A heuristic objective function type.

A heuristic solution type.

Returns objective function used by the population.

Returns current population.

Returns current statistic used to track the search progress.

Returns environment.

Updates population with initial solution.

Updates population with a new offspring.

Returns final population and telemetry metrics

A key type.

Saves state using given key.

Tries to get state using given key.

Gets state as mutable, inserts if not exists.

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