pub enum SolverError {
InvalidProblem(ProblemError),
InvalidSettings(&'static str),
NonPositiveSemidefiniteOmega,
LinearSystem,
Kkt(KktError),
WarmStartDimension {
field: &'static str,
expected: usize,
actual: usize,
},
WarmStartNonFinite(&'static str),
}Expand description
Errors that prevent solver setup.
Variants§
InvalidProblem(ProblemError)
Invalid QP data.
InvalidSettings(&'static str)
Invalid scalar solver setting.
NonPositiveSemidefiniteOmega
Dense factor covariance is not positive semidefinite.
LinearSystem
A reduced positive-definite system could not be factored.
Kkt(KktError)
Internal KKT diagnostic dimensions were inconsistent.
WarmStartDimension
A warm-start vector has the wrong length.
Fields
WarmStartNonFinite(&'static str)
A warm-start vector contains NaN or infinity.
Trait Implementations§
Source§impl Debug for SolverError
impl Debug for SolverError
Source§impl Display for SolverError
impl Display for SolverError
Source§impl Error for SolverError
impl Error for SolverError
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<KktError> for SolverError
impl From<KktError> for SolverError
Source§impl From<ProblemError> for SolverError
impl From<ProblemError> for SolverError
Source§fn from(source: ProblemError) -> Self
fn from(source: ProblemError) -> Self
Converts to this type from the input type.
Source§impl From<SolverError> for PortfolioError
impl From<SolverError> for PortfolioError
Source§fn from(source: SolverError) -> Self
fn from(source: SolverError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SolverError
impl RefUnwindSafe for SolverError
impl Send for SolverError
impl Sync for SolverError
impl Unpin for SolverError
impl UnsafeUnpin for SolverError
impl UnwindSafe for SolverError
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