[AANG, LANG, UANG, IANG] = MAKEAANG(BASEMVA, BRANCH, NB, MPOPT)
Constructs the parameters for the following linear constraint limiting
the voltage angle differences across branches, where Va is the vector
of bus voltage angles. NB is the number of buses.
LANG <= AANG * Va <= UANG
IANG is the vector of indices of branches with angle difference limits.
The limits are given in the ANGMIN and ANGMAX columns of the branch
matrix. Voltage angle differences are taken to be unbounded below if
ANGMIN < -360 and unbounded above if ANGMAX > 360. If both ANGMIN and
ANGMAX are zero, the angle difference is assumed to be unconstrained.
Example:
[Aang, lang, uang, iang] = makeAang(baseMVA, branch, nb, mpopt);