pwrs.core.cpf_detect_events#
- pwrs.core.cpf_detect_events.cpf_detect_events(cpf_events, cef, pef, step, verbose, *, nargout=None)[source]#
Detect continuation power flow events from event-function values.
- Parameters:
cpf_events (sequence or dict) – Registered CPF event definitions.
cef (sequence) – Current event-function values.
pef (sequence) – Previous event-function values.
step (float) – Current step size.
verbose (int) – Verbosity level.
nargout (int, optional) – Number of outputs to emulate from the MATLAB interface.
- Returns:
(rollback, evnts, cef)containing the rollback flag, detected event information, and the possibly adjusted current event-function values.- Return type:
tuple