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§

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 heuristic solution type.

Required Methods§

source

fn search( &self, heuristic_ctx: &Self::Context, solution: &Self::Solution ) -> Self::Solution

Performs search for a new (better) solution using given one.

Implementors§