pub enum RestorationOutcome {
Recovered,
Failed,
LocallyInfeasible,
}Expand description
Outcome of a restoration attempt. Mirrors upstream’s bool return
from RestorationPhase::PerformRestoration plus the in-band
info_skip_output / iter_count side-effects that the impl writes
to data directly.
Variants§
Recovered
Resto succeeded; outer loop should accept_trial_point and
continue. The impl has written the recovered iterate into
data.trial, set info_skip_output = true, and updated the
info counters.
Failed
Resto failed. Outer loop maps this to
SolverReturn::RestorationFailure.
LocallyInfeasible
The inner sub-IPM converged its KKT system but the orig-NLP
constraint violation at the converged point is still well above
tol. Mirrors the LOCALLY_INFEASIBLE exception thrown from
IpRestoConvCheck.cpp:240. Outer loop maps this to
SolverReturn::LocalInfeasibility.
Trait Implementations§
Source§impl Clone for RestorationOutcome
impl Clone for RestorationOutcome
Source§fn clone(&self) -> RestorationOutcome
fn clone(&self) -> RestorationOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RestorationOutcome
impl Debug for RestorationOutcome
Source§impl PartialEq for RestorationOutcome
impl PartialEq for RestorationOutcome
Source§fn eq(&self, other: &RestorationOutcome) -> bool
fn eq(&self, other: &RestorationOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for RestorationOutcome
impl Eq for RestorationOutcome
impl StructuralPartialEq for RestorationOutcome
Auto Trait Implementations§
impl Freeze for RestorationOutcome
impl RefUnwindSafe for RestorationOutcome
impl Send for RestorationOutcome
impl Sync for RestorationOutcome
impl Unpin for RestorationOutcome
impl UnsafeUnpin for RestorationOutcome
impl UnwindSafe for RestorationOutcome
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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