pypowsybl.flowdecomposition.create_decomposition#

create_decomposition()[source]#

Creates a flow decomposition objet, which can be used to run a flow decomposition on a network

Example

>>> flowdecomposition = pp.flowdecomposition.create_decomposition()
>>> flowdecomposition.add_monitored_elements(['line_1', 'line_2'])
>>> flowdecomposition.run(network)
Returns:

A flow decomposition object, which allows to run a flow decomposition on a network.

Return type:

FlowDecomposition