#[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 (or one of its columns, if it is free or non-positive) is in the final basis.
reduced_cost: Rationalz_j - c_j = sum_i y_i a_ij - c_j, which is z_j - c_j in the final tableau for a
non-negative variable (0 if basic). For a nonbasic variable it is how much its cost
must improve before it is worth producing. A non-positive variable’s column x- shows
it negated; a free variable’s columns show +- it, and at an optimum it is 0.
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