pub struct PtdfRequest {
pub monitored_branch_indices: Option<Vec<usize>>,
pub bus_indices: Option<Vec<usize>>,
pub options: DcSensitivityOptions,
}Expand description
Advanced request for one-shot PTDF computation.
Fields§
§monitored_branch_indices: Option<Vec<usize>>Branch indices to monitor. None monitors all branches.
bus_indices: Option<Vec<usize>>Bus indices for PTDF columns. None returns all buses.
options: DcSensitivityOptionsSensitivity options (slack policy).
Implementations§
Source§impl PtdfRequest
impl PtdfRequest
Sourcepub fn for_branches(monitored_branch_indices: &[usize]) -> Self
pub fn for_branches(monitored_branch_indices: &[usize]) -> Self
Create a request for the given monitored branches.
Sourcepub fn with_monitored_branches(self, monitored_branch_indices: &[usize]) -> Self
pub fn with_monitored_branches(self, monitored_branch_indices: &[usize]) -> Self
Restrict to specific monitored branches.
Sourcepub fn with_bus_indices(self, bus_indices: &[usize]) -> Self
pub fn with_bus_indices(self, bus_indices: &[usize]) -> Self
Restrict PTDF columns to specific bus indices.
Sourcepub fn with_options(self, options: DcSensitivityOptions) -> Self
pub fn with_options(self, options: DcSensitivityOptions) -> Self
Set sensitivity options (slack policy).
Trait Implementations§
Source§impl Clone for PtdfRequest
impl Clone for PtdfRequest
Source§fn clone(&self) -> PtdfRequest
fn clone(&self) -> PtdfRequest
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 PtdfRequest
impl Debug for PtdfRequest
Source§impl Default for PtdfRequest
impl Default for PtdfRequest
Source§fn default() -> PtdfRequest
fn default() -> PtdfRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for PtdfRequest
impl PartialEq for PtdfRequest
impl StructuralPartialEq for PtdfRequest
Auto Trait Implementations§
impl Freeze for PtdfRequest
impl RefUnwindSafe for PtdfRequest
impl Send for PtdfRequest
impl Sync for PtdfRequest
impl Unpin for PtdfRequest
impl UnsafeUnpin for PtdfRequest
impl UnwindSafe for PtdfRequest
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