pwrs.core.makeAvl#

pwrs.core.makeAvl.makeAvl(baseMVA, gen=None, nargout=1)[source]#

Construct constant-power-factor constraints for dispatchable loads.

Builds the linear constraint lvl <= Avl * [Pg; Qg] <= uvl for generators representing dispatchable loads with non-unity power factor.

Parameters:
  • baseMVA (float or dict) – System power base, or a MATPOWER case dict when using the one-argument form.

  • gen (ndarray, optional) – Generator matrix. Omit to pass a MATPOWER case dict as the first argument.

  • nargout (int, optional) – Number of outputs to emulate from the MATLAB interface.

Returns:

Returns (Avl, lvl, uvl, ivl) or the leading subset requested by nargout.

Return type:

tuple or sparse matrix

pwrs.core.makeAvl.makeAvl_full(baseMVA, gen=None)[source]#

Return all dispatchable-load constraint outputs.