Trait optimization::Function1
[−]
[src]
pub trait Function1: Function {
fn gradient(&self, position: &[f64]) -> Vec<f64>;
}Defines an objective function f that is able to compute the first derivative
f'(x).
Required Methods
fn gradient(&self, position: &[f64]) -> Vec<f64>
Computes the gradient of the objective function at a given position x,
i.e., ∀ᵢ ∂/∂xᵢ f(x) = ∇f(x).
Implementors
impl Function1 for Sphereimpl Function1 for Rosenbrockimpl<F: Function> Function1 for NumericalDifferentiation<F>