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
|