#[non_exhaustive]pub struct DcGeneratorParameters {
pub identities: Vec<String>,
pub bus_of_gen: Vec<usize>,
pub analysis_rows: Vec<usize>,
pub source_rows: Vec<Option<usize>>,
pub q: Vec<f64>,
pub c: Vec<f64>,
pub c0: Vec<f64>,
pub piecewise_linear: Vec<Option<PiecewiseLinearCost>>,
pub pmax: Vec<f64>,
pub pmin: Vec<f64>,
pub capability_active: Vec<bool>,
}Expand description
Generator parameters in generator column order.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.identities: Vec<String>Stable generator identity aligned with every following column.
bus_of_gen: Vec<usize>Generator column to dense bus index.
analysis_rows: Vec<usize>Generator column to row in the star-lowered analysis network.
source_rows: Vec<Option<usize>>Generator column to source generator row. A synthetic analysis row has no source 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.
piecewise_linear: Vec<Option<PiecewiseLinearCost>>Convex piecewise linear costs aligned with the generator columns.
Some is the complete objective term for that generator; its q, c,
and c0 entries above are zero. None means the three polynomial
columns carry the complete constant, linear, or quadratic term.
pmax: Vec<f64>§pmin: Vec<f64>§capability_active: Vec<bool>Whether the instance activates this generator’s capability bounds.
Trait Implementations§
Source§impl Clone for DcGeneratorParameters
impl Clone for DcGeneratorParameters
Source§fn clone(&self) -> DcGeneratorParameters
fn clone(&self) -> DcGeneratorParameters
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DcGeneratorParameters
impl Debug for DcGeneratorParameters
Source§impl<'de> Deserialize<'de> for DcGeneratorParameters
impl<'de> Deserialize<'de> for DcGeneratorParameters
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>,
Source§impl PartialEq for DcGeneratorParameters
impl PartialEq for DcGeneratorParameters
Source§fn eq(&self, other: &DcGeneratorParameters) -> bool
fn eq(&self, other: &DcGeneratorParameters) -> bool
self and other values to be equal, and is used by ==.