[−][src]Struct argmin::solver::linesearch::backtracking::BacktrackingLineSearch
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
Methods
impl<P: Default, L, F: ArgminFloat> BacktrackingLineSearch<P, L, F>
[src]
pub fn new(condition: L) -> Self
[src]
Constructor
pub fn rho(self, rho: F) -> Result<Self, Error>
[src]
Set rho
Trait Implementations
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,
[src]
P: Clone + Serialize + ArgminSub<P, P> + ArgminDot<P, f64> + ArgminScaledAdd<P, f64, P>,
L: LineSearchCondition<P, F>,
F: ArgminFloat + Serialize + DeserializeOwned,
fn set_search_direction(&mut self, search_direction: P)
[src]
Set search direction
fn set_init_alpha(&mut self, alpha: F) -> Result<(), Error>
[src]
Set initial alpha value
impl<P: Clone, L: Clone, F: Clone> Clone for BacktrackingLineSearch<P, L, F>
[src]
fn clone(&self) -> BacktrackingLineSearch<P, L, F>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'de, P, L, F> Deserialize<'de> for BacktrackingLineSearch<P, L, F> where
P: Deserialize<'de>,
L: Deserialize<'de>,
F: Deserialize<'de>,
[src]
P: Deserialize<'de>,
L: Deserialize<'de>,
F: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<P, L, F> Serialize for BacktrackingLineSearch<P, L, F> where
P: Serialize,
L: Serialize,
F: Serialize,
[src]
P: Serialize,
L: Serialize,
F: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
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,
[src]
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,
const NAME: &'static str
[src]
fn init(
&mut self,
op: &mut OpWrapper<O>,
state: &IterState<O>
) -> Result<Option<ArgminIterData<O>>, Error>
[src]
&mut self,
op: &mut OpWrapper<O>,
state: &IterState<O>
) -> Result<Option<ArgminIterData<O>>, Error>
fn next_iter(
&mut self,
op: &mut OpWrapper<O>,
_state: &IterState<O>
) -> Result<ArgminIterData<O>, Error>
[src]
&mut self,
op: &mut OpWrapper<O>,
_state: &IterState<O>
) -> Result<ArgminIterData<O>, Error>
fn terminate(&mut self, state: &IterState<O>) -> TerminationReason
[src]
fn terminate_internal(&mut self, state: &IterState<O>) -> TerminationReason
[src]
Auto Trait Implementations
impl<P, L, F> RefUnwindSafe for BacktrackingLineSearch<P, L, F> where
F: RefUnwindSafe,
L: RefUnwindSafe,
P: RefUnwindSafe,
F: RefUnwindSafe,
L: RefUnwindSafe,
P: RefUnwindSafe,
impl<P, L, F> Send for BacktrackingLineSearch<P, L, F> where
F: Send,
L: Send,
P: Send,
F: Send,
L: Send,
P: Send,
impl<P, L, F> Sync for BacktrackingLineSearch<P, L, F> where
F: Sync,
L: Sync,
P: Sync,
F: Sync,
L: Sync,
P: Sync,
impl<P, L, F> Unpin for BacktrackingLineSearch<P, L, F> where
F: Unpin,
P: Unpin,
F: Unpin,
P: Unpin,
impl<P, L, F> UnwindSafe for BacktrackingLineSearch<P, L, F> where
F: UnwindSafe,
L: UnwindSafe,
P: UnwindSafe,
F: UnwindSafe,
L: UnwindSafe,
P: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,