pub struct AcOpfOptions {
pub units: Units,
pub skip_zero_impedance: bool,
}Expand description
Options for AC OPF instance assembly.
There is no convention enum: the branch pi model always carries taps, shifts, and charging.
Fields§
§units: Units§skip_zero_impedance: boolSkip non-self-loop branches with r² + x² = 0. If false, assembly
returns Error::ZeroImpedance.
Trait Implementations§
Source§impl Clone for AcOpfOptions
impl Clone for AcOpfOptions
Source§fn clone(&self) -> AcOpfOptions
fn clone(&self) -> AcOpfOptions
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 moreimpl Copy for AcOpfOptions
Source§impl Debug for AcOpfOptions
impl Debug for AcOpfOptions
Source§impl Default for AcOpfOptions
impl Default for AcOpfOptions
Source§impl<'de> Deserialize<'de> for AcOpfOptions
impl<'de> Deserialize<'de> for AcOpfOptions
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
impl Eq for AcOpfOptions
Source§impl PartialEq for AcOpfOptions
impl PartialEq for AcOpfOptions
Source§impl Serialize for AcOpfOptions
impl Serialize for AcOpfOptions
impl StructuralPartialEq for AcOpfOptions
Auto Trait Implementations§
impl Freeze for AcOpfOptions
impl RefUnwindSafe for AcOpfOptions
impl Send for AcOpfOptions
impl Sync for AcOpfOptions
impl Unpin for AcOpfOptions
impl UnsafeUnpin for AcOpfOptions
impl UnwindSafe for AcOpfOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.