pub struct LinDist3FlowOpfSolution { /* private fields */ }Expand description
The calculation types used by solver consumers. The full problem
vocabulary lives in powerio_prob; these types sit at the facade root so
a consumer does not need a second PowerIO dependency to name its boundary.
A solution of the fixed-reference LinDist3Flow OPF approximation.
Implementations§
Source§impl LinDist3FlowOpfSolution
impl LinDist3FlowOpfSolution
pub const FORMULATION: &'static str = "lindist3flow"
Sourcepub fn new(
instance: Arc<LinDist3FlowOpfInstance>,
termination: Termination,
values: LinDist3FlowOpfValues,
objective: f64,
) -> Result<LinDist3FlowOpfSolution, Error>
pub fn new( instance: Arc<LinDist3FlowOpfInstance>, termination: Termination, values: LinDist3FlowOpfValues, objective: f64, ) -> Result<LinDist3FlowOpfSolution, Error>
Construct a result in the formulation’s documented physical order.
§Errors
Any primal column disagrees with the instance’s node or device axes.
pub const fn formulation(&self) -> &'static str
pub fn instance(&self) -> &LinDist3FlowOpfInstance
pub fn network(&self) -> &MulticonductorNetwork
pub const fn termination(&self) -> &Termination
pub const fn residuals(&self) -> &Residuals
pub fn producer(&self) -> Option<&str>
pub const fn values(&self) -> &LinDist3FlowOpfValues
pub const fn objective(&self) -> f64
pub fn with_producer( self, producer: impl Into<String>, ) -> LinDist3FlowOpfSolution
pub const fn with_residuals( self, residuals: Residuals, ) -> LinDist3FlowOpfSolution
pub fn node_order(&self) -> impl ExactSizeIterator
pub fn terminal_voltage_magnitude_squared( &self, bus: &str, terminal: &str, ) -> Option<f64>
pub fn terminal_voltage_magnitude( &self, bus: &str, terminal: &str, ) -> Option<f64>
pub fn line_active_power(&self, line: &str, conductor: usize) -> Option<f64>
pub fn line_reactive_power(&self, line: &str, conductor: usize) -> Option<f64>
pub fn generator_active_power( &self, generator: &str, channel: usize, ) -> Option<f64>
pub fn generator_reactive_power( &self, generator: &str, channel: usize, ) -> Option<f64>
pub fn source_active_power(&self, source: &str, channel: usize) -> Option<f64>
pub fn source_reactive_power(&self, source: &str, channel: usize) -> Option<f64>
Trait Implementations§
Source§impl Clone for LinDist3FlowOpfSolution
impl Clone for LinDist3FlowOpfSolution
Source§fn clone(&self) -> LinDist3FlowOpfSolution
fn clone(&self) -> LinDist3FlowOpfSolution
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 LinDist3FlowOpfSolution
impl Debug for LinDist3FlowOpfSolution
Source§impl From<LinDist3FlowOpfSolution> for PioValue
impl From<LinDist3FlowOpfSolution> for PioValue
Source§fn from(value: LinDist3FlowOpfSolution) -> Self
fn from(value: LinDist3FlowOpfSolution) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LinDist3FlowOpfSolution
impl RefUnwindSafe for LinDist3FlowOpfSolution
impl Send for LinDist3FlowOpfSolution
impl Sync for LinDist3FlowOpfSolution
impl Unpin for LinDist3FlowOpfSolution
impl UnsafeUnpin for LinDist3FlowOpfSolution
impl UnwindSafe for LinDist3FlowOpfSolution
Blanket Implementations§
impl<T> Allocation 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
Mutably borrows from an owned value. Read more