SecurityAnalysis.add_single_element_contingencies(elements_ids, contingency_id_provider=None)#

Add multiple N-1 contingencies.

  • elements_ids (List[str]) – A list of network elements. One N- 1 contingency will be added for each element of the list.

  • contingency_id_provider (Callable[[str], str] | None) – A callable which maps elements IDs to a contingency ID. If None, the element ID will be used as the contingency ID for each N-1 contingency.

Return type: