pub struct WolfeCondition<F> { /* private fields */ }Expand description
§Wolfe conditions
Assures that a step length satisfies a “sufficient decrease” in cost function value (see
ArmijoCondition as well as that
the slope has been reduced sufficiently (thus making it more likely to be close to a local
minimum).
Implementations§
Source§impl<F> WolfeCondition<F>where
F: ArgminFloat,
impl<F> WolfeCondition<F>where
F: ArgminFloat,
Trait Implementations§
Source§impl<F: Clone> Clone for WolfeCondition<F>
impl<F: Clone> Clone for WolfeCondition<F>
impl<F: Copy> Copy for WolfeCondition<F>
Source§impl<F: Debug> Debug for WolfeCondition<F>
impl<F: Debug> Debug for WolfeCondition<F>
Source§impl<F: Default> Default for WolfeCondition<F>
impl<F: Default> Default for WolfeCondition<F>
impl<F: Eq> Eq for WolfeCondition<F>
Source§impl<T, G, F> LineSearchCondition<T, G, F> for WolfeCondition<F>where
G: ArgminDot<T, F>,
F: ArgminFloat,
impl<T, G, F> LineSearchCondition<T, G, F> for WolfeCondition<F>where
G: ArgminDot<T, F>,
F: ArgminFloat,
Source§fn evaluate_condition(
&self,
current_cost: F,
current_gradient: Option<&G>,
initial_cost: F,
initial_gradient: &G,
search_direction: &T,
step_length: F,
) -> bool
fn evaluate_condition( &self, current_cost: F, current_gradient: Option<&G>, initial_cost: F, initial_gradient: &G, search_direction: &T, step_length: F, ) -> bool
Evaluate the condition Read more
Source§fn requires_current_gradient(&self) -> bool
fn requires_current_gradient(&self) -> bool
Indicates whether this condition requires the computation of the gradient at the new point Read more
Source§impl<F: PartialEq> PartialEq for WolfeCondition<F>
impl<F: PartialEq> PartialEq for WolfeCondition<F>
impl<F: PartialEq> StructuralPartialEq for WolfeCondition<F>
Auto Trait Implementations§
impl<F> Freeze for WolfeCondition<F>where
F: Freeze,
impl<F> RefUnwindSafe for WolfeCondition<F>where
F: RefUnwindSafe,
impl<F> Send for WolfeCondition<F>where
F: Send,
impl<F> Sync for WolfeCondition<F>where
F: Sync,
impl<F> Unpin for WolfeCondition<F>where
F: Unpin,
impl<F> UnsafeUnpin for WolfeCondition<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for WolfeCondition<F>where
F: UnwindSafe,
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