#[non_exhaustive]pub struct DcGeneratorData {
pub bus_of_gen: Vec<usize>,
pub source_rows: Vec<usize>,
pub q: Vec<f64>,
pub c: Vec<f64>,
pub c0: Vec<f64>,
pub pmax: Vec<f64>,
pub pmin: Vec<f64>,
}Expand description
Generator data in generator column order.
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.bus_of_gen: Vec<usize>Generator column to dense bus index.
source_rows: Vec<usize>Generator column to source generator row.
q: Vec<f64>Quadratic objective diagonal in 0.5 * q * p^2 + c * p + c0.
c: Vec<f64>Linear objective coefficient.
c0: Vec<f64>Constant objective term. Unscaled in both unit systems: it carries no power dimension. It does not move the argmin, but a consumer reporting or comparing objective values needs it.
pmax: Vec<f64>§pmin: Vec<f64>Trait Implementations§
Source§impl Clone for DcGeneratorData
impl Clone for DcGeneratorData
Source§fn clone(&self) -> DcGeneratorData
fn clone(&self) -> DcGeneratorData
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 moreSource§impl Debug for DcGeneratorData
impl Debug for DcGeneratorData
Source§impl<'de> Deserialize<'de> for DcGeneratorData
impl<'de> Deserialize<'de> for DcGeneratorData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DcGeneratorData
impl PartialEq for DcGeneratorData
Source§impl Serialize for DcGeneratorData
impl Serialize for DcGeneratorData
impl StructuralPartialEq for DcGeneratorData
Auto Trait Implementations§
impl Freeze for DcGeneratorData
impl RefUnwindSafe for DcGeneratorData
impl Send for DcGeneratorData
impl Sync for DcGeneratorData
impl Unpin for DcGeneratorData
impl UnsafeUnpin for DcGeneratorData
impl UnwindSafe for DcGeneratorData
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