#[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§impl PartialOrd for LineSearch
impl PartialOrd for LineSearch
impl Copy for LineSearch
impl StructuralPartialEq for LineSearch
Auto Trait Implementations§
impl Freeze for LineSearch
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)