Problem in optimization_engine::core::problem - Rust

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
Source§
Source

Construct a new instance of an optimisation problem

§Arguments
  • constraints constraints
  • cost_gradient gradient of the cost function
  • cost cost function
§Returns

New instance of Problem