Trait multistochgrad::types::Function
source · pub trait Function<D: Dimension>: Sync {
// Required method
fn value(&self, position: &Array<f64, D>) -> f64;
}
Expand description
Defines an objective function f
that is subject to minimization.
trait must be sync to be able to be sent over threads