pub struct BacktrackingLineSearch<P, L, F> { /* private fields */ }
Expand description
The Backtracking line search is a simple method to find a step length which obeys the Armijo (sufficient decrease) condition.
§References:
[0] Jorge Nocedal and Stephen J. Wright (2006). Numerical Optimization. Springer. ISBN 0-387-30303-0.
[1] Wikipedia: https://en.wikipedia.org/wiki/Backtracking_line_search
Implementations§
Trait Implementations§
Source§impl<P, L, F> ArgminLineSearch<P, F> for BacktrackingLineSearch<P, L, F>where
P: Clone + Serialize + ArgminSub<P, P> + ArgminDot<P, f64> + ArgminScaledAdd<P, f64, P>,
L: LineSearchCondition<P, F>,
F: ArgminFloat + Serialize + DeserializeOwned,
impl<P, L, F> ArgminLineSearch<P, F> for BacktrackingLineSearch<P, L, F>where
P: Clone + Serialize + ArgminSub<P, P> + ArgminDot<P, f64> + ArgminScaledAdd<P, f64, P>,
L: LineSearchCondition<P, F>,
F: ArgminFloat + Serialize + DeserializeOwned,
Source§fn set_search_direction(&mut self, search_direction: P)
fn set_search_direction(&mut self, search_direction: P)
Set search direction
Source§impl<P: Clone, L: Clone, F: Clone> Clone for BacktrackingLineSearch<P, L, F>
impl<P: Clone, L: Clone, F: Clone> Clone for BacktrackingLineSearch<P, L, F>
Source§fn clone(&self) -> BacktrackingLineSearch<P, L, F>
fn clone(&self) -> BacktrackingLineSearch<P, L, F>
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<'de, P, L, F> Deserialize<'de> for BacktrackingLineSearch<P, L, F>
impl<'de, P, L, F> Deserialize<'de> for BacktrackingLineSearch<P, L, F>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<P, L, F> Serialize for BacktrackingLineSearch<P, L, F>
impl<P, L, F> Serialize for BacktrackingLineSearch<P, L, F>
Source§impl<O, P, L, F> Solver<O> for BacktrackingLineSearch<P, L, F>where
P: Clone + Default + Serialize + DeserializeOwned + ArgminSub<P, P> + ArgminDot<P, F> + ArgminScaledAdd<P, F, P>,
O: ArgminOp<Param = P, Output = F, Float = F>,
L: LineSearchCondition<P, F>,
F: ArgminFloat,
impl<O, P, L, F> Solver<O> for BacktrackingLineSearch<P, L, F>where
P: Clone + Default + Serialize + DeserializeOwned + ArgminSub<P, P> + ArgminDot<P, F> + ArgminScaledAdd<P, F, P>,
O: ArgminOp<Param = P, Output = F, Float = F>,
L: LineSearchCondition<P, F>,
F: ArgminFloat,
Source§fn init(
&mut self,
op: &mut OpWrapper<O>,
state: &IterState<O>,
) -> Result<Option<ArgminIterData<O>>, Error>
fn init( &mut self, op: &mut OpWrapper<O>, state: &IterState<O>, ) -> Result<Option<ArgminIterData<O>>, Error>
Initializes the algorithm Read more
Source§fn next_iter(
&mut self,
op: &mut OpWrapper<O>,
_state: &IterState<O>,
) -> Result<ArgminIterData<O>, Error>
fn next_iter( &mut self, op: &mut OpWrapper<O>, _state: &IterState<O>, ) -> Result<ArgminIterData<O>, Error>
Computes one iteration of the algorithm.
Source§fn terminate(&mut self, state: &IterState<O>) -> TerminationReason
fn terminate(&mut self, state: &IterState<O>) -> TerminationReason
Checks whether the algorithm must be terminated
Source§fn terminate_internal(&mut self, state: &IterState<O>) -> TerminationReason
fn terminate_internal(&mut self, state: &IterState<O>) -> TerminationReason
Checks whether basic termination reasons apply. Read more
Auto Trait Implementations§
impl<P, L, F> Freeze for BacktrackingLineSearch<P, L, F>
impl<P, L, F> RefUnwindSafe for BacktrackingLineSearch<P, L, F>
impl<P, L, F> Send for BacktrackingLineSearch<P, L, F>
impl<P, L, F> Sync for BacktrackingLineSearch<P, L, F>
impl<P, L, F> Unpin for BacktrackingLineSearch<P, L, F>
impl<P, L, F> UnwindSafe for BacktrackingLineSearch<P, L, F>
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