pwrs.core.update_mupq#
- pwrs.core.update_mupq.update_mupq(baseMVA, gen, mu_PQh, mu_PQl, data, nargout=1)[source]#
Update generator limit shadow prices from capability-curve slopes.
- Parameters:
baseMVA (float) – System power base.
gen (ndarray) – Generator matrix to update.
mu_PQh (array_like) – Shadow prices on the upper sloped portion of generator capability curves.
mu_PQl (array_like) – Shadow prices on the lower sloped portion of generator capability curves.
data (dict) –
makeApqdata dict containing the sloped-constraint index and coefficient information.nargout (int, optional) – Number of outputs to emulate from the MATLAB interface.
- Returns:
Updated generator matrix with revised
MU_PMIN,MU_PMAX,MU_QMIN, andMU_QMAXentries.- Return type:
ndarray