pub trait ObjectiveFunction {
// Required method
fn evaluate(&self, parameters: &[f64]) -> f64;
}Expand description
ObjectiveFunction: A trait for objective functions that can be optimized. It has a methodevaluatethat takes a vector of parameters and returns a single scalar value of the objective function at those parameters.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".