pub struct Lbfgs {
pub memory: usize,
/* private fields */
}Expand description
Limited-memory BFGS: keeps the last memory correction pairs (s, y) and applies the inverse
Hessian by the two-loop recursion in O(memory · n), so it scales to large problems.
Fields§
§memory: usizeImplementations§
Trait Implementations§
Source§impl<T: ObjectiveFunction, U: GradientFunction> GradientBasedMinimizationEngine<T, U> for Lbfgs
impl<T: ObjectiveFunction, U: GradientFunction> GradientBasedMinimizationEngine<T, U> for Lbfgs
fn gradient_based_minimize( &self, objective: &T, gradient: &U, initial: Vec<f64>, ) -> Result<OptimizationResult, ErrorsJSL>
Source§impl MinimizationControls for Lbfgs
impl MinimizationControls for Lbfgs
Source§fn set_bounds(&mut self, bounds: Option<Vec<(f64, f64)>>)
fn set_bounds(&mut self, bounds: Option<Vec<(f64, f64)>>)
Bounds are not supported; setting them makes minimization return an error.
Source§fn set_max_iterations(&mut self, max_iterations: Option<usize>)
fn set_max_iterations(&mut self, max_iterations: Option<usize>)
These traits use options to allow for algorithms to set and get the convergence criteria.
If the algorithm does not have a maximum number of iterations, this can be set to None.
fn get_max_iterations(&self) -> Option<usize>
Source§fn set_tolerance(&mut self, tolerance: Option<f64>)
fn set_tolerance(&mut self, tolerance: Option<f64>)
If the algorithm does not have a tolerance for convergence, this can be set to None.
fn get_tolerance(&self) -> Option<f64>
fn get_bounds(&self) -> Option<Vec<(f64, f64)>>
Auto Trait Implementations§
impl Freeze for Lbfgs
impl RefUnwindSafe for Lbfgs
impl Send for Lbfgs
impl Sync for Lbfgs
impl Unpin for Lbfgs
impl UnsafeUnpin 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