pwrs.core.hasPQcap#
- pwrs.core.hasPQcap.hasPQcap(gen, hilo='B')[source]#
Check whether generators have non-trivial PQ capability curves.
Mirrors MATPOWER’s
hasPQcaphelper by testing whether each generator has an active upper, lower, or either-side reactive capability curve constraint over its active power range.- Parameters:
gen (array_like) – Generator matrix.
hilo (str, optional) – Capability side selector:
'U'for upper,'L'for lower, or'B'for both.nargout (int, optional) – MATLAB compatibility flag.
- Returns:
Column vector indicating whether each generator has the requested PQ capability constraint.
- Return type:
numpy.ndarray