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§
sourcetype Context: HeuristicContext<Objective = Self::Objective, Solution = Self::Solution>
type Context: HeuristicContext<Objective = Self::Objective, Solution = Self::Solution>
A heuristic context type.
sourcetype Objective: HeuristicObjective<Solution = Self::Solution>
type Objective: HeuristicObjective<Solution = Self::Solution>
A heuristic objective type.
sourcetype Solution: HeuristicSolution
type Solution: HeuristicSolution
A solution type.
Required Methods§
sourcefn pre_process(&self, context: Self::Context) -> Self::Context
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.