pub trait SingleObjective {
const MINIMUM: f64;
// Required methods
fn f(x: Vec<f64>) -> f64;
fn minimizer(n: usize) -> Vec<f64>;
// Provided method
fn check_minimizer(d: usize) { ... }
}Expand description
This is a trait that ensures consistent implementation of single objective benchmark functions
Required Associated Constants§
Required Methods§
Provided Methods§
Sourcefn check_minimizer(d: usize)
fn check_minimizer(d: usize)
This function is used for testing, and checks the correctness of the minimizer
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.