Skip to main content

OpfDeviceDispatch

Struct OpfDeviceDispatch 

Source
pub struct OpfDeviceDispatch {
Show 17 fields pub switched_shunt_dispatch: Vec<(usize, f64, f64)>, pub tap_dispatch: Vec<(usize, f64, f64)>, pub phase_dispatch: Vec<(usize, f64, f64)>, pub svc_dispatch: Vec<(usize, f64, f64, f64)>, pub tcsc_dispatch: Vec<(usize, f64, f64, f64)>, pub storage_net_mw: Vec<f64>, pub dispatchable_load_served_mw: Vec<f64>, pub dispatchable_load_served_q_mvar: Vec<f64>, pub producer_q_reserve_up_mvar: Vec<f64>, pub producer_q_reserve_down_mvar: Vec<f64>, pub consumer_q_reserve_up_mvar: Vec<f64>, pub consumer_q_reserve_down_mvar: Vec<f64>, pub zone_q_reserve_up_shortfall_mvar: Vec<f64>, pub zone_q_reserve_down_shortfall_mvar: Vec<f64>, pub hvdc_p2p_dispatch_mw: Vec<f64>, pub discrete_feasible: Option<bool>, pub discrete_violations: Vec<String>,
}
Expand description

FACTS device, storage, and transformer dispatch results.

Fields§

§switched_shunt_dispatch: Vec<(usize, f64, f64)>

Switched shunt dispatch: (bus_idx, continuous_b_pu, rounded_b_pu).

§tap_dispatch: Vec<(usize, f64, f64)>

Transformer tap dispatch: (branch_idx, continuous_tap, rounded_tap).

§phase_dispatch: Vec<(usize, f64, f64)>

Phase-shifter dispatch: (branch_idx, continuous_rad, rounded_rad).

§svc_dispatch: Vec<(usize, f64, f64, f64)>

SVC dispatch: (device_index, optimal_b_svc_pu, mu_lower, mu_upper).

§tcsc_dispatch: Vec<(usize, f64, f64, f64)>

TCSC dispatch: (device_index, optimal_x_comp_pu, mu_lower, mu_upper).

§storage_net_mw: Vec<f64>

Net storage dispatch (MW). Positive = discharging, negative = charging.

§dispatchable_load_served_mw: Vec<f64>

Dispatchable-load real power served (MW), in active resource order.

§dispatchable_load_served_q_mvar: Vec<f64>

Dispatchable-load reactive power served (MVAr), in active resource order.

§producer_q_reserve_up_mvar: Vec<f64>

Cleared producer reactive up-reserve award per in-service generator (MVAr), in gen_indices order. AC-OPF only; empty otherwise or when the network has no reactive reserve products.

§producer_q_reserve_down_mvar: Vec<f64>

Cleared producer reactive down-reserve award per in-service generator (MVAr).

§consumer_q_reserve_up_mvar: Vec<f64>

Cleared consumer reactive up-reserve award per in-service dispatchable load (MVAr).

§consumer_q_reserve_down_mvar: Vec<f64>

Cleared consumer reactive down-reserve award per in-service dispatchable load (MVAr).

§zone_q_reserve_up_shortfall_mvar: Vec<f64>

Zonal reactive up-reserve shortfall per (zone, up product) pair (MVAr). Parallel to the zonal requirement order the AC-OPF walked when building its reactive reserve plan.

§zone_q_reserve_down_shortfall_mvar: Vec<f64>

Zonal reactive down-reserve shortfall per (zone, down product) pair (MVAr).

§hvdc_p2p_dispatch_mw: Vec<f64>

Point-to-point HVDC link P dispatch (MW), in the order the joint AC-DC NLP exposes them. Positive = flow from the link’s from-bus (rectifier) to its to-bus (inverter). Non-empty only when at least one in-service LccHvdcLink/VscHvdcLink has a non-degenerate [p_dc_min_mw, p_dc_max_mw] range AND the AC OPF ran through the joint-NLP path (rather than the legacy sequential AC-DC iteration, which reports the same quantity via AcOpfHvdcResult.hvdc_p_dc_mw).

§discrete_feasible: Option<bool>

Whether the discrete round-and-check verification passed.

None = continuous mode. Some(true) = passed. Some(false) = violations.

§discrete_violations: Vec<String>

Human-readable descriptions of violations introduced by discrete rounding.

Trait Implementations§

Source§

impl Clone for OpfDeviceDispatch

Source§

fn clone(&self) -> OpfDeviceDispatch

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for OpfDeviceDispatch

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for OpfDeviceDispatch

Source§

fn default() -> OpfDeviceDispatch

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for OpfDeviceDispatch

Source§

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 Serialize for OpfDeviceDispatch

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more