[][src]Trait cobyla::ObjFn

pub trait ObjFn<U>: Fn(&[f64], &mut U) -> f64 { }

A trait to represent an objective function to be minimized A trait representing an objective function.

An objective function takes the form of a closure f(x: &[f64], user_data: &mut U) -> f64

  • x - n-dimensional array
  • user_data - user defined data

Implementors

impl<F, U> ObjFn<U> for F where
    F: Fn(&[f64], &mut U) -> f64
[src]

Loading content...