#[non_exhaustive]pub struct AcGeneratorData {Show 16 fields
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 qmax: Vec<f64>,
pub qmin: Vec<f64>,
pub pg: Vec<f64>,
pub qg: Vec<f64>,
pub vg: Vec<f64>,
pub capability_active: Vec<bool>,
}Expand description
Generator data 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 analysis network.
source_rows: Vec<Option<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.
piecewise_linear: Vec<Option<PiecewiseLinearCost>>Convex piecewise linear costs aligned with the generator columns. A
present curve is the complete objective term for that generator; its
q, c, and c0 entries are zero.
pmax: Vec<f64>§pmin: Vec<f64>§qmax: Vec<f64>§qmin: Vec<f64>§pg: Vec<f64>Scheduled active output in the selected power unit.
qg: Vec<f64>Scheduled reactive output in the selected power unit.
vg: Vec<f64>Voltage magnitude setpoint, per unit; zero when the source has none.
capability_active: Vec<bool>Whether the instance activates this generator’s capability bounds.
Trait Implementations§
Source§impl Clone for AcGeneratorData
impl Clone for AcGeneratorData
Source§fn clone(&self) -> AcGeneratorData
fn clone(&self) -> AcGeneratorData
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 AcGeneratorData
impl Debug for AcGeneratorData
Source§impl<'de> Deserialize<'de> for AcGeneratorData
impl<'de> Deserialize<'de> for AcGeneratorData
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 AcGeneratorData
impl PartialEq for AcGeneratorData
Source§fn eq(&self, other: &AcGeneratorData) -> bool
fn eq(&self, other: &AcGeneratorData) -> bool
self and other values to be equal, and is used by ==.