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

pub struct Problem<GradientType, ConstraintType, CostType> where
    GradientType: Fn(&[f64], &mut [f64]) -> Result<(), Error>,
    CostType: Fn(&[f64], &mut f64) -> Result<(), Error>,
    ConstraintType: Constraint
{ /* fields omitted */ }

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

Methods

impl<GradientType, ConstraintType, CostType> Problem<GradientType, ConstraintType, CostType> where
    GradientType: Fn(&[f64], &mut [f64]) -> Result<(), Error>,
    CostType: Fn(&[f64], &mut f64) -> Result<(), Error>,
    ConstraintType: Constraint
[src]

pub fn new(
    constraints: ConstraintType,
    cost_gradient: GradientType,
    cost: CostType
) -> Problem<GradientType, ConstraintType, CostType>
[src]

Construct a new instance of an optimisation problem

Arguments

  • constraints constraints
  • cost_gradient gradient of the cost function
  • cost cost function

Auto Trait Implementations

impl<GradientType, ConstraintType, CostType> Send for Problem<GradientType, ConstraintType, CostType> where
    ConstraintType: Send,
    CostType: Send,
    GradientType: Send

impl<GradientType, ConstraintType, CostType> Sync for Problem<GradientType, ConstraintType, CostType> where
    ConstraintType: Sync,
    CostType: Sync,
    GradientType: Sync

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]