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, where Va is the vector of bus voltage angles and nb is 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_lim controls 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 by nargout.

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)