pypowsybl.security.SecurityAnalysis.add_single_element_contingency#

SecurityAnalysis.add_single_element_contingency(element_id, contingency_id=None)#

Add one N-1 contingency.

Parameters:
  • element_id (str) – The ID of the lost network element.

  • contingency_id (str | None) – The ID of the contingency. If None, element_id will be used.

Return type:

None