pypowsybl.flowdecomposition.FlowDecomposition.add_monitored_elements#
- FlowDecomposition.add_monitored_elements(branch_ids, contingency_ids=None, contingency_context_type=pypowsybl._pypowsybl.ContingencyContextType.ALL)[source]#
Add branches to be monitored by the flow decomposition. This will create a XNEC for each valid pair of branch and state. You can select the type of states you want. If you provide contingency ids, do not forget to create them before calling this function. If no contingency ids are provided, elements added by this function will be XNE only.
- Parameters:
- Return type:
FlowDecomposition