pub struct LineBlockBounds {
pub direct_mw: f64,
pub reverse_mw: f64,
}Expand description
Block-eligible transmission line bounds for a given (line, stage) pair.
Lines have no stage-only bound column — every line column is block-eligible —
so this is line’s only per-(line, stage) bound type, stored directly with no
stage half to pair against. Resolved from lines.json overlaid with
constraints/line_bounds.parquet. A per-block capacity override
(LineBlockOverride) wins over this
stage-wide value at LP construction time.
§Examples
use cobre_core::resolved::LineBlockBounds;
let b = LineBlockBounds { direct_mw: 1000.0, reverse_mw: 800.0 };
let c = b; // Copy
assert!((c.direct_mw - 1000.0).abs() < f64::EPSILON);Fields§
§direct_mw: f64Maximum direct flow capacity [MW]. Hard upper bound.
reverse_mw: f64Maximum reverse flow capacity [MW]. Hard upper bound.
Trait Implementations§
Source§impl Clone for LineBlockBounds
impl Clone for LineBlockBounds
Source§fn clone(&self) -> LineBlockBounds
fn clone(&self) -> LineBlockBounds
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 moreimpl Copy for LineBlockBounds
Source§impl Debug for LineBlockBounds
impl Debug for LineBlockBounds
Source§impl PartialEq for LineBlockBounds
impl PartialEq for LineBlockBounds
impl StructuralPartialEq for LineBlockBounds
Auto Trait Implementations§
impl Freeze for LineBlockBounds
impl RefUnwindSafe for LineBlockBounds
impl Send for LineBlockBounds
impl Sync for LineBlockBounds
impl Unpin for LineBlockBounds
impl UnsafeUnpin for LineBlockBounds
impl UnwindSafe for LineBlockBounds
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