idx_gen
- idx_gen()
idx_gen()
- Defines constants for named column indices togen
matrix.Example: [GEN_BUS, PG, QG, QMAX, QMIN, VG, MBASE, GEN_STATUS, PMAX, PMIN, ... MU_PMAX, MU_PMIN, MU_QMAX, MU_QMIN, PC1, PC2, QC1MIN, QC1MAX, ... QC2MIN, QC2MAX, RAMP_AGC, RAMP_10, RAMP_30, RAMP_Q, APF] = idx_gen; Some examples of usage, after defining the constants using the line above, are: Pg = gen(4, PG); % get the real power output of generator 4 gen(:, PMIN) = 0; % set to zero the minimum real power limit of all gens The index, name and meaning of each column of the gen matrix is given below: columns 1-21 must be included in input matrix (in case file) 1 GEN_BUS bus number 2 PG Pg, real power output (MW) 3 QG Qg, reactive power output (MVAr) 4 QMAX Qmax, maximum reactive power output (MVAr) 5 QMIN Qmin, minimum reactive power output (MVAr) 6 VG Vg, voltage magnitude setpoint (p.u.) 7 MBASE mBase, total MVA base of machine, defaults to baseMVA 8 GEN_STATUS status, > 0 - in service, <= 0 - out of service 9 PMAX Pmax, maximum real power output (MW) 10 PMIN Pmin, minimum real power output (MW) 11 PC1 Pc1, lower real power output of PQ capability curve (MW) 12 PC2 Pc2, upper real power output of PQ capability curve (MW) 13 QC1MIN Qc1min, minimum reactive power output at Pc1 (MVAr) 14 QC1MAX Qc1max, maximum reactive power output at Pc1 (MVAr) 15 QC2MIN Qc2min, minimum reactive power output at Pc2 (MVAr) 16 QC2MAX Qc2max, maximum reactive power output at Pc2 (MVAr) 17 RAMP_AGC ramp rate for load following/AGC (MW/min) 18 RAMP_10 ramp rate for 10 minute reserves (MW) 19 RAMP_30 ramp rate for 30 minute reserves (MW) 20 RAMP_Q ramp rate for reactive power (2 sec timescale) (MVAr/min) 21 APF area participation factor columns 22-25 are added to matrix after OPF solution they are typically not present in the input matrix (assume OPF objective function has units, u) 22 MU_PMAX Kuhn-Tucker multiplier on upper Pg limit (u/MW) 23 MU_PMIN Kuhn-Tucker multiplier on lower Pg limit (u/MW) 24 MU_QMAX Kuhn-Tucker multiplier on upper Qg limit (u/MVAr) 25 MU_QMIN Kuhn-Tucker multiplier on lower Qg limit (u/MVAr)
See also
define_constants
.