argmin::core

Trait ArgminLineSearch

Source
pub trait ArgminLineSearch<P, F>: Serialize {
    // Required methods
    fn set_search_direction(&mut self, direction: P);
    fn set_init_alpha(&mut self, step_length: F) -> Result<(), Error>;
}
Expand description

Defines a common interface for line search methods.

Required Methods§

Source

fn set_search_direction(&mut self, direction: P)

Set the search direction

Source

fn set_init_alpha(&mut self, step_length: F) -> Result<(), Error>

Set the initial step length

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<P, F> ArgminLineSearch<P, F> for HagerZhangLineSearch<P, F>
where P: Clone + Default + Serialize + ArgminSub<P, P> + ArgminDot<P, f64> + ArgminScaledAdd<P, f64, P>, F: ArgminFloat,

Source§

impl<P, F> ArgminLineSearch<P, F> for MoreThuenteLineSearch<P, F>
where P: Clone + Serialize + ArgminSub<P, P> + ArgminDot<P, F> + ArgminScaledAdd<P, F, P>, F: ArgminFloat,

Source§

impl<P, L, F> ArgminLineSearch<P, F> for BacktrackingLineSearch<P, L, F>