Trait rosomaxa::hyper::HeuristicSearchOperator
source · pub trait HeuristicSearchOperator {
type Context: HeuristicContext<Objective = Self::Objective, Solution = Self::Solution>;
type Objective: HeuristicObjective<Solution = Self::Solution>;
type Solution: HeuristicSolution;
// Required method
fn search(
&self,
heuristic_ctx: &Self::Context,
solution: &Self::Solution
) -> Self::Solution;
}
Expand description
A heuristic operator which is supposed to improve passed solution.
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 heuristic solution type.