pub struct LinDist3FlowPfSolution { /* private fields */ }Expand description
Result of a fixed-dispatch approximate LinDist3Flow calculation.
Implementations§
Source§impl LinDist3FlowPfSolution
impl LinDist3FlowPfSolution
pub const FORMULATION: &'static str = "lindist3flow_fixed_dispatch"
Sourcepub fn new(
instance: Arc<LinDist3FlowPfInstance>,
termination: Termination,
values: LinDist3FlowOpfValues,
) -> Result<Self, Error>
pub fn new( instance: Arc<LinDist3FlowPfInstance>, termination: Termination, values: LinDist3FlowOpfValues, ) -> Result<Self, Error>
Construct a fixed-dispatch result. A converged point automatically evaluates every retained supported line rating; other terminations carry no operating-limit claims.
§Errors
A primal column has the wrong shape, or a retained rating or converged endpoint voltage cannot be evaluated.
pub const fn formulation(&self) -> &'static str
pub fn instance(&self) -> &LinDist3FlowPfInstance
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 fn limit_checks(&self) -> &[LinDist3FlowLimitCheck]
pub fn with_producer(self, producer: impl Into<String>) -> Self
pub const fn with_residuals(self, residuals: Residuals) -> Self
pub fn terminal_voltage_magnitude_squared( &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>
Trait Implementations§
Source§impl Clone for LinDist3FlowPfSolution
impl Clone for LinDist3FlowPfSolution
Source§fn clone(&self) -> LinDist3FlowPfSolution
fn clone(&self) -> LinDist3FlowPfSolution
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 LinDist3FlowPfSolution
impl RefUnwindSafe for LinDist3FlowPfSolution
impl Send for LinDist3FlowPfSolution
impl Sync for LinDist3FlowPfSolution
impl Unpin for LinDist3FlowPfSolution
impl UnsafeUnpin for LinDist3FlowPfSolution
impl UnwindSafe for LinDist3FlowPfSolution
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