Skip to main content

ObjectiveFunction

Trait ObjectiveFunction 

Source
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 method evaluate that takes a vector of parameters and returns a single scalar value of the objective function at those parameters.

Required Methods§

Source

fn evaluate(&self, parameters: &[f64]) -> f64

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§