#[non_exhaustive]pub enum HessianUpdate {
Bfgs,
Sr1,
Exact,
}Expand description
How the Hessian of the Lagrangian is obtained (SciPy’s hess argument).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Bfgs
Damped BFGS: always positive definite (SciPy’s BFGS()).
Sr1
Symmetric rank-one: may be indefinite, which the trust region and the conjugate-gradient
iteration handle through negative curvature (SciPy’s SR1()).
Exact
The exact Hessian from ConstrainedProblem::lagrangian_hessian, evaluated at the current
point with the current multiplier estimates.
Trait Implementations§
Source§impl Clone for HessianUpdate
impl Clone for HessianUpdate
impl Copy for HessianUpdate
Source§impl Debug for HessianUpdate
impl Debug for HessianUpdate
impl Eq for HessianUpdate
Source§impl PartialEq for HessianUpdate
impl PartialEq for HessianUpdate
impl StructuralPartialEq for HessianUpdate
Auto Trait Implementations§
impl Freeze for HessianUpdate
impl RefUnwindSafe for HessianUpdate
impl Send for HessianUpdate
impl Sync for HessianUpdate
impl Unpin for HessianUpdate
impl UnsafeUnpin for HessianUpdate
impl UnwindSafe for HessianUpdate
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