[−][src]Trait cobyla::CstrFn
A trait to represent constraint function
which should be positive eventually
A trait representing aa constraint function.
An constraint function takes the form of a closure f(x: &[f64]) -> f64
The algorithm make the constraint positive eventually.
For instance if you want an upper bound MAX for x,
you have to define the constraint as |x| MAX - x
.
Conversly for a lower bound you would define |x| x - MIN
x
- n-dimensional array