Abstract:The increasing use of distributed generation(DG)in power systems can result in frequent online voltage problems.In case of large prediction error of DG, the requirement of online volt-age regulation can not be met by limited voltage regulation devices.In order to solve this problem, a flexible topology control method is proposed, and a deep reinforcement learning algorithm is used to model and solve it. The action mechanism in this algorithm combines the branch exchange concept in graph theory, and effectively simplifies the action dimension and action space. The analysis of the calculation examples on the standard IEEE 14 node system shows that the algorithm has excellent generalization ability. Compared with the previous methods, the proposed algorithm can obtain the closest optimal solution, improve the performance of the calculation significantly and meet the needs of online voltage regulation.