pub struct LinDist3FlowOpfSolution { /* private fields */ }Expand description
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<Self, Error>
pub fn new( instance: Arc<LinDist3FlowOpfInstance>, termination: Termination, values: LinDist3FlowOpfValues, objective: f64, ) -> Result<Self, 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>) -> Self
pub const fn with_residuals(self, residuals: Residuals) -> Self
pub fn node_order(&self) -> impl ExactSizeIterator<Item = &LinDist3FlowNode>
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 moreAuto 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§
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