#[non_exhaustive]pub struct OpfInstance {
pub n: usize,
pub m: usize,
pub bus: BusCosts,
pub gen_costs: GenCosts,
pub f_max: Vec<f64>,
pub c_g: CsMat<f64>,
}Expand description
Static DC-OPF instance data for a case.
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.n: usize§m: usize§bus: BusCostsBus-indexed cost/bounds/load (length n).
gen_costs: GenCostsGenerator-space provenance (length n_gen).
f_max: Vec<f64>Thermal limit f̄ (RATE_A); 0 means unlimited per MATPOWER. Length m.
c_g: CsMat<f64>Generator→bus incidence, n × n_gen, one 1 per column.
Implementations§
Trait Implementations§
Source§impl Clone for OpfInstance
impl Clone for OpfInstance
Source§fn clone(&self) -> OpfInstance
fn clone(&self) -> OpfInstance
Returns a duplicate of the value. Read more
1.0.0 · 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 OpfInstance
impl RefUnwindSafe for OpfInstance
impl Send for OpfInstance
impl Sync for OpfInstance
impl Unpin for OpfInstance
impl UnsafeUnpin for OpfInstance
impl UnwindSafe for OpfInstance
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