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

Module makeAy

source code

Make the A matrix and RHS for the CCV formulation.

Functions [hide private]
 
makeAy(baseMVA, ng, gencost, pgbas, qgbas, ybas)
Make the A matrix and RHS for the CCV formulation.
source code
Variables [hide private]
  __package__ = 'pypower'
Function Details [hide private]

makeAy(baseMVA, ng, gencost, pgbas, qgbas, ybas)

source code 

Make the A matrix and RHS for the CCV formulation.

Constructs the parameters for linear "basin constraints" on Pg, Qg and Y used by the CCV cost formulation, expressed as:

    Ay * x <= by

where x is the vector of optimization variables. The starting index within the x vector for the active, reactive sources and the y variables should be provided in arguments pgbas, qgbas, ybas. The number of generators is ng.

Assumptions: All generators are in-service. Filter any generators that are offline from the gencost matrix before calling makeAy. Efficiency depends on Qg variables being after Pg variables, and the y variables must be the last variables within the vector x for the dimensions of the resulting Ay to be conformable with x.

Authors:
Carlos E. Murillo-Sanchez (PSERC Cornell & Universidad Autonoma de Manizales), Richard Lincoln