[][src]Struct optimization_engine::core::panoc::PANOCOptimizer

pub struct PANOCOptimizer<'a, GradientType, ConstraintType, CostType> where
    GradientType: Fn(&[f64], &mut [f64]) -> i32,
    CostType: Fn(&[f64], &mut f64) -> i32,
    ConstraintType: Constraint
{ /* fields omitted */ }

Methods

impl<'a, GradientType, ConstraintType, CostType> PANOCOptimizer<'a, GradientType, ConstraintType, CostType> where
    GradientType: Fn(&[f64], &mut [f64]) -> i32,
    CostType: Fn(&[f64], &mut f64) -> i32,
    ConstraintType: Constraint
[src]

pub fn new(
    panoc_engine: &'a mut PANOCEngine<'a, GradientType, ConstraintType, CostType>
) -> PANOCOptimizer<'a, GradientType, ConstraintType, CostType>
[src]

pub fn with_tolerance(
    &mut self,
    tolerance: f64
) -> &mut PANOCOptimizer<'a, GradientType, ConstraintType, CostType>
[src]

Sets the tolerance

Panics

The method panics if the specified tolerance is not positive

pub fn with_max_iter(
    &mut self,
    max_iter: usize
) -> &mut PANOCOptimizer<'a, GradientType, ConstraintType, CostType>
[src]

Sets the maximum number of iterations

Trait Implementations

impl<'life, GradientType, ConstraintType, CostType> Optimizer for PANOCOptimizer<'life, GradientType, ConstraintType, CostType> where
    GradientType: Fn(&[f64], &mut [f64]) -> i32 + 'life,
    CostType: Fn(&[f64], &mut f64) -> i32,
    ConstraintType: Constraint + 'life, 
[src]

Auto Trait Implementations

impl<'a, GradientType, ConstraintType, CostType> Send for PANOCOptimizer<'a, GradientType, ConstraintType, CostType> where
    ConstraintType: Send,
    CostType: Send,
    GradientType: Send

impl<'a, GradientType, ConstraintType, CostType> Sync for PANOCOptimizer<'a, GradientType, ConstraintType, CostType> where
    ConstraintType: Sync,
    CostType: Sync,
    GradientType: Sync

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto 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> Any for T where
    T: 'static + ?Sized
[src]