pypowsybl.sensitivity.SensitivityAnalysis.add_postcontingency_branch_flow_factor_matrix#

SensitivityAnalysis.add_postcontingency_branch_flow_factor_matrix(branches_ids, variables_ids, contingencies_ids, matrix_id='default')[source]#

Defines branch active power flow factor matrix for specific post contingencies states, with a list of branches IDs and a list of variables.

A variable could be:
  • a network element ID: injections, PSTs, dangling lines and HVDC lines are supported

  • a zone ID

  • a couple of zone ID to define a transfer between 2 zones

Parameters:
  • branches_ids (List[str]) – IDs of branches for which active power flow sensitivities should be computed

  • variables_ids (List[str]) – variables which may impact branch flows,to which we should compute sensitivities

  • contingencies_ids (List[str]) – List of the IDs of the contingencies to simulate

  • matrix_id (str) – The matrix unique identifier, to be used to retrieve the sensibility value

Return type:

None