pub struct Lbfgs { /* private fields */ }Expand description
§Limited memory BFGS
https://en.wikipedia.org/wiki/Limited-memory_BFGS
memory: Array length of memorydelta: Threshold of the difference between the value of f(x) and it of previous iteration for finishingepsilon: Threshold of the norm of gradients for finishingmax_iter: Max limitation of iteration countline_search: Configurations of line search
Implementations§
Source§impl Lbfgs
impl Lbfgs
pub fn new( memory: usize, delta: f64, epsilon: f64, max_iter: usize, line_search: LineSearch, ) -> Self
pub fn with_memory(self, memory: usize) -> Self
pub fn with_delta(self, delta: f64) -> Self
pub fn with_epsilon(self, epsilon: f64) -> Self
pub fn with_max_iter(self, max_iter: usize) -> Self
pub fn with_line_search(self, line_search: LineSearch) -> Self
pub fn minimize( &self, x: &mut [f64], fx_gfx: &dyn Fn(&[f64]) -> (f64, Vec<f64>), ) -> Status
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Lbfgs
impl RefUnwindSafe for Lbfgs
impl Send for Lbfgs
impl Sync for Lbfgs
impl Unpin for Lbfgs
impl UnwindSafe for Lbfgs
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more