FitnessEvaluator

Trait FitnessEvaluator 

Source
pub trait FitnessEvaluator {
    // Required method
    fn evaluate(&self, code: &Vec<u8>) -> f64;
}
Expand description

Defines the evaluation heuristic for the current simulation.

Required Methods§

Source

fn evaluate(&self, code: &Vec<u8>) -> f64

Evaluate the provided genetic code, return a score.

Higher = better.

Implementors§