pub enum Variable {
ActiveInjection(usize),
ReactiveInjection(usize),
TransformerRatio(usize),
PhaseShift(usize),
}Expand description
An input the operating point can be differentiated with respect to.
Variants§
ActiveInjection(usize)
Active power injected at a bus, per unit.
Undefined at a slack bus, whose injection is not an input but the solve’s own result — the response there is identically zero, exactly as a DC PTDF column is zero at its reference.
ReactiveInjection(usize)
Reactive power injected at a bus, per unit.
Only meaningful at a PQ bus. At a PV or slack bus the voltage
magnitude is held, so reactive power is an output — the response is
identically zero.
TransformerRatio(usize)
A transformer’s off-nominal voltage-magnitude ratio k, by flat branch
index (lines first, then transformers).
Zero for a line, which has no tap to move.
PhaseShift(usize)
A phase-shifting transformer’s angle α, radians, by flat branch index.
This is the argument of the complex tap — the quantity a phase shifter actually controls, and the one that steers active power.
Trait Implementations§
impl Copy for Variable
impl Eq for Variable
impl StructuralPartialEq for Variable
Auto Trait Implementations§
impl Freeze for Variable
impl RefUnwindSafe for Variable
impl Send for Variable
impl Sync for Variable
impl Unpin for Variable
impl UnsafeUnpin for Variable
impl UnwindSafe for Variable
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
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> ⓘ
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> ⓘ
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