pwrs.core.cpf_flim_event#

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

Evaluate CPF branch flow limit event functions.

Builds the current CPF case at the present continuation point and returns event function values for branch MVA limit violations, based on the larger of the from-end and to-end apparent power flows.

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

  • cx (dict) – Current CPF state struct.

Returns:

Column vector of branch flow limit event function values.

Return type:

numpy.ndarray