Element admittance matrix adaptive updating method based on pattern recognition and related device

By establishing a unified admittance matrix model through pattern recognition technology, the problems of redundancy and difficulty in matrix construction and adaptation under multiple operating conditions of complex components in traditional electromagnetic transient simulation are solved, and efficient admittance matrix updating and simulation accuracy are achieved.

CN123179707APending Publication Date: 2026-11-27ELECTRIC POWER RES INST CHINA SOUTHERN POWER GRID CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611421629.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-14
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In traditional electromagnetic transient simulation, the method of constructing admittance matrices for complex components is difficult to adapt to the needs of multi-condition operation. There is mutual coupling between condition judgment, admittance parameter calculation and matrix assembly process, the matrix structure is difficult to be fixed and reused, and the matrix process needs to be reconstructed when adding a new operating mode, resulting in redundancy and low efficiency in the construction process.

Method used

By using pattern recognition technology, the operating mode information and electrical connection relationship of the target component are obtained, and a unified admittance matrix model covering multiple operating modes is established. The target operating mode is identified according to the current operating state and the admittance parameters are updated. This enables the expression and switching of the admittance matrix in a unified matrix structure, reduces the need to repeatedly set matrix construction branches, and improves modeling efficiency and stability.

Benefits of technology

It improves the update efficiency and storage stability of admittance modeling for complex power components under multiple operating conditions, solves the problems of redundancy in matrix construction and difficulty in adapting to new operating modes, and ensures the reusability of matrix structure and simulation accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123179707A_ABST
    Figure CN123179707A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of electronic equipment simulation, and discloses a component admittance matrix adaptive updating method based on pattern recognition and related equipment. The method pre-establishes a unified admittance matrix model covering multiple operating modes by obtaining multiple operating mode information and electrical connection relationships of a target component, identifies a target operating mode according to a current operating state of the target component, determines corresponding admittance parameters and matrix assembly relationships, and then completes admittance parameter updating in the unified admittance matrix model, so that admittance matrices under different connection modes, connection groups, neutral point states, switching states or fault states can be expressed and switched in a unified matrix structure. Therefore, the updating efficiency, storage stability and operating mode expansion capability of complex power component multi-working-condition admittance modeling are improved, and the problems of redundancy in the matrix construction process, difficulty in reusing the matrix structure and difficulty in adapting to newly-added operating modes under multi-working-condition conditions are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of electronic device simulation technology, and in particular to an adaptive update method for component admittance matrix based on pattern recognition and related equipment. Background Technology

[0002] With the large-scale integration of new energy sources, power electronic equipment, and complex AC / DC systems, the types of components, operating states, and wiring combinations in power system electromagnetic transient models are continuously increasing. Core components such as generators and transformers have various external wiring methods, neutral point states, connection groups, switching states, and fault states. During electromagnetic transient simulation, it is necessary to calculate the equivalent admittance and historical current based on the current operating state of the components and assemble the component admittance matrix into the network node equations. The computational accuracy, matrix construction efficiency, and adaptability to operating conditions of the component models directly affect the correctness and computational speed of complex large-scale power grid simulations.

[0003] In traditional electromagnetic transient simulations, admittance matrices for complex components are typically constructed using multi-branch conditional logic. This involves nested conditional checks that call separate independent matrix construction processes for each operating condition or wiring configuration. While this approach is intuitive when the number of operating conditions is small, the number of matrix construction branches, matrix filling functions, and repetitive code increases rapidly as the component topology and combined operating conditions grow. Different branches may also perform matrix initialization, memory allocation, and data filling separately, causing the matrix structure and storage addresses to change with the operating condition. This is detrimental to cache access, fixed sparse index reuse, and compiler optimization.

[0004] Taking a three-phase, three-winding transformer as an example, each winding can be connected in star or delta configurations, and there are also distinctions between neutral point grounding and ungrounding. The three windings can form 27 basic connection combinations. On this basis, there are also various phase offset relationships. If a complete admittance matrix is ​​established for each connection combination and connection group, the amount of code and maintenance difficulty will increase rapidly with the number of combinations.

[0005] Therefore, the existing methods for constructing admittance matrices are difficult to adapt to the multi-condition operation requirements of complex power components. They have problems such as the coupling between condition judgment, admittance parameter calculation and matrix assembly process, difficulty in fixing and reusing matrix structure, and the need to reconstruct matrix process when adding new operating modes. Summary of the Invention

[0006] In view of this, in order to solve the above-mentioned technical problems, the present invention provides a method and related equipment for adaptive updating of component admittance matrix based on pattern recognition.

[0007] The first aspect of this invention provides a method for adaptively updating the component admittance matrix based on pattern recognition, the method comprising:

[0008] Obtain the operating mode information and corresponding electrical connection relationship of the target component; and establish a unified admittance matrix model covering multiple operating modes of the target component based on the operating mode information and the electrical connection relationship.

[0009] The current operating state of the target component is obtained, the corresponding target operating mode is determined based on the current operating state, and the corresponding admittance parameters and matrix assembly relationships are determined based on the target operating mode.

[0010] Based on the admittance parameters and matrix assembly relationships corresponding to the target operating mode, the unified admittance matrix model is updated to obtain the component admittance matrix corresponding to the current operating state.

[0011] In one example, acquiring the operating mode information of the target component and the corresponding electrical connection relationship, and establishing a unified admittance matrix model covering multiple operating modes of the target component based on the operating mode information and the electrical connection relationship, includes:

[0012] Obtain multiple operating mode information corresponding to the target component and the electrical connection relationship corresponding to each operating mode information, wherein the operating mode information is used to characterize the connection configuration of the target component under different operating states;

[0013] Based on the electrical connection relationships corresponding to each of the aforementioned operating modes, the port connection relationships and node association relationships corresponding to each operating mode are determined, and the external ports, internal connection nodes, and connection nodes corresponding to different operating modes are uniformly expressed to form a unified node space covering multiple operating modes.

[0014] Based on the admittance matrix structure information corresponding to each of the aforementioned operating modes, the effective positions of the matrices corresponding to different operating modes are determined, and the effective positions of the matrices corresponding to each operating mode are merged to form a unified matrix structure covering multiple operating modes.

[0015] Based on the unified node space and the unified matrix structure, the unified admittance matrix model is established.

[0016] In one example, determining the effective positions of the matrices corresponding to different operating modes based on the admittance matrix structure information corresponding to each operating mode information, and fusing the effective positions of the matrices corresponding to each operating mode to form a unified matrix structure covering multiple operating modes includes:

[0017] Based on the admittance matrix structure corresponding to each of the operating modes, the effective position of the matrix corresponding to each of the operating modes is determined, wherein the effective position of the matrix is ​​used to characterize the position where there is a non-zero admittance element in the admittance matrix under the corresponding operating mode;

[0018] Based on the effective positions of the matrix corresponding to each of the operating modes, the set of non-zero positions corresponding to each operating mode is determined, and the sets of non-zero positions are merged to obtain a unified set of non-zero positions covering multiple operating modes.

[0019] The unified matrix structure is formed based on the unified set of non-zero positions.

[0020] In one example, determining the corresponding target operating mode based on the current operating state, and determining the corresponding admittance parameters and matrix assembly relationships based on the target operating mode, includes:

[0021] Obtain the state feature information corresponding to the current operating state of the target component;

[0022] The corresponding state combination is determined based on the state feature information, and the state combination is converted into the corresponding pattern code according to the preset correspondence between the state combination and the pattern information.

[0023] The target operating mode corresponding to the target component is determined according to the mode code, and the admittance parameter corresponding to the target operating mode is determined according to the electrical connection relationship and component parameters corresponding to the target operating mode.

[0024] Based on the mode code and the port connection relationship corresponding to the target operating mode, the corresponding assembly position of the admittance parameter in the unified admittance matrix model is determined, and the matrix assembly relationship is obtained.

[0025] In one example, updating the unified admittance matrix model based on the admittance parameters and matrix assembly relationships corresponding to the target operating mode to obtain the component admittance matrix corresponding to the current operating state includes:

[0026] Based on the admittance parameters corresponding to the target operating mode and the electrical connection relationships corresponding to the target operating mode, determine the local admittance matrix corresponding to the target operating mode;

[0027] The correspondence between the local admittance matrix and the unified admittance matrix model is determined based on the matrix assembly relationship, and the admittance parameters in the local admittance matrix are updated to the corresponding positions in the unified admittance matrix model.

[0028] In one example, the method further includes:

[0029] Detect changes in the operating state of the target component, and determine a new operating mode based on the changed operating state;

[0030] The new admittance contribution is determined based on the new operating mode, and the old admittance contribution is determined based on the operating mode before the change.

[0031] Based on the relationship between the new admittance contribution and the old admittance contribution, the unified admittance matrix model is updated to obtain the switched element admittance matrix.

[0032] In one example, after obtaining the component admittance matrix corresponding to the current operating state, the process further includes:

[0033] The validity of the component admittance matrix is ​​determined based on the preset structural constraints corresponding to the unified admittance matrix model.

[0034] Based on the preset electrical characteristic constraints corresponding to the target component, the consistency of the component admittance matrix is ​​verified.

[0035] When all the component admittance matrices satisfy the structural constraints and the electrical characteristic constraints, the update of the component admittance matrix is ​​determined to be valid.

[0036] Secondly, the present invention also provides a pattern recognition-based adaptive update system for the component admittance matrix, the system comprising:

[0037] A unified model building module is used to obtain the operating mode information of the target component and the corresponding electrical connection relationship, and to establish a unified admittance matrix model covering multiple operating modes of the target component based on the operating mode information and the electrical connection relationship.

[0038] The admittance determination module is used to obtain the current operating state of the target component, determine the corresponding target operating mode based on the current operating state, and determine the corresponding admittance parameters and matrix assembly relationship based on the target operating mode.

[0039] The admittance matrix update module is used to update the unified admittance matrix model according to the admittance parameters and matrix assembly relationship corresponding to the target operating mode, so as to obtain the component admittance matrix corresponding to the current operating state.

[0040] Thirdly, the present invention also provides an electronic device, the electronic device including a memory and a processor, the memory storing a computer program, the computer program being executed by the processor causing the processor to perform the steps of the pattern recognition-based adaptive update method for the element admittance matrix as described in the first aspect.

[0041] Fourthly, the present invention also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed, implements the steps of the pattern recognition-based adaptive update method for the element admittance matrix as described in the first aspect.

[0042] As can be seen from the above technical solutions, this invention obtains information on multiple operating modes of the target component and their electrical connection relationships, pre-establishes a unified admittance matrix model covering multiple operating modes, identifies the target operating mode based on the current operating state of the target component, determines the corresponding admittance parameters and matrix assembly relationships, and then completes the admittance parameter update in the unified admittance matrix model. This allows admittance matrices under different connection methods, connection groups, neutral point states, switching states, or fault states to be expressed and switched in a unified matrix structure. Therefore, the operating mode identification, admittance parameter calculation, and matrix assembly processes can be interconnected and appropriately separated, reducing the need to repeatedly set matrix construction branches for different operating conditions. Simultaneously, it avoids repeatedly creating, adjusting, or redistributing the matrix structure when the operating state changes. While ensuring that the current operating state matches the component's admittance matrix, it improves the update efficiency, storage stability, and operating mode expansion capability of multi-operating-condition admittance modeling for complex power components, thereby solving the problems of redundancy in the matrix construction process, difficulty in reusing matrix structures, and difficulty in adapting to new operating modes under multi-operating-condition conditions. Attached Figure Description

[0043] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0044] Figure 1 This is an application environment diagram of an adaptive update method for the component admittance matrix based on pattern recognition, provided in an embodiment of the present invention.

[0045] Figure 2 A flowchart illustrating an adaptive update method for the component admittance matrix based on pattern recognition, provided in an embodiment of the present invention;

[0046] Figure 3 A schematic diagram of a pattern recognition-based adaptive update system for component admittance matrix provided in an embodiment of the present invention;

[0047] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0048] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0049] The adaptive update method for the component admittance matrix based on pattern recognition provided in this application can be applied to, for example... Figure 1 In the application environment shown, terminal 101 communicates with server 102 via a network. A data storage system can store the data that server 102 needs to process. The data storage system can be integrated onto server 102 or placed on a cloud or other network server. Terminal 101 or server 102 executes a pattern recognition-based adaptive update method for the component admittance matrix. This method includes: acquiring the operating mode information of the target component and the corresponding electrical connection relationship; establishing a unified admittance matrix model covering multiple operating modes of the target component based on the operating mode information and electrical connection relationship; acquiring the current operating state of the target component; determining the corresponding target operating mode based on the current operating state; and determining the corresponding admittance parameters and matrix assembly relationship based on the target operating mode; updating the unified admittance matrix model based on the admittance parameters and matrix assembly relationship corresponding to the target operating mode to obtain the component admittance matrix corresponding to the current operating state.

[0050] Terminal 101 can be, but is not limited to, various personal computers, laptops, smartphones, and tablets.

[0051] Server 102 can be a standalone physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server that provides cloud computing services.

[0052] like Figure 2 As shown, this application provides a method for adaptive updating of the component admittance matrix based on pattern recognition, which is applied to... Figure 1 Taking terminal 101 or server 102 as an example, the explanation includes the following steps S1 to S3. Wherein:

[0053] Step S1: Obtain the operating mode information and corresponding electrical connection relationship of the target component. Based on the operating mode information and electrical connection relationship, establish a unified admittance matrix model covering multiple operating modes of the target component.

[0054] The operating mode information is used to indicate the parameter combination used by the target component under a specific operating condition. Taking a three-phase three-winding transformer as an example, an operating mode can be determined by the star or delta connection method of each winding, the neutral point grounding status, the connection group or phase lag characteristics, the winding switching status, and the fault status.

[0055] For example, a winding with a Y-connection, an ungrounded neutral point, and a phase lag of 30° can constitute one operating mode; while keeping other parameters unchanged but changing the phase lag to 60° constitutes another operating mode. These parameters can be iterated through during the component development phase based on the allowed operating conditions of the component, and selected during simulation based on the component function card or corresponding configuration data.

[0056] In this embodiment, the target element refers to the electrical element that needs to be connected to the network node equation in the form of an admittance matrix during the electromagnetic transient simulation of the power system, such as generators, transformers and other electrical elements with multiple external ports, internal connection nodes and multiple operating states.

[0057] Different target components can have different electromagnetic transient calculation principles, and therefore their specific derivation methods for admittance parameters and local admittance matrices can differ. This embodiment does not change the original admittance parameter solution principle of each target component, but rather unifies the node representation method, matrix position organization method, and matrix switching and updating method under different operating modes.

[0058] Step S2: Obtain the current operating status of the target component, determine the corresponding target operating mode based on the current operating status, and determine the corresponding admittance parameters and matrix assembly relationship based on the target operating mode.

[0059] The current operating state refers to the actual working condition of the target element, including observable or configurable state information such as winding connection method, neutral point state, and switching status. Different state combinations correspond to a unique preset operating mode.

[0060] The target operating mode is the preset operating mode that uniquely corresponds to the current operating state, and it corresponds to a unique electrical connection relationship, component parameters and admittance parameters, as well as a unique admittance parameter matrix assembly position.

[0061] Generally, after determining the target operating mode, the admittance parameter calculation process corresponding to the target component is invoked. Based on the turns ratio, leakage reactance, excitation branch, and phase relationship between ports, admittance parameters such as self-admittance and mutual admittance are determined. Furthermore, the specific assembly position of each admittance parameter in the unified admittance matrix model is determined, resulting in a clear matrix assembly relationship. This assembly relationship also records the matrix row and column numbers corresponding to each admittance parameter, ensuring accurate location of the corresponding position during subsequent parameter updates.

[0062] Step S3: Update the unified admittance matrix model according to the admittance parameters and matrix assembly relationship corresponding to the target operating mode to obtain the component admittance matrix corresponding to the current operating state.

[0063] Once the unified admittance matrix model is obtained, it is only necessary to update the admittance parameters corresponding to the current target operating mode according to the pre-determined assembly relationship to the corresponding matrix position. It is not necessary to change the overall framework structure of the unified matrix, nor is it necessary to re-allocate memory space to store the new admittance matrix, which greatly improves the update efficiency of the admittance matrix.

[0064] It should be noted that this application obtains information on multiple operating modes of the target component and their electrical connection relationships, pre-establishes a unified admittance matrix model covering multiple operating modes, identifies the target operating mode based on the current operating state of the target component, determines the corresponding admittance parameters and matrix assembly relationships, and then completes the admittance parameter update in the unified admittance matrix model. This allows admittance matrices under different connection methods, connection groups, neutral point states, switching states, or fault states to be expressed and switched in a unified matrix structure. Therefore, the operating mode identification, admittance parameter calculation, and matrix assembly processes can be interconnected and appropriately separated, reducing the need to repeatedly set matrix construction branches for different operating conditions. It also avoids repeatedly creating, adjusting, or redistributing the matrix structure when the operating state changes. While ensuring that the current operating state matches the component's admittance matrix, it improves the update efficiency, storage stability, and operating mode expansion capability of multi-operating-condition admittance modeling for complex power components, thereby solving the problems of redundancy in the matrix construction process, difficulty in reusing matrix structures, and difficulty in adapting to new operating modes under multi-operating-condition conditions.

[0065] In some embodiments, the operating mode information of the target component and the corresponding electrical connection relationship are obtained. Based on the operating mode information and electrical connection relationship, a unified admittance matrix model covering multiple operating modes of the target component is established, including:

[0066] Step S101: Obtain multiple operating mode information corresponding to the target component and the electrical connection relationship corresponding to each operating mode information. The operating mode information is used to characterize the connection configuration of the target component under different operating states.

[0067] First, all candidate operating modes allowed for the target component are determined. All candidate operating modes constitute the candidate operating condition set Q, where any candidate operating mode is denoted as q.

[0068] Candidate operating modes are not limited to a fixed encoding form. They can be defined by the component developer based on the parameter options supported by the target component, as long as each legal parameter combination can form a definite correspondence with the corresponding admittance calculation process and node connection relationship.

[0069] For example, for a three-phase, three-winding transformer, each winding can be connected in a Y-shaped neutral point ungrounded, a Y-shaped neutral point grounded, or a delta connection, thus forming 27 basic connection combinations. Based on this, parameters such as connection group, phase lag, winding switching, and fault status can be further superimposed to form a set of candidate operating modes actually supported by the transformer.

[0070] By acquiring information on multiple operating modes corresponding to the target component and determining the electrical connection relationships corresponding to each operating mode, the connection status between the internal nodes and external ports of the component under different operating modes can be clarified, providing a foundation for the subsequent construction of a unified matrix framework.

[0071] Step S102: Based on the electrical connection relationships corresponding to each operating mode information, determine the port connection relationships and node association relationships corresponding to each operating mode, and uniformly express the external ports, internal connection nodes and connection nodes corresponding to different operating modes to form a unified node space covering multiple operating modes.

[0072] The unified node space refers to the set of nodes formed by uniformly numbering the external ports, winding endpoints, neutral points, and internal connection points that the target element may use in all candidate operating modes. Candidate nodes that do not participate in electrical connections under a certain operating mode are still retained in the unified node space, but they do not contribute effectively to the admittance matrix corresponding to that operating mode. Therefore, all operating modes can use the same matrix dimension and the same node numbering system without needing to change the matrix dimension when switching operating modes.

[0073] After uniformly numbering all candidate nodes, let the total number of nodes be N. Then, the admittance matrix corresponding to any working condition q is mapped to the same complex matrix space:

[0074] (1)

[0075] Where Q represents the set of all candidate operating conditions for the target component; This represents the component admittance matrix under operating condition q; N represents the total number of candidate nodes after uniform numbering. It represents the N×N matrix space composed of complex numbers.

[0076] This mapping process does not require all matrix elements to be identical for different operating conditions, but rather requires that the same row and column numbering rules be used for different operating conditions. For example, the neutral point of a winding may participate in admittance connection under grounded operating conditions, but may not generate corresponding ground admittance under ungrounded operating conditions. However, this neutral point still corresponds to the same candidate node number in the unified node space under both operating conditions.

[0077] This process avoids the need to re-establish node numbers, reallocate matrix space, or move existing matrix data when switching target components from one wiring method to another, providing a structural foundation for subsequent fixed sparse index reuse and continuous storage address access.

[0078] Step S103: Based on the admittance matrix structure information corresponding to each operating mode, determine the effective position of the matrix corresponding to different operating modes, and merge the effective positions of the matrix corresponding to each operating mode to form a unified matrix structure covering multiple operating modes.

[0079] The effective position in the matrix refers to the row and column positions in the admittance matrix of the corresponding operating mode that may carry effective admittance elements, based on the electrical connection and admittance coupling relationships of the target components. Here, "non-zero" primarily indicates a structural possibility of non-zero, rather than requiring that the value of the position at any given moment be non-zero. For example, a position that allows written mutual admittance according to the electrical topology in a certain operating mode can be identified as a structural non-zero position for that operating mode; even if its instantaneous value calculated under a specific parameter condition is zero, the position can still be retained in the corresponding candidate structure.

[0080] Furthermore, based on the admittance matrix structure information corresponding to each operating mode, the effective positions of the matrix corresponding to different operating modes are determined, and the effective positions of the matrix corresponding to each operating mode are fused to form a unified matrix structure covering multiple operating modes. This includes: determining the effective positions of the matrix corresponding to each operating mode based on the admittance matrix structure corresponding to each operating mode information, wherein the effective positions of the matrix are used to characterize the positions in the admittance matrix of the corresponding operating mode where there are non-zero admittance elements; determining the set of non-zero positions corresponding to each operating mode based on the effective positions of the matrix corresponding to each operating mode, and fusion of the non-zero position sets to obtain a unified set of non-zero positions covering multiple operating modes; and forming a unified matrix structure based on the unified set of non-zero positions.

[0081] Specifically, the set of non-zero positions of the matrix structure under operating condition q can be represented as:

[0082] (2)

[0083] in, This represents the set of possible non-zero locations in the admittance matrix structure under operating condition q; This represents the non-zero set of the matrix structure. Assume the admittance matrix for a certain operating condition is:

[0084] (3)

[0085] At this point, the set of non-zero structural positions corresponding to this working condition is:

[0086] {(1,1),(1,2),(2,1),(2,2)}.

[0087] The above results indicate that in this operating condition, an admittance connection is formed only between the first and second nodes, and the third node does not contribute admittance under this operating condition.

[0088] Iterate through each candidate operating mode in the candidate operating condition set Q, determine the set of non-zero structural positions corresponding to each operating mode, and perform a union operation on all sets of non-zero structural positions to obtain:

[0089] (4)

[0090] Here, Ω represents the total set of non-zero positions that the target element can use in all candidate operating modes. A matrix position is retained in the unified matrix structure as long as it can carry a valid admittance element in at least one legal operating mode.

[0091] Step S104: Establish a unified admittance matrix model based on the unified node space and unified matrix structure.

[0092] Based on the established unified node space and unified matrix structure, a unified admittance matrix model covering all candidate operating modes of the target element can be obtained by allocating fixed-dimensional admittance matrix storage units. This model only requires a one-time memory space allocation; subsequent updates to admittance parameters under any operating mode only require numerical modifications to the corresponding elements in the unified matrix structure.

[0093] Specifically, in the model initialization phase, after obtaining the unified node space and unified matrix structure, the global admittance matrix Y is established based on the dimension N of the unified node space and the unified set of non-zero positions Ω. over .

[0094] For implementations using dense matrix storage, a contiguous N×N matrix space can be allocated at once; for implementations using sparse matrix storage, a fixed sparse index can be pre-established based on a unified set of non-zero positions, and the storage address corresponding to each candidate non-zero position can be saved.

[0095] During simulation, the global admittance matrix is ​​not recreated due to changes in the operating mode, nor are its matrix dimensions, candidate non-zero structure, or storage address altered. Instead, based on the current target operating mode, currently valid admittance parameters are written to the corresponding candidate positions, and old admittance contributions no longer used in the current operating mode are eliminated. This achieves separation between matrix structure definition and admittance value updates.

[0096] In some embodiments, determining the corresponding target operating mode based on the current operating state, and determining the corresponding admittance parameters and matrix assembly relationships based on the target operating mode, includes:

[0097] Step S201: Obtain the status feature information corresponding to the current operating state of the target component.

[0098] Specifically, it can read the current parameter options, switch status, and initial wiring parameters from the target component's function card in real time, forming status characteristic information corresponding to the current operating status. The status characteristic information can at least include the connection type, connection group or phase lag characteristic, neutral point status, switching status, and fault status of each winding of the target component.

[0099] Taking a three-phase, three-winding transformer as an example, the state feature vector of the current operating state can be represented as:

[0100] (5)

[0101] in, Indicates the connection type of the i-th winding, such as Y-connection or Δ-connection; The connection group or phase lag characteristic of the i-th winding; This indicates the neutral point state of the i-th winding; 'f' indicates the component switching state; 'f' indicates the component fault state; 'T' indicates transpose.

[0102] The values ​​of the aforementioned state characteristics are not limited to a unique numerical form. During the component development phase, different parameter options can be encoded as integers such as 0, 1, and 2, or as Boolean values ​​or other discrete identifiers, as long as the encoded values ​​are consistent with the corresponding component operating conditions, admittance calculation process, and position mapping relationship.

[0103] Step S202: Determine the corresponding state combination based on the state feature information, and convert the state combination into the corresponding pattern code according to the preset correspondence between the state combination and the pattern information.

[0104] This involves organizing state feature information into a structured input. For example, for a three-phase, three-winding transformer, the basic connection state of each winding can be encoded as follows:

[0105] (6)

[0106] Equation (6) is merely an exemplary encoding and does not constitute a limitation on specific encoding values. When using the combined encoding method of Equation (6), the connection type and neutral point state are already jointly represented in t. i In the middle; when using the separate encoding method, it can also be determined by t i Represents a Y-shaped or triangular connection, represented by ni The neutral point may be grounded or ungrounded, but the coding rules should be kept consistent within the same embodiment.

[0107] Based on the pre-established correspondence between the state combinations and pattern information of the target element, pattern recognition is performed on the current state characteristics to obtain the pattern code corresponding to the i-th winding:

[0108] (7)

[0109] in, Represents pattern recognition mapping; This represents the mode code corresponding to the i-th winding; This represents the set of all valid pattern codes.

[0110] Pattern recognition mapping can be implemented through state encoding, logical rules, or lookup tables. For example, each legal state combination can be pre-associated with a pattern code, the corresponding admittance calculation entry, position mapping item, and phase shift parameter. During simulation, the corresponding table entry can be queried using the current state combination as an index to simultaneously obtain the target operating mode and the information required for subsequent calculations.

[0111] The pattern code itself is not limited to a numerical value with a specific physical meaning. It can be designed by the component developer according to the needs of the program implementation, but it should meet two conditions: first, different legal state combinations that require different calculation or assembly methods can be distinguished; second, each pattern code can uniquely navigate to the corresponding admittance calculation process and matrix position mapping relationship.

[0112] When the current state combination does not exist in the set of legal patterns, the current input is determined to be an abnormal state. The corresponding admittance matrix update is not performed, and the component settings or pattern mapping relationship is checked, thereby avoiding writing undefined state combinations into the unified admittance matrix model.

[0113] Step S203: Determine the target operating mode corresponding to the target component based on the mode code, and determine the admittance parameter corresponding to the target operating mode based on the electrical connection relationship and component parameters corresponding to the target operating mode.

[0114] After determining the target operating mode, the admittance parameter calculation process corresponding to the target element is invoked. Based on the turns ratio, leakage reactance, excitation branch, and phase relationship between ports, admittance parameters such as self-admittance and mutual admittance are determined. The basic admittance parameters are derived from the electromagnetic transient simulation solution principle of the target element itself, and it is not required that different types of target elements use the same calculation formula.

[0115] For target components with connection groups or phase shifts, phase correction can be applied to the basic mutual admittance. The phase correction relationship is as follows:

[0116] (8)

[0117] in, This indicates the basic mutual admittance without considering the phase shift of the connection group; This represents the phase offset angle between port i and port j; Represents the imaginary unit; This represents the complex cross-admittance after phase correction.

[0118] According to Euler's formula:

[0119] (9)

[0120] We can obtain:

[0121] (10)

[0122] In implementations using complex admittance, the phase-corrected mutual admittance can be directly used as the corresponding element in the local admittance matrix. In implementations using phase rearrangement to achieve phase shift, the winding electromagnetic induction correspondence after phase shift can be determined based on the phase correction result, and then the assembly position of the corresponding admittance parameter can be changed through position mapping.

[0123] For example, when the phase shift is 120°, the original ABC phase correspondence can be converted into a BCA phase correspondence according to the phase sequence and reference direction used by the target element.

[0124] Therefore, the phase-corrected result can be used to determine the mutual admittance values ​​in the local admittance matrix, or to determine the corresponding phase arrangement and endpoint assembly positions. The specific method used can be determined based on the electromagnetic transient simulation implementation of the target element, but should be consistent with the port reference direction and network equation conventions.

[0125] Step S204: Based on the mode code and the port connection relationship corresponding to the target operating mode, determine the corresponding assembly position of the admittance parameters in the unified admittance matrix model, and obtain the matrix assembly relationship.

[0126] To ensure that the local endpoints of different windings can be mapped to a unified node space, each winding of the target element is uniformly numbered, and an index block of width b is reserved for each winding. The block base address of the i-th winding is:

[0127] (11)

[0128] in, This indicates the width of the index block reserved for each winding; This indicates the starting position of the i-th winding index block.

[0129] By using block base addresses, endpoints formed by different windings using the same local numbering rules can be mapped to non-conflicting global node ranges.

[0130] The first and second position mapping tables are used to store the correspondence between phase, winding mode, and endpoint positions. The first position mapping table at least reflects the position changes of different phases in the matrix, and the second position mapping table at least reflects the position changes of different winding modes and their port connection relationships in the matrix. Based on the current phase k and winding mode code m... i By querying the above mapping table, we can obtain the two local endpoint positions of the i-th winding under phase k; then, by superimposing the block base address of the winding, we can obtain two global endpoint indices.

[0131] Based on the context, endpoint indexes should be represented as follows:

[0132] (12)

[0133] in, Indicates the winding number; Indicates separation; Indicates the winding mode code; This represents two location mapping tables; Represents the two global endpoints of the i-th winding under phase k; This represents the block base address of the i-th winding.

[0134] The position mapping table does not store admittance values, but rather the endpoint positions corresponding to phase, connection topology, neutral point state, and phase sequence relationship. The admittance parameter calculation process is responsible for determining the values ​​to be written, while the position mapping process is responsible for determining the row and column positions where these values ​​should be written into the global admittance matrix, thus separating admittance value calculation from matrix position determination.

[0135] For any phase k, taking a three-phase three-winding transformer as an example, the six effective endpoints corresponding to the three windings can be arranged in a predetermined order to form a position navigation vector:

[0136] (13)

[0137] Position navigation vectors are used to establish the correspondence between the rows and columns of the local admittance matrix and the rows and columns of the global admittance matrix. For example, a local admittance element may need to be installed in the 2nd row and 3rd column of the global admittance matrix under one phase or connection group, but may need to be installed in the 2nd row and 4th column under another phase or connection group. By querying the position navigation vector corresponding to the current operating mode, the actual installation position of the local admittance element under the current operating condition can be determined without rewriting the entire matrix construction process.

[0138] When adding a new valid operating condition, the corresponding mode mapping information, position mapping information, or phase shift parameters can be added. As long as the nodes and non-zero positions used by the new operating condition are already included in the unified node space and unified matrix structure, the original local admittance calculation and matrix assembly process can be reused. If the new operating condition introduces candidate nodes or candidate non-zero positions that were not previously included, the unified node space and unified non-zero position set should be expanded accordingly in the model initialization definition.

[0139] In some embodiments, the unified admittance matrix model is updated according to the admittance parameters and matrix assembly relationships corresponding to the target operating mode to obtain the component admittance matrix corresponding to the current operating state, including:

[0140] Step S301: Determine the local admittance matrix corresponding to the target operating mode based on the admittance parameters corresponding to the target operating mode and the electrical connection relationship corresponding to the target operating mode.

[0141] First, a local admittance matrix is ​​formed based on the admittance parameters and electrical connection relationships corresponding to the target operating mode. Taking a three-phase, three-winding transformer as an example, a six-port local admittance matrix G can be formed based on the two effective endpoints of each of the three windings under the current phase. (k) The elements in this local admittance matrix may include self-admittance and mutual admittance calculated based on the transformer ratio, leakage reactance, excitation branch, and phase relationship.

[0142] The local admittance matrix organizes admittance parameters only according to the effective endpoints of the current phase and operating mode; the global admittance matrix covers all nodes and non-zero positions that the target element may use in all candidate operating modes. The local admittance matrix is ​​responsible for expressing the effective admittance contribution under the current operating condition, while the global admittance matrix is ​​responsible for providing a structurally unified element matrix to the electromagnetic transient simulation software.

[0143] A Boolean scattering matrix is ​​constructed based on the position navigation vector. For each local port in the local admittance matrix, the position between that local port and its corresponding global node is set to 1 in the Boolean scattering matrix, and the remaining positions are set to 0. This allows the admittance parameters in the local admittance matrix to be scattered to specified row and column positions in the global admittance matrix.

[0144] The assembly relationship from the local admittance matrix to the global admittance matrix is ​​recorded as follows:

[0145] (14)

[0146] The corresponding element-by-element assembly process is as follows:

[0147] (15)

[0148] in, This represents the element in the m-th row and n-th column of the local matrix; This represents the global row number corresponding to the m-th local port; This represents the global column number corresponding to the nth local port. This represents the local six-port admittance matrix at phase k; Represents the Boolean scattering matrix; This represents the global admittance matrix.

[0149] For example, when the position navigation vector indicates that the second port of the local admittance matrix corresponds to global node 3 and the fourth port corresponds to global node 7, the local admittance elements... It is updated to the 3rd row and 7th column of the global admittance matrix. By performing this assembly process sequentially on the valid elements in the local admittance matrix, the global admittance contribution corresponding to the current target operating mode can be formed.

[0150] Once assembled, the global admittance matrix serves as the matrix interface between the target element and the electromagnetic transient simulation software kernel, participating in the subsequent solution of the network node equations. When the target element's operating mode changes, the software kernel still reads the global admittance matrix with the same dimensions and storage structure, without needing to readjust the matrix structure to adapt to changes in operating conditions.

[0151] Step S302: Determine the correspondence between the local admittance matrix and the unified admittance matrix model based on the matrix assembly relationship, and update the admittance parameters in the local admittance matrix to the corresponding positions in the unified admittance matrix model.

[0152] For candidate non-zero positions not used in the current target operating mode, they can be excluded from the effective admittance contribution of the current operating mode; for candidate non-zero positions used in the current target operating mode, the corresponding admittance parameters are written according to the position navigation vector and scattering assembly relationship. Thus, the updated unified admittance matrix model constitutes the component admittance matrix corresponding to the current operating state.

[0153] The above processing, by fixing the dimension, candidate non-zero positions, and storage address of the global admittance matrix, transforms the matrix re-creation, matrix clearing, and storage structure adjustment performed with changing operating conditions in the traditional method into numerical updates at fixed positions and necessary elimination of old contributions. This is beneficial for reusing fixed sparse indexes and matrix storage space.

[0154] In some embodiments, the method further includes: detecting changes in the operating state of the target element, determining a new operating mode based on the changed operating state; determining a new admittance contribution based on the new operating mode, and determining an old admittance contribution based on the operating mode before the change; updating the unified admittance matrix model based on the relationship between the new admittance contribution and the old admittance contribution, to obtain the switched element admittance matrix.

[0155] During simulation, the current switching state and wiring parameters of the target component can be read according to the simulation step size or when the component state undergoes discrete changes, and compared with the operating state saved in the previous stage. When at least one of the connection method, connection group, neutral point state, switching state, or fault state changes, it is determined that the target component has undergone a condition switch, and a new mode code is re-determined based on the changed state characteristics.

[0156] When none of the discrete states mentioned above change, the pattern code, position navigation vector, and matrix storage address from the previous stage can be reused. If only the continuous admittance parameters change at this point, it is only necessary to update the corresponding admittance values ​​at the original matrix positions, without needing to re-execute the complete pattern recognition and position navigation process.

[0157] The old admittance contribution can be the target element contribution saved during the local matrix assembly in the previous stage, or it can be re-determined based on the old mode code, old admittance parameters, and old position navigation relationships. The new admittance contribution is determined according to the admittance parameter calculation process, position mapping relationship, and scattering assembly process corresponding to the new operating mode.

[0158] When the operating condition changes, the influence of the old operating mode is eliminated and the influence of the new operating mode is added according to the following formula:

[0159] (16)

[0160] in, This represents the global admittance matrix that has been assembled in the previous stage; This represents the admittance contribution generated by the old operating mode in the global admittance matrix; This indicates the new admittance contribution corresponding to the new operating mode.

[0161] The "remove old and add new" in equation (16) is used to avoid the repeated accumulation of admittance contributions from different operating modes. For example, when the target element switches from a phase lag of 30° to a phase lag of 60°, instead of continuing to superimpose the 60° offset on the admittance matrix that already includes the 30° offset relationship, the admittance contribution corresponding to the 30° operating condition is first eliminated, and then the new admittance contribution is determined and added based on the basic admittance and the 60° phase relationship.

[0162] When the positional navigation relationship is the same in the old and new operating modes, the difference between the old and new local admittance matrices can be calculated:

[0163] (17)

[0164] in, Represents the local admittance matrix under the old operating condition; Represents the local admittance matrix under the new operating condition; This represents the difference between the two.

[0165] Since the new and old admittance parameters correspond to the same global location, the difference contribution can be added at a fixed storage address, or the old admittance parameter can be directly overwritten with the new admittance parameter.

[0166] For example, when a winding adds or changes its leakage reactance parameter while maintaining its topological position, the new admittance parameter can be determined according to the original leakage reactance solution method for that winding. Then, the difference between the old and new admittance parameters can be updated to the corresponding position of the global admittance matrix using the original position mapping table and position navigation vector.

[0167] When the positional navigation relationships of the old and new operating modes differ, the old admittance contribution is first subtracted from the old matrix position according to the old positional navigation relationship, and then the new admittance contribution is added to the new matrix position according to the new positional navigation relationship. This process is still completed within the pre-allocated global admittance matrix space and does not require the matrix object to be recreated.

[0168] In some embodiments, after obtaining the component admittance matrix corresponding to the current operating state, the method further includes: performing a validity judgment on the component admittance matrix based on the preset structural constraints corresponding to the unified admittance matrix model; performing a consistency check on the component admittance matrix based on the preset electrical characteristic constraints corresponding to the target component; and determining that the component admittance matrix update is valid when all component admittance matrices satisfy the structural constraints and electrical characteristic constraints.

[0169] The determination of structural validity includes at least the determination of the node index range and the determination of candidate non-zero positions.

[0170] To determine the range of node indexes, the global endpoint indices in the position navigation vector are read sequentially, and it is determined whether each endpoint index is within the number range corresponding to the unified node space. If the unified node space includes N nodes, then each endpoint index should point to a valid node in the unified node space, and endpoint indices exceeding the matrix row and column ranges are not allowed.

[0171] For candidate non-zero position determination, the position of each scattering target is determined based on the effective elements of the local admittance matrix and the position navigation vector, and it is determined whether each scattering target position belongs to the unified non-zero position set Ω. For example, if two windings do not have an electrical connection in the current operating mode, but the assembly result produces admittance elements at the matrix positions corresponding to the two, it indicates that there may be an error in the mode mapping, position navigation, or component parameter settings.

[0172] When any endpoint index exceeds the range of the unified node, or when any scattering target position does not belong to the unified non-zero position set, it is determined that the element admittance matrix update has failed the structural validity judgment, and it is not marked as a valid update result. The running mode recognition result, position mapping relationship and target element parameter settings are then re-examined.

[0173] Electrical conformance verification selectively checks matrix symmetry, reciprocity, or node current conservation relationships based on the electrical model requirements of the target component itself.

[0174] For target components that require symmetry, one can check whether a set of corresponding matrix elements satisfy the symmetry relationship specified by the component model; for target components with port reciprocity, one can check whether the forward and reverse admittances between two ports satisfy the corresponding reciprocity relationship; for target components that require node current conservation, one can check whether the combination of relevant admittance elements of each node meets the current balance condition required by the electrical connection relationship of the component.

[0175] The above checks should be based on the specific model attributes of the target component. Not all components containing phase shifts, controlled relationships, or special wiring methods must simultaneously meet the exact same symmetry or positive definiteness conditions. When the component admittance matrix does not meet the preset electrical characteristic constraints of the target component, it is determined that the update has failed the consistency check, and the admittance parameter calculation process, phase reference direction, endpoint position mapping relationship, and component settings should be re-checked.

[0176] The updated component admittance matrix is ​​only considered valid if the endpoint index, scattering target location, and applicable electrical characteristic constraints of the target component all pass the checks. The updated component admittance matrix is ​​then provided to the subsequent calculations in the electromagnetic transient simulation software. Otherwise, the update result will be intercepted, an error alarm will be output, and developers or users will be guided to verify the update to prevent incorrect component admittance matrices from being used in solving the simulation network equations, which could lead to simulation non-convergence or incorrect results.

[0177] Based on the same inventive concept, this application also provides a pattern recognition-based adaptive update system for the element admittance matrix, which implements the above-mentioned pattern recognition-based adaptive update method for the element admittance matrix.

[0178] The solution provided by this system is similar to the solution described in the above method. Therefore, the specific limitations of one or more embodiments of the adaptive update system for the element admittance matrix based on pattern recognition provided below can be found in the limitations of the adaptive update method for the element admittance matrix based on pattern recognition above, and will not be repeated here.

[0179] like Figure 3 As shown in the figure, this application provides a pattern recognition-based adaptive update system for the component admittance matrix, the system comprising:

[0180] The unified model construction module 100 is used to obtain the operating mode information of the target component and the corresponding electrical connection relationship, and to establish a unified admittance matrix model covering multiple operating modes of the target component based on the operating mode information and electrical connection relationship.

[0181] The admittance determination module 200 is used to obtain the current operating state of the target component, determine the corresponding target operating mode based on the current operating state, and determine the corresponding admittance parameters and matrix assembly relationship based on the target operating mode.

[0182] The admittance matrix update module 300 is used to update the unified admittance matrix model according to the admittance parameters and matrix assembly relationship corresponding to the target operating mode, so as to obtain the component admittance matrix corresponding to the current operating state.

[0183] In some embodiments, the unified model building module 100 is used for:

[0184] Acquire multiple operating mode information corresponding to the target component and the electrical connection relationship corresponding to each operating mode information. The operating mode information is used to characterize the connection configuration of the target component under different operating states.

[0185] Based on the electrical connection relationships corresponding to each operating mode, determine the port connection relationships and node association relationships corresponding to each operating mode, and uniformly express the external ports, internal connection nodes and connection nodes corresponding to different operating modes to form a unified node space covering multiple operating modes;

[0186] Based on the admittance matrix structure information corresponding to each operating mode, the effective positions of the matrix corresponding to different operating modes are determined, and the effective positions of the matrix corresponding to each operating mode are merged to form a unified matrix structure covering multiple operating modes.

[0187] A unified admittance matrix model is established based on a unified node space and a unified matrix structure.

[0188] In some embodiments, the unified model building module 100 is used for:

[0189] Based on the admittance matrix structure corresponding to each operating mode, the effective position of the matrix corresponding to each operating mode is determined. The effective position of the matrix is ​​used to characterize the position where there is a non-zero admittance element in the admittance matrix under the corresponding operating mode.

[0190] Based on the effective positions of the matrix corresponding to each operating mode, the set of non-zero positions corresponding to each operating mode is determined, and the sets of non-zero positions are merged to obtain a unified set of non-zero positions covering multiple operating modes.

[0191] A unified matrix structure is formed based on the unified set of non-zero positions.

[0192] In some embodiments, the admittance determination module 200 is configured to:

[0193] Obtain the state characteristic information corresponding to the current operating state of the target component;

[0194] The corresponding state combination is determined based on the state feature information, and the state combination is converted into the corresponding pattern code according to the preset correspondence between the state combination and the pattern information.

[0195] The target operating mode corresponding to the target component is determined based on the mode code, and the admittance parameter corresponding to the target operating mode is determined based on the electrical connection relationship and component parameters corresponding to the target operating mode.

[0196] Based on the mode code and the port connection relationship corresponding to the target operating mode, the corresponding assembly position of the admittance parameters in the unified admittance matrix model is determined, and the matrix assembly relationship is obtained.

[0197] In some embodiments, the admittance matrix update module 300 is used for:

[0198] Based on the admittance parameters corresponding to the target operating mode and the electrical connection relationships corresponding to the target operating mode, determine the local admittance matrix corresponding to the target operating mode;

[0199] The correspondence between the local admittance matrix and the unified admittance matrix model is determined based on the matrix assembly relationship, and the admittance parameters in the local admittance matrix are updated to the corresponding positions in the unified admittance matrix model.

[0200] In some embodiments, the system further includes: an adaptive update module, configured to:

[0201] Detect changes in the operating status of the target component and determine the corresponding new operating mode based on the changed operating status;

[0202] The new admittance contribution is determined based on the new operating mode, and the old admittance contribution is determined based on the operating mode before the change.

[0203] Based on the changing relationship between the new and old admittance contributions, the unified admittance matrix model is updated to obtain the switched element admittance matrix.

[0204] In some embodiments, the system further includes a matrix verification module, used for:

[0205] The validity of the component admittance matrix is ​​judged based on the preset structural constraints corresponding to the unified admittance matrix model.

[0206] Based on the preset electrical characteristic constraints corresponding to the target component, the consistency of the component admittance matrix is ​​verified.

[0207] When all component admittance matrices satisfy both structural and electrical constraints, the update of the component admittance matrix is ​​considered valid.

[0208] like Figure 4 As shown, this application provides an electronic device. The electronic device 10 includes a memory 20 and a processor 30. The memory 20 stores a computer program. When the computer program is executed by the processor 30, the processor 30 performs the steps of the adaptive update method for the element admittance matrix based on pattern recognition as described in the above embodiment.

[0209] This application provides a computer-readable storage medium storing a computer program thereon, which, when executed, implements the steps of the pattern recognition-based adaptive update method for the element admittance matrix as described in the above embodiments.

[0210] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, electronic devices, and computer storage media described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0211] In the embodiments of this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design that is described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design. Specifically, the use of the terms "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0212] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0213] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0214] In the embodiments provided by this invention, it should be understood that the disclosed systems, electronic devices, computer storage media, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection between devices or units through some interfaces, and may be electrical, mechanical, or other forms.

[0215] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0216] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0217] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for executing all or part of the steps of the methods described in the various embodiments of the present invention through a computer device (which may be a personal computer, a server, or a network device, etc.). The aforementioned storage medium includes: USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, optical disks, and other media capable of storing program code.

[0218] The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for adaptive updating of component admittance matrix based on pattern recognition, characterized in that, The method includes: Obtain the operating mode information and corresponding electrical connection relationship of the target component; and establish a unified admittance matrix model covering multiple operating modes of the target component based on the operating mode information and the electrical connection relationship. The current operating state of the target component is obtained, the corresponding target operating mode is determined based on the current operating state, and the corresponding admittance parameters and matrix assembly relationships are determined based on the target operating mode. Based on the admittance parameters and matrix assembly relationships corresponding to the target operating mode, the unified admittance matrix model is updated to obtain the component admittance matrix corresponding to the current operating state.

2. The adaptive update method for the component admittance matrix based on pattern recognition according to claim 1, characterized in that, The process of acquiring the operating mode information and corresponding electrical connection relationships of the target component, and establishing a unified admittance matrix model covering multiple operating modes of the target component based on the operating mode information and the electrical connection relationships, includes: Obtain multiple operating mode information corresponding to the target component and the electrical connection relationship corresponding to each operating mode information, wherein the operating mode information is used to characterize the connection configuration of the target component under different operating states; Based on the electrical connection relationships corresponding to each of the operating modes, the port connection relationships and node association relationships corresponding to each operating mode are determined, and the external ports, internal connection nodes and connection nodes corresponding to different operating modes are uniformly expressed to form a unified node space covering multiple operating modes. Based on the admittance matrix structure information corresponding to each of the aforementioned operating modes, the effective positions of the matrices corresponding to different operating modes are determined, and the effective positions of the matrices corresponding to each operating mode are merged to form a unified matrix structure covering multiple operating modes. Based on the unified node space and the unified matrix structure, the unified admittance matrix model is established.

3. The adaptive update method for the component admittance matrix based on pattern recognition according to claim 2, characterized in that, The step of determining the effective positions of the matrices corresponding to different operating modes based on the admittance matrix structure information corresponding to each operating mode information, and fusing the effective positions of the matrices corresponding to each operating mode to form a unified matrix structure covering multiple operating modes includes: Based on the admittance matrix structure corresponding to each of the operating modes, the effective position of the matrix corresponding to each of the operating modes is determined, wherein the effective position of the matrix is ​​used to characterize the position where there is a non-zero admittance element in the admittance matrix under the corresponding operating mode; Based on the effective positions of the matrix corresponding to each of the operating modes, the set of non-zero positions corresponding to each operating mode is determined, and the sets of non-zero positions are merged to obtain a unified set of non-zero positions covering multiple operating modes. The unified matrix structure is formed based on the unified set of non-zero positions.

4. The adaptive update method for the component admittance matrix based on pattern recognition according to claim 1, characterized in that, The step of determining the corresponding target operating mode based on the current operating state, and determining the corresponding admittance parameters and matrix assembly relationships based on the target operating mode, includes: Obtain the state feature information corresponding to the current operating state of the target component; The corresponding state combination is determined based on the state feature information, and the state combination is converted into the corresponding pattern code according to the preset correspondence between the state combination and the pattern information. The target operating mode corresponding to the target component is determined according to the mode code, and the admittance parameter corresponding to the target operating mode is determined according to the electrical connection relationship and component parameters corresponding to the target operating mode. Based on the mode code and the port connection relationship corresponding to the target operating mode, the corresponding assembly position of the admittance parameter in the unified admittance matrix model is determined, and the matrix assembly relationship is obtained.

5. The adaptive update method for the component admittance matrix based on pattern recognition according to claim 1, characterized in that, The step of updating the unified admittance matrix model based on the admittance parameters and matrix assembly relationships corresponding to the target operating mode to obtain the component admittance matrix corresponding to the current operating state includes: Based on the admittance parameters corresponding to the target operating mode and the electrical connection relationships corresponding to the target operating mode, determine the local admittance matrix corresponding to the target operating mode; The correspondence between the local admittance matrix and the unified admittance matrix model is determined based on the matrix assembly relationship, and the admittance parameters in the local admittance matrix are updated to the corresponding positions in the unified admittance matrix model.

6. The adaptive update method for the component admittance matrix based on pattern recognition according to claim 1, characterized in that, The method further includes: Detect changes in the operating state of the target component, and determine a new operating mode based on the changed operating state; The new admittance contribution is determined based on the new operating mode, and the old admittance contribution is determined based on the operating mode before the change. Based on the relationship between the new admittance contribution and the old admittance contribution, the unified admittance matrix model is updated to obtain the switched element admittance matrix.

7. The adaptive update method for the component admittance matrix based on pattern recognition according to claim 1, characterized in that, After obtaining the component admittance matrix corresponding to the current operating state, the process also includes: The validity of the component admittance matrix is ​​determined based on the preset structural constraints corresponding to the unified admittance matrix model. Based on the preset electrical characteristic constraints corresponding to the target component, the consistency of the component admittance matrix is ​​verified. When all the component admittance matrices satisfy the structural constraints and the electrical characteristic constraints, the update of the component admittance matrix is ​​determined to be valid.

8. A component admittance matrix adaptive update system based on pattern recognition, characterized in that, The system includes: A unified model building module is used to obtain the operating mode information of the target component and the corresponding electrical connection relationship, and to establish a unified admittance matrix model covering multiple operating modes of the target component based on the operating mode information and the electrical connection relationship. The admittance determination module is used to obtain the current operating state of the target component, determine the corresponding target operating mode based on the current operating state, and determine the corresponding admittance parameters and matrix assembly relationship based on the target operating mode. The admittance matrix update module is used to update the unified admittance matrix model according to the admittance parameters and matrix assembly relationship corresponding to the target operating mode, so as to obtain the component admittance matrix corresponding to the current operating state.

9. An electronic device, characterized in that, The electronic device includes a memory and a processor. The memory stores a computer program, which, when executed by the processor, causes the processor to perform the steps of the pattern recognition-based adaptive update method for the element admittance matrix as described in any one of claims 1-7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed, it implements the steps of the adaptive update method for the element admittance matrix based on pattern recognition as described in any one of claims 1-7.