#[non_exhaustive]pub struct BusCosts {
pub q: Vec<f64>,
pub c: Vec<f64>,
pub pmax: Vec<f64>,
pub pmin: Vec<f64>,
pub p_d: Vec<f64>,
}Expand description
Length-n bus-indexed cost and bound vectors (paper form). All share index space; each is zero at buses with no generator.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.q: Vec<f64>Quadratic cost diagonal q, cost = ½ q p² + c p.
c: Vec<f64>Linear cost c.
pmax: Vec<f64>Upper generation bound (summed over generators at the bus).
pmin: Vec<f64>Lower generation bound.
p_d: Vec<f64>Nodal load p_d.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BusCosts
impl RefUnwindSafe for BusCosts
impl Send for BusCosts
impl Sync for BusCosts
impl Unpin for BusCosts
impl UnsafeUnpin for BusCosts
impl UnwindSafe for BusCosts
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