[][src]Struct argmin::solver::newton::newton_cg::NewtonCG

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

The Newton-CG method (also called truncated Newton method) uses a modified CG to solve the Newton equations approximately. After a search direction is found, a line search is performed.



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


impl<L> NewtonCG<L>[src]

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


pub fn curvature_threshold(self, threshold: f64) -> Self[src]

Set curvature threshold

Trait Implementations

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

impl<'de, L> Deserialize<'de> for NewtonCG<L> where
    L: Deserialize<'de>, 

impl<O, L> Solver<O> for NewtonCG<L> where
    O: ArgminOp<Output = f64>,
    O::Param: Send + Sync + Clone + Serialize + Default + ArgminSub<O::Param, O::Param> + ArgminAdd<O::Param, O::Param> + ArgminDot<O::Param, f64> + ArgminScaledAdd<O::Param, f64, O::Param> + ArgminMul<f64, O::Param> + ArgminConj + ArgminZeroLike + ArgminNorm<f64>,
    O::Hessian: Send + Sync + Clone + Serialize + Default + ArgminInv<O::Hessian> + ArgminDot<O::Param, O::Param>,
    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

Checks whether basic termination reasons apply. Read more

Auto Trait Implementations

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

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

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