pub struct DcSensitivityOptions {
pub slack: DcSensitivitySlack,
}Expand description
Options for PTDF and OTDF sensitivity wrappers.
Fields§
§slack: DcSensitivitySlackSlack-balancing policy for sensitivity computation.
Implementations§
Source§impl DcSensitivityOptions
impl DcSensitivityOptions
Sourcepub fn with_slack_weights(slack_weights: &[(usize, f64)]) -> Self
pub fn with_slack_weights(slack_weights: &[(usize, f64)]) -> Self
Create options with fixed participation-weight slack balancing.
Sourcepub fn with_headroom_slack(participating_bus_indices: &[usize]) -> Self
pub fn with_headroom_slack(participating_bus_indices: &[usize]) -> Self
Create options with headroom-limited slack balancing.
Trait Implementations§
Source§impl Clone for DcSensitivityOptions
impl Clone for DcSensitivityOptions
Source§fn clone(&self) -> DcSensitivityOptions
fn clone(&self) -> DcSensitivityOptions
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 moreSource§impl Debug for DcSensitivityOptions
impl Debug for DcSensitivityOptions
Source§impl Default for DcSensitivityOptions
impl Default for DcSensitivityOptions
Source§fn default() -> DcSensitivityOptions
fn default() -> DcSensitivityOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for DcSensitivityOptions
impl PartialEq for DcSensitivityOptions
impl StructuralPartialEq for DcSensitivityOptions
Auto Trait Implementations§
impl Freeze for DcSensitivityOptions
impl RefUnwindSafe for DcSensitivityOptions
impl Send for DcSensitivityOptions
impl Sync for DcSensitivityOptions
impl Unpin for DcSensitivityOptions
impl UnsafeUnpin for DcSensitivityOptions
impl UnwindSafe for DcSensitivityOptions
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> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
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