[−][src]Struct argmin::solver::linesearch::morethuente::MoreThuenteLineSearch
The More-Thuente line search is a method to find a step length which obeys the strong Wolfe conditions.
References
This implementation follows the excellent MATLAB implementation of Dianne P. O'Leary at http://www.cs.umd.edu/users/oleary/software/
[0] Jorge J. More and David J. Thuente. "Line search algorithms with guaranteed sufficient decrease." ACM Trans. Math. Softw. 20, 3 (September 1994), 286-307. DOI: https://doi.org/10.1145/192115.192132
Methods
impl<P: Default> MoreThuenteLineSearch<P>
[src]
pub fn new() -> Self
[src]
Constructor
pub fn c(self, c1: f64, c2: f64) -> Result<Self, Error>
[src]
Set c1 and c2 where 0 < c1 < c2 < 1.
pub fn alpha(self, alpha_min: f64, alpha_max: f64) -> Result<Self, Error>
[src]
set alpha limits
Trait Implementations
impl<P: Default> Default for MoreThuenteLineSearch<P>
[src]
impl<P: Clone> Clone for MoreThuenteLineSearch<P>
[src]
fn clone(&self) -> MoreThuenteLineSearch<P>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<P, O> Solver<O> for MoreThuenteLineSearch<P> where
O: ArgminOp<Param = P, Output = f64>,
P: Clone + Serialize + DeserializeOwned + ArgminSub<P, P> + ArgminDot<P, f64> + ArgminScaledAdd<P, f64, P>,
[src]
O: ArgminOp<Param = P, Output = f64>,
P: Clone + Serialize + DeserializeOwned + ArgminSub<P, P> + ArgminDot<P, f64> + ArgminScaledAdd<P, f64, P>,
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_internal(&mut self, state: &IterState<O>) -> TerminationReason
[src]
Checks whether basic termination reasons apply. Read more
fn terminate(&mut self, _state: &IterState<O>) -> TerminationReason
[src]
Checks whether the algorithm must be terminated
impl<'de, P> Deserialize<'de> for MoreThuenteLineSearch<P> where
P: Deserialize<'de>,
[src]
P: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<P> Serialize for MoreThuenteLineSearch<P> where
P: Serialize,
[src]
P: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<P> ArgminLineSearch<P> for MoreThuenteLineSearch<P> where
P: Clone + Serialize + ArgminSub<P, P> + ArgminDot<P, f64> + ArgminScaledAdd<P, f64, P>,
[src]
P: Clone + Serialize + ArgminSub<P, P> + ArgminDot<P, f64> + ArgminScaledAdd<P, f64, P>,
fn set_search_direction(&mut self, search_direction: P)
[src]
Set search direction
fn set_init_alpha(&mut self, alpha: f64) -> Result<(), Error>
[src]
Set initial alpha value
Auto Trait Implementations
impl<P> Send for MoreThuenteLineSearch<P> where
P: Send,
P: Send,
impl<P> Unpin for MoreThuenteLineSearch<P> where
P: Unpin,
P: Unpin,
impl<P> Sync for MoreThuenteLineSearch<P> where
P: Sync,
P: Sync,
impl<P> UnwindSafe for MoreThuenteLineSearch<P> where
P: UnwindSafe,
P: UnwindSafe,
impl<P> RefUnwindSafe for MoreThuenteLineSearch<P> where
P: RefUnwindSafe,
P: RefUnwindSafe,
Blanket Implementations
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
T: Send + Sync + UnwindSafe + ?Sized,