#[non_exhaustive]pub struct VariableSensitivity {
pub name: String,
pub value: Rational,
pub basic: bool,
pub reduced_cost: Rational,
pub cost_range: Interval,
}Expand description
Sensitivity of one original variable.
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.name: String§value: Rational§basic: boolThe variable is in the final basis.
reduced_cost: Rationalz_j - c_j in the final tableau (0 for basic variables). For a nonbasic variable it
is how much its cost must improve before it is worth producing.
cost_range: IntervalValues of the cost c_j (all else equal) for which the final basis, and so the
current solution, stays optimal.
Trait Implementations§
Source§impl Clone for VariableSensitivity
impl Clone for VariableSensitivity
Source§impl Debug for VariableSensitivity
impl Debug for VariableSensitivity
Source§impl<'de> Deserialize<'de> for VariableSensitivity
impl<'de> Deserialize<'de> for VariableSensitivity
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 VariableSensitivity
Source§impl PartialEq for VariableSensitivity
impl PartialEq for VariableSensitivity
Source§impl Serialize for VariableSensitivity
impl Serialize for VariableSensitivity
impl StructuralPartialEq for VariableSensitivity
Auto Trait Implementations§
impl Freeze for VariableSensitivity
impl RefUnwindSafe for VariableSensitivity
impl Send for VariableSensitivity
impl Sync for VariableSensitivity
impl Unpin for VariableSensitivity
impl UnsafeUnpin for VariableSensitivity
impl UnwindSafe for VariableSensitivity
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