Photovoltaic power station regulation and operation optimization method, device, equipment and medium
Through the photovoltaic power prediction model of empirical mode decomposition, kernel principal component analysis, snow ablation optimization and multi-head self-attention mechanism, the shortcomings in accuracy and real-time performance of existing photovoltaic prediction methods are solved, and a more efficient photovoltaic power station is achieved. Run optimization.
Patent Information
- Application Number
- CN202411056393.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-02
- Publication Date
- 2024-10-08
AI Technical Summary
Existing photovoltaic prediction methods have shortcomings in accuracy and real-time performance, and lack an in-depth understanding of the operating characteristics of the photovoltaic system, which affects the accuracy and reliability of the prediction results. The calculation complexity is high and the calculation speed is slow, which affects the accuracy of the prediction. real-time.
A fusion multi-head self-attention mechanism using empirical mode decomposition, kernel principal component analysis, snow ablation optimization, convolutional neural network and bidirectional gated recurrent unit is used to build a photovoltaic power prediction model. By processing and processing historical and to-be-predicted data sets Stitching, combined with artificial intelligence technology, optimizes predictive models to improve accuracy and efficiency.
It improves the accuracy and efficiency of photovoltaic prediction, reduces the complexity of prediction, enhances the accuracy and real-time nature of meteorological data, can better capture the complex dynamic characteristics of photovoltaic power generation, and improves the reliability and real-time nature of prediction.
Smart Images

Figure CN118748538A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of photovoltaic prediction technology, and in particular to a method, device, equipment and medium for regulating and optimizing operation of a photovoltaic power station. Background Art
[0002] Traditional PV forecasting methods are mainly based on meteorological data and historical data, but these methods have some defects and shortcomings. First, the accuracy and real-time performance of meteorological data are affected by many factors, such as errors in weather forecasts and delays in data collection. Second, historical data can usually only provide short-term trends and cannot accurately predict the potential of future PV power generation. In addition, existing PV forecasting methods usually lack an in-depth understanding and analysis of the operating characteristics of PV systems, which may affect the accuracy and reliability of the forecast results. For example, meteorological data is an important input for PV forecasting, but its accuracy and real-time performance are affected by many factors, errors may lead to deviations in forecast results, and delays in data collection may lead to lags in forecasting. Second, existing PV forecasting methods usually use simple mathematical models or machine learning-based methods, which may not accurately capture the complex dynamic characteristics of PV power generation. In addition, existing algorithms have problems such as high computational complexity and slow calculation speed, which may affect the real-time performance of the forecast.
[0003] It can be seen from the above that how to improve the accuracy and efficiency of photovoltaic prediction and reduce the complexity of photovoltaic prediction is a problem to be solved in this field. Summary of the invention
[0004] In view of this, the purpose of the present invention is to provide a method, device, equipment and medium for regulating and optimizing the operation of a photovoltaic power station, which can improve the accuracy and efficiency of photovoltaic prediction and reduce the complexity of photovoltaic prediction. The specific scheme is as follows:
[0005] In a first aspect, the present application discloses a method for regulating and optimizing operation of a photovoltaic power station, comprising:
[0006] Acquire a historical photovoltaic power generation data set and a historical basic parameter data set of the photovoltaic power station, perform data processing on the historical photovoltaic power generation data set and the historical basic parameter data set to obtain a historical relevant parameter data set, and obtain a relevant parameter data set to be predicted;
[0007] Performing empirical mode decomposition and kernel principal component analysis on the historical relevant parameter data set and the relevant parameter data set to be predicted to obtain a historical kernel principal component data set and a kernel principal component data set to be predicted, and performing data set splicing on the historical kernel principal component data set and the kernel principal component data set to be predicted to obtain a historical spliced data set and a spliced data set to be predicted;
[0008] Constructing a photovoltaic power prediction model integrating a multi-head self-attention mechanism of empirical mode decomposition-kernel principal component analysis-snow melting optimization-convolutional neural network-bidirectional gated recurrent unit, and training the photovoltaic power prediction model to obtain the trained photovoltaic power prediction model;
[0009] Taking the minimum absolute percentage error as the objective function, the historical spliced data set, the historical photovoltaic power generation data set and the spliced data set to be predicted are input into the trained photovoltaic power prediction model to output the photovoltaic power prediction value, and the photovoltaic power prediction value is used to regulate and optimize the operation of the photovoltaic power station.
[0010] Optionally, the step of obtaining a historical photovoltaic power generation data set and a historical basic parameter data set of a photovoltaic power station includes:
[0011] Obtaining the measured time series data of the historical photovoltaic power generation and the corresponding historical basic parameters of the photovoltaic power station; the historical basic parameters include horizontal irradiance, slope irradiance, ambient temperature, component temperature and wind speed;
[0012] A historical photovoltaic power generation data set and a historical basic parameter data set are generated based on the measured time series data of the historical photovoltaic power generation and the historical basic parameter.
[0013] Optionally, the data processing of the historical photovoltaic power generation data set and the historical basic parameter data set to obtain a historical relevant parameter data set, and obtaining a relevant parameter data set to be predicted includes:
[0014] Performing outlier processing and normalization processing on the historical photovoltaic power generation data set and the historical basic parameter data set to obtain the processed historical photovoltaic power generation data set and the historical basic parameter data set;
[0015] Calculating the correlation between the processed historical photovoltaic power data set and the historical basic parameter data set using the Pearson correlation coefficient method, and generating a historical related parameter data set based on the correlation;
[0016] The relevant parameters of the photovoltaic power station in the time period to be predicted are used as a relevant parameter data set to be predicted.
[0017] Optionally, performing empirical mode decomposition and kernel principal component analysis on the historical relevant parameter data set and the relevant parameter data set to be predicted to obtain a historical kernel principal component data set and a kernel principal component data set to be predicted includes:
[0018] Using the empirical mode decomposition method to perform empirical mode decomposition on the historical relevant parameter data set and the relevant parameter data set to be predicted, respectively, to obtain historical eigenmode function components and eigenmode function components to be predicted at different time scales;
[0019] A nonlinear information extension extraction method is used to perform high-dimensional feature space mapping and kernel principal component analysis on the historical intrinsic mode function components and the intrinsic mode function components to be predicted, so as to obtain a historical kernel principal component data set and a kernel principal component data set to be predicted.
[0020] Optionally, the performing data set splicing on the historical kernel principal component data set and the kernel principal component data set to be predicted respectively to obtain a historical spliced data set and a spliced data set to be predicted includes:
[0021] Using a multivariate time series prediction method of a convolutional neural network and a bidirectional gated recurrent unit to perform data set splicing on the historical kernel principal component data set to obtain a historical spliced data set;
[0022] A multivariate time series prediction method based on a convolutional neural network and a bidirectional gated recurrent unit is used to perform data set splicing on the core principal component data set to be predicted, so as to obtain a spliced data set to be predicted.
[0023] Optionally, taking the minimum absolute percentage error as the objective function, inputting the historical spliced data set, the historical photovoltaic power data set and the spliced data set to be predicted into the trained photovoltaic power prediction model to output the photovoltaic power prediction value includes:
[0024] The historical spliced dataset and the historical photovoltaic power generation dataset are taken as basic input parameters, the spliced dataset to be predicted is taken as the prediction input parameter, the minimum absolute percentage error is taken as the objective function and the snow melting optimization algorithm is used to solve the trained photovoltaic power prediction model to output the photovoltaic power prediction value.
[0025] Optionally, the method of solving the trained photovoltaic power prediction model by using the minimum absolute percentage error as the objective function and adopting the snow melting optimization algorithm includes:
[0026] A snow melting optimization algorithm is used to set model optimization parameters; the model optimization parameters include a model optimization learning rate, a convolution kernel size, and a number of neurons;
[0027] The trained photovoltaic power prediction model is solved based on the model optimization parameters and with the minimum absolute percentage error as the objective function.
[0028] In a second aspect, the present application discloses a photovoltaic power station control and operation optimization device, comprising:
[0029] A data set acquisition module is used to acquire a historical photovoltaic power generation data set and a historical basic parameter data set of the photovoltaic power station, perform data processing on the historical photovoltaic power generation data set and the historical basic parameter data set to obtain a historical relevant parameter data set, and obtain a relevant parameter data set to be predicted;
[0030] A data set analysis and splicing module, used for performing empirical mode decomposition and kernel principal component analysis on the historical relevant parameter data set and the relevant parameter data set to be predicted to obtain a historical kernel principal component data set and a kernel principal component data set to be predicted, and performing data set splicing on the historical kernel principal component data set and the kernel principal component data set to be predicted to obtain a historical spliced data set and a spliced data set to be predicted;
[0031] Model building and training module, constructing a photovoltaic power prediction model with a fusion multi-head self-attention mechanism of empirical mode decomposition-kernel principal component analysis-snow melting optimization-convolutional neural network-bidirectional gated recurrent unit in English, and training the photovoltaic power prediction model to obtain the trained photovoltaic power prediction model;
[0032] The photovoltaic power prediction module is used to input the historical spliced data set, the historical photovoltaic power generation data set and the spliced data set to be predicted into the trained photovoltaic power prediction model with the minimum absolute percentage error as the objective function to output the photovoltaic power prediction value, and use the photovoltaic power prediction value to regulate and optimize the operation of the photovoltaic power station.
[0033] In a third aspect, the present application discloses an electronic device, comprising:
[0034] Memory, used to store computer programs;
[0035] The processor is used to execute the computer program to implement the aforementioned photovoltaic power station control and operation optimization method.
[0036] In a fourth aspect, the present application discloses a computer storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the steps of the aforementioned photovoltaic power station regulation and operation optimization method are implemented.
[0037] It can be seen that the present application provides a method for regulating and optimizing operation of a photovoltaic power station, including obtaining a historical photovoltaic power generation data set and a historical basic parameter data set of the photovoltaic power station, performing data processing on the historical photovoltaic power generation data set and the historical basic parameter data set to obtain a historical relevant parameter data set, and obtaining a relevant parameter data set to be predicted; performing empirical mode decomposition and kernel principal component analysis on the historical relevant parameter data set and the relevant parameter data set to be predicted to obtain a historical kernel principal component data set and a kernel principal component data set to be predicted, and performing data set splicing on the historical kernel principal component data set and the kernel principal component data set to be predicted, respectively, to obtain a historical kernel principal component data set and a kernel principal component data set to be predicted. A historical spliced data set and a spliced data set to be predicted are obtained; a photovoltaic power prediction model integrating a multi-head self-attention mechanism of empirical mode decomposition-kernel principal component analysis-snow melting optimization-convolutional neural network-bidirectional gated recurrent unit is constructed, and the photovoltaic power prediction model is trained to obtain the trained photovoltaic power prediction model; taking the minimum absolute percentage error as the objective function, the historical spliced data set, the historical photovoltaic power generation data set and the spliced data set to be predicted are input into the trained photovoltaic power prediction model to output a photovoltaic power prediction value, and the photovoltaic power prediction value is used to regulate and optimize the operation of the photovoltaic power station. The present application can improve the accuracy and real-time performance of meteorological data by processing historical photovoltaic power generation data sets and historical basic parameter data sets. By performing empirical mode decomposition, kernel principal component analysis, and data set splicing on historical relevant parameter data sets and relevant parameter data sets to be predicted, historical spliced data sets and spliced data sets to be predicted are obtained. Combined with artificial intelligence and advanced algorithm models, a photovoltaic power prediction model with a fusion multi-head self-attention mechanism of empirical mode decomposition-kernel principal component analysis-snow melt optimization-convolutional neural network-bidirectional gated recurrent unit is constructed. The minimum absolute percentage error is used as the objective function, and the photovoltaic power prediction value is output, thereby improving the accuracy and efficiency of photovoltaic prediction and reducing the complexity of photovoltaic prediction. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0039] Figure 1 A flow chart of a method for regulating and optimizing operation of a photovoltaic power station disclosed in this application;
[0040] Figure 2 A flow chart of a method for regulating and optimizing operation of a photovoltaic power station disclosed in this application;
[0041] Figure 3 A specific flow chart of the control and operation optimization of a photovoltaic power station disclosed in this application;
[0042] Figure 4 A horizontal irradiance and inclined irradiance diagram of a power station disclosed in this application;
[0043] Figure 5 A diagram of power station ambient temperature, component temperature and wind speed values disclosed in this application;
[0044] Figure 6 A fitness curve diagram disclosed in this application;
[0045] Figure 7 A loss iteration change curve diagram of a hybrid algorithm disclosed in this application;
[0046] Figure 8 A root mean square error iterative change curve diagram disclosed in this application;
[0047] Fig. 9 A comparison chart of predicted values and true values of a test set disclosed in this application;
[0048] Fig.10 A schematic diagram of the structure of a photovoltaic power station control and operation optimization device disclosed in this application;
[0049] Fig.11 A structural diagram of an electronic device provided for this application. DETAILED DESCRIPTION
[0050] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0051] Traditional photovoltaic prediction methods are mainly based on meteorological data and historical data, but these methods have some defects and shortcomings. First, the accuracy and real-time performance of meteorological data are affected by many factors, such as errors in weather forecasts and delays in data collection. Second, historical data can usually only provide short-term trends and cannot accurately predict the potential of future photovoltaic power generation. In addition, existing photovoltaic prediction methods usually lack an in-depth understanding and analysis of the operating characteristics of photovoltaic systems, which may affect the accuracy and reliability of prediction results. For example, meteorological data is an important input for photovoltaic prediction, but its accuracy and real-time performance are affected by many factors, errors may lead to deviations in prediction results, and delays in data collection may lead to lags in prediction. Second, existing photovoltaic prediction methods usually use simple mathematical models or machine learning-based methods, which may not accurately capture the complex dynamic characteristics of photovoltaic power generation. In addition, existing algorithms have problems such as high computational complexity and slow calculation speed, which may affect the real-time performance of predictions. As can be seen from the above, how to improve the accuracy and efficiency of photovoltaic predictions and reduce the complexity of photovoltaic predictions are problems to be solved in this field.
[0052] As the proportion of renewable energy generation in power grids of various countries continues to grow, the access and exit of uncontrollable large-scale photovoltaic power will directly undermine the safe and stable operation of power grids in various countries. In order to assess the power supply gap under the fluctuation of photovoltaic power generation, prepare sufficient frequency-regulated backup power to stabilize the frequency, judge the impact on reactive power balance, arrange the entry and exit time of thermal power plant units, carry out day-ahead and intraday electric energy trading pricing and virtual power plant adjustable load control, the requirements for the accuracy of photovoltaic power generation forecasts are increasing year by year. The prediction model implemented only by data analysis or a single model cannot handle nonlinear data well, the process is complex and the anti-interference ability is poor. At the same time, it is very important to optimize the photovoltaic power generation prediction model to give play to the prediction advantages of multiple models. The photovoltaic power prediction model of this application can feed back the photovoltaic power generation power prediction results to the photovoltaic power station operation management system, the comprehensive energy management and control system, and the power trading system as a decision-making basis for operation and transaction optimization.
[0053] See also Figure 1 As shown, the embodiment of the present invention discloses a method for regulating and optimizing operation of a photovoltaic power station, which may specifically include:
[0054] Step S11: obtaining a historical photovoltaic power generation data set and a historical basic parameter data set of the photovoltaic power station, performing data processing on the historical photovoltaic power generation data set and the historical basic parameter data set to obtain a historical relevant parameter data set, and obtaining a relevant parameter data set to be predicted.
[0055] In this embodiment, the historical photovoltaic power generation power of the photovoltaic power station and the measured time series data of the corresponding historical basic parameters are obtained; the historical basic parameters include horizontal irradiance, slope irradiance, ambient temperature, component temperature and wind speed; based on the historical photovoltaic power generation power and the measured time series data of the historical basic parameters, a historical photovoltaic power generation power data set and a historical basic parameter data set are respectively generated, and outlier processing and normalization processing are performed on the historical photovoltaic power generation power data set and the historical basic parameter data set to obtain the processed historical photovoltaic power generation power data set and the historical basic parameter data set; the Pearson correlation coefficient method is used to calculate the correlation between the processed historical photovoltaic power generation power data set and the historical basic parameter data set, and a historical related parameter data set is generated based on the correlation; the related parameters of the photovoltaic power station for the time period to be predicted are used as the related parameter data set to be predicted.
[0056] Specifically, it is necessary to first obtain the measured time series data of the historical photovoltaic power generation of the photovoltaic power station and the historical basic parameters at the corresponding time, and generate the historical photovoltaic power generation data set and the historical basic parameter data set respectively; wherein, the historical basic parameters include horizontal irradiance, slope irradiance, ambient temperature, component temperature, wind speed, etc. Since there are abnormal values caused by factors such as sensor failure in the above data collected at the power station site, the historical photovoltaic power generation data set and the historical basic parameter data set are judged and processed for abnormal values, and the position of the abnormal value is filled with the average value of the adjacent data of the abnormal value, and the linear function normalization is performed to unify the dimension and order of magnitude of the input data, so as to improve the convergence of the training grid. Secondly, the Pearson correlation coefficient method is used to calculate the correlation between the processed historical photovoltaic power generation data set and the historical basic parameter data set, and a historical basic parameters with large correlation coefficients are selected as the key influencing factors of photovoltaic power generation, and their historical data are composed of historical related parameter data sets, and the related parameters of the photovoltaic power station in the period to be predicted are used as the related parameter data set to be predicted. Among them, the calculation formula of the Pearson correlation coefficient method is as follows:
[0057] ;
[0058] in, is the correlation coefficient between each historical basic parameter and photovoltaic power generation, is the value of the ith sample of each historical basic parameter, is the value of the i-th sample of historical photovoltaic power generation, is the mean of each historical basic parameter, is the mean of historical photovoltaic power generation, and n is the number of samples.
[0059] Step S12: Performing empirical mode decomposition and kernel principal component analysis on the historical relevant parameter data set and the relevant parameter data set to be predicted to obtain a historical kernel principal component data set and a kernel principal component data set to be predicted, and performing data set splicing on the historical kernel principal component data set and the kernel principal component data set to be predicted to obtain a historical spliced data set and a spliced data set to be predicted.
[0060] In this embodiment, an empirical mode decomposition method is used to perform empirical mode decomposition on the historical relevant parameter data set and the relevant parameter data set to be predicted, respectively, to obtain historical intrinsic mode function components and intrinsic mode function components to be predicted at different time scales; a nonlinear information extension extraction method is used to perform high-dimensional feature space mapping and kernel principal component analysis on the historical intrinsic mode function components and the intrinsic mode function components to be predicted, respectively, to obtain a historical kernel principal component data set and a kernel principal component data set to be predicted, a multivariate time series prediction method using a convolutional neural network and a bidirectional gated recurrent unit is used to perform data set splicing on the historical kernel principal component data set to obtain a historical spliced data set, and a multivariate time series prediction method using a convolutional neural network and a bidirectional gated recurrent unit is used to perform data set splicing on the kernel principal component data set to be predicted to obtain a spliced data set to be predicted.
[0061] Specifically, take the empirical mode decomposition of historical relevant parameter data sets as an example: EMD (Empirical Mode Decomposition) is used to decompose the measured time series data of each historical relevant parameter data set, and a certain number of historical IMF components (intrinsic mode function) are obtained from the characteristic time scale of the data. Different historical IMF components represent different characteristic fluctuation sequences, which make the fluctuation characteristics of the original data stand out at different time scales. Through EMD decomposition, while enriching the diversity of input variables, according to the total m historical IMF components of all historical key parameters obtained, the local characteristics of the historical key parameter sequence at different time scales are highlighted, reflecting the volatility, periodicity and trend changes of the original historical key parameter sequence. The EMD decomposition formula is as follows:
[0062] ;
[0063] Among them, X(t) is the time series of the historical relevant parameter data set, are the historical IMFs obtained by EMD decomposition, is the remainder after signal decomposition, and m is the number of decompositions.
[0064] In order to improve the prediction accuracy, efficiency and performance of the model, feature extraction or selection is a very important step in the prediction algorithm, which can fully reduce data redundancy and complexity. Principal component analysis is a method commonly used for feature extraction, but this method can only process variables with linear correlation characteristics. In order to extract nonlinear information from historical IMF components, this application uses KPCA (Kernel Principal Component Analysis, nonlinear information expansion extraction method) to solve the historical IMF components. The basic idea is to project the input space into a high-dimensional feature space through nonlinear mapping, and then perform principal component analysis on the mapped data in the high-dimensional feature space. In order to avoid the "dimensionality disaster" problem, the kernel function is used to replace the inner product operation of the samples in the feature space, which has a strong nonlinear processing ability. The m historical IMF components obtained by the above EMD processing, each component contains n samples, and the training data set is:
[0065] ;
[0066] Among them, the training sample is an n-dimensional column vector , the corresponding nonlinear projection mapping is set to , that is, the kernel function is mapped to the d-dimensional feature space F through nonlinear projection to obtain the matrix , and the centralization condition is satisfied in the feature space F, that is, the following formula is satisfied:
[0067] ;
[0068] The covariance matrix C in the feature space F is as follows:
[0069] ;
[0070] Solving for the eigenvalues of the covariance matrix and the eigenvector v, given by Available, exists , so that ;
[0071] Define the kernel matrix ;
[0072] Solving the above formula , due to the high-dimensional mapping Projection on feature space is the fth core principal component of the m historical IMF components given above, and the formula is as follows:
[0073] .
[0074] This application constructs a photovoltaic power prediction model that integrates EMD-KPCA-SAO-CNN-BIGRU (Empirical Mode Decomposition-Kernel Principal Component Analysis-Snow Ablation Optimizer-Convolutional Neural Networks-Bidirectional Gated Recurrent Unit) with a multi-head self-attention mechanism.
[0075] Convolutional neural network is a feedforward neural network commonly used for time series processing. In this application, the time series is regarded as a two-dimensional image, where the horizontal axis represents time and the vertical axis represents data values. By using a one-dimensional convolution kernel to extract features, CNN can achieve translation invariance and local perception of the data, thereby improving the prediction performance of the model. In addition, through pooling operations, CNN can also reduce the number of features and help alleviate the overfitting problem. The photovoltaic power prediction model proposed in this application represents the f-term kernel principal components of the historical IMF component as Interval Vector Matrix , there are n intervals in total, and the vector dimension of each interval is f. In this application, multiple convolution kernels of different sizes are used for convolution operations to capture the local features of vectors of different length intervals. The width of each convolution kernel is P, that is, the size of the convolution window is , assuming that N convolution kernels of different sizes are used, respectively , for each convolution kernel, the size of the feature map obtained after the convolution operation is .
[0076] For convolution kernels, the convolution operation can be expressed as:
[0077] ;
[0078] in, , is the output feature map of the i-th convolution kernel, , is the weight matrix of the i-th convolution kernel, is the convolution operation, is the interval vector from the i-th to the i+n-1th interval, is the bias term, and ReLU (Rectified Linear Unit) is the nonlinear activation function, which is defined as follows:
[0079] ;
[0080] Among them, is the input value, ReLU (x) is the output value, and the ReLU function maps negative input to 0 and keeps non-negative input unchanged.
[0081] In order to reduce the number of model parameters, reduce computational complexity, and extract key features of input data, the photovoltaic power prediction model of this application uses maximum pooling sampling processing, thereby obtaining the f-term kernel principal component data set of the historical IMF component after CNN processing. The sampling formula of maximum pooling is expressed as:
[0082] ;
[0083] in, is the sub-region of the i-th row and j-th column of the input data, is the element of the pth row and qth column in the sub-region. Since photovoltaic power generation has a strong temporal nature, during the model training process, the data corresponding to time t-1 and the data corresponding to time t+1 will have a greater impact on the prediction result at time t. In order to further improve the accuracy of the power load prediction model of this application, a multivariate time series prediction method of a bidirectional gated recurrent unit is used in the photovoltaic power prediction model to divide the traditional GRU (Gated Recurrent Unit) neurons into forward transmission state and reverse transmission state, which are respectively calculated and realized by forward calculation components and backward calculation components, which correspond to the functions of updating the hidden state according to historical data and updating the state according to future data.
[0084] ;
[0085] ;
[0086] ;
[0087] in, is the forward hidden layer state, is the backward hidden layer state, and are the weights of the two hidden layers, is the bias in the hidden layer corresponding to time t.
[0088] BiGRU is prone to gradient vanishing problems when processing long load sequences. The attention mechanism allows the model to automatically select relevant contextual information based on different parts of the input to better generate each output, and dynamically calculate the attention weights to adapt to different input situations. The self-attention mechanism is an improvement on the traditional attention mechanism. Through parallel calculation, a set of different weights are learned. The scoring function of the self-attention mechanism is as follows:
[0089] ;
[0090] Among them, Q, Y, and B are query vector, key vector, and value vector respectively. is the attention matrix, used to weight B, is the dimension of the query vector and the key vector; the attention weight and the value vector are weighted and summed to get the output of the self-attention mechanism.
[0091] The multi-head self-attention mechanism introduces multiple attention heads, each of which is an independent self-attention mechanism. It can analyze the correlation between historical load sequence nodes and prediction nodes, thereby assigning influence weights, highlighting key influencing factors, avoiding information loss on long time series, and capturing long-term dependencies in load sequences.
[0092] ;
[0093] in, , , is the parameter matrix of the linear mapping, is the vector concatenation operation, , , is the dimension of the query vector, key vector, and value vector.
[0094] Thus, we obtain the f-term kernel principal component dataset of the historical IMF components after BiGRU processing. The same EMD-KPCA-CNN-BiGRU processing is performed on the key dataset to be predicted to obtain the f-term kernel principal component dataset of the IMF components to be predicted after CNN and BiGRU processing.
[0095] Step S13: construct a photovoltaic power prediction model that integrates empirical mode decomposition-kernel principal component analysis-snow melt optimization-convolutional neural network-bidirectional gated recurrent unit and multi-head self-attention mechanism, and train the photovoltaic power prediction model to obtain the trained photovoltaic power prediction model.
[0096] Step S14: Taking the minimum absolute percentage error as the objective function, the historical spliced data set, the historical photovoltaic power generation data set and the spliced data set to be predicted are input into the trained photovoltaic power prediction model to output a photovoltaic power prediction value, and the photovoltaic power prediction value is used to regulate and optimize the operation of the photovoltaic power station.
[0097] In this embodiment, a historical photovoltaic power generation data set and a historical basic parameter data set of a photovoltaic power station are obtained, and data processing is performed on the historical photovoltaic power generation data set and the historical basic parameter data set to obtain a historical related parameter data set, and a related parameter data set to be predicted is obtained; empirical mode decomposition and kernel principal component analysis are performed on the historical related parameter data set and the related parameter data set to be predicted to obtain a historical kernel principal component data set and a kernel principal component data set to be predicted, and data set splicing is performed on the historical kernel principal component data set and the kernel principal component data set to be predicted respectively to obtain a historical spliced data set and a spliced data set to be predicted; a photovoltaic power prediction model with a fusion multi-head self-attention mechanism of empirical mode decomposition-kernel principal component analysis-snow melting optimization-convolutional neural network-bidirectional gated recurrent unit is constructed, and the photovoltaic power prediction model is trained to obtain the trained photovoltaic power prediction model; with the minimum absolute percentage error as the objective function, the historical spliced data set, the historical photovoltaic power generation data set and the spliced data set to be predicted are input into the trained photovoltaic power prediction model to output a photovoltaic power prediction value, and the photovoltaic power prediction value is used to regulate and optimize the operation of the photovoltaic power station. The present application can improve the accuracy and real-time performance of meteorological data by processing historical photovoltaic power generation data sets and historical basic parameter data sets. By performing empirical mode decomposition, kernel principal component analysis, and data set splicing on historical relevant parameter data sets and relevant parameter data sets to be predicted, historical spliced data sets and spliced data sets to be predicted are obtained. Combined with artificial intelligence and advanced algorithm models, a photovoltaic power prediction model with a fusion multi-head self-attention mechanism of empirical mode decomposition-kernel principal component analysis-snow melt optimization-convolutional neural network-bidirectional gated recurrent unit is constructed. The minimum absolute percentage error is used as the objective function, and the photovoltaic power prediction value is output, thereby improving the accuracy and efficiency of photovoltaic prediction and reducing the complexity of photovoltaic prediction.
[0098] See also Figure 2 As shown, the embodiment of the present invention discloses a method for regulating and optimizing operation of a photovoltaic power station, which may specifically include:
[0099] Step S21: obtaining a historical photovoltaic power generation data set and a historical basic parameter data set of the photovoltaic power station, performing data processing on the historical photovoltaic power generation data set and the historical basic parameter data set to obtain a historical relevant parameter data set, and obtaining a relevant parameter data set to be predicted.
[0100] Step S22: Performing empirical mode decomposition and kernel principal component analysis on the historical relevant parameter data set and the relevant parameter data set to be predicted to obtain a historical kernel principal component data set and a kernel principal component data set to be predicted, and performing data set splicing on the historical kernel principal component data set and the kernel principal component data set to be predicted to obtain a historical spliced data set and a spliced data set to be predicted.
[0101] Step S23: construct a photovoltaic power prediction model that integrates the multi-head self-attention mechanism of empirical mode decomposition-kernel principal component analysis-snow melting optimization-convolutional neural network-bidirectional gated recurrent unit, and train the photovoltaic power prediction model to obtain the trained photovoltaic power prediction model.
[0102] Step S24: taking the historical spliced data set and the historical photovoltaic power generation data set as basic input parameters, taking the spliced data set to be predicted as the prediction input parameters, using the snow melting optimization algorithm to set the model optimization parameters, solving the trained photovoltaic power prediction model based on the model optimization parameters and taking the minimum absolute percentage error as the objective function to output the photovoltaic power prediction value, and using the photovoltaic power prediction value to regulate and optimize the operation of the photovoltaic power station; the model optimization parameters include the model optimization learning rate, the convolution kernel size and the number of neurons.
[0103] In this embodiment, the historical spliced data set and the historical photovoltaic power generation data set are used as basic input parameters, the spliced data set to be predicted is used as the prediction input parameter, the minimum absolute percentage error is used as the objective function and the snow melting optimization algorithm is used to solve the trained photovoltaic power prediction model to output the photovoltaic power prediction value.
[0104] Specifically, the kernel principal component data sets of historical key parameters and key parameters to be predicted processed by CNN and BiGRU respectively are spliced into historical key parameter splicing data sets and key parameter splicing data sets to be predicted. The splicing data set of historical key parameters of the target power station and the historical photovoltaic power generation power at the corresponding moment are used as the basic input parameter module, and the splicing data set of the key parameters to be predicted is used as the prediction input parameter module. With the minimum MAPE (Mean Absolute Percentage Error) as the goal, a time series regression prediction algorithm for photovoltaic power generation power in the period to be predicted with multi-variable feature input and single sequence variable output is realized.
[0105] In the population initialization stage of SAO, the entire basic input parameter module is modeled as an initial particle matrix Z with N rows and dim columns, where N is the size of the population and dim is the dimension of the solution space.
[0106] ;
[0107] Among them, U is the upper bound of the parameter space to be predicted, and L is the lower bound of the parameter space to be predicted. To randomly generate [0, 1] numbers.
[0108] Standard Brownian motion is used to simulate the highly dispersed characteristics of the search process data. The step size is obtained by the probability density function based on the normal distribution with a mean of zero and a variance of 1. The formula is as follows:
[0109] ;
[0110] The position during the search is calculated as follows:
[0111] ;
[0112] in, is the i-th individual during the i-th iteration, A vector of random numbers generated by a Gaussian distribution for standard Brownian motion, is the convolution operation, Randomly generate [0, 1] numbers, G(t) is the current optimal solution individual, Elite(t) is the set of random individuals in the elite group, is the center of mass position of all individuals, and the corresponding formula is as follows:
[0113] ;
[0114] ;
[0115] in, and Respectively represent the second and third best individuals in the current individuals, is the centroid position of the leader individuals with the top 50% fitness values.
[0116] ;
[0117] in, is the number of leaders, which is half of the number of individuals, is the i-th optimal leader; therefore, in each iteration, Elite (t) is randomly selected from the set of the current optimal solution, the second-best individual, the third-best individual, and the centroid position of the leader, and the parameter Responsible for controlling the movement of the center of mass position of the current optimal individual and leader.
[0118] Photovoltaic output forecast is a continuous variable result forecast. In order to evaluate the accuracy of the forecast model, the model accuracy is evaluated by comparing the error between the quantitative forecast value and the actual value. This application selects RMSE (Root Mean Square Error), MAE (Mean Absolute Error), MAPE (Mean Absolute Percentage Error) and Goodness of Fit to evaluate this task. Among them, the goodness of fit indicates the proportion of the variation of the dependent variable explained by the model. Its value range is usually between 0 and 1. The closer it is to 1, the better the model fits the data.
[0119] ;
[0120] ;
[0121] ;
[0122] ;
[0123] in, is the actual value, is the predicted value, and N is the number of predicted values.
[0124] The specific process of this application is as follows Figure 3 As shown, the steps are as follows:
[0125] Step 1: Perform outlier processing and normalization processing on the historical photovoltaic power generation data set and the historical basic parameter data set, and obtain the relevant parameter data set to be predicted;
[0126] Step 2: Calculate the correlation between the processed historical photovoltaic power generation data set and the historical basic parameter data set based on the Pearson correlation coefficient analysis method;
[0127] Step 3: Based on the Empirical Mode Decomposition (EMD) method, the historical relevant parameter data set and the relevant parameter data set to be predicted are subjected to empirical mode decomposition to obtain historical intrinsic mode function components and intrinsic mode function components to be predicted at different time scales;
[0128] Step 4: reducing the dimension of the training set data based on the kernel principal component analysis (KPCA) feature extraction method, retaining the historical kernel principal component data set of contribution values and the kernel principal component data set to be predicted;
[0129] Step 5: Processing multi-channel inputs of multivariate time series based on the Convolutional Neural Network (CNN), and capturing long-range dependencies in the sequence based on the Bi-directional gated circulation unit (BiGRU);
[0130] Step 6: Based on the Multihead Self-Attention (MSA) mechanism, the model can more flexibly weight the input information at different time steps;
[0131] Step 7: Based on the above-constructed photovoltaic power prediction model with a fusion of multi-head self-attention mechanism of empirical mode decomposition-kernel principal component analysis-snow ablation optimization-convolutional neural network-bidirectional gated recurrent unit, the snow ablation optimization algorithm (SAO) is used to set the model to optimize key parameters such as learning rate, convolution kernel size, and number of neurons. With the minimum MAPE as the goal, multi-variable feature input is realized to solve the photovoltaic power prediction value.
[0132] The short-term photovoltaic power prediction method proposed in this patent, which integrates the EMD-KPCA-SAO-CNN-BIGRU multi-head self-attention mechanism, mainly consists of two parts: data processing and model training. The data set contains meteorological data such as horizontal irradiance, slope irradiance, ambient temperature, component temperature, wind speed, etc. Data processing includes filling and replacing missing values and outliers, dividing the data set, and normalizing each variable. Model training includes determining network parameters and predicting output of the prediction set through training sets and validation sets.
[0133] A photovoltaic power station is taken as the research object. The installed capacity of the power station is 1.08MW. The data collection timeline is from April 1, 2024 to April 24, 2024. The collection time is from 5:00 in the morning to 20:30 in the evening, and the time interval is 30 minutes. The data from April 1 to April 22 are used as the feature values of the training set data input, and the data from April 2 to April 23 are the actual values of the training data output. The data on April 23 is used as the feature value of the test set input, and the data on April 24 is used as the actual value of the test set output. Among them, the horizontal irradiance and slope irradiance of the power station are as follows Figure 4 As shown, the power station ambient temperature, component temperature and wind speed values are as follows Figure 5As shown in the figure, the model sets the maximum number of model training times to 100, the number of individuals for a single search to 4, the number of samples for each training to 16, the maximum number of iterations to 10, the initial learning rate to 0.01, the lower limit of the learning rate to 0.001, the upper and lower limits of the convolution kernel optimization to 5 and 2 respectively, the upper and lower limits of the number of neurons to 60 and 50 respectively, the hyperparameters to be optimized are the best prediction value, the best network and the best training curve, and the optimization is performed with MAPE as the objective function. It is an issue that needs to be considered to choose how long the past data is as input information to predict future loads. If the prediction step size is too small, the key information that affects the prediction value may be ignored. If it is too large, it may cause dimensional disaster or information mixing to affect the prediction accuracy. The correlation between the historical value of the influencing factor and the current load value is judged by the Pearson correlation coefficient, and 32 is determined to be selected as the prediction step size.
[0134] This application randomly cross-validates the samples for training and test sets, and the error indicators are shown in Table 1:
[0135] Table 1
[0136]
[0137] After calculation, the absolute percentage error of the method proposed in this embodiment is 16.4%. The prediction accuracy of the method in this embodiment is higher than that of other neural network prediction methods, and it can effectively capture the periodic characteristics of photovoltaics and predict photovoltaic output. Secondly, the root mean square error RMSE is used as the model evaluation indicator, and the RMSE value of the hybrid prediction method before and after 100 trainings is shown. Among them, the fitness curve of the optimization algorithm EMD-KPCA-SAO-CNN-BiGRU-Attention is shown in Figure 6 As shown, the loss iteration curve of the hybrid algorithm is as follows Figure 7 As shown, the RMSE iteration change curve is as follows Figure 8 As shown, the comparison between the predicted value of the test set and the true value is Fig. 9 As shown. This application analyzes data correlation based on the Pearson correlation coefficient, decomposes the multidimensional environmental factors that restrict photovoltaic output power according to the empirical mode decomposition method, uses the kernel principal component analysis method to extract features from the data, and reduces the dimension of the training set; optimizes hyperparameters based on the SAO optimization model. The multivariate feature sequence is dynamically modeled through the SAO-CNN-BIGRU fusion multi-head self-attention mechanism to achieve the prediction of photovoltaic power generation. The 24-day measured data of the above-mentioned power station was used to verify the short-term power station output prediction. The experimental results show that the prediction model has higher accuracy than the traditional photovoltaic power prediction method.
[0138] This application uses more accurate meteorological data collection and transmission technology to improve the accuracy and real-time nature of meteorological data, and processes the collected data. It uses more advanced algorithms and models, and uses hybrid algorithms to better capture the complex dynamic characteristics of photovoltaic power generation, regression analysis based on historical data, and optimization algorithms based on artificial intelligence to improve the accuracy and reliability of predictions.
[0139] In this embodiment, a historical photovoltaic power generation data set and a historical basic parameter data set of a photovoltaic power station are obtained, and data processing is performed on the historical photovoltaic power generation data set and the historical basic parameter data set to obtain a historical related parameter data set, and a related parameter data set to be predicted is obtained; empirical mode decomposition and kernel principal component analysis are performed on the historical related parameter data set and the related parameter data set to be predicted to obtain a historical kernel principal component data set and a kernel principal component data set to be predicted, and data set splicing is performed on the historical kernel principal component data set and the kernel principal component data set to be predicted respectively to obtain a historical spliced data set and a spliced data set to be predicted; a photovoltaic power prediction model with a fusion multi-head self-attention mechanism of empirical mode decomposition-kernel principal component analysis-snow melting optimization-convolutional neural network-bidirectional gated recurrent unit is constructed, and the photovoltaic power prediction model is trained to obtain the trained photovoltaic power prediction model; with the minimum absolute percentage error as the objective function, the historical spliced data set, the historical photovoltaic power generation data set and the spliced data set to be predicted are input into the trained photovoltaic power prediction model to output a photovoltaic power prediction value, and the photovoltaic power prediction value is used to regulate and optimize the operation of the photovoltaic power station. The present application can improve the accuracy and real-time performance of meteorological data by processing historical photovoltaic power generation data sets and historical basic parameter data sets. By performing empirical mode decomposition, kernel principal component analysis, and data set splicing on historical relevant parameter data sets and relevant parameter data sets to be predicted, historical spliced data sets and spliced data sets to be predicted are obtained. Combined with artificial intelligence and advanced algorithm models, a photovoltaic power prediction model with a fusion multi-head self-attention mechanism of empirical mode decomposition-kernel principal component analysis-snow melt optimization-convolutional neural network-bidirectional gated recurrent unit is constructed. The minimum absolute percentage error is used as the objective function, and the photovoltaic power prediction value is output, thereby improving the accuracy and efficiency of photovoltaic prediction and reducing the complexity of photovoltaic prediction.
[0140] See also Fig.10 As shown, the embodiment of the present invention discloses a control and operation optimization device for a photovoltaic power station, which may specifically include:
[0141] The data set acquisition module 11 is used to acquire a historical photovoltaic power generation data set and a historical basic parameter data set of the photovoltaic power station, perform data processing on the historical photovoltaic power generation data set and the historical basic parameter data set to obtain a historical relevant parameter data set, and obtain a relevant parameter data set to be predicted;
[0142] The data set analysis and splicing module 12 is used to perform empirical mode decomposition and kernel principal component analysis on the historical relevant parameter data set and the relevant parameter data set to be predicted to obtain a historical kernel principal component data set and a kernel principal component data set to be predicted, and to perform data set splicing on the historical kernel principal component data set and the kernel principal component data set to be predicted to obtain a historical spliced data set and a spliced data set to be predicted;
[0143] Model building and training module 13, constructing a photovoltaic power prediction model with a fusion multi-head self-attention mechanism of empirical mode decomposition-kernel principal component analysis-snow melting optimization-convolutional neural network-bidirectional gated recurrent unit in English, and training the photovoltaic power prediction model to obtain the trained photovoltaic power prediction model;
[0144] The photovoltaic power prediction module 14 is used to input the historical spliced data set, the historical photovoltaic power generation data set and the spliced data set to be predicted into the trained photovoltaic power prediction model with the minimum absolute percentage error as the objective function to output the photovoltaic power prediction value, and use the photovoltaic power prediction value to regulate and optimize the operation of the photovoltaic power station.
[0145] In this embodiment, a historical photovoltaic power generation data set and a historical basic parameter data set of a photovoltaic power station are obtained, and data processing is performed on the historical photovoltaic power generation data set and the historical basic parameter data set to obtain a historical related parameter data set, and a related parameter data set to be predicted is obtained; empirical mode decomposition and kernel principal component analysis are performed on the historical related parameter data set and the related parameter data set to be predicted to obtain a historical kernel principal component data set and a kernel principal component data set to be predicted, and data set splicing is performed on the historical kernel principal component data set and the kernel principal component data set to be predicted respectively to obtain a historical spliced data set and a spliced data set to be predicted; a photovoltaic power prediction model with a fusion multi-head self-attention mechanism of empirical mode decomposition-kernel principal component analysis-snow melting optimization-convolutional neural network-bidirectional gated recurrent unit is constructed, and the photovoltaic power prediction model is trained to obtain the trained photovoltaic power prediction model; with the minimum absolute percentage error as the objective function, the historical spliced data set, the historical photovoltaic power generation data set and the spliced data set to be predicted are input into the trained photovoltaic power prediction model to output a photovoltaic power prediction value, and the photovoltaic power prediction value is used to regulate and optimize the operation of the photovoltaic power station. The present application can improve the accuracy and real-time performance of meteorological data by processing historical photovoltaic power generation data sets and historical basic parameter data sets. By performing empirical mode decomposition, kernel principal component analysis, and data set splicing on historical relevant parameter data sets and relevant parameter data sets to be predicted, historical spliced data sets and spliced data sets to be predicted are obtained. Combined with artificial intelligence and advanced algorithm models, a photovoltaic power prediction model with a fusion multi-head self-attention mechanism of empirical mode decomposition-kernel principal component analysis-snow melt optimization-convolutional neural network-bidirectional gated recurrent unit is constructed. The minimum absolute percentage error is used as the objective function, and the photovoltaic power prediction value is output, thereby improving the accuracy and efficiency of photovoltaic prediction and reducing the complexity of photovoltaic prediction.
[0146] In some specific embodiments, the data set acquisition module 11 may specifically include:
[0147] A data acquisition module is used to obtain the measured time series data of the historical photovoltaic power generation power of the photovoltaic power station and the corresponding historical basic parameters; the historical basic parameters include horizontal irradiance, slope irradiance, ambient temperature, component temperature and wind speed;
[0148] The data set generation module is used to generate a historical photovoltaic power generation data set and a historical basic parameter data set based on the measured time series data of the historical photovoltaic power generation and the historical basic parameters.
[0149] In some specific embodiments, the data set acquisition module 11 may specifically include:
[0150] A processing module, used for performing outlier processing and normalization processing on the historical photovoltaic power generation data set and the historical basic parameter data set to obtain the processed historical photovoltaic power generation data set and the historical basic parameter data set;
[0151] A correlation calculation module, used for calculating the correlation between the processed historical photovoltaic power generation data set and the historical basic parameter data set by using the Pearson correlation coefficient method, and generating a historical related parameter data set based on the correlation;
[0152] The module for determining a data set of relevant parameters to be predicted is used to use the relevant parameters of the photovoltaic power station in the time period to be predicted as the data set of relevant parameters to be predicted.
[0153] In some specific embodiments, the data set analysis and splicing module 12 may specifically include:
[0154] An empirical mode decomposition module, used to perform empirical mode decomposition on the historical relevant parameter data set and the relevant parameter data set to be predicted respectively by using an empirical mode decomposition method, so as to obtain historical eigenmode function components and eigenmode function components to be predicted at different time scales;
[0155] The mapping and analysis module is used to use a nonlinear information expansion extraction method to perform high-dimensional feature space mapping and kernel principal component analysis on the historical eigenmode function components and the eigenmode function components to be predicted, so as to obtain a historical kernel principal component data set and a kernel principal component data set to be predicted.
[0156] In some specific embodiments, the data set analysis and splicing module 12 may specifically include:
[0157] A historical data set splicing module is used to perform data set splicing on the historical kernel principal component data set by using a multivariate time series prediction method of a convolutional neural network and a bidirectional gated recurrent unit to obtain a historical spliced data set;
[0158] The module for splicing data sets to be predicted is used to perform data set splicing on the core principal component data sets to be predicted by using a multivariate time series prediction method of a convolutional neural network and a bidirectional gated recurrent unit to obtain a spliced data set to be predicted.
[0159] In some specific embodiments, the photovoltaic power prediction module 14 may specifically include:
[0160] The prediction value output module is used to take the historical spliced data set and the historical photovoltaic power generation data set as basic input parameters, the spliced data set to be predicted as the prediction input parameter, take the minimum absolute percentage error as the objective function and use the snow melting optimization algorithm to solve the trained photovoltaic power prediction model to output the photovoltaic power prediction value.
[0161] In some specific embodiments, the photovoltaic power prediction module 14 may specifically include:
[0162] A parameter setting module, used to set model optimization parameters using a snow melting optimization algorithm; the model optimization parameters include a model optimization learning rate, a convolution kernel size, and a number of neurons;
[0163] A solution module is used to solve the trained photovoltaic power prediction model based on the model optimization parameters and with the minimum absolute percentage error as the objective function.
[0164] Fig.11 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the photovoltaic power station control and operation optimization method performed by the electronic device disclosed in any of the aforementioned embodiments.
[0165] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.
[0166] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon include an operating system 221, a computer program 222 and data 223, etc. The storage method can be temporary storage or permanent storage.
[0167] Among them, the operating system 221 is used to manage and control the hardware devices and computer programs 222 on the electronic device 20, so as to realize the operation and processing of the data 223 in the memory 22 by the processor 21, which can be Windows, Unix, Linux, etc. In addition to including computer programs that can be used to complete the photovoltaic power station control and operation optimization method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can also further include computer programs that can be used to complete other specific tasks. In addition to data transmitted from external devices received by the photovoltaic power station control and operation optimization device, the data 223 can also include data collected by its own input and output interface 25, etc.
[0168] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0169] Furthermore, an embodiment of the present application also discloses a computer-readable storage medium, in which a computer program is stored. When the computer program is loaded and executed by a processor, the steps of the photovoltaic power station regulation and operation optimization method disclosed in any of the aforementioned embodiments are implemented.
[0170] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0171] The above is a detailed introduction to the control and operation optimization method, device, equipment and storage medium of a photovoltaic power station provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in the field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A method for regulating and optimizing operation of a photovoltaic power station, characterized in that: include: Acquire a historical photovoltaic power generation data set and a historical basic parameter data set of the photovoltaic power station, perform data processing on the historical photovoltaic power generation data set and the historical basic parameter data set to obtain a historical relevant parameter data set, and obtain a relevant parameter data set to be predicted; Performing empirical mode decomposition and kernel principal component analysis on the historical relevant parameter data set and the relevant parameter data set to be predicted to obtain a historical kernel principal component data set and a kernel principal component data set to be predicted, and performing data set splicing on the historical kernel principal component data set and the kernel principal component data set to be predicted to obtain a historical spliced data set and a spliced data set to be predicted; Constructing a photovoltaic power prediction model integrating a multi-head self-attention mechanism of empirical mode decomposition-kernel principal component analysis-snow melting optimization-convolutional neural network-bidirectional gated recurrent unit, and training the photovoltaic power prediction model to obtain the trained photovoltaic power prediction model; Taking the minimum absolute percentage error as the objective function, the historical spliced data set, the historical photovoltaic power generation data set and the spliced data set to be predicted are input into the trained photovoltaic power prediction model to output the photovoltaic power prediction value, and the photovoltaic power prediction value is used to regulate and optimize the operation of the photovoltaic power station.
2. The photovoltaic power station control and operation optimization method according to claim 1, characterized in that: The step of obtaining a historical photovoltaic power generation data set and a historical basic parameter data set of a photovoltaic power station includes: Obtaining the measured time series data of the historical photovoltaic power generation and the corresponding historical basic parameters of the photovoltaic power station; the historical basic parameters include horizontal irradiance, slope irradiance, ambient temperature, component temperature and wind speed; A historical photovoltaic power generation data set and a historical basic parameter data set are generated based on the measured time series data of the historical photovoltaic power generation and the historical basic parameter.
3. The photovoltaic power station control and operation optimization method according to claim 1, characterized in that: The data processing of the historical photovoltaic power generation data set and the historical basic parameter data set to obtain the historical relevant parameter data set and to obtain the relevant parameter data set to be predicted includes: Performing outlier processing and normalization processing on the historical photovoltaic power generation data set and the historical basic parameter data set to obtain the processed historical photovoltaic power generation data set and the historical basic parameter data set; Calculating the correlation between the processed historical photovoltaic power data set and the historical basic parameter data set using the Pearson correlation coefficient method, and generating a historical related parameter data set based on the correlation; The relevant parameters of the photovoltaic power station in the time period to be predicted are used as a relevant parameter data set to be predicted.
4. The photovoltaic power station control and operation optimization method according to claim 1, characterized in that: The performing empirical mode decomposition and kernel principal component analysis on the historical relevant parameter data set and the relevant parameter data set to be predicted to obtain a historical kernel principal component data set and a kernel principal component data set to be predicted includes: Using the empirical mode decomposition method to perform empirical mode decomposition on the historical relevant parameter data set and the relevant parameter data set to be predicted, respectively, to obtain historical eigenmode function components and eigenmode function components to be predicted at different time scales; A nonlinear information extension extraction method is used to perform high-dimensional feature space mapping and kernel principal component analysis on the historical intrinsic mode function components and the intrinsic mode function components to be predicted, so as to obtain a historical kernel principal component data set and a kernel principal component data set to be predicted.
5. The photovoltaic power station control and operation optimization method according to claim 1, characterized in that: The step of respectively performing data set splicing on the historical core principal component data set and the to-be-predicted core principal component data set to obtain a historical spliced data set and a to-be-predicted spliced data set includes: Using a multivariate time series prediction method of a convolutional neural network and a bidirectional gated recurrent unit to perform data set splicing on the historical kernel principal component data set to obtain a historical spliced data set; A multivariate time series prediction method based on a convolutional neural network and a bidirectional gated recurrent unit is used to perform data set splicing on the core principal component data set to be predicted, so as to obtain a spliced data set to be predicted.
6. The photovoltaic power station control and operation optimization method according to any one of claims 1 to 5, characterized in that: The method takes the minimum absolute percentage error as the objective function, inputs the historical spliced data set, the historical photovoltaic power data set and the spliced data set to be predicted into the trained photovoltaic power prediction model to output the photovoltaic power prediction value, including: The historical spliced dataset and the historical photovoltaic power generation dataset are taken as basic input parameters, the spliced dataset to be predicted is taken as the prediction input parameter, the minimum absolute percentage error is taken as the objective function and the snow melting optimization algorithm is used to solve the trained photovoltaic power prediction model to output the photovoltaic power prediction value.
7. The photovoltaic power station control and operation optimization method according to claim 6, characterized in that: The method of solving the trained photovoltaic power prediction model by using the snow melting optimization algorithm with the minimum absolute percentage error as the objective function includes: A snow melting optimization algorithm is used to set model optimization parameters; the model optimization parameters include a model optimization learning rate, a convolution kernel size, and a number of neurons; The trained photovoltaic power prediction model is solved based on the model optimization parameters and with the minimum absolute percentage error as the objective function.
8. A photovoltaic power station control and operation optimization device, characterized in that: include: A data set acquisition module is used to acquire a historical photovoltaic power generation data set and a historical basic parameter data set of the photovoltaic power station, perform data processing on the historical photovoltaic power generation data set and the historical basic parameter data set to obtain a historical relevant parameter data set, and obtain a relevant parameter data set to be predicted; A data set analysis and splicing module, used for performing empirical mode decomposition and kernel principal component analysis on the historical relevant parameter data set and the relevant parameter data set to be predicted to obtain a historical kernel principal component data set and a kernel principal component data set to be predicted, and performing data set splicing on the historical kernel principal component data set and the kernel principal component data set to be predicted to obtain a historical spliced data set and a spliced data set to be predicted; Model building and training module, constructing a photovoltaic power prediction model with a fusion multi-head self-attention mechanism of empirical mode decomposition-kernel principal component analysis-snow melting optimization-convolutional neural network-bidirectional gated recurrent unit in English, and training the photovoltaic power prediction model to obtain the trained photovoltaic power prediction model; The photovoltaic power prediction module is used to input the historical spliced data set, the historical photovoltaic power generation data set and the spliced data set to be predicted into the trained photovoltaic power prediction model with the minimum absolute percentage error as the objective function to output the photovoltaic power prediction value, and use the photovoltaic power prediction value to regulate and optimize the operation of the photovoltaic power station.
9. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the photovoltaic power station control and operation optimization method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: Used to store computer programs; wherein, when the computer program is executed by a processor, the photovoltaic power station control and operation optimization method according to any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Photovoltaic power prediction method and device based on multi-source meteorological data and multi-model integration, and storage medium
CN119066409A
Distributed photovoltaic power prediction method, device and system, and storage medium
CN119543100A
Photovoltaic power prediction method, device and equipment
CN120974456A
A method, apparatus and device for photovoltaic power prediction
CN120974456B
Wind power gear box intelligent fault early warning method and system based on machine learning
CN120998009A
