Trait Goal
optlib
pub trait Goal<T> { fn get(&self, x: &T) -> f64; }
The trait for the goal function.
fn get(&self, x: &T) -> f64
Must return value of goal function for the point in the search space (x).
impl<T> Goal<T> for GoalFromFunction<T>