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

Module makePTDF

source code

Builds the DC PTDF matrix for a given choice of slack.

Functions [hide private]
 
makePTDF(baseMVA, bus, branch, slack=None)
Builds the DC PTDF matrix for a given choice of slack.
source code
Variables [hide private]
  __package__ = 'pypower'
Function Details [hide private]

makePTDF(baseMVA, bus, branch, slack=None)

source code 

Builds the DC PTDF matrix for a given choice of slack.

Returns the DC PTDF matrix for a given choice of slack. The matrix is nbr x nb, where nbr is the number of branches and nb is the number of buses. The slack can be a scalar (single slack bus) or an nb x 1 column vector of weights specifying the proportion of the slack taken up at each bus. If the slack is not specified the reference bus is used by default.

For convenience, slack can also be an nb x nb matrix, where each column specifies how the slack should be handled for injections at that bus.

See Also: makeLODF

Authors:
Ray Zimmerman (PSERC Cornell), Richard Lincoln