Struct optimization::Func [] [src]

pub struct Func<F: Fn(&[f64]) -> f64>(pub F);

New-type to support optimization of arbitrary functions without requiring to implement a trait.

Trait Implementations

impl<F: Fn(&[f64]) -> f64> Function for Func<F>
[src]

Computes the objective function at a given position x, i.e., f(x) = y.