Trait argmin_core::ArgminTrustRegion
source · pub trait ArgminTrustRegion: ArgminSolver {
fn set_radius(&mut self, _: f64);
fn set_grad(&mut self, _: <Self as ArgminNextIter>::Parameters);
fn set_hessian(&mut self, _: <Self as ArgminNextIter>::Hessian);
}
Expand description
Defines a common interface to methods which calculate approximate steps for trust region
methods. Requires that ArgminSolver
is implemented as well.
Required Methods
sourcefn set_radius(&mut self, _: f64)
fn set_radius(&mut self, _: f64)
Set the initial step length
sourcefn set_grad(&mut self, _: <Self as ArgminNextIter>::Parameters)
fn set_grad(&mut self, _: <Self as ArgminNextIter>::Parameters)
Set the gradient at the starting point
sourcefn set_hessian(&mut self, _: <Self as ArgminNextIter>::Hessian)
fn set_hessian(&mut self, _: <Self as ArgminNextIter>::Hessian)
Set the gradient at the starting point