pypowsybl.flowdecomposition.FlowDecomposition.add_single_element_contingencies#

FlowDecomposition.add_single_element_contingencies(element_ids, contingency_id_provider=None)[source]#

Add a contingency for each element (n N-1 states).

Parameters:
  • element_ids (List[str]) – List of elements

  • contingency_id_provider (Optional[Callable[[str], str]]) – Function to transform an element id to a contingency id. By default, the identity function is used.

Return type:

FlowDecomposition