Skip to main content

build_lindist3flow_network_data

Function build_lindist3flow_network_data 

Source
pub fn build_lindist3flow_network_data(
    instance: &LinDist3FlowOpfInstance,
) -> Result<LinDist3FlowNetworkData>
Expand description

Prepare the voltage, coupled line-drop, and line-limit rows of an L3F instance in SI units.

The line relation is w_child = w_parent - M p - N q. A solver adapter can impose each stated current limit as the native rotated cone p² + q² <= w I_max² at both endpoints, and each apparent-power limit as p² + q² <= S_max².

§Errors

A topology identity cannot be resolved, a line block does not align with its terminal maps or linecode, or a voltage/limit/coefficient is invalid.