pwrs.core.cpf_plim_event#

pwrs.core.cpf_plim_event.cpf_plim_event(cb_data, cx)[source]#

Evaluate CPF active-power limit event functions.

Builds the current CPF case at the present continuation point and returns event function values for generator Pmax violations, with inactive or already-handled generators masked by NaN.

Parameters:
  • cb_data (dict) – CPF callback data struct.

  • cx (dict) – Current CPF state struct.

Returns:

Column vector of PG - PMAX event function values.

Return type:

numpy.ndarray