[][src]Struct argmin::solver::linesearch::backtracking::BacktrackingLineSearch

pub struct BacktrackingLineSearch<P, L> { /* fields omitted */ }

The Backtracking line search is a simple method to find a step length which obeys the Armijo (sufficient decrease) condition.

Example

References:

[0] Jorge Nocedal and Stephen J. Wright (2006). Numerical Optimization. Springer. ISBN 0-387-30303-0.

[1] Wikipedia: https://en.wikipedia.org/wiki/Backtracking_line_search

Methods

impl<P: Default, L> BacktrackingLineSearch<P, L>[src]

pub fn new(condition: L) -> Self[src]

Constructor

pub fn rho(self, rho: f64) -> Result<Self, Error>[src]

Set rho

Trait Implementations

impl<P: Clone, L: Clone> Clone for BacktrackingLineSearch<P, L>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<P, L> Serialize for BacktrackingLineSearch<P, L> where
    P: Serialize,
    L: Serialize
[src]

impl<'de, P, L> Deserialize<'de> for BacktrackingLineSearch<P, L> where
    P: Deserialize<'de>,
    L: Deserialize<'de>, 
[src]

impl<O, P, L> Solver<O> for BacktrackingLineSearch<P, L> where
    P: Clone + Default + Serialize + DeserializeOwned + ArgminSub<P, P> + ArgminDot<P, f64> + ArgminScaledAdd<P, f64, P>,
    O: ArgminOp<Param = P, Output = f64>,
    L: LineSearchCondition<P>, 
[src]

fn terminate_internal(&mut self, state: &IterState<O>) -> TerminationReason

Checks whether basic termination reasons apply. Read more

impl<P, L> ArgminLineSearch<P> for BacktrackingLineSearch<P, L> where
    P: Clone + Serialize + ArgminSub<P, P> + ArgminDot<P, f64> + ArgminScaledAdd<P, f64, P>,
    L: LineSearchCondition<P>, 
[src]

fn set_search_direction(&mut self, search_direction: P)[src]

Set search direction

fn set_init_alpha(&mut self, alpha: f64) -> Result<(), Error>[src]

Set initial alpha value

Auto Trait Implementations

impl<P, L> Send for BacktrackingLineSearch<P, L> where
    L: Send,
    P: Send

impl<P, L> Sync for BacktrackingLineSearch<P, L> where
    L: Sync,
    P: Sync

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized