pub trait HeuristicSolution: Send + Sync {
    // Required methods
    fn fitness<'a>(&'a self) -> Box<dyn Iterator<Item = f64> + 'a>;
    fn deep_copy(&self) -> Self;
}
Expand description

Represents solution in population defined as actual solution.

Required Methods§

source

fn fitness<'a>(&'a self) -> Box<dyn Iterator<Item = f64> + 'a>

Get fitness values of a given solution.

source

fn deep_copy(&self) -> Self

Creates a deep copy of the solution.

Object Safety§

This trait is not object safe.

Implementors§