[][src]Struct argmin::solver::linesearch::morethuente::MoreThuenteLineSearch

pub struct MoreThuenteLineSearch<P> { /* fields omitted */ }

The More-Thuente line search is a method to find a step length which obeys the strong Wolfe conditions.

Example

References

This implementation follows the excellent MATLAB implementation of Dianne P. O'Leary at http://www.cs.umd.edu/users/oleary/software/

[0] Jorge J. More and David J. Thuente. "Line search algorithms with guaranteed sufficient decrease." ACM Trans. Math. Softw. 20, 3 (September 1994), 286-307. DOI: https://doi.org/10.1145/192115.192132

Methods

impl<P: Default> MoreThuenteLineSearch<P>[src]

pub fn new() -> Self[src]

Constructor

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

Set c1 and c2 where 0 < c1 < c2 < 1.

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

set alpha limits

Trait Implementations

impl<P: Default> Default for MoreThuenteLineSearch<P>[src]

impl<P: Clone> Clone for MoreThuenteLineSearch<P>[src]

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

Performs copy-assignment from source. Read more

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

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

Checks whether basic termination reasons apply. Read more

fn terminate(&mut self, _state: &IterState<O>) -> TerminationReason[src]

Checks whether the algorithm must be terminated

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

impl<P> Serialize for MoreThuenteLineSearch<P> where
    P: Serialize
[src]

impl<P> ArgminLineSearch<P> for MoreThuenteLineSearch<P> where
    P: Clone + Serialize + ArgminSub<P, P> + ArgminDot<P, f64> + ArgminScaledAdd<P, f64, 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> Send for MoreThuenteLineSearch<P> where
    P: Send

impl<P> Unpin for MoreThuenteLineSearch<P> where
    P: Unpin

impl<P> Sync for MoreThuenteLineSearch<P> where
    P: Sync

impl<P> UnwindSafe for MoreThuenteLineSearch<P> where
    P: UnwindSafe

impl<P> RefUnwindSafe for MoreThuenteLineSearch<P> where
    P: RefUnwindSafe

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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