[][src]Trait optlib::Goal

pub trait Goal<T> {
    fn get(&mut self, x: &T) -> f64;
}

The trait for the goal function.

Required methods

fn get(&mut self, x: &T) -> f64

Must return value of goal function for the point in the search space (x).

Loading content...

Implementors

impl<'a, T> Goal<T> for GoalCalcStatistics<'a, T>[src]

impl<T> Goal<T> for GoalFromFunction<T>[src]

Loading content...