Reactor winding parameter detection method, system, equipment and medium

By constructing the initial and target circuit models and using adaptive genetic algorithms for parameter optimization, the problem of poor reactor winding parameter detection is solved, fast and accurate parameter acquisition is achieved, and the equipment management and control capabilities of the power system are improved.

CN118734692AActive Publication Date: 2024-10-01ELECTRIC POWER RES INST CHINA SOUTHERN POWER GRID CO LTD

Patent Information

Application Number
CN202410801326.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-10-01
Estimated Expiration
2044-06-20

AI Technical Summary

Technical Problem

Existing reactor winding parameter optimization methods cannot obtain reactor winding parameters quickly, sensitively, and accurately, resulting in poor parameter detection results.

Method used

By obtaining the operating data and structural data of the reactor, the initial ideal circuit model is constructed, and the target ideal circuit model is generated based on the structural constraints. The adaptive genetic algorithm is used for parameter optimization, and the optimization is gradually deepened to determine the optimal winding of the reactor. parameter.

Benefits of technology

The convergence efficiency and accuracy of parameter optimization are improved, the working status of the reactor winding can be obtained in time, the changes in winding parameters can be grasped, and the power system's ability to control important power equipment is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118734692A_ABST
    Figure CN118734692A_ABST
Patent Text Reader

Abstract

The invention discloses a reactor winding parameter detection method, system and device and a medium, and relates to the technical field of reactors. According to the detection method, operation data and structure data of the reactor are obtained, model construction is carried out on the operation data and the structure data, and an initial ideal circuit model corresponding to the reactor is generated; performing structural constraint on the initial ideal circuit model based on the structural data to generate a target ideal circuit model; performing parameter optimization solution based on the model winding parameter of the target ideal circuit model, and determining an optimal winding parameter corresponding to the reactor; the structure constraint condition is set according to the reactor structure data, and the convergence efficiency and optimization accuracy of parameter optimization are improved. According to the method, the model winding parameters of the target ideal circuit model are gradually and deeply optimized, so that the optimal winding parameters of the reactor can be accurately obtained, the working state of the reactor winding can be timely obtained, the change condition of the winding parameters can be mastered, and the management and control capability of an electric power system on important electric power equipment is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of reactors, and in particular to a method, system, equipment and medium for detecting parameters of reactor windings. Background Art

[0002] As a key device for achieving reactive power compensation and stabilizing power quality in power systems, reactors play a vital role in power systems. The state of reactor windings is the key to its safe and stable operation. Therefore, how to quickly and sensitively obtain reactor winding parameters has far-reaching significance for equipment operation status monitoring, equipment management and maintenance, etc.

[0003] At present, the traditional methods for optimizing the parameters of reactor windings mainly include the least squares method, ant colony algorithm, particle swarm algorithm, etc. Among them, the least squares method has defects such as large amount of calculation and poor real-time performance, and cannot obtain the winding parameters in time, while the ant colony algorithm and particle swarm algorithm both have problems such as large amount of calculation, long running time, and easy to fall into local optimality. Therefore, the existing methods for optimizing the parameters of reactor windings cannot quickly, sensitively and accurately obtain the parameters of reactor windings, resulting in poor parameter detection effect. Summary of the invention

[0004] The present invention provides a method, system, device and medium for detecting parameters of a reactor winding, which solves the technical problem that the existing method for optimizing parameters of a reactor winding cannot quickly, sensitively and accurately obtain the parameters of the reactor winding, resulting in poor parameter detection effect.

[0005] The present invention provides a method for detecting parameters of a reactor winding, comprising:

[0006] Acquiring operation data and structural data of the reactor, constructing a model based on the operation data and the structural data, and generating an initial ideal circuit model corresponding to the reactor;

[0007] Performing structural constraints on the initial ideal circuit model based on the structural data to generate a target ideal circuit model;

[0008] Parameter optimization is performed based on the model winding parameters of the target ideal circuit model to determine the optimal winding parameters corresponding to the reactor.

[0009] Optionally, the step of constructing a model using the operation data and the structure data to generate an initial ideal circuit model corresponding to the reactor includes:

[0010] The reactor rated parameters in the structural data are used to construct a model to generate an initial circuit model;

[0011] Selecting model parameters within a preset interval, and using the model parameters to update the initial circuit model to generate a target circuit model;

[0012] Inputting the port voltage in the operation data into the target circuit model to calculate the total current and generate a total current calculation value;

[0013] constructing a fitness function using a difference between the total current in the operating data and the calculated total current value;

[0014] The target circuit model is updated by using the fitness function to generate an initial ideal circuit model corresponding to the reactor.

[0015] Optionally, the step of performing structural constraints on the initial ideal circuit model based on the structural data to generate a target ideal circuit model includes:

[0016] Using coil data in the structural data to construct structural constraint conditions;

[0017] The structural constraints are:

[0018]

[0019] Among them, M ij is the mutual inductance between the i-th coil and the j-th coil; M nk is the mutual inductance between the nth coil and the kth coil; L i is the self-inductance of the i-th coil; L j is the self-inductance of the j-th coil;

[0020] The initial ideal circuit model is updated using the structural constraint conditions to generate a target ideal circuit model.

[0021] Optionally, the step of performing parameter optimization based on the model winding parameters of the target ideal circuit model to determine the optimal winding parameters corresponding to the reactor includes:

[0022] Initializing the population using the model winding parameters of the target ideal circuit model to generate an initial population;

[0023] Calculating the fitness value of each initial individual in the initial population respectively to generate multiple fitness values;

[0024] Using a selection operator to select initial individuals whose fitness values ​​meet a preset threshold, to construct an intermediate population;

[0025] Using a preset crossover operator, a preset mutation operator and a preset probability formula to perform genetic operations on each intermediate individual in the intermediate population to construct a target population;

[0026] Selecting a target individual corresponding to the maximum fitness value in the target population as an elite individual and counting the number of iterations;

[0027] Determine whether the number of iterations is equal to a preset maximum number of iterations;

[0028] If yes, the model winding parameters corresponding to the elite individual are used as the optimal winding parameters corresponding to the reactor;

[0029] If not, the target population is used as a new initial population, the number of iterations is updated by 1, and the process jumps to the step of respectively calculating the fitness value of each initial individual in the initial population to generate a plurality of fitness values.

[0030] Optionally, the step of using a preset crossover operator, a preset mutation operator and a preset probability formula to perform genetic operations on each intermediate individual in the intermediate population to construct a target population includes:

[0031] According to a preset crossover operator and a crossover probability formula in a preset probability formula, the intermediate individuals in the intermediate population are respectively superimposed and recombined to generate a plurality of recombinant individuals;

[0032] The preset crossover operator is:

[0033]

[0034] Among them, A i ' is the first offspring gene after the crossover operation; A j ' is the second offspring gene after the crossover operation; A i is the first parent gene before the crossover operation; A j is the second parent gene before the crossover operation; n is a random number between [-0.25, 1.25];

[0035] The crossover probability formula is:

[0036]

[0037] Among them, P c is the crossover probability; t is the current iteration number; P c1 is the first variable parameter; P c2 is the second variable parameter, and P c2 =0.6; max is the preset maximum number of iterations; f max is the maximum fitness value in the middle population; f a is the average fitness value corresponding to the intermediate population; f′ is the fitness value of the party with the largest parent gene fitness value in the crossover operation;

[0038] Performing a mutation operation on the recombinant individual according to a preset mutation operator and a mutation probability formula in the preset probability formula to generate a mutant individual corresponding to the recombinant individual;

[0039] The preset mutation operator is:

[0040]

[0041] Among them, x i is the gene before mutation; x i ' is the mutated gene, i.e. the mutated individual; x min is the initial minimum value of the gene; x max is the initial maximum value of the gene; x newmin is the minimum value of genes in the evolution process; x newmax are the maximum values ​​of genes in the evolution process; G is the total number of evolutionary generations; gen is the current number of evolutionary generations; r is the first parameter, with a value of 0.2; b is the second parameter, with a value of 0.3; r1 is a random number in [0, 1];

[0042] The preset mutation probability formula is:

[0043]

[0044] Among them, P m is the mutation probability; P m1 is the third variable parameter; P m2 is the fourth variable parameter, and P m2 =0.02; f max is the maximum fitness value in the middle population; f a is the average fitness value corresponding to the intermediate population; f is the fitness value of the recombinant individual; t is the current iteration number;

[0045] All of the variant individuals are used to construct a target population.

[0046] The present invention also provides a reactor winding parameter detection system, comprising:

[0047] An initial ideal circuit model generation module is used to obtain operation data and structural data of the reactor, construct a model based on the operation data and the structural data, and generate an initial ideal circuit model corresponding to the reactor;

[0048] A target ideal circuit model generating module, used for performing structural constraints on the initial ideal circuit model based on the structural data to generate a target ideal circuit model;

[0049] The optimal winding parameter determination module is used to perform parameter optimization based on the model winding parameters of the target ideal circuit model to determine the optimal winding parameters corresponding to the reactor.

[0050] Optionally, the initial ideal circuit model generating module includes:

[0051] An initial circuit model generating module, used to construct a model using the rated parameters of the reactor in the structural data to generate an initial circuit model;

[0052] A target circuit model generation module, used to select model parameters within a preset interval, and use the model parameters to update the initial circuit model to generate a target circuit model;

[0053] A total current calculation value generating module, used for inputting the port voltage in the operation data into the target circuit model to perform total current calculation and generate a total current calculation value;

[0054] A fitness function building module, used to build a fitness function by using the difference between the total current in the operation data and the calculated total current value;

[0055] The initial ideal circuit model generation submodule is used to update the target circuit model using the fitness function to generate an initial ideal circuit model corresponding to the reactor.

[0056] Optionally, the target ideal circuit model generating module includes:

[0057] A structural constraint condition building module, used to use the coil data in the structural data to build structural constraint conditions;

[0058] The structural constraints are:

[0059]

[0060] Among them, M ij is the mutual inductance between the i-th coil and the j-th coil; M nk is the mutual inductance between the nth coil and the kth coil; L i is the self-inductance of the i-th coil; L j is the self-inductance of the j-th coil;

[0061] The target ideal circuit model generation submodule is used to update the initial ideal circuit model using the structural constraint conditions to generate a target ideal circuit model.

[0062] The present invention also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of implementing any of the above-mentioned reactor winding parameter detection methods.

[0063] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed, any of the above-mentioned reactor winding parameter detection methods is implemented.

[0064] It can be seen from the above technical solutions that the present invention has the following advantages:

[0065] The present invention improves the convergence efficiency and optimization accuracy of parameter optimization by setting structural constraints based on the reactor structure data. By gradually optimizing the model winding parameters, the optimal winding parameters of the reactor can be accurately obtained, which is conducive to timely obtaining the working status of the reactor winding, mastering the changes in the winding parameters, and improving the power system's control over important power equipment. The present invention solves the technical problem that the existing reactor winding parameter optimization method cannot quickly, sensitively and accurately obtain the reactor winding parameters, resulting in poor parameter detection effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0067] Figure 1 A flowchart of a method for detecting reactor winding parameters provided in Embodiment 1 of the present invention;

[0068] Figure 2 A flowchart of a method for detecting reactor winding parameters provided in Embodiment 2 of the present invention;

[0069] Figure 3 A flowchart of a method for detecting reactor winding parameters provided in Embodiment 2 of the present invention;

[0070] Figure 4 A flowchart of an adaptive genetic algorithm provided in Embodiment 2 of the present invention;

[0071] Figure 5 A structural block diagram of a reactor winding parameter detection system provided in Embodiment 3 of the present invention;

[0072] Figure 6 A structural block diagram of a reactor network parameter system based on structural constraints and adaptive genetic algorithm provided in Embodiment 3 of the present invention;

[0073] Figure 7 This is a structural block diagram of an electronic device provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION

[0074] The embodiments of the present invention provide a method, system, device and medium for detecting parameters of a reactor winding, which are used to solve the technical problem that the existing method for optimizing parameters of a reactor winding cannot quickly, sensitively and accurately obtain the parameters of the reactor winding, resulting in poor parameter detection effect.

[0075] In order to make the purpose, features and advantages of the present invention more obvious and easy to understand, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described below are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0076] Embodiment 1

[0077] See also Figure 1 , Figure 1 A flowchart of the steps of a method for detecting reactor winding parameters provided in Embodiment 1 of the present invention.

[0078] A method for detecting parameters of a reactor winding is provided in Example 1 of the present invention, comprising:

[0079] Step 101: Acquire operation data and structural data of a reactor, construct a model based on the operation data and structural data, and generate an initial ideal circuit model corresponding to the reactor.

[0080] In an embodiment of the present invention, the rated parameters of the reactor in the structural data are used to construct a model to generate an initial circuit model. Model parameters are selected within a preset interval, and the initial circuit model is updated using the model parameters to generate a target circuit model. The port voltage in the operating data is input into the target circuit model to calculate the total current and generate a total current calculation value. The difference between the total current in the operating data and the total current calculation value is used to construct a fitness function. The target circuit model is updated using the fitness function to obtain an initial ideal circuit model corresponding to the reactor.

[0081] Step 102: Perform structural constraints on the initial ideal circuit model based on the structural data to generate a target ideal circuit model.

[0082] In the embodiment of the present invention, the coil data in the structural data is first used to construct the structural constraint conditions, and then the structural constraint conditions are used to update the initial ideal circuit model, thereby obtaining the target ideal circuit model.

[0083] Step 103: Optimize the model winding parameters of the target ideal circuit model and determine the optimal winding parameters corresponding to the reactor.

[0084] In an embodiment of the present invention, the model winding parameters of the target ideal circuit model are used to initialize the population and generate an initial population. The fitness value of each initial individual in the initial population is calculated respectively to generate multiple fitness values. The selection operator is used to select the initial individual whose fitness value meets the preset threshold value to construct an intermediate population. The preset crossover operator, the preset mutation operator and the preset probability formula are used to perform genetic operations on each intermediate individual in the intermediate population to construct a target population. The target individual corresponding to the maximum fitness value in the target population is selected as the elite individual and the number of iterations is counted. It is judged whether the number of iterations is equal to the preset maximum number of iterations. If so, the model winding parameters corresponding to the elite individual are used as the optimal winding parameters corresponding to the reactor. If not, the target population is used as the new initial population, the number of iterations is updated plus 1, and the step of calculating the fitness value of each initial individual in the initial population and generating multiple fitness values ​​is jumped to execute.

[0085] In an embodiment of the present invention, by acquiring the operation data and structure data of the reactor, the operation data and structure data are modeled to generate an initial ideal circuit model corresponding to the reactor. Structural constraints are imposed on the initial ideal circuit model based on the structure data to generate a target ideal circuit model. Parameter optimization is performed based on the model winding parameters of the target ideal circuit model to determine the optimal winding parameters corresponding to the reactor. Structural constraints are set according to the structure data of the reactor to improve the convergence efficiency and optimization accuracy of the algorithm. At the same time, the parameter optimization algorithm for the model winding parameters adopts an adaptive genetic algorithm, which can significantly improve the stability and global search ability of the algorithm, improve the convergence speed, and ensure the diversity characteristics of the population compared with the prior art. It effectively avoids the problem of falling into a local optimal solution, can quickly, sensitively and accurately obtain the winding parameters of each layer of the reactor, and has a good parameter detection effect. It is conducive to timely obtaining the working state of the reactor winding, mastering the changes in the winding parameters, and improving the power system's ability to control important power equipment. The invention solves the technical problem that the existing reactor winding parameter optimization method cannot quickly, sensitively and accurately obtain the reactor winding parameters, resulting in poor parameter detection effect.

[0086] Embodiment 2

[0087] See also Figure 2 , Figure 2 A flowchart of the steps of a method for detecting reactor winding parameters provided in Embodiment 2 of the present invention.

[0088] Another method for detecting reactor winding parameters provided by Example 2 of the present invention includes:

[0089] Step 201: Acquire operation data and structural data of the reactor, use the rated parameters of the reactor in the structural data to construct a model, and generate an initial circuit model.

[0090] In the embodiment of the present invention, when the reactor is in stable operation, operation data and structure data are collected, and the operation data includes the port voltage and total current And save in the system work area. The structural data includes the rated parameters of the reactor and the structural parameters of the reactor. The reactor is a dry-type air-core reactor.

[0091] In this example, a 35kV reactor is used as the experimental object, and its single-phase capacity S n =2000kV·A, rated voltage U=35kV, a total of 20 layers of coils, divided into 5 packages. The port voltage of the dry-type air-core reactor under stable working conditions is collected by voltage and current transformers. and total current data.

[0092] An ideal circuit model is established based on the rated parameters of the reactor, specifically, an initial ideal circuit model is established based on the rated parameters of the dry-type air-core reactor. In this example, the circuit model has 20 layers of coils, where the circuit model expression and the total current expression of the model corresponding to the initial ideal circuit model are as follows:

[0093]

[0094] Among them, R i , L i Respectively represent the resistance and self-inductance parameters of the i-layer coil; M i,k represents the mutual inductance parameter between the i and k layer coils; represents the port voltage of the i-layer coil; Represents the branch current of the i-layer coil; i=1, 2, ..., 20.

[0095] The total current calculation formula of the model is:

[0096]

[0097] in, Indicates the calculated total current value, Represents the branch current of the i-layer coil.

[0098] Step 202: Select model parameters within a preset range, and use the model parameters to update the initial circuit model to generate a target circuit model.

[0099] In the embodiment of the present invention, the preset interval refers to random selection. The model parameters include resistance R, self-inductance L and mutual inductance M. The values ​​of R, L and M are randomly added to the impedance matrix as initial parameters of the following adaptive genetic algorithm to obtain the model parameters. The model parameters are used to update the initial circuit model to obtain the target circuit model.

[0100] Step 203: Input the port voltage in the operation data into the target circuit model to calculate the total current and generate a total current calculation value.

[0101] In the embodiment of the present invention, the port voltage As the same input condition of the actual model and the ideal model, the port voltage in the operating data is input into the target circuit model, and the total current of the model reactor, that is, the total current calculation value, is calculated by combining the circuit model expression and the model total current expression.

[0102] Step 204: construct a fitness function using the difference between the total current in the operating data and the calculated total current.

[0103] In the embodiment of the present invention, Figure 3 As shown, the output difference between the actual dry-type air-core reactor and the target ideal circuit model under the same input conditions is evaluated by constructing a fitness function. First, the expression of the fitness function is established, and then the structural constraints are set. Then, the fitness function is modified by the genetic algorithm to minimize the fitness function, thereby expressing the similarity between the actual dry-type air-core reactor and the target ideal circuit model. The present invention uses the total current and the total current calculation value in the operating data to construct a fitness function to evaluate the parameter optimization solution results. The fitness function is as follows:

[0104]

[0105] Among them, Y is the fitness value; is the total current; Calculated value for total current.

[0106] Step 205: Use the fitness function to update the target circuit model to generate an initial ideal circuit model corresponding to the reactor.

[0107] In the embodiment of the present invention, the initial ideal circuit model corresponding to the reactor is obtained by updating the target circuit model with the fitness function, so that the fitness value can be calculated when the adaptive genetic algorithm is used to optimize the network parameters of the target ideal circuit model.

[0108] Step 206: Perform structural constraints on the initial ideal circuit model based on the structural data to generate a target ideal circuit model.

[0109] Further, step 206 may include the following sub-steps S11-S12:

[0110] S11. Use coil data in the structural data to construct structural constraints.

[0111] S12. Update the initial ideal circuit model using structural constraints to generate a target ideal circuit model.

[0112] In the embodiment of the present invention, in order to accurately obtain the parameters of each layer of the reactor coil and reduce the optimization error, this example constrains the resistance and inductance of each layer of the coil based on the coil self-inductance calculation formula and the resistance calculation formula combined with the reactor structure parameters. At the same time, some physically reasonable constraints on mutual inductance and self-inductance are fully considered. The resistance and self-inductance calculation expressions are as follows:

[0113]

[0114] Among them, ρ is the resistivity of copper; l is the length of the coil; S is the cross-sectional area of ​​the coil; μ is the magnetic permeability of the medium in the coil; N is the number of turns of the coil.

[0115] Based on the coil data in the structural data, the structural constraints constructed are as follows:

[0116]

[0117] Among them, M ij is the mutual inductance between the i-th coil and the j-th coil; M nk is the mutual inductance between the nth coil and the kth coil; L i is the self-inductance of the i-th coil; L j is the self-inductance of the j-th coil.

[0118] The target ideal circuit model is obtained by updating the initial ideal circuit model using structural constraints. By using the structural characteristics of the reactor, constraints are set for the resistance, self-inductance and mutual inductance of each layer of coils, so that the optimization algorithm can obtain the optimal result more stably and quickly, and improve the convergence efficiency of the algorithm.

[0119] Step 207: Optimize the model winding parameters of the target ideal circuit model and determine the optimal winding parameters corresponding to the reactor.

[0120] Further, step 207 may include the following sub-steps S21-S28:

[0121] S21. Initialize the population using the model winding parameters of the target ideal circuit model to generate an initial population.

[0122] S22, respectively calculating the fitness value of each initial individual in the initial population to generate multiple fitness values.

[0123] S23. Use the selection operator to select initial individuals whose fitness values ​​meet the preset threshold to construct an intermediate population.

[0124] S24. Use a preset crossover operator, a preset mutation operator and a preset probability formula to perform genetic operations on each intermediate individual in the intermediate population to construct a target population.

[0125] S25. Select the target individual corresponding to the maximum fitness value in the target population as the elite individual and count the number of iterations.

[0126] S26. Determine whether the number of iterations is equal to the preset maximum number of iterations. If so, execute step S27; if not, execute step S28.

[0127] S27. Use the model winding parameters corresponding to the elite individual as the optimal winding parameters corresponding to the reactor.

[0128] S28, taking the target population as the new initial population, updating the number of iterations plus 1, and jumping to the step of respectively calculating the fitness value of each initial individual in the initial population to generate multiple fitness values.

[0129] Further, step S24 may include the following sub-steps S241-S242:

[0130] S241. Superimpose and recombine the intermediate individuals in the intermediate population according to the preset crossover operator and the crossover probability formula in the preset probability formula to generate multiple recombinant individuals.

[0131] S242. Perform a mutation operation on the recombinant individual according to a preset mutation operator and a mutation probability formula in a preset probability formula to generate a mutant individual corresponding to the recombinant individual.

[0132] In the embodiment of the present invention, the adaptive genetic algorithm is improved holistically by improving the crossover, mutation operator and probability formula. The extended crossover operator is used to break through the feasible domain of the parent generation and expand the algorithm search range; the adaptive mutation operator is used to adjust and change the gene boundary with evolution, thereby improving the convergence efficiency. The crossover and mutation probabilities are improved to ensure the diversity characteristics of the population and prevent the population from falling into the local optimum. Finally, the accurate optimization calculation of the equivalent parameters of the reactor network is achieved.

[0133] Improve the stability and global search capability of the algorithm, ensure the diversity characteristics of the population, avoid falling into the local optimum, and improve the crossover and mutation operators in the traditional genetic algorithm. The crossover operator plays a leading role in genetic evolution. The appropriate crossover operator will be directly related to the optimization effect of the entire algorithm. The traditional crossover operator uses a single-point non-uniform crossover, which limits the search range of the offspring and the offspring is not necessarily better than the parent. Therefore, this example uses the extended arithmetic crossover operator. This algorithm makes the offspring after crossover not limited to the parent, and the search range is wider. The formula of the extended arithmetic crossover operator, that is, the preset crossover operator, is:

[0134]

[0135] Among them, A′ i is the first offspring gene after the crossover operation; A′ jA is the second offspring gene after the crossover operation; i is the first parent gene before the crossover operation; A j is the second parent gene before the crossover operation; n is a random number between [-0.25, 1.25].

[0136] The diversity of individuals in the population is a necessary condition to ensure that the genetic algorithm converges to the optimal solution. In the process of evolution, the roulette method seeks the best solution based on the size of the fitness value. The larger the fitness value, the higher the probability that the individual will be selected, which reduces the diversity of the population. The mutation operator can generate new individuals through mutation, thereby ensuring the diversity of the population. Therefore, the selection of the mutation operator is also very important. The mutation operator selected by the traditional method is a uniform mutation operator, which uses the boundary conditions of the gene to mutate the mutant gene. The upper and lower bounds of the operator remain unchanged during the evolution process, resulting in a large mutation scale in the late evolution and poor convergence effect. Therefore, this example proposes an adaptive transformation mutation operator that continuously adjusts the upper and lower bounds of the gene as the evolution process progresses. The improved mutation operator is as follows, that is, the preset mutation operator is:

[0137]

[0138] Among them, x i is the gene before mutation; x′ i is the mutated gene, i.e. the mutated individual; x min is the initial minimum value of the gene; x max is the initial maximum value of the gene; x new min is the minimum value of genes in the evolution process; x new max are the maximum values ​​of genes in the evolution process; G is the total number of evolution generations, which is equal to the preset maximum number of iterations. In this example, the total number of evolution generations is 500; gen is the current number of evolution generations; r is the first parameter, with a value of 0.2; b is the second parameter, with a value of 0.3; r1 is a random number in [0, 1].

[0139] In the crossover operation, the size of the crossover probability determines the number of new individuals that appear during the chromosome crossover process. In the mutation process, the size of the mutation probability will also restrict the size of the population. Therefore, in order to ensure the population evolution speed and population diversity and avoid falling into the local optimum, this example improves the expression of the crossover probability and mutation probability, and proposes an adaptive crossover probability and mutation probability, the expression of which is as follows:

[0140] The crossover probability formula is:

[0141]

[0142] Among them, P c is the crossover probability; t is the current iteration number; P c1 is the first variable parameter; P c2is the second variable parameter, and P c2 =0.6; max is the preset maximum number of iterations. In this example, the preset maximum number of iterations is 500; f max is the maximum fitness value in the middle population; f a is the average fitness value corresponding to the intermediate population; f′ is the fitness value of the party with the largest parent gene fitness value in the crossover operation

[0143] The preset mutation probability formula is:

[0144]

[0145] Among them, P m is the mutation probability; P m1 is the third variable parameter; P m2 is the fourth variable parameter, and P m2 =0.02; f max is the maximum fitness value in the middle population; f a is the average fitness value corresponding to the intermediate population; f is the fitness value of the recombinant individual; t is the current iteration number.

[0146] like Figure 4 As shown, the specific process of optimizing the winding parameters in this example is as follows:

[0147] (1) Adding random parameters as the initial population, that is, using the model winding parameters of the target ideal circuit model to initialize the population and generate the initial population. The model winding parameters here refer to the above-mentioned randomly given resistance, self-inductance and mutual inductance parameters, that is, model parameters.

[0148] (2) The fitness value of each initial individual in the initial population is calculated by the fitness function in the target ideal circuit model to obtain multiple fitness values. The individuals in the population are selected by a selection operator, and then a new population is formed from the selected individuals to obtain an intermediate population. The selection operator may be one of the many selection methods in the genetic algorithm, and the embodiment of the present invention does not limit this.

[0149] (3) Genetically operate the selected new population to generate a new population, that is, use the preset crossover operator, preset mutation operator and preset probability formula to perform genetic operations on each intermediate individual in the intermediate population to obtain the target population. Then, use the elite retention strategy to select the target individual with the largest fitness value in the target population as the elite individual and count the number of iterations.

[0150] (4) Determine whether the number of iterations is equal to the preset maximum number of iterations. If the maximum number of iterations is reached, the loop ends, the optimal solution is output, and the model winding parameters corresponding to the elite individual are used as the optimal winding parameters corresponding to the reactor. Otherwise, the target population is used as the new initial population, the number of iterations is updated plus 1, and the process jumps to step (2) to continue iterative optimization.

[0151] The local convergence effect of the algorithm is improved by improving the crossover operator and mutation operator. The improved crossover and mutation probability formulas solve the problem that the population stops evolving when the crossover and mutation probabilities are zero. The optimization accuracy and efficiency are improved by adding structural constraints, which has important theoretical value and engineering significance.

[0152] In the embodiment of the present invention, the fitness function of the actual model and the ideal model is constructed, and the structural characteristics of the reactor are used to set structural constraints on the self-inductance and mutual inductance of each layer of coils, so that the optimization algorithm can obtain the optimal result more stably and quickly, and improve the convergence efficiency of the algorithm. The extended crossover operator is adopted to expand the search range of the offspring, improve the stability and global search ability, and improve the mutation operator. The adaptive transformation method is adopted to ensure the diversity of the population. In the crossover operation, the crossover probability and mutation probability expressions are improved, the population evolution speed is improved, and the possibility of falling into the local optimal solution is reduced.

[0153] Compared with existing intelligent optimization algorithms including ant colony algorithm and particle swarm algorithm, the detection method of reactor winding parameters based on structural constraints and adaptive genetic algorithm has the advantage of making up for the problems of large computational complexity, long running time, and easy to fall into local optimality. By improving the crossover operator, mutation operator, crossover probability and mutation probability of traditional genetic algorithm, the reactor winding parameters including inductance, resistance and mutual inductance can be accurately obtained, which is conducive to timely obtaining the working status of the reactor winding, mastering the changes in winding parameters, and improving the power system's control and management capabilities for important power equipment.

[0154] Embodiment 3

[0155] See also Figure 5 , Figure 5 This is a structural block diagram of a reactor winding parameter detection system provided in Embodiment 3 of the present invention.

[0156] A reactor winding parameter detection system provided in Example 3 of the present invention includes:

[0157] The initial ideal circuit model generating module 501 is used to obtain the operation data and structure data of the reactor, construct a model based on the operation data and structure data, and generate an initial ideal circuit model corresponding to the reactor.

[0158] The target ideal circuit model generating module 502 is used to perform structural constraints on the initial ideal circuit model based on the structural data to generate a target ideal circuit model.

[0159] The optimal winding parameter determination module 503 is used to perform parameter optimization based on the model winding parameters of the target ideal circuit model to determine the optimal winding parameters corresponding to the reactor.

[0160] Optionally, the initial ideal circuit model generating module 501 includes:

[0161] The initial circuit model generation module is used to construct a model using the rated parameters of the reactor in the structural data to generate an initial circuit model.

[0162] The target circuit model generation module is used to select model parameters within a preset range, and use the model parameters to update the initial circuit model to generate the target circuit model.

[0163] The total current calculation value generation module is used to input the port voltage in the operation data into the target circuit model to calculate the total current and generate the total current calculation value.

[0164] The fitness function building module is used to build a fitness function by using the difference between the total current in the operation data and the total current calculation value.

[0165] The initial ideal circuit model generation submodule is used to update the target circuit model using a fitness function to generate an initial ideal circuit model corresponding to the reactor.

[0166] Optionally, the target ideal circuit model generating module 502 includes:

[0167] The structural constraint condition building module is used to build structural constraint conditions by using coil data in the structural data.

[0168] The structural constraints are:

[0169]

[0170] Among them, M ij is the mutual inductance between the i-th coil and the j-th coil; M nk is the mutual inductance between the nth coil and the kth coil; L i is the self-inductance of the i-th coil; L j is the self-inductance of the j-th coil.

[0171] The target ideal circuit model generation submodule is used to update the initial ideal circuit model using structural constraints to generate a target ideal circuit model.

[0172] Optionally, the optimal winding parameter determination module 503 includes:

[0173] The initial population generation module is used to initialize the population using the model winding parameters of the target ideal circuit model to generate an initial population.

[0174] The fitness value generation module is used to calculate the fitness value of each initial individual in the initial population and generate multiple fitness values.

[0175] The intermediate population construction module is used to select initial individuals whose fitness values ​​meet a preset threshold by using a selection operator to construct an intermediate population.

[0176] The target population construction module is used to use a preset crossover operator, a preset mutation operator and a preset probability formula to perform genetic operations on each intermediate individual in the intermediate population to construct the target population.

[0177] The elite individual and iteration number determination module is used to select the target individual corresponding to the maximum fitness value in the target population as the elite individual and count the iteration number.

[0178] The iteration number judgment module is used to judge whether the iteration number is equal to the preset maximum iteration number.

[0179] The winding parameter determination submodule is used to use the model winding parameters corresponding to the elite individual as the optimal winding parameters corresponding to the reactor.

[0180] The jump module is used to take the target population as the new initial population, update the number of iterations plus 1, and jump to execute the steps of respectively calculating the fitness value of each initial individual in the initial population to generate multiple fitness values.

[0181] Optionally, the target population generation module may perform the following steps:

[0182] According to the preset crossover operator and the crossover probability formula in the preset probability formula, the intermediate individuals in the intermediate population are respectively superimposed and recombined to generate multiple recombinant individuals;

[0183] The default crossover operator is:

[0184]

[0185] Among them, A′ i is the first offspring gene after the crossover operation; A′ j A is the second offspring gene after the crossover operation; i is the first parent gene before the crossover operation; A j is the second parent gene before the crossover operation; n is a random number between [-0.25, 1.25];

[0186] The crossover probability formula is:

[0187]

[0188] Among them, P c is the crossover probability; t is the current iteration number; P c1 is the first variable parameter; P c2 is the second variable parameter, and P c2 =0.6; max is the preset maximum number of iterations; f max is the maximum fitness value in the middle population; f a is the average fitness value corresponding to the intermediate population; f′ is the fitness value of the party with the largest parent gene fitness value in the crossover operation;

[0189] Performing mutation operation on the recombinant individual according to a preset mutation operator and a mutation probability formula in a preset probability formula to generate a mutant individual corresponding to the recombinant individual;

[0190] The default mutation operator is:

[0191]

[0192] Among them, x i is the gene before mutation; x′ i is the mutated gene, i.e. the mutated individual; x min is the initial minimum value of the gene; x max is the initial maximum value of the gene; x newmin is the minimum value of genes in the evolution process; x newmax are the maximum values ​​of genes in the evolution process; G is the total number of evolutionary generations; gen is the current number of evolutionary generations; r is the first parameter, with a value of 0.2; b is the second parameter, with a value of 0.3; r1 is a random number in [0, 1];

[0193] The preset mutation probability formula is:

[0194]

[0195]

[0196] Among them, P m is the mutation probability; P m1 is the third variable parameter; P m2 is the fourth variable parameter, and P m2 =0.02; f max is the maximum fitness value in the middle population; f a is the average fitness value corresponding to the intermediate population; f is the fitness value of the recombinant individual; t is the current iteration number.

[0197] Use all mutant individuals to construct the target population.

[0198] In the embodiment of the present invention, Figure 6As shown, the system can also be a reactor network parameter optimization system based on structural constraints and adaptive genetic algorithms. The network parameters here refer to the winding parameters of the reactor. The system includes a function setting module, an optimization result module and a workspace. The function setting module includes parameter setting, model setting, constraint setting and data storage. The system workspace stores the actual port voltage and total current of the reactor, as well as the total current calculation value and port voltage calculation value obtained by model calculation. The results output by the optimization result module include the resistance, inductance and mutual inductance corresponding to each coil.

[0199] Embodiment 4

[0200] See also Figure 7 , Figure 7 This is a structural block diagram of an electronic device provided in Embodiment 4 of the present invention.

[0201] An electronic device according to an embodiment of the present invention includes: a memory 701 and a processor 702, wherein the memory 701 stores a computer program; when the computer program is executed by the processor 702, the processor 702 executes a reactor winding parameter detection method according to any of the above embodiments.

[0202] The memory 701 can be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk or a ROM. The memory 701 has a storage space 703 for a program code 713 for executing any method step in the above method. For example, the storage space 703 for the program code may include individual program codes 713 for implementing the various steps in the above method, respectively. These program codes can be read from or written to one or more computer program products. These computer program products include program code carriers such as a hard disk, a compact disk (CD), a memory card or a floppy disk. The program code can be compressed, for example, in an appropriate form. When these codes are run by a computing and processing device, the computing and processing device is caused to execute the various steps in the above-described reactor winding parameter detection method.

[0203] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method for detecting the parameters of a reactor winding as in any of the above embodiments is implemented.

[0204] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0205] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, 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 an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0206] 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.

[0207] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0208] 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. 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, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0209] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those 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. However, these 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 invention.

Claims

1. A method for detecting parameters of reactor windings, It is characterized in that include: Acquiring operation data and structural data of the reactor, constructing a model based on the operation data and the structural data, and generating an initial ideal circuit model corresponding to the reactor; Performing structural constraints on the initial ideal circuit model based on the structural data to generate a target ideal circuit model; Parameter optimization is performed based on the model winding parameters of the target ideal circuit model to determine the optimal winding parameters corresponding to the reactor.

2. The method for detecting reactor winding parameters according to claim 1, It is characterized in that The step of constructing a model by using the operation data and the structure data to generate an initial ideal circuit model corresponding to the reactor includes: The reactor rated parameters in the structural data are used to construct a model to generate an initial circuit model; Selecting model parameters within a preset interval, and using the model parameters to update the initial circuit model to generate a target circuit model; Inputting the port voltage in the operation data into the target circuit model to calculate the total current and generate a total current calculation value; constructing a fitness function using a difference between the total current in the operating data and the calculated total current value; The target circuit model is updated by using the fitness function to generate an initial ideal circuit model corresponding to the reactor.

3. The method for detecting reactor winding parameters according to claim 1, It is characterized in that The step of constraining the initial ideal circuit model based on the structural data to generate a target ideal circuit model comprises: Using coil data in the structural data to construct structural constraint conditions; The structural constraints are: Among them, M ij is the mutual inductance between the i-th coil and the j-th coil; M nk is the mutual inductance between the nth coil and the kth coil; L i is the self-inductance of the i-th coil; L j is the self-inductance of the j-th coil; The initial ideal circuit model is updated using the structural constraint conditions to generate a target ideal circuit model.

4. The method for detecting reactor winding parameters according to claim 1, It is characterized in that The step of performing parameter optimization based on the model winding parameters of the target ideal circuit model to determine the optimal winding parameters corresponding to the reactor includes: Initializing the population using the model winding parameters of the target ideal circuit model to generate an initial population; Calculating the fitness value of each initial individual in the initial population respectively to generate multiple fitness values; Using a selection operator to select initial individuals whose fitness values ​​meet a preset threshold, to construct an intermediate population; Using a preset crossover operator, a preset mutation operator and a preset probability formula to perform genetic operations on each intermediate individual in the intermediate population to construct a target population; Selecting a target individual corresponding to the maximum fitness value in the target population as an elite individual and counting the number of iterations; Determine whether the number of iterations is equal to a preset maximum number of iterations; If yes, the model winding parameters corresponding to the elite individual are used as the optimal winding parameters corresponding to the reactor; If not, the target population is used as a new initial population, the number of iterations is updated by 1, and the process jumps to the step of respectively calculating the fitness value of each initial individual in the initial population to generate a plurality of fitness values.

5. The method for detecting reactor winding parameters according to claim 4, It is characterized in that The step of using a preset crossover operator, a preset mutation operator and a preset probability formula to perform genetic operations on each intermediate individual in the intermediate population to construct a target population includes: According to a preset crossover operator and a crossover probability formula in a preset probability formula, the intermediate individuals in the intermediate population are respectively superimposed and recombined to generate a plurality of recombinant individuals; The preset crossover operator is: Among them, A i ' is the first offspring gene after the crossover operation; A j ' is the second offspring gene after the crossover operation; A i is the first parent gene before the crossover operation; A j is the second parent gene before the crossover operation; n is a random number between [-0.25, 1.25]; The crossover probability formula is: Among them, P c is the crossover probability; t is the current iteration number; P c1 is the first variable parameter; P c2 is the second variable parameter, and P c2 =0.6; max is the preset maximum number of iterations; f max is the maximum fitness value in the middle population; f a is the average fitness value corresponding to the intermediate population; f′ is the fitness value of the party with the largest parent gene fitness value in the crossover operation; Performing a mutation operation on the recombinant individual according to a preset mutation operator and a mutation probability formula in the preset probability formula to generate a mutant individual corresponding to the recombinant individual; The preset mutation operator is: Among them, x i is the gene before mutation; x i ′ is the mutated gene, i.e. the mutated individual; x min is the initial minimum value of the gene; x max is the initial maximum value of the gene; x newmin is the minimum value of genes in the evolution process; x newmax are the maximum values ​​of genes in the evolution process; G is the total number of evolutionary generations; gen is the current number of evolutionary generations; r is the first parameter, with a value of 0.2; b is the second parameter, with a value of 0.3; r 1 is a random number in [0, 1]; The preset mutation probability formula is: Among them, P m is the mutation probability; P m1 is the third variable parameter; P m2 is the fourth variable parameter, and P m2 =0.02; f max is the maximum fitness value in the middle population; f a is the average fitness value corresponding to the intermediate population; f is the fitness value of the recombinant individual; t is the current iteration number; All of the variant individuals are used to construct a target population.

6. A reactor winding parameter detection system, It is characterized in that include: An initial ideal circuit model generation module is used to obtain operation data and structural data of the reactor, construct a model based on the operation data and the structural data, and generate an initial ideal circuit model corresponding to the reactor; A target ideal circuit model generating module, used for performing structural constraints on the initial ideal circuit model based on the structural data to generate a target ideal circuit model; The optimal winding parameter determination module is used to perform parameter optimization based on the model winding parameters of the target ideal circuit model to determine the optimal winding parameters corresponding to the reactor.

7. The reactor winding parameter detection system according to claim 6, It is characterized in that The initial ideal circuit model generation module includes: An initial circuit model generating module, used to construct a model using the rated parameters of the reactor in the structural data to generate an initial circuit model; A target circuit model generation module, used to select model parameters within a preset interval, and use the model parameters to update the initial circuit model to generate a target circuit model; A total current calculation value generating module, used for inputting the port voltage in the operation data into the target circuit model to perform total current calculation and generate a total current calculation value; A fitness function building module, used to build a fitness function using the difference between the total current in the operation data and the total current calculation value; The initial ideal circuit model generation submodule is used to update the target circuit model using the fitness function to generate an initial ideal circuit model corresponding to the reactor.

8. The reactor winding parameter detection system according to claim 6, It is characterized in that The target ideal circuit model generation module includes: A structural constraint condition building module, used to use the coil data in the structural data to build a structural constraint condition; The structural constraints are: Among them, M ij is the mutual inductance between the i-th coil and the j-th coil; M nk is the mutual inductance between the nth coil and the kth coil; L i is the self-inductance of the i-th coil; L j is the self-inductance of the j-th coil; The target ideal circuit model generation submodule is used to update the initial ideal circuit model using the structural constraint conditions to generate a target ideal circuit model.

9. An electronic device, It is characterized in that It comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the reactor winding parameter detection method according to any one of claims 1 to 5.

10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed, the method for detecting reactor winding parameters according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Extra-high-voltage converter transformer with filtering function

    CN112259336A

  • Method for improving heat dissipation performance of oil-immersed reactor winding

    CN112380753A

  • Transformer multi-objective optimization method and device and storage medium

    CN116882293A

  • IPT system Anti-offset parameter optimization method and system and computer device

    WO2022127462A1

Cited By

  • Automatic detection method and system for winding of reactor coil

    CN120800502A