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

Module idx_bus

source code

Defines constants for named column indices to bus matrix.

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

   Pd = bus[3, PD]     # get the real power demand at bus 4
   bus[:, VMIN] = 0.95 # set the min voltage magnitude to 0.95 at all buses

The index, name and meaning of each column of the bus matrix is given below:

columns 0-12 must be included in input matrix (in case file)

  1. BUS_I bus number (1 to 29997)
  2. BUS_TYPE bus type (1 = PQ, 2 = PV, 3 = ref, 4 = isolated)
  3. PD real power demand (MW)
  4. QD reactive power demand (MVAr)
  5. GS shunt conductance (MW at V = 1.0 p.u.)
  6. BS shunt susceptance (MVAr at V = 1.0 p.u.)
  7. BUS_AREA area number, 1-100
  8. VM voltage magnitude (p.u.)
  9. VA voltage angle (degrees)
  10. BASE_KV base voltage (kV)
  11. ZONE loss zone (1-999)
  12. VMAX maximum voltage magnitude (p.u.)
  13. VMIN minimum voltage magnitude (p.u.)

columns 13-16 are added to matrix after OPF solution they are typically not present in the input matrix

(assume OPF objective function has units, u)

  1. LAM_P Lagrange multiplier on real power mismatch (u/MW)
  2. LAM_Q Lagrange multiplier on reactive power mismatch (u/MVAr)
  3. MU_VMAX Kuhn-Tucker multiplier on upper voltage limit (u/p.u.)
  4. MU_VMIN Kuhn-Tucker multiplier on lower voltage limit (u/p.u.)

additional constants, used to assign/compare values in the BUS_TYPE column

  1. PQ PQ bus
  2. PV PV bus
  3. REF reference bus
  4. NONE isolated bus

Authors:
Ray Zimmerman (PSERC Cornell), Richard Lincoln
Variables [hide private]
  PQ = 1
  PV = 2
  REF = 3
  NONE = 4
  BUS_I = 0
  BUS_TYPE = 1
  PD = 2
  QD = 3
  GS = 4
  BS = 5
  BUS_AREA = 6
  VM = 7
  VA = 8
  BASE_KV = 9
  ZONE = 10
  VMAX = 11
  VMIN = 12
  LAM_P = 13
  LAM_Q = 14
  MU_VMAX = 15
  MU_VMIN = 16
  __package__ = None