Design and implementation of distribution networks structure automatic analyzing function based on STL

Considering that the distribution network structure automatic analyzing function is often researched from the local point,this paper proposes a new thought to realize the physical connection analysis,topology analysis and node numbering together.The distribution network structure automatic analyzing function is designed and optimized applying the C++ Standard Template Library(STL) and the node syncretism method as a whole.Towards the changing topology caused by the states of switches,a real-time correction of node number is also proposed.The detailed modifications of the node numbers are given based on the breadth-first search and depth-first search algorithms,respectively.This approach avoids the re-search of the network owing to the change of the switches,improving the effectiveness of the search algorithms.Case studies on the IEEE 33 test system are given.The outcome demonstrates that the proposed approach is feasible and effective.With better flexibility and extensibility,the node numbering correction method in real time has a certain degree of application values in engineering.