The invention relates to the technical field of power systems, and provides an
alternating current optimal
power flow solving method and
system.The topological connection data, line
admittance parameters and node load data of a target
power grid are obtained, the topological connection data are constructed into an adjacent matrix, and the node load data are constructed into a node initial
feature matrix; a node deep
feature matrix is generated through multi-layer graph convolutional network iteration aggregation transformation, a node
voltage amplitude and active power and reactive power of each
branch circuit of a target
power grid are calculated through a physical constraint output layer based on the node deep
feature matrix and a line
admittance parameter, and finally, the active power and the reactive power of each
branch circuit of the target
power grid are calculated by combining the line
admittance parameter and node load data. And an optimal
power flow scheduling scheme is obtained through
system state reconstruction and
power balance calculation. Through precise
adaptation of the graph convolutional network and the power grid topology, cooperative guarantee of a physical constraint output layer and a safety threshold, and deep conjunction of
system state reconstruction and a power
physical law, the
alternating current optimal
power flow solving accuracy, reliability and generalization capability are comprehensively improved.