Distributed photovoltaic power data virtual acquisition method based on GWO-WNN

By using a virtual acquisition method based on GWO-WNN and optimizing the wavelet neural network with the Grey Wolf algorithm, benchmark components are selected for virtual acquisition of distributed photovoltaic module power data. This solves the problems of high data acquisition cost and low accuracy in existing technologies, and realizes efficient and low-cost photovoltaic module monitoring.

CN113962357BActive Publication Date: 2024-10-18TIANJIN UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111072726.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-14
Publication Date
2024-10-18
Estimated Expiration
2041-09-14

AI Technical Summary

Technical Problem

Existing technologies for monitoring distributed photovoltaic modules suffer from problems such as high data acquisition costs, difficulty in real-time data acquisition, large errors in meteorological data, and difficulty in obtaining external information, resulting in low efficiency in monitoring distributed photovoltaic modules.

Method used

A distributed photovoltaic power data virtual acquisition method based on GWO-WNN is adopted. By selecting a portion of fully installed benchmark modules, the parameters of the wavelet neural network are optimized using the Grey Wolf algorithm to construct a virtual acquisition model, thereby realizing the virtual acquisition of power data of all photovoltaic modules within the region.

Benefits of technology

It reduces data acquisition costs, avoids transmission channel congestion, improves acquisition accuracy, and saves storage costs, making it suitable for cost control in distributed photovoltaic projects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113962357B_ABST
    Figure CN113962357B_ABST
Patent Text Reader

Abstract

The present invention relates to a distributed photovoltaic power data virtual collection method based on GWO-WNN, comprising the following steps: Step 1: Select a benchmark component; Step 2: Construct a wavelet neural network; Step 3: Train the wavelet neural network to obtain a power data virtual collection model based on the GWO-WNN algorithm. Step 4: Input the real-time power data and current data of the benchmark photovoltaic component on the collection day, use the real-time power data of the benchmark photovoltaic component, and perform data fitting in combination with the virtual collection model to achieve virtual collection of the power data of the photovoltaic component to be collected. The present invention can not only greatly save the cost of investment in development, but also avoid the blockage of the transmission channel caused by excessive transmission data volume and save storage costs. It has strong practicality and has a certain reference value for cost saving of distributed photovoltaic projects in my country.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of distributed photovoltaic data collection, and in particular to a distributed photovoltaic power data virtual collection method based on GWO-WNN. Background Art

[0002] In the context of the current global energy crisis and increasing environmental pollution, distributed photovoltaics have developed rapidly due to their outstanding environmental benefits and the advantages of both electricity consumption and power generation. However, most distributed photovoltaic components are characterized by being numerous, scattered, disordered, and large in number, which leads to a large number of monitoring data points for distributed photovoltaic components. The data collection cost is too high if only the number of sensors is increased and the frequency of data collection is increased, which restricts the development of the distributed photovoltaic industry. Therefore, it is of great significance to develop a new low-cost, high-efficiency distributed photovoltaic power data collection solution suitable for distributed photovoltaic operation and maintenance.

[0003] Virtual collection technology does not require on-site sensors, collectors, concentrators and other collection equipment to collect photovoltaic data. Therefore, virtual collection is essentially a new type of estimation technology that estimates data that cannot be collected in real time or is difficult to collect to replace actual collection. Its core idea is to use the data of photovoltaic modules with complete collection terminals installed in the region to realize the virtual collection of distributed photovoltaic power data, supplement the data of distributed photovoltaic modules without collection devices or incomplete collection devices, and save data collection costs.

[0004] The current distributed photovoltaic power data collection scheme has the following three problems:

[0005] 1) It only predicts future power and repairs historical data, but does not involve the collection and prediction of real-time photovoltaic module power data; 2) The factors that affect distributed photovoltaic output are highly uncertain. Meteorological data often reflect the environmental conditions of a large area, with large errors, and it is neither possible nor necessary to examine each factor in detail under diverse scenarios; 3) Distributed photovoltaic components are characterized by being numerous, widespread, scattered and disordered, and most of them are located in remote mountainous areas with weak communication conditions, which makes it difficult and costly to obtain external information such as weather and environment.

[0006] Therefore, how to realize the virtual collection of power data of all photovoltaic modules within a region is a technical problem that needs to be solved urgently by those skilled in the art. Summary of the invention

[0007] The purpose of the present invention is to overcome the shortcomings of the prior art and propose a distributed photovoltaic power data virtual collection method based on GWO-WNN, which can select only some distributed photovoltaic components with complete data collection devices (benchmark components) to complete the virtual collection of power data of all photovoltaic components in the area.

[0008] The present invention solves the practical problem by adopting the following technical solutions:

[0009] A distributed photovoltaic power data virtual collection method based on GWO-WNN includes the following steps:

[0010] Step 1: Select benchmark modules based on the average output coefficient of distributed photovoltaic modules in the region;

[0011] Step 2: Construct a wavelet neural network and use the gray wolf algorithm to optimize the parameters of the wavelet neural network, such as weights, scaling factors, and translation factors;

[0012] Step 3: The weights, scaling factors and translation factor parameters of the wavelet neural network optimized in step 2 are used as the initial parameters of the wavelet neural network. The historical power data and current data of the benchmark photovoltaic modules and the photovoltaic modules to be collected are input as training samples. The wavelet neural network is trained to obtain a power data virtual collection model based on the GWO-WNN algorithm.

[0013] Step 4: Input the real-time power data and current data of the benchmark photovoltaic module on the collection day, use the real-time power data of the benchmark photovoltaic module and combine it with the virtual collection model to perform data fitting to realize the virtual collection of the photovoltaic module power data to be collected.

[0014] Moreover, the specific steps of step 1 include:

[0015] Step 1.1: According to the rated capacity of each effective photovoltaic module, calculate the output coefficient of each distributed photovoltaic module under ideal conditions (sunny day), which is calculated as shown in the following formula:

[0016] α i =p / C

[0017] In the formula, α i is the output coefficient of the i-th photovoltaic module; C is the rated capacity of the effective photovoltaic module.

[0018] Step 1.2: According to the output coefficient of each distributed photovoltaic module calculated in step 1.1, the average output coefficient of the distributed photovoltaic modules in the grid area is calculated as shown in the following formula:

[0019]

[0020] In the formula, is the average output coefficient of the photovoltaic modules in the area; p is the current output power of the photovoltaic modules; N is the number of distributed photovoltaic modules in the grid area.

[0021] Step 1.3: Compare the output coefficients of all distributed photovoltaic modules in the grid area with the average output coefficient, and select the photovoltaic module with the output coefficient closest to the average output coefficient as the benchmark module in the grid area. The comparison between the output coefficient of each photovoltaic module and the average output coefficient is quantified by the following formula:

[0022]

[0023] In the formula, dif i It is the difference between the output coefficient of each power station and the average output coefficient.

[0024] Moreover, the specific steps of step 2 include:

[0025] Step 2.1: Initialize the parameters of the gray wolf algorithm. Set the size of the gray wolf group N g , number of iterations M, search space dimension D and coefficient vector

[0026] Step 2.2: Randomly initialize the gray wolf population X i (i=1,2,…,N g ), where each individual gray wolf in the population is the weight, scaling factor, and translation factor parameter value in WNN;

[0027] Step 2.3: Calculate the objective function value of each search individual in the initial gray wolf population and sort them in ascending order. The objective function is the network error of WNN, which is calculated as follows:

[0028]

[0029] Where: y n (k) is the expected output, y(k) is the fitted output value;

[0030] Step 2.4: Find the locations of the top three individuals in the objective function value, denoted as X α , X β and X δ ;

[0031] Step 2.5: Determine the moving direction of the gray wolf individual and update the current search individual position as follows:

[0032]

[0033]

[0034]

[0035] In the formula, Respectively represent the direction vectors between α, β, δ and the other gray wolf search individuals; Respectively, α, β, and δ determine the direction vector of the next move of the remaining gray wolf search individuals; A vector representing the direction of the searcher's next move.

[0036] Step 2.6: Parameters Updated as follows:

[0037]

[0038]

[0039]

[0040] In the formula, The modulus is a random number between [0, 1]; t represents the current iteration number.

[0041] Step 2.7: Calculate the objective function values ​​of all gray wolf search individuals after the update, and re-determine X according to the objective function value α , X β and X δ ;

[0042] Step 2.8: Determine whether the number of iterations reaches the set value, otherwise go to step 2.5;

[0043] Step 2.9: Output the global optimal solution, the algorithm ends, and the parameters such as weights, scaling factors and translation factors in the optimized wavelet neural network are obtained.

[0044] Moreover, the specific steps of step 3 include:

[0045] Step 3.1: Input the historical power data and current data of the benchmark photovoltaic module and the photovoltaic module to be collected as training samples to train the wavelet neural network;

[0046] Step 3.2: Calculate the error between the output value and the expected value, that is, calculate the network error:

[0047]

[0048] Where: e is the network error; y n (k) is the expected output, and y(k) is the fitted output value.

[0049] Step 3.3: Error back propagation, modify the wavelet neural network parameters, return to step 3.1, until the error accuracy or the maximum number of training times is reached, end the training, and the current wavelet neural network based on the Grey Wolf algorithm is used as the virtual acquisition model for power data.

[0050] Advantages and beneficial effects of the present invention:

[0051] The present invention proposes a distributed photovoltaic power data virtual collection method based on GWO-WNN, which aims to select only some distributed photovoltaic components with complete data collection devices (benchmark components) to complete the virtual collection of power data of all photovoltaic components within the region. The virtual collection method based on GWO-WNN (Grey wolf algorithm and waveletneural network, GWO-WNN) adopted in the present invention, in the same area, only needs the distributed photovoltaic components as benchmark components to install complete data collection devices, and other distributed photovoltaic components are installed with low-priced current collection terminals, so as to realize high-precision virtual collection of photovoltaic components to be collected. Compared with the traditional method of relying only on sensor equipment for collection, the virtual collection method of the present invention can not only greatly save the cost of investment in development, but also avoid the blockage of the transmission channel caused by excessive transmission data volume and save storage costs. It has strong practicality and has a certain reference value for the cost saving of distributed photovoltaic projects in my country. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1 is a flow chart of the method of the present invention;

[0053] Figure 2 is a network structure diagram of a wavelet neural network constructed in an embodiment of the present invention;

[0054] Figure 3 It is a flow chart of the gray wolf algorithm optimized wavelet neural network constructed in an embodiment of the present invention;

[0055] Figure 4 is a schematic diagram of virtual acquisition in a single grid area in an embodiment of the present invention;

[0056] Figure 5 is a virtual collection result diagram corresponding to different numbers of benchmark components in an embodiment of the present invention;

[0057] Figure 6 It is a virtual collection result diagram of the remaining photovoltaic components under the benchmark component in the embodiment of the present invention. DETAILED DESCRIPTION

[0058] The embodiments of the present invention are further described in detail below with reference to the accompanying drawings:

[0059] A distributed photovoltaic power data virtual acquisition method based on GWO-WNN, such as Figure 1 As shown, the following steps are included:

[0060] Step 1: Select benchmark modules based on the average output coefficient of distributed photovoltaic modules in the region;

[0061] The benchmark component in step 1 is a distributed photovoltaic component equipped with a complete data acquisition device, which aims to use the real-time data collected by the benchmark component in combination with the neural network to complete the "real-time + virtual" acquisition of power data of all distributed photovoltaic components in the region;

[0062] It should be noted that the "real-time + virtual" collection of distributed photovoltaic module output data only includes the voltage and current values ​​of the distributed photovoltaic modules at a certain moment. Therefore, it is necessary to convert them into power values ​​through calculation, as shown below:

[0063]

[0064] Where: P is the active power value output by the photovoltaic module; U represents the voltage value obtained by the photovoltaic module through virtual collection; I represents the current value obtained by the photovoltaic module through virtual collection; Indicates the power factor of the photovoltaic module.

[0065] The average output coefficient of step 1 is the ratio of the average power of all photovoltaic modules at a certain moment to the rated capacity of the photovoltaic modules, which reflects the output level of the photovoltaic modules in the grid area to a certain extent.

[0066] The specific steps of step 1 include:

[0067] Step 1.1: According to the rated capacity of each effective photovoltaic module, calculate the output coefficient of each distributed photovoltaic module under ideal conditions (sunny day), which is calculated as shown in the following formula:

[0068] α i =p / C

[0069] In the formula, α i is the output coefficient of the i-th photovoltaic module; p is the current output power of the photovoltaic module; C is the rated capacity of the effective photovoltaic module.

[0070] Step 1.2: According to the output coefficient of each distributed photovoltaic module calculated in step 1.1, the average output coefficient of the distributed photovoltaic modules in the grid area is calculated as shown in the following formula:

[0071]

[0072] In the formula, is the average output coefficient of the photovoltaic modules in the area; N is the number of distributed photovoltaic modules in the grid area.

[0073] Step 1.3: Compare the output coefficients of all distributed photovoltaic modules in the grid area with the average output coefficient, and select the photovoltaic module with the output coefficient closest to the average output coefficient as the benchmark module in the grid area. The comparison between the output coefficient of each photovoltaic module and the average output coefficient is quantified by the following formula:

[0074]

[0075] In the formula, dif i It is the difference between the output coefficient of each power station and the average output coefficient.

[0076] It should be noted that if only one benchmark component is selected, there may be uncertainties such as poor virtual acquisition accuracy or sudden failure of the photovoltaic component. Therefore, multiple benchmark components can be selected to form a data set, and the virtual acquisition of power data of all photovoltaic components can be completed through subsequent methods. Considering the cost factor of the acquisition device, the upper limit of the number of benchmark components is set to half of the number of photovoltaic components in the area. Finally, the number of benchmark components required is determined through a simple optimization process to complete the virtual acquisition of power data of other distributed photovoltaic components in the area.

[0077] Step 2: Construct a wavelet neural network and use the gray wolf algorithm to optimize the parameters of the wavelet neural network, such as weights, scaling factors, and translation factors;

[0078] The specific steps of step 2 include:

[0079] Step 2.1: Initialize the parameters of the gray wolf algorithm. Set the size of the gray wolf group N g , number of iterations M, search space dimension D and coefficient vector

[0080] Step 2.2: Randomly initialize the gray wolf population X i (i=1,2,…,N g ), where each individual gray wolf in the population is the weight, scaling factor, and translation factor parameter value in WNN;

[0081] Step 2.3: Calculate the objective function value of each search individual in the initial gray wolf population and sort them in ascending order. The objective function is the network error of WNN, which is calculated as follows:

[0082]

[0083] Where: e is the network error; y n (k) is the expected output, y(k) is the fitted output value;

[0084] Step 2.4: Find the locations of the top three individuals in the objective function value, denoted as X α , X β and X δ ;

[0085] Step 2.5: Determine the moving direction of the gray wolf individual and update the current search individual position as follows:

[0086]

[0087]

[0088]

[0089] In the formula, Respectively represent the direction vectors between α, β, δ and the other gray wolf search individuals; Respectively, α, β, and δ determine the direction vector of the next move of the remaining gray wolf search individuals; A vector representing the direction of the searcher's next move.

[0090] Step 2.6: Parameters Updated as follows:

[0091]

[0092]

[0093]

[0094] In the formula, The modulus is a random number between [0, 1]; t represents the current iteration number.

[0095] Step 2.7: Calculate the objective function values ​​of all gray wolf search individuals after the update, and re-determine X according to the objective function value α , X β and X δ ;

[0096] Step 2.8: Determine whether the number of iterations reaches the set value, otherwise go to step 2.5;

[0097] Step 2.9: Output the global optimal solution, the algorithm ends, and the parameters such as weights, scaling factors and translation factors in the optimized wavelet neural network are obtained.

[0098] The Gray Wolf Algorithm has good convergence and global search capabilities, and can find the optimal solution to the maximum extent. If it is combined with the wavelet neural network, the strong global convergence ability of the Gray Wolf Algorithm can be used to continuously adjust and optimize the weights, scaling factors and translation factors in the wavelet neural network, so that the performance of the wavelet neural network is significantly improved.

[0099] In this embodiment, the wavelet neural network replaces the activation function of the neural network with the wavelet function, and the corresponding weights from the input layer to the hidden layer and the activation threshold are replaced by the scale expansion factor and translation factor of the wavelet function;

[0100] The wavelet neural network uses the most widely used compact structure. The network structure is as follows Figure 2 As shown;

[0101] Figure 2 In the above equation, I1, I2, …, I q is the input data of the wavelet neural network, Y is the output data set obtained by fitting, ω ij represents the weights of the input layer and the hidden layer, ω jk represents the weights of the hidden layer and the output layer, a j and b j are the scaling factor and the translation factor respectively. represents the wavelet basis function. In the embodiment of the present invention, the Morlet function is selected as the wavelet basis function:

[0102]

[0103] The hidden layer output formula is:

[0104]

[0105] Where: is the output of the jth node in the hidden layer; n is the total number of nodes in the hidden layer;

[0106] The number of hidden layer nodes is:

[0107]

[0108] Where: n is the number of hidden layer nodes, i is the number of input layer nodes, k is the number of output layer nodes, and a is a constant between 1 and 10;

[0109] Output layer calculation formula:

[0110]

[0111] Where: k is the number of nodes in the output layer;

[0112] Compared with BP neural network, the primitives and the whole structure of wavelet neural network are determined according to wavelet analysis theory, which effectively avoids the blindness in the structural design of BP neural network and the like; in addition, wavelet theory is a full-scale analysis, which not only has a global optimal solution, but also maintains the optimal solution of local details, so wavelet neural network has a relatively stronger learning ability and higher precision. However, as the input dimension increases and the training sample increases, the convergence speed of wavelet neural network decreases greatly. At the same time, when the initialization parameters of wavelet neural network are unreasonable, the whole network learning process will not converge, so the present invention adopts gray wolf algorithm to optimize the neural network parameter initialization problem.

[0113] In this embodiment, the step 2 of optimizing the parameters of the wavelet neural network using the gray wolf algorithm includes the following steps:

[0114] Grey Wolf Optimizer (GWO) is a new type of intelligent group optimization algorithm. The algorithm simulates the hunting mode and social hierarchy of wolves. In the Grey Wolf Algorithm, wolves are defined in descending order of social hierarchy as α wolf, β wolf, δ wolf and ω wolf. Among them, α wolf mainly makes decisions based on the information perceived by the wolf pack, β wolf mainly assists α wolf in making decisions, δ wolf mainly plays the role of protecting the boundary, and ω wolf always obeys other dominant wolves and conducts a series of social activities. The Grey Wolf Algorithm simulates a series of group hunting activities of wolves such as searching, encircling, hunting and attacking. The basic principle of the Grey Wolf Algorithm is as follows, and its flow chart is as follows: Figure 3 shown.

[0115] Step 3: The weights, scaling factors, and translation factors of the wavelet neural network optimized in step 2 are used as the initial parameters of the wavelet neural network. The historical power data and current data of the benchmark photovoltaic modules and the photovoltaic modules to be collected are input as training samples to train the wavelet neural network and obtain a power data virtual collection model based on the GWO-WNN algorithm.

[0116] The specific steps of step 3 include:

[0117] Step 3.1: Input the historical power data and current data of the benchmark photovoltaic module and the photovoltaic module to be collected as training samples to train the wavelet neural network;

[0118] Step 3.2: Calculate the error between the output value and the expected value, that is, calculate the network error:

[0119]

[0120] Where: e is the network error; y n (k) is the expected output, and y(k) is the fitted output value.

[0121] Step 3.3: Error back propagation, modify the wavelet neural network parameters, return to step 3.1, until the error accuracy or the maximum number of training times is reached, end the training, and the current wavelet neural network based on the Grey Wolf algorithm is used as the virtual acquisition model for power data.

[0122] Through step 3, the mapping relationship between each photovoltaic module is found, such as Figure 4 shown.

[0123] It should be noted that in step 3, using the historical power data and current data of the input benchmark photovoltaic components and the photovoltaic components to be collected as training samples can further improve the training accuracy and make the final virtual collection results more accurate.

[0124] Step 4: Input the real-time power data and current data of the benchmark photovoltaic module on the collection day, use the real-time power data of the benchmark photovoltaic module and combine it with the virtual collection model to perform data fitting to realize the virtual collection of the photovoltaic module power data to be collected.

[0125] In order to verify the applicability of the virtual acquisition algorithm of the present invention, the benchmark components within the regional range are first selected, and the difference between the output coefficient of each photovoltaic component and the average output coefficient is shown in Table 1.

[0126] Table 1 Difference in output coefficient of each component

[0127]

[0128] If only one benchmark component is selected, the virtual collection accuracy may be poor (or the benchmark component fails). Considering the cost factor of the collection device, the number of benchmark components is limited to half of the number of PV components in the region. The first seven components are selected in order from small to large according to the difference value to complete the virtual collection of distributed PV operation and maintenance data within the region.

[0129] 1-7 benchmark components are selected in this area in turn, and the historical data of the benchmark components in the area are used to train the models of other components. The relevant parameters of the wavelet neural network are set as follows: the number of training times is 100 times, the weight factor learning efficiency is 0.01, the network structure is three-layer, the number of input layer nodes is the number of selected photovoltaic components, the number of output layer nodes is 1, that is, the output power of the photovoltaic component to be collected data, and the empirical formula for selecting the hidden layer nodes is as follows:

[0130]

[0131] Where: p is the number of hidden layer nodes, q is the number of input layer nodes, m is the number of output layer nodes, and a is a constant between 1 and 10.

[0132] After comparing the results of multiple experiments, the number of hidden layer nodes selected in the embodiment of the present invention is determined to be 6.

[0133] The relevant parameters of the Gray Wolf Algorithm are set as follows: the maximum number of iterations of the Gray Wolf Algorithm is set to 100 times, the population size is 8, and the total number of weights, translation factors, and scaling factors that need to be optimized is q×p+p×m+p+p=DIM, so the dimension of the Gray Wolf Algorithm solution space is DIM. This model is used to perform virtual collection of distributed photovoltaic operation and maintenance data in the region. 1, 2, 3, 4, 5, 6, and 7 benchmark components are selected to perform virtual collection of the output power of the No. 1 photovoltaic component. To ensure the objectivity of the experimental results, each experimental task is independently simulated 30 times to eliminate the influence of randomness. Finally, the average value is taken as the final result of the experiment. The virtual collection results are shown in the figure. Figure 5 shown.

[0134] In the embodiment of the present invention, the mean square error RMSE and the mean absolute error MAE are used to evaluate the virtual acquisition results, and the calculation methods are shown in the following formulas:

[0135]

[0136]

[0137] Where: N P is the total number of collected data points, is the virtually collected photovoltaic output power data, is the actual value, i is the time of virtual collection, is the capacity of the component.

[0138] The virtual acquisition result errors of different numbers of benchmark components are shown in Table 2:

[0139] Table 2 Error index of different photovoltaic module numbers

[0140]

[0141] It can be seen from Table 2 that when one benchmark component is selected, the randomness is relatively large. As the number of benchmark components increases, the error gradually decreases. When 4 or more photovoltaic components are selected as benchmark components, the error tends to be stable and no longer has obvious changes. It is in a weak oscillation change. Therefore, considering the comprehensive consideration of cost and error, four benchmark components (6, 7, 3, and 11) are selected for virtual collection of distributed photovoltaic components in the region. The collection results are shown in Figure 2. Figure 6 The error analysis is shown in Table 3.

[0142] Table 3 Error indicators

[0143]

[0144] It can be seen from the above results that the virtual collection data of each photovoltaic component is very close to the real value. It can be seen from the table that the error between the virtual collection results and the real value in this paper is small, and the collection effect of the virtual collection model is good, which can provide certain reference value for actual engineering.

[0145] In summary, the present invention first selects benchmark components through the average output coefficient, and obtains the optimal number of benchmark components through simulation optimization. While reducing the cost of virtual collection, the accuracy of virtual collection and other emergencies can be more fully considered; then, taking the simulation experiment as an example, the virtual collection method of the present invention realizes high-precision virtual collection of distributed photovoltaic component power data, verifying the feasibility and effectiveness of the model proposed in the present invention.

[0146] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0147] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0148] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0149] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

Claims

1. A distributed photovoltaic power data virtual collection method based on GWO-WNN, characterized by: The following steps are involved: Step 1: Select benchmark modules based on the average output coefficient of distributed photovoltaic modules in the region; Step 2: Construct a wavelet neural network and use the gray wolf algorithm to optimize the weights, scaling factors and translation factor parameters of the wavelet neural network; Step 3: The weights, scaling factors and translation factor parameters of the wavelet neural network optimized in step 2 are used as the initial parameters of the wavelet neural network, and the historical power data and current data of the benchmark photovoltaic modules and the photovoltaic modules to be collected are input as training samples to train the wavelet neural network and obtain a power data virtual collection model based on the GWO-WNN algorithm; Step 4: Input the real-time power data and current data of the benchmark photovoltaic module on the collection day, use the real-time power data of the benchmark photovoltaic module and combine it with the virtual collection model to perform data fitting to realize the virtual collection of the photovoltaic module power data to be collected; The specific steps of step 1 include: Step 1.1: According to the rated capacity of each effective photovoltaic module, calculate the output coefficient of each distributed photovoltaic module under ideal conditions, which is calculated as shown in the following formula: a i =p / C In the formula, α i is the output coefficient of the ith photovoltaic module; p is the current output power of the photovoltaic module; C is the rated capacity of the effective photovoltaic module; Step 1.2: According to the output coefficient of each distributed photovoltaic module calculated in step 1.1, the average output coefficient of the distributed photovoltaic modules in the grid area is calculated as shown in the following formula: In the formula, is the average output coefficient of the photovoltaic modules in the area; N is the number of distributed photovoltaic modules in the grid area; Step 1.3: Compare the output coefficients of all distributed photovoltaic modules in the grid area with the average output coefficient, and select the photovoltaic module with the output coefficient closest to the average output coefficient as the benchmark module in the grid area; the comparison between the output coefficient of each photovoltaic module and the average output coefficient is quantified by the following formula: In the formula, dif i It is the difference between the output coefficient of each power station and the average output coefficient.

2. According to claim 1, a distributed photovoltaic power data virtual collection method based on GWO-WNN is characterized in that: The specific steps of step 2 include: Step 2.1: Initialize the parameters of the gray wolf algorithm; set the size of the gray wolf group N g , number of iterations M, search space dimension D and coefficient vector Step 2.2: Randomly initialize the gray wolf population X i (i=1,2,…,N g ), where each individual gray wolf in the population is the weight, scaling factor, and translation factor parameter value in WNN; Step 2.3: Calculate the objective function value of each search individual in the initial gray wolf population and sort them in ascending order. The objective function is the network error of WNN, which is calculated as follows: Where: y n (k) is the expected output, y(k) is the fitted output value; Step 2.4: Find the locations of the top three individuals in the objective function value, denoted as X α , X β and X δ ; Step 2.5: Determine the moving direction of the gray wolf individual and update the current search individual position as follows: In the formula, Respectively represent the direction vectors between α, β, δ and the other gray wolf search individuals; Respectively, α, β, and δ determine the direction vector of the next move of the remaining gray wolf search individuals; The direction vector representing the next move of the search individual; Step 2.6: Parameters Updated as follows: In the formula, The modulus is a random number between [0, 1]; t represents the current number of iterations; Step 2.7: Calculate the objective function values ​​of all gray wolf search individuals after the update, and re-determine X according to the objective function value α , X β and X δ ; Step 2.8: Determine whether the number of iterations reaches the set value, otherwise go to step 2.5; Step 2.9: Output the global optimal solution, the algorithm ends, and the weights, scaling factors and translation factor parameters in the optimized wavelet neural network are obtained.

3. The distributed photovoltaic power data virtual collection method based on GWO-WNN according to claim 1 is characterized in that: The specific steps of step 3 include: Step 3.1: Input the historical power data and current data of the benchmark photovoltaic module and the photovoltaic module to be collected as training samples to train the wavelet neural network; Step 3.2: Calculate the error between the output value and the expected value, that is, calculate the network error: Where: e is the network error; y n (k) is the expected output, y(k) is the fitted output value; Step 3.3: Error back propagation, modify the wavelet neural network parameters, return to step 3.1, until the error accuracy or the maximum number of training times is reached, end the training, and the current wavelet neural network based on the Grey Wolf algorithm is used as the virtual acquisition model for power data.

Citation Information

Patent Citations

  • Distributed photovoltaic data virtual acquisition method

    CN111898812A

  • Distributed photovoltaic power station power data virtual acquisition method

    CN112052913A