pub enum RestorationOutcome {
Recovered,
Failed,
LocallyInfeasible,
UserRequestedStop,
FeasiblePointFound,
}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.
UserRequestedStop
The user’s intermediate callback returned false from a
restoration-phase fire (gh#645). Outer loop maps this to
SolverReturn::UserRequestedStop without promoting the
staged trial point, so the solve hands back the last iterate
accepted for the original NLP rather than a point of the
restoration subproblem — the same discipline the pounce#244
deadline exit already follows.
FeasiblePointFound
The original NLP is square and the restoration phase reached a
point feasible for it to constr_viol_tol. Port of the
FEASIBILITY_PROBLEM_SOLVED throw at IpRestoMinC_1Nrm.cpp:269;
the outer loop maps this to SolverReturn::FeasiblePointFound
(IpIpoptAlg.cpp:542) after recomputing the multipliers of the
feasibility problem. The impl has already promoted the recovered
point to data.curr.
Trait Implementations§
Source§impl Clone for RestorationOutcome
impl Clone for RestorationOutcome
Source§fn clone(&self) -> RestorationOutcome
fn clone(&self) -> RestorationOutcome
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for RestorationOutcome
Source§impl Debug for RestorationOutcome
impl Debug for RestorationOutcome
impl Eq for RestorationOutcome
Source§impl PartialEq for RestorationOutcome
impl PartialEq 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§
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
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> ⓘ
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> ⓘ
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