Fan unit model setting and verifying method based on CO-NIPM
Through the CO-NIPM algorithm combined with chaotic mapping and nonlinear internal point method, the problem of inefficient simulation verification of fan units is solved, and fast and accurate multi-group parameter identification and simulation verification are achieved, which improves the setting efficiency and accuracy of fan unit model. sex.
Patent Information
- Application Number
- CN202411125079.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-15
- Publication Date
- 2024-11-29
AI Technical Summary
The simulation verification method of the prior art fan unit is inefficient, prone to errors, and cannot be fully compatible with various working conditions, resulting in time-consuming and large deviations in the result.
The fan unit model tuning and verification method based on CO-NIPM is adopted, and through an algorithm combining chaotic mapping and nonlinear internal point method, multiple sets of parameters are quickly identified, fault points are simulated, control parameters are optimized, and simulation verification is achieved.
It realizes rapid batch verification of fan unit parameter identification, achieves optimal solution, reduces workload, reduces deviation error, and improves efficiency.
Smart Images

Figure CN119047163A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power analysis, and in particular to a method for setting and verifying a fan unit model based on CO-NIPM. Background Art
[0002] In order to strictly implement the requirements for the safety management of the power secondary system, various regions are further standardizing the grid-connected commissioning and grid-related performance testing and evaluation of new energy and energy storage power stations, and improving the grid-connected performance of new energy and energy storage power stations. This requires the electromechanical parameter identification and simulation verification of the performance of wind turbine units in new energy stations.
[0003] Power System Analysis Software Package (PSASP) is one of the main simulation platforms for verifying the electromechanical model of wind turbine units. Simulation parameters need to be identified from a huge amount of test data. In actual engineering projects, due to the inconsistency of the methods and means of simulation verification of wind turbine units, data sources and the cognition of the responsible person, the simulation verification is implemented with deviations. All parameter setting work is handled manually, which not only consumes a huge workload and is inefficient, but is also extremely prone to errors. Manual operation is cumbersome and time-consuming. The parameter identification result only satisfies the deviation value verification and fails to achieve the optimal value. The working conditions are not fully compatible, and there is no in-depth work to solve practical problems at the front line. Therefore, the present invention proposes a method for setting and verifying a wind turbine unit model based on CO-NIPM to solve the problems existing in the prior art. Summary of the invention
[0004] In view of the above problems, the present invention proposes a method for adjusting and verifying the fan unit model based on CO-NIPM. The method for adjusting and verifying the fan unit model based on CO-NIPM can quickly complete the identification simulation verification of multiple groups of parameters under various working conditions in batches and achieve the optimal solution. Compared with manual adjustment of parameters, the final deviation error is smaller, while reducing the workload and ensuring efficiency.
[0005] To achieve the purpose of the present invention, the present invention is implemented by the following technical scheme: A method for setting and verifying a fan unit model based on CO-NIPM comprises the following steps:
[0006] S1: Read the collected data, determine the model type of the wind turbine unit, basic parameters of the generator, grid-related protection setting parameters, wind power parameters, wind rotor parameters, and torque control parameters;
[0007] S2: Construct a function, select the initial U, I, P, Q values of each working condition and the U value of each working condition when falling / lifting as the chaotic map and initial point, generate an initial chaotic sequence, and use the chaotic map to generate a set of initial solutions as candidate solutions;
[0008] S3: Based on the wind turbine unit model of PSASP, set the function of simulating the fault point, simulate the rise and fall of the collector line voltage, and obtain the test model of fault voltage ride-through;
[0009] S4: Introduce a barrier function to transform the constrained nonlinear optimization problem into an unconstrained optimization problem, select one or more initial solutions obtained in the chaotic global search phase as the starting point of the nonlinear interior point method, and then perform simulations of various working conditions;
[0010] S5: Using S4 to obtain the simulation data under each working condition and the test data of the collected data, the transient interval and steady-state interval before, during and after the fault are verified according to the industry specifications;
[0011] S6: Classify the current control methods that meet the deviation value verification through the CO-NIPM algorithm, and make comprehensive trade-offs and iterative adjustments to the characteristic control parameters;
[0012] S7: completing identification and verification according to the optimal control parameters, completing identification and verification according to one set of control parameters, completing identification and verification according to two sets of control parameters, and completing identification and verification according to four sets of control parameters, and outputting the control parameter results.
[0013] A further improvement is that in S1, the basic parameters of the generator include rated power, rated speed, and moment of inertia, and the grid-related protection constant parameters include high and low voltage crossing thresholds and voltage fault crossing inflection points.
[0014] A further improvement is that: S1 comprises the following steps:
[0015] S11: Read the test data through Python to identify the reactive current, active current, reactive power and active power before the voltage fault and during the fault steady state, and obtain the control parameters;
[0016] S12: Classify and take values for various working conditions according to the fault interval characteristic range and the test data sampling time;
[0017] S13: Analyze the data under each classified working condition, consider overcurrent protection as a boundary condition, and perform parameter identification on the relationship between reactive current or active current and voltage during the fault voltage ride-through period;
[0018] S14: Generate a fan unit parameter set based on the above physical parameters, operating parameters and control parameter identification results, and write the PSASP control parameters into it through Python.
[0019] A further improvement is that in S2, a function is constructed as follows: n+1 =f(x n ),
[0020] Among them, f is the chaotic mapping function, x n is the nth candidate solution, x n+1 is the value at the n+1th iteration. The solution space is traversed through chaotic mapping to generate candidate solutions. The objective function value of each candidate solution is calculated to obtain the solutions of transformer ratio, large power grid power, unit active power and fault ground impedance as the initial solution.
[0021] A further improvement is that: S2 comprises the following steps:
[0022] S21: Read the test data in the collection data, and based on the initial U, I, P, Q values of each working condition in the test data, generate candidate solutions of transformer ratio, large grid power and unit active power into a power flow parameter set through the CO-NIPM algorithm written in Python;
[0023] S22: Read the test data in the collection data, and based on the U value of each working condition during the drop / lift in the test data, generate a transient parameter set consisting of candidate solutions of the fault grounding impedance and the fault start and end time and fault mode through the CO-NIPM algorithm written in Python.
[0024] Further improvement lies in: in the above S3, based on the wind turbine unit model of PSASP, the wind turbine unit T_Gen is connected to the power grid T_GRID through the step-up transformer T_TRAN and the collector line T_AC in sequence, the data measurement point is set on the high voltage side of the step-up transformer, and the fault point is set at a position where the collector line is 10% away from the low voltage side of the collector line, thereby forming a function of simulating the fault point, simulating the rise and fall of the collector line voltage, and obtaining a test model for fault voltage crossing.
[0025] A further improvement is that in S4, the barrier function is as follows:
[0026]
[0027] The objective function with obstacles is as follows:
[0028] L(x,μ)=f(x)+μφ(x)
[0029] Where f is the chaotic mapping function; x is the decision variable, which is the variable of target optimization and corresponds to the optimal solution of power flow calculation and transient calculation; φ(x) is the barrier function; g i (x) is the inequality constraint function, which represents the constraint condition; μ is the obstacle parameter, which controls the influence of the obstacle term. As the iteration proceeds, μ gradually decreases, so that the solution gradually approaches the boundary of the feasible region; L(x,μ) is the new objective function with the obstacle term, and the optimization path is adjusted by adding the obstacle term;
[0030] KKT condition solution:
[0031]
[0032] The KKT conditions are solved using Python's SciPy library.
[0033] A further improvement is that: said S4 comprises the following steps:
[0034] S41: Write the power flow parameter set of S2 into the power flow database of PSASP through Navicat Premium, simulate through the power flow calculation function of PSASP, and verify the deviation between the simulated power flow U and the initial U of the test data;
[0035] S42: Write the transient parameter set of the S3 simulated fault point into the transient database of PSASP through Navicat Premium, perform simulation through the transient calculation function of PSASP, and verify the deviation between the simulated fault voltage drop / rise U and the test data fault voltage rise / drop U.
[0036] Further improvements are as follows: in S41, when the deviation is not met, local optimization is performed using the CO-NIPM algorithm, and the transformer ratio is adjusted before iterative calculations are performed to ensure that the consistency between the simulated power flow U and the initial U of the test data reaches the current optimal solution; in S42, when the deviation is not met, local optimization is performed using the CO-NIPM algorithm, and the collector line impedance is adjusted before iterative calculations are performed to ensure that the consistency between the true fault voltage drop / rise U and the test data fault voltage rise / drop U reaches the current optimal solution.
[0037] Further improvement is: in S6, the current control mode that meets the deviation value verification is classified into high power, low power, symmetrical and asymmetrical by CO-NIPM algorithm, and the control parameters of the high and low voltage ride-through process fault period characteristics, fault recovery initial stage characteristics, and fault recovery period characteristics are comprehensively weighed and iteratively adjusted.
[0038] The beneficial effects of the present invention are:
[0039] 1. The algorithm architecture based on CO-NIPM of the present invention is fully compatible with verification types, data sources, types of working conditions, and numbers of working conditions. The electromechanical parameter identification + model verification of the fan unit is completed based on the test data, and the model verification or data verification is completed based on the test data + modeling report. Combined with the PSASP project practice, multiple groups of parameter identification simulation verifications for various working conditions are quickly completed in batches and the optimal solution is achieved. Compared with manual adjustment of parameters, the final deviation error is smaller, while reducing the workload and ensuring efficiency.
[0040] 2. The present invention adopts the CO-NIPM algorithm framework that combines chaos optimization with the nonlinear interior point method, which fully utilizes the global search capability of chaos optimization and the local optimization capability of the nonlinear interior point method. It can efficiently solve complex nonlinear optimization problems and has the advantages of strong global search capability, high local optimization efficiency, and adaptability to complex problems. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 It is a schematic diagram of the principle of the present invention;
[0042] Figure 2 It is a schematic diagram of a fault voltage ride-through test model of the present invention;
[0043] Figure 3 It is a schematic diagram of the maximum allowable value of the electromechanical transient model verification deviation of the fault ride-through characteristic of the present invention. DETAILED DESCRIPTION
[0044] In order to deepen the understanding of the present invention, the present invention will be further described in detail below in conjunction with examples. The examples are only used to explain the present invention and do not constitute a limitation on the protection scope of the present invention.
[0045] Embodiment 1
[0046] according to Figure 1 , 2 As shown in , 3, this embodiment proposes a method for adjusting and verifying a fan unit model based on CO-NIPM, including the following steps:
[0047] S1: Read the collected information to determine the model type of the wind turbine unit, basic parameters of the generator, grid-related protection constant parameters, wind power parameters, wind rotor parameters, and torque control parameters; the basic parameters of the generator include rated power, rated speed, and moment of inertia, and the grid-related protection constant parameters include high and low voltage thresholds and voltage fault crossing inflection points; specifically include the following steps: read the test data through Python to identify the reactive current, active current, reactive power, and active power before the voltage fault and during the steady-state period of the fault, and obtain the control parameters; classify and take values for various working conditions according to the characteristic range of the fault interval and the sampling time of the test data; analyze the data under each classified working condition, consider overcurrent protection as a boundary condition, and perform parameter identification on the relationship between reactive current or active current and voltage during the fault voltage crossing period; generate a wind turbine unit parameter set with the above physical parameters, operating parameters, and control parameter identification results, and write the PSASP control parameters through Python.
[0048] S2: Construct a function, select the initial U, I, P, Q values of each working condition and the U value of each working condition when falling / lifting as the chaotic map and initial point, generate an initial chaotic sequence, and use the chaotic map to generate a set of initial solutions as candidate solutions; construct a function as shown below: n+1 =f(x n ),
[0049] Among them, f is the chaotic mapping function, x n is the nth candidate solution, x n+1 is the value at the n+1 iteration, traverses the solution space through chaotic mapping, generates candidate solutions, calculates the objective function value of each candidate solution, and obtains the solutions of transformer ratio, large power grid power, unit active power and fault ground impedance as the initial solution;
[0050] Specifically, the following steps are included: reading the test data in the collected data, and based on the initial U, I, P, and Q values of each operating condition in the test data, generating candidate solutions of transformer ratio, large power grid power, and unit active power through the CO-NIPM algorithm written in Python to form a power flow parameter set; reading the test data in the collected data, and based on the U value of each operating condition during drop / rise in the test data, generating candidate solutions of fault grounding impedance and the fault start and end time and fault mode through the CO-NIPM algorithm written in Python to form a transient parameter set.
[0051] S3: Based on the wind turbine unit model of PSASP, set the function of simulating the fault point, simulate the rise and fall of the collector line voltage, and obtain the test model of fault voltage ride through; based on the wind turbine unit model of PSASP, connect the wind turbine unit T_Gen to the power grid T_GRID through the step-up transformer T_TRAN and the collector line T_AC in sequence, set the data measurement point on the high-voltage side of the step-up transformer, and set the fault point at a position where the collector line is 10% away from the low-voltage side of the collector line, thereby forming the function of simulating the fault point, simulating the rise and fall of the collector line voltage, and obtaining the test model of fault voltage ride through.
[0052] S4: Introduce the barrier function to transform the constrained nonlinear optimization problem into an unconstrained optimization problem. Select one or more initial solutions obtained in the chaotic global search stage as the starting points of the nonlinear interior point method, and then simulate each working condition. The barrier function is as follows:
[0053]
[0054] The objective function with obstacles is as follows:
[0055] L(x,μ)=f(x)+μφ(x)
[0056] Where f is the chaotic mapping function; x is the decision variable, which is the variable of target optimization and corresponds to the optimal solution of power flow calculation and transient calculation; φ(x) is the barrier function; g i (x) is the inequality constraint function, which represents the constraint condition; μ is the obstacle parameter, which controls the influence of the obstacle term. As the iteration proceeds, μ gradually decreases, so that the solution gradually approaches the boundary of the feasible region; L(x,μ) is the new objective function with the obstacle term, and the optimization path is adjusted by adding the obstacle term;
[0057] KKT condition solution:
[0058]
[0059] The KKT conditions are solved using Python's SciPy library.
[0060] Specifically, the following steps are included: writing the power flow parameter set of S2 into the power flow database of PSASP through Navicat Premium, simulating through the power flow calculation function of PSASP, and verifying the deviation between the simulated power flow U and the initial U of the test data; when the deviation is not met, local optimization is performed through the CO-NIPM algorithm, and the transformer ratio is adjusted and iterative calculation is performed to ensure that the consistency of the simulated power flow U and the initial U of the test data reaches the current optimal solution; writing the transient parameter set of the S3 simulated fault point into the transient database of PSASP through Navicat Premium, simulating through the transient calculation function of PSASP, and verifying the deviation between the simulated fault voltage drop / rise U and the test data fault voltage rise / drop U; when the deviation is not met, local optimization is performed through the CO-NIPM algorithm, and the collector line impedance is adjusted and iterative calculation is performed to ensure that the consistency of the real fault voltage drop / rise U and the test data fault voltage rise / drop U reaches the current optimal solution.
[0061] S5: Using S4 to obtain the simulation data under each working condition and the test data of the collected data, the transient interval and steady-state interval before, during and after the fault are verified according to industry specifications for deviation values.
[0062] S6: The CO-NIPM algorithm is used to classify the current control methods that meet the deviation value verification into high power, low power, symmetrical and asymmetrical, and the control parameters of the characteristics during the high and low voltage ride-through process fault, the characteristics of the initial stage of fault recovery, and the characteristics during the fault recovery period are comprehensively weighed and iteratively adjusted.
[0063] S7: completing identification and verification according to the optimal control parameters, completing identification and verification according to one set of control parameters, completing identification and verification according to two sets of control parameters, and completing identification and verification according to four sets of control parameters, and outputting the control parameter results.
[0064] Embodiment 2
[0065] according to Figure 1 , 2 As shown in , 3, this embodiment proposes a method for adjusting and verifying a fan unit model based on CO-NIPM, including the following steps:
[0066] The electromechanical parameters of the fan unit in PSASP are generally divided into model parameters and control parameters. Model parameters are generally directly read from the collected data, while control parameters need to be obtained through identification from the test data in the collected data. Model parameters remain unchanged during calculation, while control parameters may vary depending on different working conditions.
[0067] In addition, different operating conditions are obtained by adjusting specific parameters. The present invention collectively refers to these other parameters as parameter sets, which are divided into power flow parameter sets and transient parameter sets.
[0068] Taking the doubly-fed wind turbine in the wind turbine unit as an example, the following is the process of obtaining the parameters of the wind turbine electromechanical model:
[0069] S1: Read the collected information to determine the model of the wind turbine unit, the basic parameters of the generator (such as rated power, rated speed, moment of inertia, etc.), grid-related protection constant parameters (such as high and low voltage thresholds, voltage fault crossing inflection points, etc.), wind power parameters, wind rotor parameters, torque control, etc.
[0070] By reading the test data in Python, the reactive current, active current, reactive power and active power before and during the steady state of the voltage fault can be identified, and some control parameters can be obtained, such as: high and low voltage crossing thresholds, whether reactive power is prioritized during the fault, upper and lower limits of active power and reactive power commands, and upper and lower limits of active power and reactive power command change rates.
[0071] According to the characteristic range of the fault interval and the sampling time of the test data, the values under various working conditions are classified and taken separately.
[0072] The data under each classified working condition are analyzed, overcurrent protection is considered as a boundary condition, and the relationship between reactive current or active current and voltage during fault voltage ride-through is identified.
[0073] Such as: whether reactive power takes priority during a fault, the high and low voltage crossing thresholds, the control mode and parameters of reactive power during a fault, the control mode and parameters of active power during a fault, the control mode and parameters of reactive power at the start of fault recovery, the control mode and parameters of active power at the start of fault recovery, the control mode and parameters of reactive power during fault recovery, the control mode and parameters of active power during fault recovery, the control mode and parameters of reactive power during asymmetric faults, the control mode and parameters of active power during asymmetric faults, etc.
[0074] The above physical parameters, operating parameters and control parameter identification results are used to generate the fan unit parameter set, and the PSASP control parameters are written into it through Python.
[0075] S2: Construct a function, select the initial U, I, P, Q values of each working condition and the U value of each working condition when falling / lifting as the chaotic map and initial point, generate an initial chaotic sequence, and use the chaotic map to generate a set of initial solutions as candidate solutions, as shown below:
[0076] x n+1 =f(x n )
[0077] Among them, f is the chaotic mapping function, x n is the nth candidate solution, x n+1 is the value at iteration n+1.
[0078] The solution space is traversed by chaotic mapping to generate a large number of candidate solutions. The objective function value of each candidate solution is calculated, and the solutions of transformer ratio, large grid power, unit active power and fault ground impedance are obtained as initial solutions.
[0079] The test data in the collection data is read, and based on the initial U, I, P, and Q values of each working condition in the test data, the CO-NIPM algorithm written in Python is used to generate candidate solutions for transformer ratio, large grid power, and unit active power to form a power flow parameter set.
[0080] The test data in the collection data is read, and based on the U value of each working condition during drop / lift in the test data, the CO-NIPM algorithm written in Python is used to generate a transient parameter set consisting of candidate solutions of the fault ground impedance, the fault start and end time, and the fault mode.
[0081] S3: The fault voltage ride-through test model corresponding to the wind turbine unit model based on PSASP is as follows Figure 2 Shown:
[0082] The wind turbine unit (T_Gen) is connected to the grid (T_GRID) through the step-up transformer (T_TRAN) and the collector line (T_AC) in turn. The data measurement point is located on the high-voltage side of the step-up transformer, and the fault point is located at a position where the collector line is 10% away from the low-voltage side of the collector line.
[0083] By setting the function of simulating fault points in PSASP, the rise and fall of the collector line voltage are simulated to obtain a test model of fault voltage ride-through.
[0084] S4: Introduce barrier function to transform the constrained nonlinear optimization problem into a series of unconstrained optimization problems. Select one or more high-quality initial solutions obtained in the chaotic global search stage as the starting point of the nonlinear interior point method.
[0085] The barrier function is as follows:
[0086]
[0087] The objective function with obstacles is as follows:
[0088] L(x,μ)=f(x)+μφ(x)
[0089] Where f is the chaos mapping function; x is the decision variable, which is the variable we want to optimize, corresponding to the optimal solution of power flow calculation and transient calculation; φ(x) is the barrier function; g i (x) is the inequality constraint function, which represents the constraint condition; μ is the obstacle parameter, which controls the influence of the obstacle term. As the iteration proceeds, μ gradually decreases, making the solution gradually approach the boundary of the feasible region; L(x,μ) is the new objective function with the obstacle term, and the optimization path is adjusted by adding the obstacle term.
[0090] KKT condition solution:
[0091]
[0092] Finally, Python's SciPy library can be used to easily solve complex KKT conditions.
[0093] The power flow parameter set of S2 is written into the power flow database of PSASP through Navicat Premium, and simulation is performed through the power flow calculation function of PSASP. The deviation between the simulated power flow U and the initial U of the test data is verified. If the deviation is not satisfied, local optimization is performed through the CO-NIPM algorithm. After adjusting the transformer ratio, iterative calculation is performed to ensure the consistency of the simulated power flow U and the initial U of the test data to achieve the current optimal solution.
[0094] The transient parameter set of S3 is written into the transient database of PSASP through Navicat Premium, and simulation is performed through the transient calculation function of PSASP. The deviation between the simulated fault voltage drop / rise U and the test data fault voltage rise / drop U is verified. If the deviation is not satisfied, local optimization is performed through the CO-NIPM algorithm. After adjusting the collector line impedance, iterative calculation is performed to ensure the consistency of the real fault voltage drop / rise U and the test data fault voltage rise / drop U to achieve the current optimal solution.
[0095] S5: Using S4 to obtain the simulation data under each working condition and the test data of the collected data, the transient interval and steady-state interval before, during and after the fault are verified according to the specifications.
[0096] S6: The CO-NIPM algorithm is used to classify the current control methods that meet the deviation value verification into high power, low power, symmetrical and asymmetrical, and the control parameters of the characteristics during the high and low voltage ride-through process fault, the characteristics of the initial stage of fault recovery, and the characteristics during the fault recovery period are comprehensively weighed and iteratively adjusted.
[0097] S7: Output the control parameter results according to: optimal control parameters complete identification and verification, one set of control parameters complete identification and verification, two sets of control parameters complete identification and verification, and four sets of control parameters complete identification and verification.
[0098] The algorithm architecture combining chaos optimization and nonlinear interior point method (CO-NIPM) is an innovative optimization method that combines the global search capability of chaos optimization with the local optimization capability of nonlinear interior point method, aiming to solve complex nonlinear optimization problems.
[0099] The following is a detailed description and steps of the CO-NIPM algorithm architecture:
[0100] Algorithm architecture
[0101] Initialization phase:
[0102] Chaotic map initialization: Select appropriate chaotic map and initial point to generate initial chaotic sequence.
[0103] Generate initial population: Use chaotic mapping to generate a set of initial solutions as candidate solutions.
[0104] Chaos global search phase:
[0105] Traversing the solution space: Traversing the solution space through chaotic mapping to generate a large number of candidate solutions.
[0106] Evaluate candidate solutions: Calculate the objective function value of each candidate solution and select the solution with better performance as the initial solution.
[0107] Nonlinear interior point method local optimization stage:
[0108] Construct barrier function: Introduce barrier function to transform the constrained nonlinear optimization problem into a series of unconstrained optimization problems.
[0109] Iterative Optimization:
[0110] Initial point selection: Select one or more high-quality initial solutions obtained in the chaos global search phase as the starting points of the nonlinear interior point method.
[0111] KKT Condition Solving: Perform local optimization by solving the system of equations for Karush-Kuhn-Tucker (KKT) conditions.
[0112] Barrier parameter adjustment: gradually reduce the barrier parameter so that the solution gradually approaches the constraint boundary.
[0113] Step size adjustment: Adopt an appropriate step size strategy to ensure that each iteration is within the feasible region.
[0114] Update solution: Update the current solution and determine whether it meets the convergence conditions.
[0115] Chaos disturbance stage:
[0116] Chaotic perturbation: When the local optimization falls into a local minimum, a perturbation is introduced through chaotic mapping to generate a new initial solution.
[0117] Re-optimization: Re-perform the local optimization of the nonlinear interior point method.
[0118] Termination condition judgment:
[0119] Convergence judgment: When the improvement of the objective function value is less than the preset threshold or reaches the maximum number of iterations, the optimization is stopped.
[0120] Output optimal solution: Output the current optimal solution as the final result.
[0121] Mathematical description
[0122] Chaotic map generates the initial solution:
[0123] x n+1 =f(x n )
[0124] Among them, f is the chaotic mapping function, x n is the nth candidate solution.
[0125] Nonlinear interior point optimization:
[0126] Barrier function construction:
[0127]
[0128] Objective function with obstacles:
[0129] L(x,μ)=f(x)+μφ(x)
[0130] KKT condition solution:
[0131]
[0132] Solved by Newton's method or other numerical methods.
[0133] Chaos Disturbance:
[0134] Perturbation Generation:
[0135] x new=x current +δx
[0136] Among them, δx is the disturbance generated by chaotic mapping.
[0137] The CO-NIPM-based algorithm architecture utilizes the global search capability of Chaotic Optimization and the local optimization capability of the Nonlinear Interior Point Method to effectively solve complex nonlinear optimization problems. Its core structural features include the ergodicity and randomness of chaotic mapping, the barrier function processing and KKT condition solving of the nonlinear interior point method, and the dynamic hybrid strategy and convergence mechanism. These features enable the CO-NIPM algorithm to perform well in dealing with multi-peak, multi-modal and complex constrained optimization problems. By utilizing these advantages of the CO-NIPM algorithm, the station parameter setting work is automatically processed, which greatly improves efficiency and accuracy.
[0138] The algorithm architecture based on CO-NIPM of the present invention is fully compatible with verification types, data sources, types of working conditions, and numbers of working conditions. The electromechanical parameter identification + model verification of the wind turbine unit is completed according to the test data, and the model verification or data verification is completed according to the test data + modeling report. Combined with the practice of the PSASP project, multiple groups of parameter identification simulation verifications for various working conditions are quickly completed in batches and the optimal solution is achieved. The original workload of modeling and verification of each new energy station can be greatly reduced from 30 (man-days) to 5 (man-days). Compared with manual adjustment of parameters, the final deviation error does not exceed 1%, while ensuring efficiency. The present invention adopts the CO-NIPM algorithm framework that combines chaos optimization with the nonlinear interior point method, which makes full use of the global search capability of chaos optimization and the local optimization capability of the nonlinear interior point method, and can efficiently solve complex nonlinear optimization problems. It has the following advantages: strong global search capability: chaos optimization has ergodicity and randomness, and can search in a global range to avoid falling into local minima; high local optimization efficiency: the nonlinear interior point method has high efficiency and stability in local optimization, and can quickly converge to the local optimal solution; adaptability to complex problems: the combined algorithm can handle complex nonlinear optimization problems with multiple local minima.
[0139] The above shows and describes the basic principles, main features and advantages of the present invention. It should be understood by those skilled in the art that the present invention is not limited to the above embodiments. The above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention. The scope of protection of the present invention is defined by the attached claims and their equivalents.
Claims
1. A method for setting and verifying a fan unit model based on CO-NIPM, characterized in that: The following steps are involved: S1: Read the collected data, determine the model type of the wind turbine unit, basic parameters of the generator, grid-related protection setting parameters, wind power parameters, wind rotor parameters, and torque control parameters; S2: Construct a function, select the initial U, I, P, Q values of each working condition and the U value of each working condition when falling / lifting as the chaotic map and initial point, generate an initial chaotic sequence, and use the chaotic map to generate a set of initial solutions as candidate solutions; S3: Based on the wind turbine unit model of PSASP, set the function of simulating the fault point, simulate the rise and fall of the collector line voltage, and obtain the test model of fault voltage ride-through; S4: Introduce a barrier function to transform the constrained nonlinear optimization problem into an unconstrained optimization problem, select one or more initial solutions obtained in the chaotic global search phase as the starting point of the nonlinear interior point method, and then perform simulations of various working conditions; S5: Using S4 to obtain the simulation data under each working condition and the test data of the collected data, the transient interval and steady-state interval before, during and after the fault are verified according to the industry specifications; S6: Classify the current control methods that meet the deviation value verification through the CO-NIPM algorithm, and make comprehensive trade-offs and iterative adjustments to the characteristic control parameters; S7: Complete identification and verification according to the optimal control parameters, complete identification and verification of multiple sets of control parameters, and output the control parameter results.
2. The method for setting and verifying a fan unit model based on CO-NIPM according to claim 1, characterized in that: In S1, the basic parameters of the generator include rated power, rated speed, and moment of inertia, and the grid-related protection constant parameters include high and low voltage crossing thresholds and voltage fault crossing inflection points.
3. The method for setting and verifying a fan unit model based on CO-NIPM according to claim 2, characterized in that: The S1 comprises the following steps: S11: Read the test data through Python to identify the reactive current, active current, reactive power and active power before the voltage fault and during the fault steady state, and obtain the control parameters; S12: Classify and take values for various working conditions according to the fault interval characteristic range and the sampling time of the test data; S13: Analyze the data under each classified working condition, consider overcurrent protection as a boundary condition, and perform parameter identification on the relationship between reactive current or active current and voltage during the fault voltage ride-through period; S14: Generate a fan unit parameter set based on the above physical parameters, operating parameters and control parameter identification results, and write the PSASP control parameters into it through Python.
4. The method for setting and verifying a fan unit model based on CO-NIPM according to claim 1, characterized in that: In S2, the function is constructed as follows: n+1 =f(x n ), Among them, f is the chaotic mapping function, x n is the nth candidate solution, x n+1 is the value at the n+1th iteration. The solution space is traversed through chaotic mapping to generate candidate solutions. The objective function value of each candidate solution is calculated to obtain the solutions of transformer ratio, large power grid power, unit active power and fault ground impedance as the initial solution.
5. The method for setting and verifying a fan unit model based on CO-NIPM according to claim 4, characterized in that: The S2 comprises the following steps: S21: Read the test data in the collection data, and based on the initial U, I, P, Q values of each working condition in the test data, generate candidate solutions of transformer ratio, large grid power and unit active power into a power flow parameter set through the CO-NIPM algorithm written in Python; S22: Read the test data in the collection data, and based on the U value of each working condition during the drop / lift in the test data, generate a transient parameter set consisting of candidate solutions of the fault grounding impedance and the fault start and end time and fault mode through the CO-NIPM algorithm written in Python.
6. The method for setting and verifying a fan unit model based on CO-NIPM according to claim 5, characterized in that: In S3, based on the wind turbine unit model of PSASP, the wind turbine unit T_Gen is connected to the power grid T_GRID through the step-up transformer T_TRAN and the collector line T_AC in sequence, the data measurement point is set on the high-voltage side of the step-up transformer, and the fault point is set at a position where the collector line is 10% away from the low-voltage side of the collector line, thereby forming a function of simulating the fault point, simulating the rise and fall of the collector line voltage, and obtaining a test model for fault voltage crossing.
7. The method for setting and verifying a fan unit model based on CO-NIPM according to claim 6, characterized in that: In S4, the barrier function is as follows: The objective function with obstacles is as follows: L(x,μ)=f(x)+uφ(x) Where f is the chaotic mapping function; x is the decision variable, which is the variable of target optimization and corresponds to the optimal solution of power flow calculation and transient calculation; φ(x) is the barrier function; g i (x) is the inequality constraint function, which represents the constraint condition; μ is the obstacle parameter, which controls the influence of the obstacle term. As the iteration proceeds, μ gradually decreases, so that the solution gradually approaches the boundary of the feasible region; L(x,μ) is the new objective function with the obstacle term, and the optimization path is adjusted by adding the obstacle term; KKT condition solution: The KKT conditions are solved using Python's SciPy library.
8. The method for setting and verifying a fan unit model based on CO-NIPM according to claim 7, characterized in that: The S4 comprises the following steps: S41: Write the power flow parameter set of S2 into the power flow database of PSASP through Navicat Premium, simulate through the power flow calculation function of PSASP, and verify the deviation between the simulated power flow U and the initial U of the test data; S42: Write the transient parameter set of the S3 simulated fault point into the transient database of PSASP through Navicat Premium, perform simulation through the transient calculation function of PSASP, and verify the deviation between the simulated fault voltage drop / rise U and the test data fault voltage rise / drop U.
9. The method for setting and verifying a fan unit model based on CO-NIPM according to claim 8, characterized in that: In S41, when the deviation is not met, local optimization is performed through the CO-NIPM algorithm, and the transformer ratio is adjusted and iterative calculations are performed to ensure that the consistency of the simulated power flow U and the initial U of the test data reaches the current optimal solution; in S42, when the deviation is not met, local optimization is performed through the CO-NIPM algorithm, and the collector line impedance is adjusted and iterative calculations are performed to ensure that the consistency of the true fault voltage drop / rise U and the test data fault voltage rise / drop U reaches the current optimal solution.
10. The method for setting and verifying a fan unit model based on CO-NIPM according to claim 1, characterized in that: In S6, the current control mode that meets the deviation value verification is classified into high power, low power, symmetrical and asymmetrical through the CO-NIPM algorithm, and the control parameters of the characteristics during the fault period of the high and low voltage ride-through process, the characteristics of the initial stage of fault recovery, and the characteristics during the fault recovery period are comprehensively weighed and iteratively adjusted.
