Package pypower :: Module idx_gen
[hide private]
[frames] | no frames]

Module idx_gen

source code

Defines constants for named column indices to gen matrix.

Some examples of usage, after defining the constants using the line above, are:

   Pg = gen[3, 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 0-20 must be included in input matrix (in case file)

  1. GEN_BUS bus number
  2. PG real power output (MW)
  3. QG reactive power output (MVAr)
  4. QMAX maximum reactive power output (MVAr)
  5. QMIN minimum reactive power output (MVAr)
  6. VG voltage magnitude setpoint (p.u.)
  7. MBASE total MVA base of machine, defaults to baseMVA
  8. GEN_STATUS 1 - in service, 0 - out of service
  9. PMAX maximum real power output (MW)
  10. PMIN minimum real power output (MW)
  11. PC1 lower real power output of PQ capability curve (MW)
  12. PC2 upper real power output of PQ capability curve (MW)
  13. QC1MIN minimum reactive power output at Pc1 (MVAr)
  14. QC1MAX maximum reactive power output at Pc1 (MVAr)
  15. QC2MIN minimum reactive power output at Pc2 (MVAr)
  16. 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 21-24 are added to matrix after OPF solution they are typically not present in the input matrix

(assume OPF objective function has units, u)

  1. MU_PMAX Kuhn-Tucker multiplier on upper Pg limit (u/MW)
  2. MU_PMIN Kuhn-Tucker multiplier on lower Pg limit (u/MW)
  3. MU_QMAX Kuhn-Tucker multiplier on upper Qg limit (u/MVAr)
  4. MU_QMIN Kuhn-Tucker multiplier on lower Qg limit (u/MVAr)

Authors:
Ray Zimmerman (PSERC Cornell), Richard Lincoln
Variables [hide private]
  GEN_BUS = 0
  PG = 1
  QG = 2
  QMAX = 3
  QMIN = 4
  VG = 5
  MBASE = 6
  GEN_STATUS = 7
  PMAX = 8
  PMIN = 9
  PC1 = 10
  PC2 = 11
  QC1MIN = 12
  QC1MAX = 13
  QC2MIN = 14
  QC2MAX = 15
  RAMP_AGC = 16
  RAMP_10 = 17
  RAMP_30 = 18
  RAMP_Q = 19
  APF = 20
  MU_PMAX = 21
  MU_PMIN = 22
  MU_QMAX = 23
  MU_QMIN = 24
  __package__ = None