Current transformer test method and device, equipment and storage medium
Through the establishment and simulation operation of the power system simulation model, the problem of high efficiency and low testing cost of traditional current transformers is solved, and efficient testing and evaluation of current transformers is realized, and stable operation and fault handling of power systems are supported.
Patent Information
- Application Number
- CN202411095339.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-09
- Publication Date
- 2024-12-06
AI Technical Summary
Traditional current transformer design and testing methods are costly and inefficient, making it difficult to meet the high performance requirements of modern power systems.
By establishing a simulation model of the power system, including the current transformer model, simulation operation is carried out based on simulation parameters, simulation data is obtained and test results are determined, and the current transformer is tested and evaluated.
It reduces testing costs, improves testing efficiency, can simulate the performance of current transformers under various working conditions, supports design optimization, fault diagnosis and system planning, and improves the stability and reliability of the power system.
Smart Images

Figure CN119087331A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of current transformers, and in particular, relates to a testing method, device, equipment and storage medium for a current transformer. Background Art
[0002] As an important device in the power system, the current transformer is mainly used to convert high current into standard low current for measurement and protection. With the continuous development and improvement of the intelligent level of the power system, the performance requirements of the current transformer are getting higher and higher. The traditional current transformer design and testing methods often rely on experiments, which are not only costly but also inefficient. Summary of the invention
[0003] In response to the above problems, the embodiments of the present application provide a method, apparatus, device and storage medium for testing a current transformer, which can test the current transformer through a current transformer model, thereby reducing testing costs and improving efficiency.
[0004] The present application provides a method for testing a current transformer, the method comprising:
[0005] Acquire a simulation model of the power system, wherein the simulation model includes: a current transformer model;
[0006] Performing simulation operation on the simulation model based on simulation parameters to obtain simulation data of the current transformer model;
[0007] A test result of the current transformer model is determined based on the simulation data, and the test result is output.
[0008] In some embodiments, the simulating operation of the simulation model based on the simulation parameters includes:
[0009] determining a current state of the simulation model based on the simulation parameters;
[0010] Determine a current action set for the simulation software to simulate the simulation model based on the current state;
[0011] In the current state, simulating the simulation model to execute the current action set through the simulation software to obtain an updated state of the simulation model;
[0012] Determining whether the update status is a terminated status;
[0013] When the updated state is not a terminal state, the updated state is determined as the current state, and the value function is updated based on the updated state, and iteration continues.
[0014] In some embodiments, the method further comprises:
[0015] When the update state is a termination state, determining whether a set number of iteration rounds has been reached;
[0016] When the set number of iterations is reached, the simulation is terminated;
[0017] If the set number of iterations is not reached, the updated state is determined as the current state and the iteration continues.
[0018] In some embodiments, determining a current action set for the simulation software to simulate the simulation model based on the current state includes:
[0019] Determining the value of each action based on the current state based on an action-value function;
[0020] The action corresponding to the maximum value is selected to be determined as the current action set for simulating the simulation model.
[0021] In some embodiments, the method further comprises:
[0022] determining an updated model based on the simulation data;
[0023] A target model is obtained by performing weighted fusion based on the update model and the simulation model.
[0024] The simulation model of the power acquisition system includes:
[0025] Acquiring structural data of infrastructure in the power system, communication data between infrastructures, control data of the control system, power information flow of the power system and power energy flow of the power system, wherein the infrastructure includes: current transformers;
[0026] A simulation model of the power system is constructed based on the structural data of the infrastructure, the communication data between the infrastructures, the control data of the control system, the power information flow of the power system and the power energy flow of the power system.
[0027] In some embodiments, the simulation parameters include: electrical parameters and operating conditions, and the method further includes:
[0028] Providing a user interface, wherein the user interface includes: a simulation parameter input interface;
[0029] The electrical parameters and the operating conditions are input based on the user interface.
[0030] The embodiment of the present application provides an evaluation device for a current transformer, comprising:
[0031] An acquisition module is used to acquire a simulation model of the power system, wherein the simulation model includes: a current transformer model;
[0032] A simulation module, used for performing simulation operation on the simulation model based on simulation parameters to obtain simulation data of the current transformer model;
[0033] The result determination module is used to determine the test result of the current transformer model based on the simulation data and output the test result.
[0034] An embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any of the above-described methods when executing the computer program.
[0035] An embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, any of the above-mentioned methods is implemented.
[0036] An embodiment of the present application provides a computer program product. When the computer program product is executed on a terminal device, the electronic device executes any one of the above methods.
[0037] A method for testing a current transformer provided in an embodiment of the present application obtains a simulation model of an electric power system, wherein the simulation model includes: a current transformer model; simulates and runs the simulation model based on simulation parameters to obtain simulation data of the current transformer model; determines a test result of the current transformer model based on the simulation data, and outputs the test result. The current transformer can be tested through the current transformer model, thereby reducing testing costs and improving efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Hereinafter, the present application will be described in more detail according to embodiments and with reference to the accompanying drawings.
[0039] Figure 1 A schematic diagram of a current transformer testing method for implementing the present application;
[0040] Figure 2 A schematic diagram of a simulation operation flow provided in an embodiment of the present application;
[0041] Figure 3 A schematic diagram of the structure of a current transformer evaluation device provided in an embodiment of the present application;
[0042] Figure 4 A schematic structural diagram of another current transformer evaluation device provided in an embodiment of the present application;
[0043] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0044] In the drawings, the same reference numerals are used for the same components, and the drawings are not drawn to scale. DETAILED DESCRIPTION
[0045] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.
[0046] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0047] If similar descriptions of "first\second\third" appear in the application documents, the following instructions are added. In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0048] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0049] In response to the problems in the related art, an embodiment of the present application provides a method for testing a current transformer, which can be applied to electronic devices such as mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR) / virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), etc. The embodiment of the present application does not impose any restrictions on the specific types of electronic devices.
[0050] The functions implemented by the current transformer testing method provided in the embodiment of the present application can be implemented by calling a program code by a processor of an electronic device, wherein the program code can be stored in a computer storage medium.
[0051] The present application provides a method for testing a current transformer. Figure 1 A schematic diagram of the implementation flow of a current transformer testing method provided for the implementation of this application is as follows: Figure 1 As shown, the test method of current transformer includes:
[0052] Step S101, obtaining a simulation model of a power system, wherein the simulation model includes: a current transformer model.
[0053] In an embodiment of the present application, the power system may include a variety of infrastructures, and the infrastructure may include: equipment that generates electricity, transmission lines and substations, load equipment, control centers and monitoring systems. The equipment that generates electricity includes coal-fired power plants, hydroelectric power plants, wind power plants, etc. Load equipment includes household appliances, industrial equipment, etc. Control center and monitoring system: facilities for monitoring, dispatching and controlling the power system, including SCADA systems, etc. These infrastructures together constitute a complex power system. When establishing a simulation model, in order to perform system-level simulation and analysis, it is necessary to comprehensively consider the interactions and influences between the various parts. In an embodiment of the present application, the simulation model of the power system may include models of multiple infrastructures.
[0054] In the embodiment of the present application, a simulation model can be constructed based on the design drawings, parameters, materials, manufacturing processes and other information of the power system. The model not only includes the main components of the current transformer, but also can reflect the dynamic and static characteristics of the power system, thereby realizing accurate simulation of the steady-state and transient processes of the power system.
[0055] In an embodiment of the present application, in order to achieve a comprehensive simulation of the power system, modeling can be performed at the device level and the system level. At the device level, refined modeling will be performed for different types of equipment to reflect their individual characteristics; at the system level, the interactions and influences between devices will be considered to simulate the overall behavior of the power system.
[0056] In some embodiments, by introducing the concepts of time scale and space scale, accurate simulation of steady-state and transient processes of power systems can be achieved. For example, in terms of time scale, the long-term operation process, short-term dispatch process, and transient fault process of power systems can be simulated; in terms of space scale, the large-scale geographical distribution and small-scale local networks of power systems can be simulated.
[0057] In the embodiments of the present application, the simulation model is a description of the power system and a tool for simulating and analyzing its behavior, performance and characteristics. In the simulation model, the key elements and relationships of the system are represented in an abstract way to predict, optimize or control the behavior of the system. The simulation model can adopt different forms and methods, including mathematical models, statistical models, computer models, etc.
[0058] In an embodiment of the present application, PyMiner software can be used to build an accurate simulation model of the power system.
[0059] Step S102: performing simulation operation on the simulation model based on simulation parameters to obtain simulation data of the current transformer model.
[0060] In the embodiment of the present application, the simulation parameters may include: electrical parameters and operating conditions. The electrical parameters may be current, voltage, load, etc., and the operating conditions may include: steady state, transient state, harmonics, etc.
[0061] In the embodiment of the present application, different simulation parameters can be used to simulate the performance of the current transformer under various working conditions, and key data and performance indicators can be recorded to obtain simulation data.
[0062] In the embodiments of the present application, a simulation environment with strong credibility, controllability and operability can be provided, and the LeakGAN model integrated with the Q-Learning model can be used to implement simulation, thereby realizing the simulation operation of the simulation model.
[0063] In the embodiment of the present application, the initial conditions, time step, simulation duration and other parameters of the simulation operation and the related parameters of the current transformer model can be set. The simulation model is run using simulation software to simulate the operation and response of the system under specific conditions.
[0064] Step S103: determining a test result of the current transformer model based on the simulation data, and outputting the test result.
[0065] In the embodiments of the present application, the test results include evaluation results of accuracy, precision, sensitivity, stability, etc.
[0066] In the embodiments of the present application, the output of the model can be compared with the actual measured value or theoretical value to evaluate the accuracy and precision of the model. The sensitivity of the model, that is, the sensitivity of the model to input changes, can be analyzed by changing the input conditions or model parameters. The stability and robustness of the model under different working conditions can be evaluated to check whether the model has unstable or abnormal behavior.
[0067] In some embodiments, the test results can be: statistical information of the data, which can collect, organize and analyze the simulation data, extract key performance indicators, and perform statistics based on the data, and intuitively display the test results in the form of charts, curves, etc., to facilitate users to understand and analyze the performance characteristics of the current transformer.
[0068] A method for testing a current transformer provided in an embodiment of the present application obtains a simulation model of an electric power system, wherein the simulation model includes: a current transformer model; simulates and runs the simulation model based on simulation parameters to obtain simulation data of the current transformer model; determines a test result of the current transformer model based on the simulation data, and outputs the test result. The current transformer can be tested through the current transformer model, thereby reducing testing costs and improving efficiency.
[0069] The method provided in the embodiment of the present application can simulate the performance of the current transformer under various working conditions, allowing designers to comprehensively evaluate and optimize the structural functions through simulation verification, thereby improving the efficiency of equipment technology iteration.
[0070] The method provided in the embodiment of the present application can perform virtual testing on a computer without building an actual system, thereby greatly reducing testing costs.
[0071] The method provided in the embodiment of the present application can simulate the operation of the current transformer under a fault state, help analyze the cause and mechanism of the fault, and provide strong support for fault handling.
[0072] The method provided in the embodiment of the present application can be applied to the fields of current transformer design and development, power system planning and analysis, current transformer selection and configuration, fault diagnosis and processing, education and training, etc.
[0073] For example, during the design and development phase of a current transformer, engineers can use this method to perform early performance prediction and optimization. By simulating the performance of a current transformer under different design parameters and working conditions, they can quickly screen out design solutions with good performance, shorten the development cycle, and reduce development costs.
[0074] In the planning and analysis of power systems, this method can be used to simulate power systems of different sizes, evaluate the performance of current transformers under different loads and fault conditions, and provide strong support for the stable operation of power systems.
[0075] For different power systems and application scenarios, when it is necessary to select the appropriate current transformer type and specification, this method can simulate the performance of different types of current transformers and select the type based on actual needs. At the same time, it can also assist in optimizing the configuration of current transformers and improve the measurement and protection accuracy of power systems.
[0076] When a current transformer in a power system fails, this method can be used to diagnose and handle the fault. By simulating the performance of the current transformer under fault conditions, the cause and mechanism of the fault can be analyzed, providing a scientific basis for fault handling. In addition, it can also be used to formulate fault prevention measures and improve the reliability of the power system.
[0077] When used in education and training for power system-related majors, this method can simulate the real power system environment and current transformer performance, which can help students and practitioners better understand and master the working principles, performance characteristics and application methods of current transformers, and improve their professional quality and practical ability.
[0078] In some embodiments, step S102 may be implemented by the following steps:
[0079] Step S1021, determining the current state of the simulation model based on the simulation parameters.
[0080] In the embodiment of the present application, the current state may include: features, attributes, state information, etc. of the model.
[0081] Step S1022: determining a current action set for the simulation software to simulate the simulation model based on the current state.
[0082] In the embodiment of the present application, a set of selectable actions, that is, possible action options, can be determined when the simulation software simulates the simulation model according to the current state.
[0083] In the embodiment of the present application, the current action set A can be selected based on the current state S using the ∈-greedy method.
[0084] Step S1023, in the current state, simulating the simulation model to execute the current action set through the simulation software to obtain an updated state of the simulation model.
[0085] In the embodiment of the present application, the current action set is simulated and executed by the simulation software, and the updated state of the model, that is, the response and change of the model under the current action, is obtained during the simulation process. When the simulation model executes the current action set by the simulation software in the current state, it will not be actually executed, but the selected current action set is only used for the update of the current value function.
[0086] Step S1024, determining whether the update status is a termination status.
[0087] In the embodiment of the present application, it is determined whether the termination condition has been met, that is, whether the task has been completed or the target state has been reached, based on the updated state.
[0088] Step S1025, when the update state is not the terminal state, the update state is determined as the current state, and the value function is updated based on the update state, and the iteration is continued.
[0089] In an embodiment of the present application, if the updated state is not the terminal state, the new state is determined as the current state, the value function or the strategy function is updated according to the updated state, and the next round of iteration is continued to select the next action set to execute.
[0090] In some embodiments, after step S1024, the method further includes:
[0091] Step S1026, when the update state is the termination state, determine whether the set number of iteration rounds has been reached.
[0092] In the embodiment of the present application, after each round of iteration, it is necessary to determine the number of iterations and make a judgment based on the set maximum number of iterations to ensure that the simulation operation can be correctly terminated when the maximum number of iterations is reached.
[0093] Step S1027, when the set number of iterations is reached, the simulation operation is terminated.
[0094] Step S1028: If the set number of iteration rounds is not reached, the updated state is determined as the current state, and iteration continues.
[0095] In an embodiment of the present application, when it is determined that the set number of iteration rounds has not been reached, the update state is set to the current state so that the simulation calculation and update state can continue in the next round of iteration.
[0096] In the embodiment of the present application, step S1023 can be implemented by the following steps:
[0097] Step S1, determining the value of each action based on the action-value function based on the current state.
[0098] In the embodiment of the present application, the update of the action value function can be expressed as:
[0099]
[0100] Where q(S, A) is the value function of executing action A in state S, α is the learning rate, which controls the step size of each update. R is the immediate reward after executing action a. γ is the decay factor, which is used to balance the importance of immediate rewards and future rewards. max(q(s',a)) is the maximum value of all possible actions in the next state s'.
[0101] In the embodiment of the present application, the action value function q(S, A) is updated by continuously interacting with the environment to make it close to the optimal action value function Q*. During the training process, the agent explores with a certain probability (such as the ε-greedy strategy) to explore unknown areas and select the optimal action according to the current Q value.
[0102] In the embodiment of the present application, for each possible action, an action value function is used to calculate its value. The action value function can evaluate the potential value of each action based on the current state, taking into account the benefits, costs or other influencing factors brought by the action.
[0103] Step S2: selecting an action corresponding to the maximum value as a current action set for simulating the simulation model.
[0104] In the embodiment of the present application, the action with the greatest value is selected according to the evaluation result of the action value function to determine the action set that should be executed currently.
[0105] Based on the aforementioned method of simulating the simulation model based on simulation parameters, the embodiment of the present application provides a specific example: Figure 2 A schematic diagram of a simulation operation flow provided in an embodiment of the present application, such as Figure 2 As shown, including:
[0106] Step S301, set the number of iterations T, state set S, action set A, step size α, decay factor γ, and exploration rate ∈.
[0107] Step S302, initializing S to the first state of the current state sequence.
[0108] Step S303, select the current action A in the current state S using the ∈-greedy method.
[0109] Step S304, execute the current action A in state S to obtain a new state s' and reward R.
[0110] Step S305, updating the action value function.
[0111] In the embodiment of the present application, the update of the action value function can be expressed as:
[0112]
[0113] Step S306, determining whether s' is in the termination state.
[0114] In the embodiment of the present application, if no, continue to execute step S303, if yes, execute step S307.
[0115] Step S307, i=i+1.
[0116] Step S308, determine whether i is less than T.
[0117] In the embodiment of the present application, if yes, execute step S302, if no, end.
[0118] The method provided in the embodiment of the present application can perform simulation operation on the simulation model.
[0119] Since the power system is complex and large, the simulation model usually established is not accurate enough. For example, for the power system represented by thermal power units, various types of equipment are connected together through complex pipelines and coupled with each other, forming a large-scale complex thermal system. When the model is established, due to the complexity of the operating mechanism of the thermal system, sometimes even its mechanism cannot be clearly understood, a certain degree of simplification is usually made in the modeling process, which is bound to affect the modeling accuracy, so it is difficult to establish an accurate simulation model. In order to improve the accuracy of the simulation model, in some embodiments, after step S103, the method further includes:
[0120] Step S104: determining an updated model based on the simulation data.
[0121] In the embodiment of the present application, the existing simulation data and related algorithms can be used to update the model so that it can better match or fit the simulation data.
[0122] Step S105, performing weighted fusion based on the updated model and the simulation model to obtain a target model.
[0123] In the embodiment of the present application, the updated model and the simulation model are weightedly fused to obtain the target model. Weights may be assigned to the updated model and the simulation model, and they may be combined according to a certain ratio or rule.
[0124] In the embodiment of the present application, weighted fusion can be a simple weighted average or a more complex fusion technology, such as neural network fusion, model fusion, etc. Through reasonable weighted fusion, the information of the update model and the simulation model can be comprehensively utilized to obtain a more comprehensive and accurate target model.
[0125] The method provided in the embodiment of the present application can utilize simulation data and models and simulation models to obtain a target model through weighted fusion operations, which can then be better applied to actual situations to improve decision-making accuracy and efficiency.
[0126] In an embodiment of the present application, the simulation model can be weightedly fused based on the data-driven update model of the instant learning modeling strategy to obtain a more accurate target model.
[0127] In some embodiments, the current transformer model can be optimized and adjusted according to the simulation data and actual needs. Through continuous iteration and optimization, the accuracy and reliability of the simulation model can be improved to make it closer to the performance of the actual current transformer.
[0128] In some embodiments, before step S102, the method further includes:
[0129] Step S201, providing a user interface.
[0130] Step S202: acquiring simulation parameters based on the user interface.
[0131] In the embodiment of the present application, a parameter input box, a drop-down menu check box, a slider control, a radio button, a confirmation button, etc. can be set in the user interface. These settings can facilitate the user to input simulation parameters.
[0132] In some embodiments, the user interface may also include interfaces for operations such as model building, simulation running, and result viewing.
[0133] In some embodiments, step S101 may be implemented by the following steps:
[0134] Step S1011, acquiring structural data of infrastructure in the power system, communication data between infrastructures, control data of the control system, power information flow of the power system and power energy flow of the power system, wherein the infrastructure includes: current transformer;
[0135] Step S1012, constructing a simulation model of the power system based on the structural data of the infrastructure, the communication data between the infrastructures, the control data of the control system, the power information flow of the power system and the power energy flow of the power system.
[0136] In the embodiment of the present application, the simulation model of the power system includes: a model of the infrastructure, a communication data model between the infrastructures, a control data model of the control system, a power information flow model of the power system, and a power energy flow model of the power system.
[0137] In the embodiments of the present application, the power information flow model can be considered as a network for various types of power information flow simulations. The power information flow model can be constructed by virtualizing the power information / control system through virtualization technology, etc., and is oriented to the task requirements of power network attack and defense scientific research experiments, technical verification, and training exercises. It focuses on simulating the node characteristics, link characteristics, network characteristics, protocol characteristics, business behaviors, security mechanisms, and attack behaviors of the adversary, and is constructed by combining physical, semi-physical, and virtualized simulations.
[0138] In the embodiment of the present application, the power energy flow model is aimed at safety issues related to the physical system, such as power equipment safety, system operation safety, and product quality. It adopts the engineering safety simulation technology of the physical system and is constructed by combining dynamic simulation, digital software simulation, and digital-analog hybrid simulation.
[0139] In the embodiment of the present application, data can be input into the PyMiner software to establish a model for processing, so as to express the model established in the PyMiner software in a directional manner, thereby realizing simulation modeling of different types of equipment from different manufacturers. The data includes but is not limited to the operating parameters, fault records, dispatch instructions, etc. of the equipment. By analyzing and processing these data, the operating laws and characteristics of the power system can be extracted, thereby providing strong support for the construction of the model.
[0140] In the embodiment of the present application, when constructing the simulation model, it is necessary to consider the differences in manufacturers and models of equipment in the actual power system and the diversity of business architecture. Equipment of different manufacturers and models may have different electrical characteristics and operating behaviors, so they need to be adjusted and optimized accordingly in the model. At the same time, the diversity of business architecture also needs to be reflected in the model. For example, power systems in different regions may adopt different scheduling methods and control strategies.
[0141] According to the aforementioned embodiments, the embodiments of the present application provide an evaluation device for a current transformer, and the modules included in the device and the units included in the modules can be implemented by a processor in a computer device; of course, they can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU, Central Processing Unit), a microprocessor (MPU, Microprocessor Unit), a digital signal processor (DSP, Digital Signal Processing) or a field programmable gate array (FPGA, Field Programmable Gate Array), etc.
[0142] The embodiment of the present application provides an evaluation device for a current transformer, Figure 3 A schematic diagram of a current transformer evaluation device provided in an embodiment of the present application is shown in FIG. Figure 3 As shown, the current transformer evaluation device 400 includes:
[0143] The acquisition module 401 is used to acquire a simulation model of the power system, wherein the simulation model includes: a current transformer model;
[0144] A simulation module 402, configured to perform simulation operation on the simulation model based on simulation parameters to obtain simulation data of the current transformer model;
[0145] The result determination module 403 is used to determine the test result of the current transformer model based on the simulation data and output the test result.
[0146] In some embodiments, the simulation module includes:
[0147] A first determination step is used to determine a current state of a simulation model based on the simulation parameters;
[0148] A second determining unit determines, based on the current state, a current action set that the simulation software simulates for the simulation model;
[0149] An execution unit, configured to simulate the simulation model to execute the current action set by the simulation software in the current state, so as to obtain an updated state of the simulation model;
[0150] A third determining unit, configured to determine whether the update state is a termination state;
[0151] The update iteration unit determines the updated state as the current state when the updated state is not the terminal state, updates the value function based on the updated state, and continues to iterate.
[0152] In some embodiments, the simulation module includes:
[0153] A fourth determining unit, configured to determine whether a set number of iteration rounds has been reached when the update state is a termination state;
[0154] The end operation unit is used to end the simulation operation when the set number of iteration rounds is reached;
[0155] The fifth determining unit is used to determine the updated state as the current state and continue iterating when the set number of iteration rounds has not been reached.
[0156] In some embodiments, the second determining unit includes:
[0157] A first determining subunit, configured to determine the value of each action based on the current state and based on an action-value function;
[0158] The second determining subunit is used to select an action corresponding to the maximum value as a current action set for simulating the simulation model.
[0159] In some embodiments, the current transformer evaluation device 400 further includes:
[0160] An updating module, used for determining an updated model based on the simulation data;
[0161] A fusion module is used to perform weighted fusion based on the update model and the simulation model to obtain a target model.
[0162] In some embodiments, the acquisition module includes:
[0163] An acquisition unit, used for acquiring structural data of infrastructure in the power system, communication data between infrastructures, control data of the control system, power information flow of the power system and power energy flow of the power system, wherein the infrastructure includes: a current transformer;
[0164] A construction unit is used to construct a simulation model of the power system based on the structural data of the infrastructure, the communication data between the infrastructures, the control data of the control system, the power information flow of the power system and the power energy flow of the power system.
[0165] In some embodiments, the simulation parameters include: electrical parameters and operating conditions, and the method further includes:
[0166] A module is provided, for providing a user interface, wherein the user interface comprises: a simulation parameter input interface;
[0167] An input module is used to input the electrical parameters and the operating conditions based on the user interface.
[0168] Based on the current transformer evaluation devices provided in the above-mentioned embodiments, the present application further provides a current transformer evaluation device. Figure 4 A schematic diagram of a current transformer evaluation device provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, it includes: model building module, parameter setting module, simulation operation module, result analysis and display module, model optimization module and user interaction module.
[0169] In the embodiment of the present application, the model building module is responsible for building an accurate current transformer simulation model using PyMiner software based on the principle and structure of the current transformer. At the same time, a power system simulation model including a current transformer can also be built to simulate the operation of the current transformer in an actual power system. The parameter setting module allows the user to set the simulation parameters of the simulation experiment. The simulation parameters may include: electrical parameters and operating conditions. The electrical parameters include current, voltage, load, etc. The operating conditions may include: steady state, transient, harmonics, etc. By flexibly setting parameters, users can simulate various complex power system environments and conditions.
[0170] The simulation operation module is responsible for running the set simulation experiment in the PyMiner software environment. It can simulate the performance of the current transformer under various working conditions according to the set simulation parameters, and record key data and performance indicators. The result analysis and display module collects, organizes and analyzes the data generated by the simulation operation module, and extracts key performance indicators. At the same time, it can also intuitively display the simulation results in the form of charts, curves, etc., which is convenient for users to understand and analyze the performance characteristics of the current transformer. The model optimization module optimizes and adjusts the current transformer model according to the simulation results and actual needs. Through continuous iteration and optimization, the accuracy and reliability of the simulation model are improved, making it closer to the performance of the actual current transformer. The user interaction module provides a friendly user interface, which is convenient for users to perform operations such as model construction, parameter setting, simulation operation and result viewing. At the same time, it can also respond to various user operation requests and provide real-time feedback and help information.
[0171] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0172] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 5 As shown, the electronic device 3 of this embodiment may include: at least one processor 30 ( Figure 5 Only one processor 30 is shown in the figure), a memory 31, and a computer program 32 stored in the memory 31 and executable on at least one processor 30. When the processor 30 executes the computer program 32, the steps in any of the above-mentioned method embodiments are implemented, for example Figure 3 Steps S101 to S103 in the illustrated embodiment. Alternatively, when the processor 30 executes the computer program 32, the functions of each module / unit in the above-mentioned device embodiments are realized, for example Figure 3 Functions of modules 401 to 403 are shown.
[0173] Exemplarily, the computer program 32 may be divided into one or more modules / units, one or more modules / units are stored in the memory 31, and are executed by the processor 30 to complete the present application. One or more modules / units may be a series of computer program 32 instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program 32 in the electronic device 3.
[0174] The embodiment of the present application further provides a computer-readable storage medium, which stores a computer program 32. When the computer program 32 is executed by the processor 30, the steps in the above-mentioned method embodiments can be implemented.
[0175] An embodiment of the present application provides a computer program product. When the computer program product runs on an electronic device, the electronic device can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0176] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. According to this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program 32, and the computer program 32 can be stored in a computer-readable storage medium, and the computer program 32 can implement the steps of the above-mentioned various method embodiments when executed by the processor 30. Among them, the computer program 32 includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device capable of carrying the computer program code to the terminal, a recording medium, a computer memory, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0177] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0178] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0179] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0180] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0181] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for testing a current transformer, characterized in that: include: Acquire a simulation model of the power system, wherein the simulation model includes: a current transformer model; Performing simulation operation on the simulation model based on simulation parameters to obtain simulation data of the current transformer model; A test result of the current transformer model is determined based on the simulation data, and the test result is output.
2. The method according to claim 1, characterized in that The simulating operation of the simulation model based on the simulation parameters includes: determining a current state of the simulation model based on the simulation parameters; Determine a current action set for the simulation software to simulate the simulation model based on the current state; In the current state, simulating the simulation model to execute the current action set through the simulation software to obtain an updated state of the simulation model; Determining whether the update status is a terminated status; When the updated state is not a terminal state, the updated state is determined as the current state, and the value function is updated based on the updated state, and iteration continues.
3. The method according to claim 2, characterized in that The method further comprises: When the update state is a termination state, determining whether a set number of iteration rounds has been reached; When the set number of iterations is reached, the simulation is terminated; If the set number of iterations is not reached, the updated state is determined as the current state and the iteration continues.
4. The method according to claim 3, characterized in that The determining, based on the current state, a current action set for the simulation software to simulate the simulation model comprises: Determining the value of each action based on the current state based on an action-value function; The action corresponding to the maximum value is selected to be determined as the current action set for simulating the simulation model.
5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: determining an updated model based on the simulation data; A target model is obtained by performing weighted fusion based on the update model and the simulation model.
6. The method according to any one of claims 1 to 4, characterized in that: The simulation model of the power acquisition system includes: Acquiring structural data of infrastructure in the power system, communication data between infrastructures, control data of the control system, power information flow of the power system and power energy flow of the power system, wherein the infrastructure includes: current transformers; A simulation model of the power system is constructed based on the structural data of the infrastructure, the communication data between the infrastructures, the control data of the control system, the power information flow of the power system and the power energy flow of the power system.
7. The method according to any one of claims 1 to 4, characterized in that: The simulation parameters include: electrical parameters and operating conditions, and the method further includes: Providing a user interface, wherein the user interface includes: a simulation parameter input interface; The electrical parameters and the operating conditions are input based on the user interface.
8. A current transformer evaluation device, characterized in that: include: An acquisition module is used to acquire a simulation model of the power system, wherein the simulation model includes: a current transformer model; A simulation module, used for performing simulation operation on the simulation model based on simulation parameters to obtain simulation data of the current transformer model; The result determination module is used to determine the test result of the current transformer model based on the simulation data and output the test result.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Determination method and equipment of electric energy metering device, electric energy metering method and electric energy meter
CN120446855A
