#[non_exhaustive]pub struct ScucInputs {
pub interval_durations: Vec<f64>,
pub devices: Vec<ScucDevice>,
pub shunts: Vec<ScucShunt>,
pub branch_switching_costs: Vec<ScucBranchSwitchingCost>,
pub transformer_controls: Vec<ScucTransformerControl>,
pub active_reserve_zones: Vec<ScucActiveReserveZone>,
pub reactive_reserve_zones: Vec<ScucReactiveReserveZone>,
pub contingencies: Vec<ScucContingency>,
pub violation_costs: ScucViolationCosts,
}Expand description
Scheduling, reserve, and contingency inputs for an AC SCUC calculation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.interval_durations: Vec<f64>Interval durations in chronological order, in hours.
devices: Vec<ScucDevice>§shunts: Vec<ScucShunt>§branch_switching_costs: Vec<ScucBranchSwitchingCost>§transformer_controls: Vec<ScucTransformerControl>§active_reserve_zones: Vec<ScucActiveReserveZone>§reactive_reserve_zones: Vec<ScucReactiveReserveZone>§contingencies: Vec<ScucContingency>§violation_costs: ScucViolationCostsImplementations§
Source§impl ScucInputs
impl ScucInputs
Sourcepub fn producers(&self) -> impl Iterator<Item = &ScucDevice>
pub fn producers(&self) -> impl Iterator<Item = &ScucDevice>
Producing devices in source order.
Sourcepub fn consumers(&self) -> impl Iterator<Item = &ScucDevice>
pub fn consumers(&self) -> impl Iterator<Item = &ScucDevice>
Consuming devices in source order.
Sourcepub fn device(&self, uid: &str) -> Option<&ScucDevice>
pub fn device(&self, uid: &str) -> Option<&ScucDevice>
Find a dispatchable device by its source UID.
Sourcepub fn contingency(&self, uid: &str) -> Option<&ScucContingency>
pub fn contingency(&self, uid: &str) -> Option<&ScucContingency>
Find a contingency by its source UID.
Sourcepub fn interval_durations(&self) -> &[f64]
pub fn interval_durations(&self) -> &[f64]
Interval durations in chronological order, in hours.
Trait Implementations§
Source§impl Clone for ScucInputs
impl Clone for ScucInputs
Source§fn clone(&self) -> ScucInputs
fn clone(&self) -> ScucInputs
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 ScucInputs
impl Debug for ScucInputs
Source§impl<'de> Deserialize<'de> for ScucInputs
impl<'de> Deserialize<'de> for ScucInputs
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 JsonSchema for ScucInputs
impl JsonSchema for ScucInputs
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ScucInputs
impl PartialEq for ScucInputs
Source§fn eq(&self, other: &ScucInputs) -> bool
fn eq(&self, other: &ScucInputs) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ScucInputs
impl Serialize for ScucInputs
impl StructuralPartialEq for ScucInputs
Auto Trait Implementations§
impl Freeze for ScucInputs
impl RefUnwindSafe for ScucInputs
impl Send for ScucInputs
impl Sync for ScucInputs
impl Unpin for ScucInputs
impl UnsafeUnpin for ScucInputs
impl UnwindSafe for ScucInputs
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