pub struct BusOverride {
pub bus: usize,
pub p_spec: Option<f64>,
pub q_spec: Option<f64>,
pub voltage_mag: Option<f64>,
}Expand description
A per-bus change applied on top of the batch’s shared bus template.
None fields leave the template’s value alone.
Deliberately cannot change bus_type: switching PV↔PQ changes
n_unknowns, which invalidates the cached symbolic factorization that
makes batching worth doing at all. A caller that needs per-scenario bus
types wants separate batches, one per type assignment.
Fields§
§bus: usize§p_spec: Option<f64>§q_spec: Option<f64>§voltage_mag: Option<f64>Voltage setpoint for a Slack/PV bus. Ignored for PQ buses,
whose magnitude is an unknown the solver overwrites.
Implementations§
Trait Implementations§
Source§impl Clone for BusOverride
impl Clone for BusOverride
impl Copy for BusOverride
Source§impl Debug for BusOverride
impl Debug for BusOverride
Source§impl Default for BusOverride
impl Default for BusOverride
Source§impl PartialEq for BusOverride
impl PartialEq for BusOverride
impl StructuralPartialEq for BusOverride
Auto Trait Implementations§
impl Freeze for BusOverride
impl RefUnwindSafe for BusOverride
impl Send for BusOverride
impl Sync for BusOverride
impl Unpin for BusOverride
impl UnsafeUnpin for BusOverride
impl UnwindSafe for BusOverride
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