pwrs.core.makeAang#
- pwrs.core.makeAang.makeAang(baseMVA, branch, nb, mpopt, nargout=1)[source]#
Construct branch angle-difference limit constraints.
Builds the linear constraint
lang <= Aang * Va <= uang, whereVais the vector of bus voltage angles andnbis the number of buses.- Parameters:
baseMVA (float) – System power base. Accepted for MATLAB interface compatibility.
branch (ndarray) – Branch matrix.
nb (int) – Number of buses.
mpopt (MatpowerConfig) – Typed MATPOWER options.
opf.ignore_angle_limcontrols whether angle limits are enforced.nargout (int, optional) – Number of outputs to emulate from the MATLAB interface.
- Returns:
Returns
(Aang, lang, uang, iang)or the leading subset requested bynargout.- Return type:
tuple or sparse matrix
- pwrs.core.makeAang.makeAang_full(baseMVA, branch, nb, mpopt)[source]#
Return all branch-angle constraint outputs.
- Parameters:
mpopt (MatpowerConfig)