pub enum ResidKind {
Eq,
Ineq,
DualX,
DualS,
}Expand description
Which residual space a Residual entry comes from.
Primal entries are the per-constraint violations whose max-norm is
inf_pr; dual entries are the per-variable Lagrangian-gradient
components whose max-norm is inf_du.
Variants§
Eq
Equality constraint residual c_i(x).
Ineq
Inequality residual d_i(x) − s_i (the IPM slack reformulation).
DualX
x-space stationarity component (∇_x L)_i.
DualS
s-space stationarity component (∇_s L)_i.
Implementations§
Trait Implementations§
impl Copy for ResidKind
impl Eq for ResidKind
impl StructuralPartialEq for ResidKind
Auto Trait Implementations§
impl Freeze for ResidKind
impl RefUnwindSafe for ResidKind
impl Send for ResidKind
impl Sync for ResidKind
impl Unpin for ResidKind
impl UnsafeUnpin for ResidKind
impl UnwindSafe for ResidKind
Blanket Implementations§
impl<T> Boilerplate for T
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T, U> Imply<T> for U
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<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