total_load(bus,
gen=None,
load_zone=None,
which_type=None)
| source code
|
Returns vector of total load in each load zone.
- Parameters:
bus - standard bus matrix with nb rows, where
the fixed active and reactive loads are specified in columns
PD and QD
gen - (optional) standard gen matrix with ng
rows, where the dispatchable loads are specified by columns
PG, QG, PMIN,
QMIN and QMAX (in rows for which
isload(GEN) returns True). If
gen is empty, it assumes there are no dispatchable
loads.
load_zone - (optional) nb element vector where the value of each
element is either zero or the index of the load zone to which the
corresponding bus belongs. If load_zone(b) = k then
the loads at bus b will added to the values of
Pd[k] and Qd[k]. If
load_zone is empty, the default is defined as the
areas specified in the bus matrix, i.e.
load_zone = bus[:, BUS_AREA] and load will have
dimension = max(bus[:, BUS_AREA]). If
load_zone = 'all', the result is a scalar with the
total system load.
which_type - (default is 'BOTH' if gen is provided, else 'FIXED')
-
'FIXED' : sum only fixed loads
-
'DISPATCHABLE' : sum only dispatchable loads
-
'BOTH' : sum both fixed and dispatchable loads
See Also:
scale_load
- Authors:
-
Ray Zimmerman (PSERC Cornell),
Richard Lincoln
|