pub trait LocalSearch<P, C>:
Debug
+ Send
+ Sync{
// Required method
fn search(&self, phenotype: &mut P, challenge: &C) -> bool;
}Expand description
A trait for local search algorithms.
Local search algorithms improve solutions by exploring their neighborhood and moving to better solutions. They are often used in combination with genetic algorithms to refine solutions.