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] <= uvlfor 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 bynargout.- Return type:
tuple or sparse matrix