The invention discloses a
hybrid power flow calculation method and device based on a
cross entropy algorithm, and belongs to the technical field of optimization
algorithm and
machine learning crossing. The method comprises the steps that
system modeling and parameter initialization are carried out, and a
state space, an action space and a target function are defined according to a specific application scene; setting and initializing row parameters; entropy
algorithm-guided sample generation and elite screening: iteratively optimizing
power grid parameters through probability distribution, and quickly approaching a
global optimal solution; the strategy optimization target of the strategy gradient algorithm is that a dynamic strategy network is constructed based on optimized
power grid parameters, and the running state of the
power grid is adjusted in real time to deal with uncertainty; performing sample
multiplexing and distribution fusion of importance sampling: setting a double-buffer mechanism and performing sample fusion and
multiplexing; and parameter updating and convergence judgment. According to the method, global search is carried out through the
cross entropy algorithm, local optimization is carried out through the strategy gradient algorithm, the sample
utilization rate is improved through the importance sampling method, and cooperative
processing of
global optimization and local optimization is achieved.