pub struct Problem<'a, GradientType, ConstraintType, CostType, T = f64>where
GradientType: Fn(&[T], &mut [T]) -> FunctionCallResult,
CostType: Fn(&[T], &mut T) -> FunctionCallResult,
ConstraintType: Constraint<T>,
{ /* private fields */ }Expand description
Definition of an optimisation problem
The definition of an optimisation problem involves:
- the gradient of the cost function
- the cost function
- the set of constraints, which is described by implementations of Constraint