Struct argmin::solver::quasinewton::lbfgs::LBFGS [−][src]
pub struct LBFGS<L, P, F> { /* fields omitted */ }
Expand description
L-BFGS method
TODO: Implement compact representation of BFGS updating (Nocedal/Wright p.230)
References:
[0] Jorge Nocedal and Stephen J. Wright (2006). Numerical Optimization. Springer. ISBN 0-387-30303-0.
Implementations
impl<L, P, F: ArgminFloat> LBFGS<L, P, F>
[src]
impl<L, P, F: ArgminFloat> LBFGS<L, P, F>
[src]pub fn with_tol_grad(self, tol_grad: F) -> Self
[src]
pub fn with_tol_grad(self, tol_grad: F) -> Self
[src]Sets tolerance for the stopping criterion based on the change of the norm on the gradient
pub fn with_tol_cost(self, tol_cost: F) -> Self
[src]
pub fn with_tol_cost(self, tol_cost: F) -> Self
[src]Sets tolerance for the stopping criterion based on the change of the cost stopping criterion
Trait Implementations
impl<'de, L, P, F> Deserialize<'de> for LBFGS<L, P, F> where
L: Deserialize<'de>,
P: Deserialize<'de>,
F: Deserialize<'de>,
[src]
impl<'de, L, P, F> Deserialize<'de> for LBFGS<L, P, F> where
L: Deserialize<'de>,
P: Deserialize<'de>,
F: Deserialize<'de>,
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl<O, L, P, F> Solver<O> for LBFGS<L, P, F> where
O: ArgminOp<Param = P, Output = F, Float = F>,
O::Param: Clone + Serialize + DeserializeOwned + Debug + Default + ArgminSub<O::Param, O::Param> + ArgminAdd<O::Param, O::Param> + ArgminDot<O::Param, O::Float> + ArgminScaledAdd<O::Param, O::Float, O::Param> + ArgminNorm<O::Float> + ArgminMul<O::Float, O::Param>,
O::Hessian: Clone + Default + Serialize + DeserializeOwned,
L: Clone + ArgminLineSearch<O::Param, O::Float> + Solver<OpWrapper<O>>,
F: ArgminFloat,
[src]
impl<O, L, P, F> Solver<O> for LBFGS<L, P, F> where
O: ArgminOp<Param = P, Output = F, Float = F>,
O::Param: Clone + Serialize + DeserializeOwned + Debug + Default + ArgminSub<O::Param, O::Param> + ArgminAdd<O::Param, O::Param> + ArgminDot<O::Param, O::Float> + ArgminScaledAdd<O::Param, O::Float, O::Param> + ArgminNorm<O::Float> + ArgminMul<O::Float, O::Param>,
O::Hessian: Clone + Default + Serialize + DeserializeOwned,
L: Clone + ArgminLineSearch<O::Param, O::Float> + Solver<OpWrapper<O>>,
F: ArgminFloat,
[src]fn init(
&mut self,
op: &mut OpWrapper<O>,
state: &IterState<O>
) -> Result<Option<ArgminIterData<O>>, Error>
[src]
fn init(
&mut self,
op: &mut OpWrapper<O>,
state: &IterState<O>
) -> Result<Option<ArgminIterData<O>>, Error>
[src]Initializes the algorithm Read more
fn next_iter(
&mut self,
op: &mut OpWrapper<O>,
state: &IterState<O>
) -> Result<ArgminIterData<O>, Error>
[src]
fn next_iter(
&mut self,
op: &mut OpWrapper<O>,
state: &IterState<O>
) -> Result<ArgminIterData<O>, Error>
[src]Computes one iteration of the algorithm.
fn terminate(&mut self, state: &IterState<O>) -> TerminationReason
[src]
fn terminate(&mut self, state: &IterState<O>) -> TerminationReason
[src]Checks whether the algorithm must be terminated
fn terminate_internal(&mut self, state: &IterState<O>) -> TerminationReason
[src]
fn terminate_internal(&mut self, state: &IterState<O>) -> TerminationReason
[src]Checks whether basic termination reasons apply. Read more
Auto Trait Implementations
impl<L, P, F> RefUnwindSafe for LBFGS<L, P, F> where
F: RefUnwindSafe,
L: RefUnwindSafe,
P: RefUnwindSafe,
F: RefUnwindSafe,
L: RefUnwindSafe,
P: RefUnwindSafe,
impl<L, P, F> Send for LBFGS<L, P, F> where
F: Send,
L: Send,
P: Send,
F: Send,
L: Send,
P: Send,
impl<L, P, F> Sync for LBFGS<L, P, F> where
F: Sync,
L: Sync,
P: Sync,
F: Sync,
L: Sync,
P: Sync,
impl<L, P, F> Unpin for LBFGS<L, P, F> where
F: Unpin,
L: Unpin,
P: Unpin,
F: Unpin,
L: Unpin,
P: Unpin,
impl<L, P, F> UnwindSafe for LBFGS<L, P, F> where
F: UnwindSafe,
L: UnwindSafe,
P: UnwindSafe,
F: UnwindSafe,
L: UnwindSafe,
P: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,