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

Module idx_brch

source code

Defines constants for named column indices to branch matrix.

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

   branch[3, BR_STATUS] = 0              # take branch 4 out of service
   Ploss = branch[:, PF] + branch[:, PT] # compute real power loss vector

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

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

  1. F_BUS from bus number
  2. T_BUS to bus number
  3. BR_R resistance (p.u.)
  4. BR_X reactance (p.u.)
  5. BR_B total line charging susceptance (p.u.)
  6. RATE_A MVA rating A (long term rating)
  7. RATE_B MVA rating B (short term rating)
  8. RATE_C MVA rating C (emergency rating)
  9. TAP transformer off nominal turns ratio
  10. SHIFT transformer phase shift angle (degrees)
  11. BR_STATUS initial branch status, 1 - in service, 0 - out of service
  12. ANGMIN minimum angle difference, angle(Vf) - angle(Vt) (degrees)
  13. ANGMAX maximum angle difference, angle(Vf) - angle(Vt) (degrees)

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

  1. PF real power injected at "from" bus end (MW)
  2. QF reactive power injected at "from" bus end (MVAr)
  3. PT real power injected at "to" bus end (MW)
  4. QT reactive power injected at "to" bus end (MVAr)

columns 17-18 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_SF Kuhn-Tucker multiplier on MVA limit at "from" bus (u/MVA)
  2. MU_ST Kuhn-Tucker multiplier on MVA limit at "to" bus (u/MVA)

columns 19-20 are added to matrix after SCOPF solution they are typically not present in the input matrix

(assume OPF objective function has units, u)

  1. MU_ANGMIN Kuhn-Tucker multiplier lower angle difference limit
  2. MU_ANGMAX Kuhn-Tucker multiplier upper angle difference limit

Authors:
Ray Zimmerman (PSERC Cornell), Richard Lincoln
Variables [hide private]
  F_BUS = 0
  T_BUS = 1
  BR_R = 2
  BR_X = 3
  BR_B = 4
  RATE_A = 5
  RATE_B = 6
  RATE_C = 7
  TAP = 8
  SHIFT = 9
  BR_STATUS = 10
  ANGMIN = 11
  ANGMAX = 12
  PF = 13
  QF = 14
  PT = 15
  QT = 16
  MU_SF = 17
  MU_ST = 18
  MU_ANGMIN = 19
  MU_ANGMAX = 20
  __package__ = None