pub enum SimplexError {
IndexOutOfBounds {
index: usize,
len: usize,
},
NotYetSolved,
Infeasible,
Unbounded,
}Expand description
Error type for SimplexSolver.
Variants§
IndexOutOfBounds
Index out of bounds.
NotYetSolved
Shadow price queried before solving.
Infeasible
The LP is infeasible so shadow prices are undefined.
Unbounded
The LP is unbounded so shadow prices are undefined.
Trait Implementations§
Source§impl Clone for SimplexError
impl Clone for SimplexError
Source§fn clone(&self) -> SimplexError
fn clone(&self) -> SimplexError
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 SimplexError
impl Debug for SimplexError
Source§impl Display for SimplexError
impl Display for SimplexError
Source§impl Error for SimplexError
impl Error for SimplexError
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()
Auto Trait Implementations§
impl Freeze for SimplexError
impl RefUnwindSafe for SimplexError
impl Send for SimplexError
impl Sync for SimplexError
impl Unpin for SimplexError
impl UnsafeUnpin for SimplexError
impl UnwindSafe for SimplexError
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