#[non_exhaustive]pub struct Source {
pub column: usize,
pub name: String,
pub negated: bool,
}Expand description
A cell of the final tableau’s objective row.
The shadow price of a constraint equals the z_j - c_j entry under the column of its
slack (<=), its surplus (>=, negated) or, with Big-M, the constant part of the entry
under its artificial variable (=). It is negated once more if the constraint was
multiplied by -1 to make its right-hand side non-negative. The two-phase method drops the
artificial columns, so for its equalities there is no such cell.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.column: usizeColumn index in the final tableau.
name: StringColumn name, e.g. "s2".
negated: boolThe shadow price is the negated cell.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Source
impl<'de> Deserialize<'de> for Source
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Source
impl StructuralPartialEq for Source
Auto Trait Implementations§
impl Freeze for Source
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnsafeUnpin for Source
impl UnwindSafe for Source
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