#[non_exhaustive]pub struct DcOpfAssemblyOptions {
pub units: Units,
pub skip_zero_impedance: bool,
pub synthesize_unrated_limits: bool,
pub synthesized_limit_window: SynthesizedLimitWindow,
pub correct_angle_difference_bounds: bool,
pub hvdc_treatment: HvdcTreatment,
pub angle_difference_bounds: Option<AngleDifferenceBounds>,
}Expand description
Assembly choices that select the numerical content derived from an instance without changing the instance itself.
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 an unusable formula denominator.
Series-admittance formulas bound hypot(r, x); reciprocal-reactance
formulas bound abs(x). Purely resistive branches remain as zero-weight
rows for series-admittance formulas. 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, an absent rating reads as unlimited.
synthesized_limit_window: SynthesizedLimitWindowThe angle difference interval a synthesized limit spans: the source’s
stated one (the default) or the selected bounds the preparation
carries (SynthesizedLimitWindow).
correct_angle_difference_bounds: boolApply PowerModels’ ±60 degree correction to unconstrained or unusable branch angle difference intervals in the prepared arrays.
hvdc_treatment: HvdcTreatmentHow in service HVDC lines enter the fixed withdrawal. The default
carries each as a fixed injection at its stated terminal powers
(DcOpfPreparation::p_hvdc).
angle_difference_bounds: Option<AngleDifferenceBounds>The angle difference bounds selected with
with_angle_difference_bounds. None, the default, leaves the choice
to correct_angle_difference_bounds
(AngleDifferenceBounds::from_correct_flag).
Implementations§
Source§impl DcOpfAssemblyOptions
impl DcOpfAssemblyOptions
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
Sourcepub const fn with_synthesized_limit_window(
self,
window: SynthesizedLimitWindow,
) -> Self
pub const fn with_synthesized_limit_window( self, window: SynthesizedLimitWindow, ) -> Self
Select the angle difference interval a synthesized limit spans.
Sourcepub const fn with_correct_angle_difference_bounds(self, correct: bool) -> Self
pub const fn with_correct_angle_difference_bounds(self, correct: bool) -> Self
Turn PowerModels’ angle difference pad on or off. This clears a
selection made with with_angle_difference_bounds.
pub const fn with_hvdc_treatment(self, treatment: HvdcTreatment) -> Self
Sourcepub const fn with_angle_difference_bounds(
self,
bounds: AngleDifferenceBounds,
) -> Self
pub const fn with_angle_difference_bounds( self, bounds: AngleDifferenceBounds, ) -> Self
Select the angle difference bounds the prepared arrays carry. The
selection takes precedence over correct_angle_difference_bounds,
which it sets to whether the selection pads.
Sourcepub const fn selected_angle_difference_bounds(&self) -> AngleDifferenceBounds
pub const fn selected_angle_difference_bounds(&self) -> AngleDifferenceBounds
The angle difference bounds these options select.
Trait Implementations§
Source§impl Clone for DcOpfAssemblyOptions
impl Clone for DcOpfAssemblyOptions
impl Copy for DcOpfAssemblyOptions
Source§impl Debug for DcOpfAssemblyOptions
impl Debug for DcOpfAssemblyOptions
Source§impl Default for DcOpfAssemblyOptions
impl Default for DcOpfAssemblyOptions
impl Eq for DcOpfAssemblyOptions
Source§impl PartialEq for DcOpfAssemblyOptions
impl PartialEq for DcOpfAssemblyOptions
impl StructuralPartialEq for DcOpfAssemblyOptions
Auto Trait Implementations§
impl Freeze for DcOpfAssemblyOptions
impl RefUnwindSafe for DcOpfAssemblyOptions
impl Send for DcOpfAssemblyOptions
impl Sync for DcOpfAssemblyOptions
impl Unpin for DcOpfAssemblyOptions
impl UnsafeUnpin for DcOpfAssemblyOptions
impl UnwindSafe for DcOpfAssemblyOptions
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.