Summary of the invention
The objective of the invention is to consider the problems referred to above and a kind of workload that reduces the artificial division computational resource is provided, and guarantee the computational resource division methods based on the subgraph isomorphism of the optimum allocation of computational resource power system real-time simulation.The present invention is based on the automatic allocative decision of computational resource of subgraph isomorphism algorithm, automatically obtain optimum computational resource allocation scheme by algorithm, for the automatic optimal dividing of large scale electric network RTDS emulation Rack provides a solution, can reduce the workload of manual allocation, improve the order of accuarcy that Rack distributes, have saving time, improve precision, advantage easy to use.
Technical scheme of the present invention is: the present invention is based on the computational resource division methods to power system real-time simulation of subgraph isomorphism, it includes following steps:
1) analyzes the liaison between each computing unit in the real-time emulation system, set up the incidence relation between each computing unit, and set up the associated diagram of each computing unit;
2) topological structure of each electrical network module in the analysis emulation electrical network is set up the incidence relation in each electrical network module, and is generated the associated diagram between each electrical network module;
3) by the subgraph of searching in each computing unit associated diagram, obtain the feasible program that computational resource distributes with each electrical network module relation isomorphism of graph;
4) in feasible program, be target, seek optimum computational resource allocation scheme with communication number minimum between each computing unit.
Above-mentioned steps 4) seeks optimum method and adopt enumerative technique.
Above-mentioned steps 3) searching realizes by the incidence matrix conversion with the subgraph of each electrical network module relation isomorphism of graph in each computing unit associated diagram.
Above-mentioned incidence matrix is transformed to row-column transform.
In the power system real-time simulation process, the foundation of model is crucial technical work.And the large-scale power system complex structure, the contact complexity of its electrical network, existence especially remote, jumbo HVDC (High Voltage Direct Current) transmission system makes topological relation more complicated.The large-scale power system emulation tool generally all adopts a plurality of processor parallel processings to calculate with the raising counting yield, and needs between the different processor to connect by communication.Produced two kinds of topological structures thus: the one, the actual physics of emulation electrical network connects; The 2nd, the topological connection relation between the processor.Subgraph isomorphism principle in the application drawing opinion of the present invention, by seeking the subgraph of isomorphism, obtain feasible computational resource allocation scheme, and be target to communicate to connect the number minimum, obtain the optimal distributing scheme of computational resource, can make the real-time simulation of large-scale power system calculate in computational resource receive rational application, improve counting yield, reduce the workload of computational resource manual allocation simultaneously.
Embodiment
Embodiment:
The present invention is based on the computational resource division methods to power system real-time simulation of subgraph isomorphism, it includes following steps:
1) analyzes the liaison between each computing unit Rack in the real-time emulation system, set up the incidence relation between each computing unit Rack, and set up the associated diagram of each computing unit Rack;
2) topological structure of each electrical network module in the analysis emulation electrical network is set up the incidence relation in each electrical network module, and is generated the associated diagram between each electrical network module;
3) by the subgraph of searching in each computing unit Rack associated diagram, obtain the feasible program that computational resource distributes with each electrical network module relation isomorphism of graph;
4) in feasible program, be target, seek optimum computational resource allocation scheme with communication number minimum between each computing unit Rack.
Be example with south electric network electrical network scale in 2010 below, adopt RTDS to set up its realistic model, electrical network is carried out Module Division based on the subgraph isomorphism algorithm, specific as follows:
RTDS is the product of computer technology, parallel processing technique and digital simulation technique development, has parallel processing technique and custom-designed hardware, can guarantee the real-time of moving.RTDS may operate in the fairly large electric system of real-time simulation on the step-length of 50 μ s levels.In addition, the component models of RTDS and simulation algorithm are to be based upon on the basis of the standard technique that electro-magnetic transient analyzes, and its emulation correctness has obtained to generally acknowledge.RTDS can realize real-time digital-to-analogue hybrid simulation with its good calculated performance, has been widely used in the test of relay protection, DC control protection, solar power system.
The element of RTDS is called emulator computing unit (being called for short Rack), each Rack is independent physically, generally comprises 1 workstation and connects sync card, 1 IRC (communicating by letter between Rack) card, some processor cards and some input/output interface cards that links to each other with processor card.Communicate by letter between Rack and Rack and adopt the 660MHz communication port, adopt the 10Mb/s Ethernet to communicate between Rack and workstation, parallel mode is all adopted in all communication.The IRC card is handled the data communication between Rack, and each IRC card all has 6 communication interfaces, can link to each other with 6 Rack respectively, so a RTDS system that comprises 7 Rack can realize linking to each other in twos between Rack.Annexation such as table 1 and shown in Figure 2 between present 18 Rack of south electric network.Wherein Rack5 is connected direct current (Xingan/height is started/day wide direct current) working control protective device with Rack6.The present invention uses Rack3~Rack20 totally 18 Rack.
Annexation among table 1 RTDS between the Rack
The Rack numbering |
Passage #1 |
Passage #2 |
Passage #3 |
Passage #4 |
Passage #5 |
Passage #6 |
Rack3 |
Rack9 |
unused |
Rack5 |
Rack4 |
Rack7 |
Rack20 |
Rack4 |
Rack9 |
Rack10 |
Rack3 |
Rack8 |
Rack11 |
Rack12 |
Rack5 |
Rack3 |
Rack6 |
Rack7 |
Rack1 |
Rack13 |
Rack9 |
Rack6 |
Rack5 |
Rack9 |
Rack12 |
Rack8 |
Rack10 |
Rack11 |
Rack7 |
Rack5 |
unused |
Rack3 |
Rack8 |
Rack10 |
unused |
Rack8 |
Rack4 |
Rack6 |
Rack7 |
Rack9 |
Rack11 |
Rack12 |
Rack9 |
Rack5 |
Rack10 |
Rack3 |
Rack4 |
Rack6 |
Rack8 |
Rack10 |
Rack9 |
Rack4 |
Rack11 |
Rack12 |
Rack6 |
Rack7 |
Rack11 |
Rack13 |
Rack10 |
Rack4 |
Rack12 |
Rack6 |
Rack8 |
Rack12 |
Rack13 |
Rack10 |
Rack11 |
Rack4 |
Rack6 |
Rack8 |
Rack13 |
Rack14 |
Rack15 |
Rack16 |
Rack12 |
Rack11 |
Rack5 |
Rack14 |
Rack15 |
Rack16 |
Rack17 |
Rack13 |
unused |
unused |
Rack15 |
Rack16 |
Rack17 |
Rack18 |
Rack14 |
Rack13 |
unused |
Rack16 |
Rack17 |
Rack18 |
Rack19 |
Rack15 |
Rack14 |
Rack13 |
Rack17 |
Rack18 |
Rack19 |
Rack20 |
Rack16 |
Rack15 |
Rack14 |
Rack18 |
Rack19 |
Rack20 |
Rack1 |
Rack17 |
Rack16 |
Rack15 |
Rack19 |
Rack20 |
Rack1 |
Rack2 |
Rack18 |
Rack17 |
Rack16 |
Rack20 |
Rack1 |
Rack2 |
Rack3 |
Rack19 |
Rack18 |
Rack17 |
The subgraph isomorphism algorithm:
Subgraph isomorphism problem (Subgraph Isomorphism) is an important branch in the graph theory, can compare whether matching problem of two graph topological structures, is widely used 1 in pattern-recognition.The definition of subgraph and isomorphism is respectively:
Define 1: one figure H, all summits of satisfying H all are contained in the vertex set of G, and the limit of H all is contained in the limit collection of G, and among the H end points on limit distribute with G in the same, claim that then H is the subgraph of G, usefulness
Definition 2: the isomorphism from simple graph G to simple graph H is a dijection f:V (G) → V (H), makes uv ∈ E (G) and if only if that (v) ∈ E (H) is designated as f (u) f
In the definition 2 among the uv presentation graphs G node u to the limit of node v, f (u), (v) represent node u respectively, v is mapped to the node of figure H from figure G to f, and change of the two and uv have one to one and concern.
The subgraph isomorphism problem is a typical NP (Non-deterministic Polynomialtime) problem, is open question so far in the theory of computational complexity field.
Matching relationship between south electric network module (Block) division and RTDS physics are got in touch can be understood as the subgraph isomorphism problem in the graph theory.The communication relationship of electrical network is an electric connecting relation, is determined by electric network composition; The communication relationship of the inner Rack of RTDS is one and communicates to connect relation, is by the hardware configuration decision of IRC.To realize simulation calculation with RTDS to south electric network, set up the realistic model of south electric network, be exactly in fact in the communication chart of Rack, find a subgraph with Block communication chart isomorphism, and make the amount of communications minimum between the Rack in the implementation procedure of whole electric network model.According to the amount of calculation of each Rack, south electric network is divided, guarantee that each Block can calculate with existing Rack integrated circuit board.Module Division as shown in Figure 3, the present invention uses Block1~Block18 totally 18 modules.Also to consider the connection between the straight-flow system among the figure.Consider that analogue system is connected with the actual physics device, the therefore Rack of fixing wherein 8 block numbering, i.e. Rack3,4,5,6,7,8,16,17, corresponding respectively day wide direct current, height are started the rectification side and the inversion side of direct current, Xingan's direct current and Yun Guang extra-high voltage DC transmission system.
The isomorphism subgraph problem with the Block connection layout will be in the Rack connection layout, searched for, the incidence matrix transformation problem can be converted to.According to the Rack communication relationship among Fig. 2, can obtain 18 incidence matrix (be called for short M_Rack) between the Rack and be:
Annotate: R represents Rack
According to Fig. 3, the incidence matrix (being called for short M_Blcok) that can obtain between 18 Block of south electric network module is:
Annotate: B represents Block
In the matrix, have direct communication relationship between two nodes of element 1 expression, two nodes of 0 expression do not have direct communication relationship.
The subgraph isomorphism problem is exactly the row-column transform by M_Blcok, the submatrix of search and M_Rack coupling.Because existing 8 Block and Rack have formed corresponding relation, thus only need carry out conversion to other 10 ranks among matrix M _ Block, to search suitable R ack allocation result.
Adopt enumerative technique to search for all feasible programs, obtain 6 schemes, result such as table 2.6 schemes are 8 by the quantity that the Rack transfer connects, and are contact number minimum.
The Rack allocative decision that table 2 is obtained by the subgraph isomorphism
The present invention is directed to the Module Division and the Rack computational resource distribution problem that are run in the south electric network large-scale electrical power system RTDS modeling process, proposed real-time emulation system Module Division method based on the subgraph isomorphism algorithm.Utilize the thought of subgraph isomorphism, Module Division and Rack distribution are corresponded to the subgraph of seeking with Block communication chart isomorphism in the communication chart of Rack, and generate the corresponding scheme of Block and Rack automatically.Relatively the amount of communications between Rack in all feasible programs is a target with the quantity minimum, obtains optimum Rack allocative decision.By south electric network modeling process example, verification algorithm is feasible, obtains optimum Rack allocative decision, and netting quantity is 8 between its Rack.