pub enum ProblemError {
Dimension {
field: &'static str,
expected: usize,
actual: usize,
},
NonFinite(&'static str),
NonConvex(&'static str),
NotSquare(&'static str),
NotSymmetric(&'static str),
InvalidBounds {
index: usize,
lower: f64,
upper: f64,
},
}Expand description
Input validation errors.
Variants§
Dimension
A vector or matrix dimension is inconsistent.
Fields
NonFinite(&'static str)
A coefficient that must be finite is NaN or infinite.
NonConvex(&'static str)
Convexity data is invalid.
NotSquare(&'static str)
A matrix expected to be square is not.
NotSymmetric(&'static str)
A matrix expected to be symmetric is not.
InvalidBounds
Lower and upper bounds are inconsistent.
Trait Implementations§
Source§impl Clone for ProblemError
impl Clone for ProblemError
Source§fn clone(&self) -> ProblemError
fn clone(&self) -> ProblemError
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 ProblemError
impl Debug for ProblemError
Source§impl Display for ProblemError
impl Display for ProblemError
Source§impl Error for ProblemError
impl Error for ProblemError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<ProblemError> for GeneratorError
impl From<ProblemError> for GeneratorError
Source§fn from(source: ProblemError) -> GeneratorError
fn from(source: ProblemError) -> GeneratorError
Converts to this type from the input type.
Source§impl From<ProblemError> for PortfolioError
impl From<ProblemError> for PortfolioError
Source§fn from(source: ProblemError) -> PortfolioError
fn from(source: ProblemError) -> PortfolioError
Converts to this type from the input type.
Source§impl From<ProblemError> for SolverError
impl From<ProblemError> for SolverError
Source§fn from(source: ProblemError) -> SolverError
fn from(source: ProblemError) -> SolverError
Converts to this type from the input type.
Source§impl PartialEq for ProblemError
impl PartialEq for ProblemError
impl StructuralPartialEq for ProblemError
Auto Trait Implementations§
impl Freeze for ProblemError
impl RefUnwindSafe for ProblemError
impl Send for ProblemError
impl Sync for ProblemError
impl Unpin for ProblemError
impl UnsafeUnpin for ProblemError
impl UnwindSafe for ProblemError
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