Skip to main content

CobylaConstraintFn

Type Alias CobylaConstraintFn 

Source
pub type CobylaConstraintFn = Arc<dyn Fn(&Array1<f64>) -> f64 + Send + Sync>;
Expand description

Erased inequality-constraint closure. Returns <= 0 when feasible (NLopt convention; the wrapper flips the sign for the cobyla crate).

Aliased Typeยง

pub struct CobylaConstraintFn { /* private fields */ }