pub struct DcOptions {
pub approximation: DcApproximation,
pub use_transformer_ratio: bool,
}Expand description
Configuration for the DC (Bθ) solver and for sensitivity::DcSensitivity.
Deliberately small: DC has no tolerance and no iteration limit, because it is a direct solve. The only real choices are which susceptance to use and whether transformer ratios participate.
Fields§
§approximation: DcApproximation§use_transformer_ratio: boolWhether an off-nominal transformer ratio k = |tap| divides the
branch susceptance (b/k). True by default, matching MATPOWER
(b ./ tap) and powsybl (useTransformerRatio). Setting it false
reproduces the cruder “ratios are all 1” approximation some
contingency tools still assume.
Trait Implementations§
impl Copy for DcOptions
impl StructuralPartialEq for DcOptions
Auto Trait Implementations§
impl Freeze for DcOptions
impl RefUnwindSafe for DcOptions
impl Send for DcOptions
impl Sync for DcOptions
impl Unpin for DcOptions
impl UnsafeUnpin for DcOptions
impl UnwindSafe for DcOptions
Blanket Implementations§
impl<T> Boilerplate for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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,
impl<T, U> Imply<T> for U
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