pub struct DcBatchResult {
pub voltage_ang: Vec<f64>,
pub branch_p: Vec<f64>,
pub slack_pickup: Vec<f64>,
}Expand description
One scenario’s DC answer.
Fields§
§voltage_ang: Vec<f64>Bus voltage angles, radians, one per bus.
branch_p: Vec<f64>Active power entering each branch at its from terminal, per-unit,
indexed by the flat branch index — the same space
DcSolution::branch_p uses.
slack_pickup: Vec<f64>Total active power each island’s reference bus(es) supply, per-unit,
in the same order as DcBatchSolver::islands.
DC is lossless, so this is exactly the negation of everything else the island injects — computed from the scenario’s injections directly rather than from the solved flows.
Trait Implementations§
Source§impl Clone for DcBatchResult
impl Clone for DcBatchResult
Source§impl Debug for DcBatchResult
impl Debug for DcBatchResult
Source§impl PartialEq for DcBatchResult
impl PartialEq for DcBatchResult
impl StructuralPartialEq for DcBatchResult
Auto Trait Implementations§
impl Freeze for DcBatchResult
impl RefUnwindSafe for DcBatchResult
impl Send for DcBatchResult
impl Sync for DcBatchResult
impl Unpin for DcBatchResult
impl UnsafeUnpin for DcBatchResult
impl UnwindSafe for DcBatchResult
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
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