#[non_exhaustive]pub struct McOpfDroop {
pub monitors: Vec<(usize, Option<usize>)>,
pub knots: Vec<f64>,
pub values: Vec<f64>,
pub epsilon: f64,
}Expand description
Smooth clipped piecewise-linear controller, with SI-derived per-unit knots.
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.monitors: Vec<(usize, Option<usize>)>Voltage-difference terminal pairs; None means physical ground. Multiple pairs use averaged magnitudes.
knots: Vec<f64>Strictly increasing voltage knots divided by V_base.
values: Vec<f64>Control power at each knot, divided by S_base.
epsilon: f64Positive softplus smoothing width in per-unit voltage.
Trait Implementations§
Source§impl Clone for McOpfDroop
impl Clone for McOpfDroop
Source§fn clone(&self) -> McOpfDroop
fn clone(&self) -> McOpfDroop
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for McOpfDroop
impl Debug for McOpfDroop
Source§impl<'de> Deserialize<'de> for McOpfDroop
impl<'de> Deserialize<'de> for McOpfDroop
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for McOpfDroop
impl RefUnwindSafe for McOpfDroop
impl Send for McOpfDroop
impl Sync for McOpfDroop
impl Unpin for McOpfDroop
impl UnsafeUnpin for McOpfDroop
impl UnwindSafe for McOpfDroop
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