[][src]Struct argmin::solver::gradientdescent::steepestdescent::SteepestDescent

pub struct SteepestDescent<L> { /* fields omitted */ }

Steepest descent iteratively takes steps in the direction of the strongest negative gradient. In each iteration, a line search is employed to obtain an appropriate step length.



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


impl<L> SteepestDescent<L>[src]

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


Trait Implementations

impl<O, L> Solver<O> for SteepestDescent<L> where
    O: ArgminOp<Output = f64>,
    O::Param: Clone + Default + Serialize + ArgminSub<O::Param, O::Param> + ArgminDot<O::Param, f64> + ArgminScaledAdd<O::Param, f64, O::Param> + ArgminMul<f64, O::Param> + ArgminNorm<f64>,
    O::Hessian: Default,
    L: Clone + ArgminLineSearch<O::Param> + Solver<OpWrapper<O>>, 

fn init(
    &mut self,
    _op: &mut OpWrapper<O>,
    _state: &IterState<O>
) -> Result<Option<ArgminIterData<O>>, Error>

Initializes the algorithm Read more

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, L> Deserialize<'de> for SteepestDescent<L> where
    L: Deserialize<'de>, 

impl<L> Serialize for SteepestDescent<L> where
    L: Serialize

Auto Trait Implementations

impl<L> Send for SteepestDescent<L> where
    L: Send

impl<L> Unpin for SteepestDescent<L> where
    L: Unpin

impl<L> Sync for SteepestDescent<L> where
    L: Sync

impl<L> UnwindSafe for SteepestDescent<L> where
    L: UnwindSafe

impl<L> RefUnwindSafe for SteepestDescent<L> where
    L: RefUnwindSafe

Blanket Implementations

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

impl<T> Borrow<T> for T where
    T: ?Sized

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

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

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