pypowsybl.flowdecomposition.FlowDecomposition.add_postcontingency_monitored_elements#

FlowDecomposition.add_postcontingency_monitored_elements(branch_ids, contingency_ids)[source]#

Add branches to be monitored by the flow decomposition on postcontingency state (XNEC(s)). This will create a XNEC for each valid pair of branch and contingency. A pair is valid if the contingency does not contain the branch. Do not forget to create contingencies before calling this function.

Parameters:
  • branch_ids (List[str] | str) – List of branches to be monitored

  • contingency_ids (List[str] | str) – List of contingencies

Return type:

FlowDecomposition