Struct optimization_engine::core::problem::Problem[][src]

pub struct Problem<'a, GradientType, ConstraintType, CostType> where
    GradientType: Fn(&[f64], &mut [f64]) -> FunctionCallResult,
    CostType: Fn(&[f64], &mut f64) -> FunctionCallResult,
    ConstraintType: Constraint
{ /* fields omitted */ }
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

Implementations

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.