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

Module makeApq

source code

Construct linear constraints for generator capability curves.

Functions [hide private]
 
makeApq(baseMVA, gen)
Construct linear constraints for generator capability curves.
source code
Variables [hide private]
  __package__ = 'pypower'
Function Details [hide private]

makeApq(baseMVA, gen)

source code 

Construct linear constraints for generator capability curves.

Constructs the parameters for the following linear constraints implementing trapezoidal generator capability curves, where Pg and Qg are the real and reactive generator injections:

   Apqh * [Pg, Qg] <= ubpqh
   Apql * [Pg, Qg] <= ubpql

data constains additional information as shown below.

Example:

   Apqh, ubpqh, Apql, ubpql, data = makeApq(baseMVA, gen)

   data['h']      [Qc1max-Qc2max, Pc2-Pc1]
   data['l']      [Qc2min-Qc1min, Pc1-Pc2]
   data['ipqh']   indices of gens with general PQ cap curves (upper)
   data['ipql']   indices of gens with general PQ cap curves (lower)
Authors:
Ray Zimmerman (PSERC Cornell), Carlos E. Murillo-Sanchez (PSERC Cornell & Universidad Autonoma de Manizales), Richard Lincoln