#[non_exhaustive]pub struct AcGeneratorData {
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>,
pub qmax: Vec<f64>,
pub qmin: Vec<f64>,
pub pg: Vec<f64>,
pub qg: Vec<f64>,
pub vg: 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.
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.
Trait Implementations§
Source§impl Clone for AcGeneratorData
impl Clone for AcGeneratorData
Source§fn clone(&self) -> AcGeneratorData
fn clone(&self) -> AcGeneratorData
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 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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AcGeneratorData
impl PartialEq for AcGeneratorData
Source§impl Serialize for AcGeneratorData
impl Serialize for AcGeneratorData
impl StructuralPartialEq for AcGeneratorData
Auto Trait Implementations§
impl Freeze for AcGeneratorData
impl RefUnwindSafe for AcGeneratorData
impl Send for AcGeneratorData
impl Sync for AcGeneratorData
impl Unpin for AcGeneratorData
impl UnsafeUnpin for AcGeneratorData
impl UnwindSafe for AcGeneratorData
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