pub trait ObjectiveFunction {
// Required methods
fn evaluate(&self, x: &Array1<f64>) -> f64;
fn dimensions(&self) -> usize;
fn bounds(&self) -> (Vec<f64>, Vec<f64>);
}Expand description
Trait for objective functions to be optimized
Required Methods§
Sourcefn dimensions(&self) -> usize
fn dimensions(&self) -> usize
Get the number of dimensions of the problem