A method for identifying parameters of photovoltaic inverter controller

Through the recursive least squares method with forgetting factor, the accuracy and speed problems of photovoltaic inverter controller parameter identification are solved, high-precision and fast online identification is achieved, programming is simplified and data utilization is enhanced.

CN114690633BActive Publication Date: 2024-08-30STATE GRID HUBEI ELECTRIC POWER RES INST +2
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210249684.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-14
Publication Date
2024-08-30
Estimated Expiration
2042-03-14

AI Technical Summary

Technical Problem

It is difficult to accurately obtain photovoltaic inverter controller parameters with existing technology, resulting in low credibility of simulation modeling results. Intelligent algorithms such as particle swarm optimization and genetic optimization algorithms have limitations, resulting in slow search speed and complex programming.

Method used

The recursive least squares method with forgetting factor is used to find the optimal estimate by minimizing the square of the error. The Tustin discrete method is used to transform the mathematical model to obtain the input and output quantities in real time. The forgetting factor is added to improve the data update capability and reduce randomness. and improve accuracy.

Benefits of technology

It greatly reduces the randomness of the optimization results, improves the accuracy and calculation speed of the identification results, realizes online identification and simultaneous identification of all parameters, avoids step-by-step identification, and has simple programming and data correction capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114690633B
    Figure CN114690633B
Patent Text Reader

Abstract

The present invention provides a method for identifying parameters of a photovoltaic inverter controller, comprising: establishing a mathematical model of a photovoltaic inverter controller, determining controller parameters to be identified; using the Tustin discrete method to transform the mathematical model into a differential equation, and then obtaining a covariance matrix and an iterative formula with a genetic factor recursive least square method as an identification system; obtaining the input and output of the photovoltaic inverter controller in real time as the input of the identification system, using the minimum square of the residual as the optimal parameter estimation of the genetic factor recursive least square method, and stopping the iteration when the controller parameter to be identified reaches a preset accuracy, the identification system outputs the controller parameter estimation value at this time, and the controller parameter estimation value is brought into the expression of the differential equation to inversely infer the controller parameter. The present invention searches for the optimal estimation value by minimizing the square of the error, greatly reducing the randomness of the optimization result, and improving the calculation speed and accuracy of the identification result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of photovoltaic inverters, and in particular to a photovoltaic inverter controller parameter identification method. Background Art

[0002] With the widespread application of clean energy such as solar energy, photovoltaic power generation technology has developed rapidly and has become a research hotspot for scholars at home and abroad. As the core component of the photovoltaic power generation system, the safe and stable operation of the photovoltaic inverter is a necessary condition for realizing photovoltaic power generation. The model and parameters of the inverter determine the dynamic characteristics of the system. In practical applications, due to factors such as the protection of the manufacturer's intellectual property rights and the limitation of measurement methods, it is difficult to accurately obtain the inverter controller parameters. When simulating and modeling the photovoltaic system, there is a deviation between the established model and the actual working conditions, which reduces the credibility of the simulation results. Accurately obtaining controller parameters through identification methods plays an important role in improving and studying photovoltaic power generation systems.

[0003] At present, there are relatively few studies on identifying the parameters of photovoltaic inverter controllers, and most of them use intelligent algorithms to identify system parameters, such as particle swarm optimization algorithm, genetic optimization algorithm, etc. Particle swarm optimization algorithm has certain limitations, such as limited search range, low search accuracy, and easy to fall into local extreme values; the genetic algorithm optimization mechanism is based on evolutionary theory, and its programming is relatively complex, so the search speed is slow, and its estimation results depend on the selection of initial data to a certain extent.

[0004] The inventor of the present application discovered through research during the process of completing the present invention that most photovoltaic inverters are voltage source inverters, and their control structure adopts an outer loop and inner loop cascade mode. The controller parameters are small-scale data, and are suitable for the recursive least squares identification method. In order to prevent the calculation data from being saturated, the recursive least squares method can be proposed and online identification can be realized. Since the recursive least squares method does not have the ability to correct data, adding a forgetting factor can improve the ability to update data. Therefore, the present invention proposes a method for identifying the parameters of a photovoltaic inverter controller using a recursive least squares method with a forgetting factor. This method finds the optimal estimate by minimizing the square of the error, greatly reducing the randomness of the optimization result, and is suitable for parameter identification of dynamic and static systems. It is a further optimization method of the least squares method. Summary of the invention

[0005] In view of the above-mentioned defects in the prior art, the present invention provides a photovoltaic inverter controller parameter identification method, which does not need to consider the parameters and topology of the photovoltaic inverter main circuit. The controller parameters are identified only through the input and output of the controller, and the optimal estimate is found by minimizing the square of the error, which greatly reduces the randomness of the optimization result and improves the calculation speed and accuracy of the identification result.

[0006] A photovoltaic inverter controller parameter identification method comprises the following steps:

[0007] Step 1: Establish a mathematical model of a photovoltaic inverter controller and determine the controller parameters that need to be identified, wherein the photovoltaic inverter is a voltage source inverter and the control structure of the controller adopts a double closed-loop PI regulator;

[0008] Step 2: using Tustin discrete method to transform the mathematical model into a difference equation, and then obtain the covariance matrix and iterative formula of the recursive least square method with genetic factors as the identification system;

[0009] Step three: The input and output of the photovoltaic inverter controller are obtained in real time as the input of the identification system, and the minimum square of the residual is used as the optimal parameter estimation of the recursive least squares method with genetic factors. When the parameters of the controller to be identified reach the preset accuracy, the iteration is stopped, and the identification system outputs the estimated values ​​of the controller parameters at this time, and the estimated values ​​of the controller parameters are substituted into the expression of the differential equation to inversely infer the controller parameters.

[0010] Furthermore, in step 1, the transfer function G(s) of the controller is derived according to the established mathematical model of the controller. When the main circuit parameters are known, the controller parameters that need to be identified are k PU ,k IU ,k PI ,k II , where k PU ,k IU is the proportional coefficient and integration time constant of the voltage loop; k PI ,k II is the current loop proportional coefficient and integration time constant.

[0011] Furthermore, the specific steps for obtaining the covariance matrix and iterative formula of the recursive least squares method with genetic factors in step 2 are as follows:

[0012] Step 2.1: Discretize the controller transfer function G(s) into G(z):

[0013]

[0014] And write G(z) in the form of a difference equation:

[0015] y(k)=-a1y(k-1)-a2y(k-2)-...+b0u(k)+b1u(k-1)+... (2)

[0016] Where k is the discrete moment; y(k) is the discrete quantity output by the controller; u(k) is the discrete quantity input by the controller;

[0017] θ T=[a1,a2,...,b0,b1,...] are the parameters to be identified, which are the parameters of the controller k PU ,k IU ,k PI ,k II The expression formed can identify θ and deduce the controller parameters. The corresponding vector equation form of equation (2) is:

[0018] Y k =H k θ (3)

[0019] Where:

[0020]

[0021]

[0022] k0 is the maximum difference in the difference equation;

[0023] Step 2.2: The recursive least squares method seeks the optimal solution with the goal of minimizing the square of the residual, that is, the objective function is:

[0024]

[0025] In the formula Y k The estimated value of , according to equations (2) and (3), the solution of the recursive least squares method is:

[0026]

[0027] In the formula is the estimated value of θ, P k The covariance matrix is ​​expressed as:

[0028]

[0029] Then we get the inverse matrix of the covariance matrix, and calculate the estimated value of the recursive least squares method at time k:

[0030]

[0031] In the formula represents the gain vector;

[0032] Step 2.3: Add the forgetting factor to the iterative formula, and the iterative formula of the recursive least squares method with forgetting factor is as follows:

[0033]

[0034] Where λ represents the forgetting factor and satisfies 0<λ≤1.

[0035] Furthermore, in step 3, when the controller parameters to be identified are The iteration is stopped when the preset accuracy ε is reached, that is is the estimated value of the identification parameters [a1 a2 ... b0 b1 ...].

[0036] The beneficial effects of adopting the above technical solution are embodied in:

[0037] 1. The present invention seeks the optimal solution by minimizing the square of the error. Compared with search algorithms such as particle swarm, the randomness of identifying controller parameters is greatly reduced, and the accuracy of identification results is improved. The present invention can realize online identification and synchronous identification of all parameters, avoiding step-by-step identification of each parameter.

[0038] 2. The recursive least squares method adopted by the present invention is simple in concept and easy to implement in programming. The recursive concept greatly reduces the storage and calculation of data and improves the speed of parameter identification to a certain extent;

[0039] 3. The present invention adds a forgetting factor on the basis of the recursive least squares method, which can reduce the weight of old data, enhance the role of new data, and enable the identification method to have correction ability, thereby improving the accuracy of the identification parameters. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 The present invention relates to a photovoltaic inverter and a control structure thereof;

[0041] Figure 2 It is a basic principle diagram of the photovoltaic inverter controller parameter identification method of the present invention;

[0042] Figure 3 The figure is a flow chart of one embodiment of a photovoltaic inverter controller parameter identification method of the present invention. DETAILED DESCRIPTION

[0043] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution 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 described embodiments are 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.

[0044] See also Figure 2 and Figure 3 The embodiment of the present invention provides a method for identifying parameters of a photovoltaic inverter controller, comprising the following steps:

[0045] Step 1: Establish a mathematical model of the photovoltaic inverter controller and determine the controller parameters that need to be identified. The photovoltaic inverter is a voltage source inverter and the controller control structure adopts a double closed-loop PI regulator. Figure 1 As shown, the main circuit of the photovoltaic inverter is generally a three-phase bridge structure, the control structure adopts a cascade method of voltage outer loop and current inner loop, and the controller adopts a PI regulator.

[0046] According to the established mathematical model of the controller, the transfer function G(s) of the controller can be derived. When the main circuit parameters are known, it is obtained by Figure 1 The parameter to be identified in the controller is k PU ,k IU ,k PI ,k II , k PU ,k IU is the proportional coefficient and integration time constant of the voltage loop; k PI ,k II is the current loop proportional coefficient and integration time constant.

[0047] Step 2: The mathematical model is transformed into a difference equation using Tustin's discrete method, and then the covariance matrix and iterative formula of the recursive least square method with genetic factors are obtained as the identification system.

[0048] Tustin's discretization method is to replace the differential operator s in the transfer function with Tustin method, also known as bilinear transformation method, can ensure that the continuous system and discrete system have small errors and strong stability. After discretization, the model of recursive least squares method can be obtained, and the covariance matrix and gain vector can be obtained, and finally the iterative formula of recursive least squares method with genetic factors can be obtained.

[0049] To obtain the iterative formula of the recursive least square method with genetic factors, the derivation process includes the following steps:

[0050] Step 2.1: Discretize the controller transfer function G(s) into G(z):

[0051]

[0052] And write G(z) in the form of a difference equation:

[0053] y(k)=-a1y(k-1)-a2y(k-2)-...+b0u(k)+b1u(k-1)+... (2)

[0054] Where k is the discrete moment; y(k) is the discrete quantity output by the controller; u(k) is the discrete quantity input by the controller;

[0055] θ T =[a1,a2,...,b0,b1,...] are the parameters to be identified, which are the parameters of the controller k PU ,k IU ,k PI ,k II The expression formed can identify θ and deduce the controller parameters. The corresponding vector equation form of equation (2) is:

[0056] Y k =H k θ (3)

[0057] Where:

[0058]

[0059]

[0060] k0 is the maximum difference in the difference equation;

[0061] Step 2.2: The recursive least squares method seeks the optimal solution with the goal of minimizing the square of the residual, that is, the objective function is:

[0062]

[0063] In the formula Y k The estimated value of , according to equations (2) and (3), the solution of the recursive least squares method can be deduced as:

[0064]

[0065] In the formula is the estimated value of θ, P k is the covariance matrix, which can be expressed as:

[0066]

[0067] Then we get the inverse matrix of the covariance matrix, and calculate the estimated value of the recursive least squares method at time k:

[0068]

[0069] In the formula represents the gain vector.

[0070] Step 2.3: In order to make the identification method have a certain correction ability, the forgetting factor is added to the iterative formula to improve the data utilization rate. Therefore, the iterative formula of the recursive least squares method with forgetting factor is as follows:

[0071]

[0072] Where λ represents the forgetting factor and satisfies 0<λ≤1; the size of the forgetting factor can adjust the speed of forgetting data, and appropriately increasing or decreasing the forgetting factor can obtain higher recognition accuracy.

[0073] Step 3: If Figure 2 As shown, the input and output of the photovoltaic inverter controller are obtained in real time as the input of the identification system, and the minimum square residual is used as the optimal parameter estimation of the recursive least square method with genetic factors. The iteration is stopped when the preset accuracy ε is reached, that is The flow chart of identification parameters is as follows Figure 3 The identification system outputs the estimated value of the controller parameter at this time, To identify the estimated values ​​of the parameters [a1 a2 ... b0 b1 ...], the estimated values ​​of the controller parameters are substituted into the expression of the difference equation to inversely infer the controller parameters.

[0074] The present invention obtains the input and output of the photovoltaic inverter controller in real time as the input of the identification system, takes the minimum residual square as the optimal parameter estimation of the recursive least square method, and stops iterating and outputting the controller parameter estimation value when the parameter to be identified reaches the preset accuracy; the use of the recursive method greatly reduces the storage of data and is easy to realize adaptive control; the addition of the forgetting factor will reduce the weight of the old data and improve the data correction ability of the recursive least square method. The method of the present invention is simple to implement and has a fast calculation speed, and is suitable for the identification of inverter controller parameters.

[0075] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A photovoltaic inverter controller parameter identification method, characterized in that: The steps include: Step 1: Establish a mathematical model of a photovoltaic inverter controller and determine the controller parameters that need to be identified, wherein the photovoltaic inverter is a voltage source inverter and the control structure of the controller adopts a double closed-loop PI regulator; Step 2: using Tustin discrete method to transform the mathematical model into a difference equation, and then obtain the covariance matrix and iterative formula of the recursive least square method with genetic factors as the identification system; Step 3: The input and output of the photovoltaic inverter controller are obtained in real time as the input of the identification system, and the minimum square of the residual is used as the optimal parameter estimation of the recursive least square method with genetic factors. When the parameters of the controller to be identified reach the preset accuracy, the iteration is stopped, and the identification system outputs the estimated value of the controller parameter at this time, and the estimated value of the controller parameter is substituted into the expression of the differential equation to inversely infer the controller parameter; In step 1, the controller transfer function G(s) is derived based on the established mathematical model of the controller. When the main circuit parameters are known, the controller parameters that need to be identified are k PU ,k IU ,k PI ,k II , where k PU ,k IU is the proportional coefficient and integration time constant of the voltage loop; k PI ,k II is the current loop proportional coefficient and integration time constant; The specific steps for obtaining the covariance matrix and iterative formula of the recursive least squares method with genetic factors in step 2 are as follows: Step 2.1: Discretize the controller transfer function G(s) into G(z): And write G(z) in the form of a difference equation: y(k)=-a1y(k-1)-a2y(k-2)-...+b0u(k)+b1u(k-1)+... (2) Where k is the discrete moment; y(k) is the discrete quantity output by the controller; u(k) is the discrete quantity input by the controller; θ T =[a1,a2,...,b0,b1,...] are the parameters to be identified, which are the parameters of the controller k PU ,k IU ,k PI ,k II The expression formed can identify θ and deduce the controller parameters; The corresponding vector equation form of equation (2) is: Y k =H k θ (3) Where: k0 is the maximum difference in the difference equation; Step 2.2: The recursive least squares method seeks the optimal solution with the goal of minimizing the square of the residual, that is, the objective function is: In the formula Y k The estimated value of , according to equations (2) and (3), the solution of the recursive least squares method is: In the formula is the estimated value of θ, P k The covariance matrix is ​​expressed as: Then we get the inverse matrix of the covariance matrix, and calculate the estimated value of the recursive least squares method at time k: In the formula represents the gain vector; Step 2.3: Add the forgetting factor to the iterative formula, and the iterative formula of the recursive least squares method with forgetting factor is as follows: Where λ represents the forgetting factor and satisfies 0<λ≤1.

2. The photovoltaic inverter controller parameter identification method according to claim 1, characterized in that: In step 3, when the controller parameters to be identified are The iteration is stopped when the preset accuracy ε is reached, that is is the estimated value of the identification parameters [a1a2...b0b1...].

Citation Information

Patent Citations

  • Lithium iron phosphate battery SOC estimation method based on dynamic optimization forgetting factor recursive least square online identification

    CN113203955A

  • Self-adaptive inverse control AGV rotating speed control method based on recursive subspace identification

    CN113625555A