#[repr(i32)]pub enum ApplicationReturnStatus {
Show 20 variants
SolveSucceeded = 0,
SolvedToAcceptableLevel = 1,
InfeasibleProblemDetected = 2,
SearchDirectionBecomesTooSmall = 3,
DivergingIterates = 4,
UserRequestedStop = 5,
FeasiblePointFound = 6,
MaximumIterationsExceeded = -1,
RestorationFailed = -2,
ErrorInStepComputation = -3,
MaximumCpuTimeExceeded = -4,
MaximumWallTimeExceeded = -5,
NotEnoughDegreesOfFreedom = -10,
InvalidProblemDefinition = -11,
InvalidOption = -12,
InvalidNumberDetected = -13,
UnrecoverableException = -100,
NonIpoptExceptionThrown = -101,
InsufficientMemory = -102,
InternalError = -199,
}Expand description
Mirrors enum ApplicationReturnStatus.
Variants§
SolveSucceeded = 0
SolvedToAcceptableLevel = 1
InfeasibleProblemDetected = 2
SearchDirectionBecomesTooSmall = 3
DivergingIterates = 4
UserRequestedStop = 5
FeasiblePointFound = 6
MaximumIterationsExceeded = -1
RestorationFailed = -2
ErrorInStepComputation = -3
MaximumCpuTimeExceeded = -4
MaximumWallTimeExceeded = -5
NotEnoughDegreesOfFreedom = -10
InvalidProblemDefinition = -11
InvalidOption = -12
InvalidNumberDetected = -13
UnrecoverableException = -100
NonIpoptExceptionThrown = -101
InsufficientMemory = -102
InternalError = -199
Implementations§
Source§impl ApplicationReturnStatus
impl ApplicationReturnStatus
pub fn as_int(self) -> i32
Sourcepub fn upstream_name(self) -> &'static str
pub fn upstream_name(self) -> &'static str
The upstream C enumerator spelling (Solve_Succeeded,
Infeasible_Problem_Detected, …) from IpReturnCodes_inc.h.
This is the name every consumer of Ipopt already keys off — CUTEst
status tables, benchmarks/scripts/run_nl_bench.sh, the reference
JSONs under benchmarks/*/ipopt_ma57.json — so it is what the CLI
prints on its machine-readable Status: line. The Rust Debug name
is not interchangeable with it: Debug gives SolveSucceeded, and
anything comparing against upstream’s tables would silently never
match.
Trait Implementations§
Source§impl Clone for ApplicationReturnStatus
impl Clone for ApplicationReturnStatus
Source§fn clone(&self) -> ApplicationReturnStatus
fn clone(&self) -> ApplicationReturnStatus
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 moreimpl Copy for ApplicationReturnStatus
Source§impl Debug for ApplicationReturnStatus
impl Debug for ApplicationReturnStatus
Source§impl<'de> Deserialize<'de> for ApplicationReturnStatus
impl<'de> Deserialize<'de> for ApplicationReturnStatus
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ApplicationReturnStatus, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ApplicationReturnStatus, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ApplicationReturnStatus
Source§impl Hash for ApplicationReturnStatus
impl Hash for ApplicationReturnStatus
Source§impl PartialEq for ApplicationReturnStatus
impl PartialEq for ApplicationReturnStatus
Source§impl Serialize for ApplicationReturnStatus
impl Serialize for ApplicationReturnStatus
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ApplicationReturnStatus
Auto Trait Implementations§
impl Freeze for ApplicationReturnStatus
impl RefUnwindSafe for ApplicationReturnStatus
impl Send for ApplicationReturnStatus
impl Sync for ApplicationReturnStatus
impl Unpin for ApplicationReturnStatus
impl UnsafeUnpin for ApplicationReturnStatus
impl UnwindSafe for ApplicationReturnStatus
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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