A machine-readable storage medium containing machine-executable instructions for performing a method of managing line flows in a network having nodes with lines coupling adjacent ones of the nodes and components coupled to the nodes, the method being executed in a line flow control system, said machine-executable instructions comprising:
- a first set of machine-executable instructions for receiving an objective function having component variables, nodal output variables, and branch flow variables for the network;
- a second set of machine-executable instructions for initializing the component variables, nodal output variables and branch flow variables with initial values;
- a third set of machine-executable instructions for calculating values for the branch flow variables using a distributed Newton method, and calculating values for the component variables and the nodal output variables using values calculated for the branch flow variables until the values of the component variables, the nodal output variables, and the branch flow variables converge within a predetermined threshold range;
- and
- a fourth set of machine-executable instructions for determining one or more adjustments to be made to one or more of injections at the nodes and reactances in the lines as a function of one or more variables calculated by the third set of machine-executable instructions.