#[non_exhaustive]pub struct StatedStateOptions {
pub hvdc_treatment: HvdcTreatment,
pub top_k: usize,
pub merged_buses: BTreeMap<BusId, BusId>,
pub low_impedance_threshold: f64,
pub lcc_reactive_power: LccReactivePower,
}Expand description
Options for calc_stated_state_mismatch.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.hvdc_treatment: HvdcTreatmentHow HVDC lines enter the stated injections.
top_k: usizeHow many buses StatedStateMismatch::top lists. Default 20.
merged_buses: BTreeMap<BusId, BusId>Merged bus to surviving bus, as a bus merge reports it
(BusMerge::merged_buses, or
ZeroImpedanceMerge::merged_buses in powerio-prob). Every
survivor is flagged StatedBusFlags::MERGED_GROUP; the map is not
otherwise read.
low_impedance_threshold: f64Series impedance magnitude, per unit, below which a branch’s
terminals are flagged StatedBusFlags::LOW_IMPEDANCE_BRANCH.
Default 1e-3: a case that states voltage magnitudes to five decimals
leaves such a branch’s flow uncertain by about one MW on a 100 MVA
base.
lcc_reactive_power: LccReactivePowerWhere an LCC converter’s reactive demand comes from.
Implementations§
Source§impl StatedStateOptions
impl StatedStateOptions
pub const fn with_hvdc_treatment(self, treatment: HvdcTreatment) -> Self
pub const fn with_top_k(self, top_k: usize) -> Self
pub fn with_merged_buses(self, merged_buses: BTreeMap<BusId, BusId>) -> Self
pub const fn with_low_impedance_threshold(self, threshold: f64) -> Self
pub const fn with_lcc_reactive_power(self, source: LccReactivePower) -> Self
Trait Implementations§
Source§impl Clone for StatedStateOptions
impl Clone for StatedStateOptions
Source§impl Debug for StatedStateOptions
impl Debug for StatedStateOptions
Source§impl Default for StatedStateOptions
impl Default for StatedStateOptions
Source§impl PartialEq for StatedStateOptions
impl PartialEq for StatedStateOptions
impl StructuralPartialEq for StatedStateOptions
Auto Trait Implementations§
impl Freeze for StatedStateOptions
impl RefUnwindSafe for StatedStateOptions
impl Send for StatedStateOptions
impl Sync for StatedStateOptions
impl Unpin for StatedStateOptions
impl UnsafeUnpin for StatedStateOptions
impl UnwindSafe for StatedStateOptions
Blanket Implementations§
impl<T> Allocation 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