pub enum CoppError {
IoError(Error),
ConstraintError(ConstraintError),
PathError(PathError),
Infeasible(String, String),
Unbounded(String, String),
InvalidInput(String, String),
InvalidOptions(String, String),
ClarabelSolverError(String, SolverError),
ClarabelSolverStatus(String, SolverStatus),
Other(String, String),
}Expand description
The error type for COPP.
Variants§
IoError(Error)
Some error occurred in filesystem I/O operations, such as opening/creating log files.
ConstraintError(ConstraintError)
Some error occurred in the Constraint struct, such as invalid input or computation failure.
PathError(PathError)
Some error occurred in the Path struct, such as invalid input or computation failure.
Infeasible(String, String)
The specified optimization problem is reported infeasible by the backend solver.
Unbounded(String, String)
The specified optimization problem is reported unbounded by the backend solver.
InvalidInput(String, String)
The solver/backend rejects the given model or data as invalid input.
InvalidOptions(String, String)
The solver/backend rejects the provided configuration options.
ClarabelSolverError(String, SolverError)
The Clarabel solver returned a concrete internal solver error.
ClarabelSolverStatus(String, SolverStatus)
The Clarabel solver terminated with a non-success status.
Other(String, String)
A backend-specific or uncategorized runtime error is reported.
Trait Implementations§
Source§impl Debug for CoppError
Force the debug format of ToppError to be the same as the display format, which is more concise and user-friendly.
impl Debug for CoppError
Force the debug format of ToppError to be the same as the display format, which is more concise and user-friendly.
Source§impl Error for CoppError
impl Error for CoppError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<ConstraintError> for CoppError
impl From<ConstraintError> for CoppError
Source§fn from(source: ConstraintError) -> Self
fn from(source: ConstraintError) -> Self
Auto Trait Implementations§
impl Freeze for CoppError
impl !RefUnwindSafe for CoppError
impl Send for CoppError
impl Sync for CoppError
impl Unpin for CoppError
impl !UnwindSafe for CoppError
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
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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.