Enum candle_optimisers::lbfgs::LineSearch
source · #[non_exhaustive]pub enum LineSearch {
StrongWolfe(f64, f64, f64),
}Expand description
Line search method Only Strong Wolfe is currently implemented
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
StrongWolfe(f64, f64, f64)
strong wolfe line search: c1, c2, tolerance suggested vals for c1 and c2: 1e-4, 0.9, for tolerance 1e-9
Ensures the Strong Wolfe conditions are met for step size $t$ in direction $\bm{d}$:
Armijo rule: $$ f(x + t \bm{d}) \leq f(x) + c_1 t \bm{d}^T \nabla f(x) $$
and
Strong Curvature Condition: $$ |\bm{d}^{T} \nabla f(x + t \bm{d})| \leq c_{2} |\bm{d}^{T} \nabla f(x)| $$
Trait Implementations§
source§impl Clone for LineSearch
impl Clone for LineSearch
source§fn clone(&self) -> LineSearch
fn clone(&self) -> LineSearch
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for LineSearch
impl Debug for LineSearch
source§impl PartialEq for LineSearch
impl PartialEq for LineSearch
source§fn eq(&self, other: &LineSearch) -> bool
fn eq(&self, other: &LineSearch) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for LineSearch
impl PartialOrd for LineSearch
source§fn partial_cmp(&self, other: &LineSearch) -> Option<Ordering>
fn partial_cmp(&self, other: &LineSearch) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for LineSearch
impl StructuralPartialEq for LineSearch
Auto Trait Implementations§
impl RefUnwindSafe for LineSearch
impl Send for LineSearch
impl Sync for LineSearch
impl Unpin for LineSearch
impl UnwindSafe for LineSearch
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more