pub struct OpfGeneratorResults {
pub gen_p_mw: Vec<f64>,
pub gen_q_mvar: Vec<f64>,
pub gen_bus_numbers: Vec<u32>,
pub gen_ids: Vec<String>,
pub gen_machine_ids: Vec<String>,
pub shadow_price_pg_min: Vec<f64>,
pub shadow_price_pg_max: Vec<f64>,
pub shadow_price_qg_min: Vec<f64>,
pub shadow_price_qg_max: Vec<f64>,
}Expand description
Generator dispatch results and identity mapping.
Fields§
§gen_p_mw: Vec<f64>Optimal real power dispatch per generator (MW).
Indexed by in-service generators in network.generators order.
gen_q_mvar: Vec<f64>Optimal reactive power dispatch per generator (MVAr).
Same ordering as gen_p_mw. Empty for DC-OPF; populated for AC-OPF.
gen_bus_numbers: Vec<u32>External bus number for each entry in gen_p_mw / gen_q_mvar.
gen_ids: Vec<String>Canonical generator identifier for each entry in gen_p_mw / gen_q_mvar.
gen_machine_ids: Vec<String>Machine identifier for each entry in gen_p_mw / gen_q_mvar.
shadow_price_pg_min: Vec<f64>Lower active-power bound duals ($/MWh), one per in-service generator.
shadow_price_pg_max: Vec<f64>Upper active-power bound duals ($/MWh), one per in-service generator.
shadow_price_qg_min: Vec<f64>Reactive power lower-bound duals ($/MWh per pu), one per in-service generator. AC-OPF only; empty for DC.
shadow_price_qg_max: Vec<f64>Reactive power upper-bound duals ($/MWh per pu), one per in-service generator.
Trait Implementations§
Source§impl Clone for OpfGeneratorResults
impl Clone for OpfGeneratorResults
Source§fn clone(&self) -> OpfGeneratorResults
fn clone(&self) -> OpfGeneratorResults
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more