pub trait BenchmarkFunction: Send + Sync {
// Required methods
fn name(&self) -> &'static str;
fn dimension(&self) -> usize;
fn bounds(&self) -> (f64, f64);
fn optimal_fitness(&self) -> f64;
fn optimal_solution(&self) -> Option<Vec<f64>>;
fn evaluate_raw(&self, x: &[f64]) -> f64;
}Expand description
Trait for benchmark functions
Required Methods§
Sourcefn optimal_fitness(&self) -> f64
fn optimal_fitness(&self) -> f64
Optimal (minimum) fitness value
Sourcefn optimal_solution(&self) -> Option<Vec<f64>>
fn optimal_solution(&self) -> Option<Vec<f64>>
Optimal solution (if known)
Sourcefn evaluate_raw(&self, x: &[f64]) -> f64
fn evaluate_raw(&self, x: &[f64]) -> f64
Evaluate the function (returns value to be MINIMIZED)