#[non_exhaustive]pub struct AcOpfAssemblyOptions {
pub units: Units,
pub skip_zero_impedance: bool,
pub synthesize_unrated_limits: bool,
pub correct_angle_difference_bounds: bool,
}Expand description
Assembly choices that select the numerical content derived from an AC instance without changing the instance itself. There is no convention field: the branch pi model always carries taps, shifts, and charging.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.units: UnitsPower and cost scaling of the derived arrays.
skip_zero_impedance: boolSkip non-self-loop branches with r² + x² = 0. Off by default: zero
impedance branches are preserved in networks and instances, so
assembly refuses them until the caller resolves them explicitly
(powerio_prob::merge_zero_impedance_buses) or opts into skipping.
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.
correct_angle_difference_bounds: boolApply PowerModels’ ±60 degree correction to unconstrained or unusable branch angle difference intervals in the prepared arrays.
Implementations§
Source§impl AcOpfAssemblyOptions
impl AcOpfAssemblyOptions
pub const fn with_units(self, units: Units) -> Self
pub const fn with_skip_zero_impedance(self, skip: bool) -> Self
pub const fn with_synthesize_unrated_limits(self, synthesize: bool) -> Self
pub const fn with_correct_angle_difference_bounds(self, correct: bool) -> Self
Trait Implementations§
Source§impl Clone for AcOpfAssemblyOptions
impl Clone for AcOpfAssemblyOptions
Source§fn clone(&self) -> AcOpfAssemblyOptions
fn clone(&self) -> AcOpfAssemblyOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for AcOpfAssemblyOptions
Source§impl Debug for AcOpfAssemblyOptions
impl Debug for AcOpfAssemblyOptions
Source§impl Default for AcOpfAssemblyOptions
impl Default for AcOpfAssemblyOptions
impl Eq for AcOpfAssemblyOptions
Source§impl PartialEq for AcOpfAssemblyOptions
impl PartialEq for AcOpfAssemblyOptions
Source§fn eq(&self, other: &AcOpfAssemblyOptions) -> bool
fn eq(&self, other: &AcOpfAssemblyOptions) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AcOpfAssemblyOptions
Auto Trait Implementations§
impl Freeze for AcOpfAssemblyOptions
impl RefUnwindSafe for AcOpfAssemblyOptions
impl Send for AcOpfAssemblyOptions
impl Sync for AcOpfAssemblyOptions
impl Unpin for AcOpfAssemblyOptions
impl UnsafeUnpin for AcOpfAssemblyOptions
impl UnwindSafe for AcOpfAssemblyOptions
Blanket Implementations§
impl<T> Allocation for T
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
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,
§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
§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
key and return true if they are equal.