pub struct AcScucInstance { /* private fields */ }Expand description
The AC security constrained unit commitment instance: the shared balanced network plus the Challenge 3 formulation inputs.
Implementations§
Source§impl AcScucInstance
impl AcScucInstance
Sourcepub fn new(network: BalancedNetwork, inputs: ScucInputs) -> Result<Self, Error>
pub fn new(network: BalancedNetwork, inputs: ScucInputs) -> Result<Self, Error>
Assemble the instance from a network and typed AC SCUC inputs. The GO Challenge 3 reader that builds both halves from one document owns identity reconciliation; this constructor checks the identities and time dimensions that must agree for the pair to describe one calculation.
§Errors
A referenced component is absent, an identity is repeated, or a time varying record disagrees with the horizon.
Sourcepub fn network(&self) -> &BalancedNetwork
pub fn network(&self) -> &BalancedNetwork
The balanced network this instance schedules. Borrowed; never a copy.
Sourcepub const fn inputs(&self) -> &ScucInputs
pub const fn inputs(&self) -> &ScucInputs
The Challenge 3 formulation inputs.
Sourcepub fn to_ac_opf(&self) -> Result<(AcOpfInstance, Vec<Diagnostic>), Error>
pub fn to_ac_opf(&self) -> Result<(AcOpfInstance, Vec<Diagnostic>), Error>
The single period AC OPF instance this problem’s network implies. The scheduling categories are discarded and the discard is recorded.
§Errors
Sourcepub fn to_dc_opf(&self) -> Result<(DcOpfInstance, Vec<Diagnostic>), Error>
pub fn to_dc_opf(&self) -> Result<(DcOpfInstance, Vec<Diagnostic>), Error>
The single period DC OPF instance this problem’s network implies.
§Errors
Sourcepub fn to_ac_pf(&self) -> Result<(AcPfInstance, Vec<Diagnostic>), Error>
pub fn to_ac_pf(&self) -> Result<(AcPfInstance, Vec<Diagnostic>), Error>
The AC power flow instance for this problem’s network at its stated injections and setpoints.
§Errors
Sourcepub fn to_dc_pf(&self) -> Result<(DcPfInstance, Vec<Diagnostic>), Error>
pub fn to_dc_pf(&self) -> Result<(DcPfInstance, Vec<Diagnostic>), Error>
The DC power flow instance for this problem’s network at its stated injections.
§Errors
Trait Implementations§
Source§impl Clone for AcScucInstance
impl Clone for AcScucInstance
Source§fn clone(&self) -> AcScucInstance
fn clone(&self) -> AcScucInstance
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more