[][src]Trait optlib::genetic::Goal

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

The trait to calculate goal function.

T - type of a point in the search space for goal function (chromosomes).

Required methods

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

Must return value of goal function for chromosomes point in the search space.

Loading content...

Implementors

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

Loading content...