pub struct AcOpfOptions {
pub units: Units,
pub skip_zero_impedance: bool,
pub synthesize_unrated_limits: 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 powerio::Error::ZeroImpedance.
synthesize_unrated_limits: boolGive a branch with no thermal rating the bound
Branch::synthesize_rate_a
states. If false, rate_a <= 0 reaches s_max as zero, which reads as
unlimited.
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 moreSource§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
Source§impl PartialEq for AcOpfOptions
impl PartialEq for AcOpfOptions
Source§fn eq(&self, other: &AcOpfOptions) -> bool
fn eq(&self, other: &AcOpfOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AcOpfOptions
impl Serialize for AcOpfOptions
impl Copy for AcOpfOptions
impl Eq 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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more