peak#
- popo.risk.peak(dss, customers, horizon, start_step=0, step_minutes=30, prefix='EV')#
Each customer’s demand, and its charger’s, at the step the feeder is most loaded.
Chargers are matched to customers by the naming of
popo.scenarios.attach_charging(): the charger of the customer at positioniisLoad.<prefix><i>.- Parameters:
dss (
Any) – Anopendssdirectmodule with a compiled circuit.customers (
Sequence[tuple[str,str]]) –(load name, bus)pairs, in the order chargers were attached.horizon (
int) – Number of steps to solve.start_step (
int) – Step offset at which to begin.step_minutes (
int) – Length of one step.prefix (
str) – Name prefix of the charger loads.
- Return type:
- Returns:
One row per customer –
load,bus,step(the feeder peak),load_kw,charger_kwandtotal_kw. Diverged steps are skipped when locating the peak.- Raises:
RuntimeError – If no step converged.