pub trait HeuristicContextProcessing {
    type Context: HeuristicContext<Objective = Self::Objective, Solution = Self::Solution>;
    type Objective: HeuristicObjective<Solution = Self::Solution>;
    type Solution: HeuristicSolution;

    // Required method
    fn pre_process(&self, context: Self::Context) -> Self::Context;
}
Expand description

Provides the way to preprocess context before using it.

Required Associated Types§

source

type Context: HeuristicContext<Objective = Self::Objective, Solution = Self::Solution>

A heuristic context type.

source

type Objective: HeuristicObjective<Solution = Self::Solution>

A heuristic objective type.

source

type Solution: HeuristicSolution

A solution type.

Required Methods§

source

fn pre_process(&self, context: Self::Context) -> Self::Context

Preprocess a context in order to replace usages of a given context with a new one.

Implementors§