pub struct SpectralProjectedNewton { /* private fields */ }Implementations§
Source§impl SpectralProjectedNewton
Auto-generated by derive_getters::Getters.
impl SpectralProjectedNewton
Auto-generated by derive_getters::Getters.
Sourcepub fn grad_tol(&self) -> &Floating
pub fn grad_tol(&self) -> &Floating
Get field grad_tol from instance of SpectralProjectedNewton.
Sourcepub fn lower_bound(&self) -> &DVector<Floating>
pub fn lower_bound(&self) -> &DVector<Floating>
Get field lower_bound from instance of SpectralProjectedNewton.
Sourcepub fn upper_bound(&self) -> &DVector<Floating>
pub fn upper_bound(&self) -> &DVector<Floating>
Get field upper_bound from instance of SpectralProjectedNewton.
Sourcepub fn lambda_min(&self) -> &Floating
pub fn lambda_min(&self) -> &Floating
Get field lambda_min from instance of SpectralProjectedNewton.
Sourcepub fn lambda_max(&self) -> &Floating
pub fn lambda_max(&self) -> &Floating
Get field lambda_max from instance of SpectralProjectedNewton.
Trait Implementations§
Source§impl ComputeDirection for SpectralProjectedNewton
impl ComputeDirection for SpectralProjectedNewton
fn compute_direction( &mut self, eval: &FuncEvalMultivariate, ) -> Result<DVector<Floating>, SolverError>
Source§impl HasBounds for SpectralProjectedNewton
impl HasBounds for SpectralProjectedNewton
fn lower_bound(&self) -> &DVector<Floating>
fn set_lower_bound(&mut self, lower_bound: DVector<Floating>)
fn set_upper_bound(&mut self, upper_bound: DVector<Floating>)
fn upper_bound(&self) -> &DVector<Floating>
Source§impl LineSearchSolver for SpectralProjectedNewton
impl LineSearchSolver for SpectralProjectedNewton
fn has_converged(&self, eval: &FuncEvalMultivariate) -> bool
fn xk(&self) -> &DVector<Floating>
fn xk_mut(&mut self) -> &mut DVector<Floating>
fn k(&self) -> &usize
fn k_mut(&mut self) -> &mut usize
fn update_next_iterate<LS: LineSearch>( &mut self, line_search: &mut LS, eval_x_k: &FuncEvalMultivariate, oracle: &mut impl FnMut(&DVector<Floating>) -> FuncEvalMultivariate, direction: &DVector<Floating>, max_iter_line_search: usize, ) -> Result<(), SolverError>
fn setup(&mut self)
fn evaluate_x_k( &mut self, oracle: &mut impl FnMut(&DVector<Floating>) -> FuncEvalMultivariate, ) -> Result<FuncEvalMultivariate, SolverError>
fn minimize<LS: LineSearch>( &mut self, line_search: &mut LS, oracle: impl FnMut(&DVector<Floating>) -> FuncEvalMultivariate, max_iter_solver: usize, max_iter_line_search: usize, callback: Option<&mut dyn FnMut(&Self)>, ) -> Result<(), SolverError>
Auto Trait Implementations§
impl Freeze for SpectralProjectedNewton
impl RefUnwindSafe for SpectralProjectedNewton
impl Send for SpectralProjectedNewton
impl Sync for SpectralProjectedNewton
impl Unpin for SpectralProjectedNewton
impl UnwindSafe for SpectralProjectedNewton
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> HasProjectedGradient for Twhere
T: LineSearchSolver + HasBounds,
impl<T> HasProjectedGradient for Twhere
T: LineSearchSolver + HasBounds,
fn projected_gradient(&self, eval: &FuncEvalMultivariate) -> DVector<Floating>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.