pub struct LocalSensitivity {
pub constraint_idx: usize,
pub base_slack: f32,
pub positive_changes: Vec<(f32, f32)>,
pub negative_changes: Vec<(f32, f32)>,
}Expand description
Local sensitivity analysis result for a single constraint
Fields§
§constraint_idx: usizeIndex of the constraint being analyzed
base_slack: f32Base slack value at the solution point
positive_changes: Vec<(f32, f32)>Changes in slack for positive perturbations: (delta, slack_change)
negative_changes: Vec<(f32, f32)>Changes in slack for negative perturbations: (delta, slack_change)
Implementations§
Trait Implementations§
Source§impl Clone for LocalSensitivity
impl Clone for LocalSensitivity
Source§fn clone(&self) -> LocalSensitivity
fn clone(&self) -> LocalSensitivity
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LocalSensitivity
impl RefUnwindSafe for LocalSensitivity
impl Send for LocalSensitivity
impl Sync for LocalSensitivity
impl Unpin for LocalSensitivity
impl UnwindSafe for LocalSensitivity
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more