Photovoltaic power forecasting method based on similar day selection and classification time-sharing error correction
By conducting Euclidean distance analysis and characteristic meteorological data statistics on photovoltaic active power data, training similar day models and classifying time-sharing error corrections, the problem of insufficient similar day selection and error correction in existing photovoltaic power predictions is solved, and the prediction accuracy is improved. and stability.
Patent Information
- Application Number
- CN202111038647.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-06
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2041-09-06
AI Technical Summary
Existing photovoltaic power prediction methods ignore the similarity of target data when selecting similar days, resulting in insufficient prediction accuracy, especially for highly volatile data, and it is difficult for existing algorithms to effectively correct time point errors on different similar days. .
By conducting Euclidean distance analysis on photovoltaic active power data, similar days are divided, and statistical analysis is performed based on characteristic meteorological data to train different types of models, classify time-sharing error corrections, and improve prediction accuracy.
A more accurate prediction of photovoltaic power is achieved, the short-term power prediction error is reduced, and the prediction accuracy of the model is improved, especially in data processing with high volatility.
Smart Images

Figure CN113961614B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of power system operation and control, and relates to a photovoltaic power prediction method based on similar day selection and classification time-sharing error correction. Background Art
[0002] The rapid economic development and the swift growth of population have led to a gradual increase in people's demand for energy. However, the currently widely used non-renewable energy is becoming increasingly exhausted, and the energy shortage is becoming increasingly serious. This has made clean energy such as solar energy and wind energy attract much attention worldwide in recent years and has been widely developed and applied.
[0003] Because the weather is highly uncertain, photovoltaic power is highly unstable. With the installation and operation of large-scale photovoltaic power, the highly uncertain photovoltaic output power will make the operation of the power grid unsafe. A more accurate prediction of photovoltaic power can effectively improve the stable operation of the power system while reducing the economic losses caused by curtailment of photovoltaic power and power rationing.
[0004] At present, the research on photovoltaic power prediction is becoming more and more extensive at home and abroad, and many methods for predicting photovoltaic power have been produced, including: simple continuous method prediction, advanced machine learning and neural network methods, etc. In addition to improving the prediction algorithm, in order to improve the prediction accuracy, researchers also improve the prediction accuracy by selecting similar days for group prediction. However, in the similar day selection methods currently used, most of them are obtained by analyzing the similarity of numerical weather forecast data to obtain the grouping of similar days. This method has certain rationality, but ignores the similarity of the target data (active power), resulting in room for improvement in prediction accuracy; at the same time, the existing various prediction algorithms are generally high in prediction accuracy for data with gentle changes, and low in prediction accuracy for data with strong volatility. Therefore, it is necessary to classify and time-share error analysis of the data predicted by different similar days, obtain the error distribution law of different time points of different groups of similar days, and then classify and time-share correction the prediction power realization error, so as to improve the power prediction accuracy. Summary of the invention
[0005] In order to overcome the deficiencies of the above-mentioned prior art, the present invention provides a photovoltaic power prediction method based on similar day selection and classification time-sharing error correction. The method uses photovoltaic active power data to classify similar days, performs statistical analysis on the numerical weather forecast data of various similar days, obtains the statistical characteristics of the intra-day and inter-day numerical weather forecast data of each similar day, performs separate training on various similar days, obtains different training models and prediction errors of each group of similar days at different time points, obtains the similar day type corresponding to the new numerical weather forecast according to the statistical characteristics of various similar days, selects the corresponding training model for training, obtains preliminary prediction data, and then performs preliminary prediction value time-sharing classification error correction according to the prediction error distribution of this type at different time points, thereby obtaining the final prediction value.
[0006] The purpose of the present invention is to provide a photovoltaic power prediction method based on similar day selection and classification time-sharing error correction, thereby reducing the short-term power prediction error of the photovoltaic electric field.
[0007] In order to achieve the above purpose, the technical solution adopted by the present invention is:
[0008] A photovoltaic power prediction method based on similar day selection and classification time-sharing error correction includes the following steps:
[0009] A. Group the historical characteristic meteorological data of the photovoltaic field by day to obtain the daily characteristic meteorological data;
[0010] The historical active power series is grouped by day to obtain daily active power data;
[0011] B. Calculate the Euclidean distance between any two days of active power data and obtain the range of all Euclidean distance values;
[0012] The uncertainty threshold division method based on Euclidean distance is used to complete the preliminary segmentation of the range of Euclidean distance values, and the preliminary classification of similar days based on the similarity of active power data is achieved;
[0013] Then, under the preliminary classification of similar days, the total distance correlation coefficient was calculated;
[0014] Change the number of segments and take the similar day classification corresponding to the total distance correlation coefficient as the final similar day classification;
[0015] C. Statistically analyze the characteristic meteorological data of various similar days to obtain the intra-day data characteristics and inter-day data characteristics of the characteristic meteorological data of various similar days;
[0016] D. Take the characteristic meteorological data and corresponding active power data of various similar days as similar day training samples; perform separate training and prediction on the characteristic meteorological data and corresponding active power data of various similar days; obtain the prediction error of each type of similar day training sample at different time points, and realize the classification and time-sharing statistics of similar day training errors;
[0017] E. After obtaining the characteristic meteorological data of a new day, statistical analysis is performed on the characteristic meteorological data, and the difference degree is compared and analyzed with the intra-day data characteristics and inter-day data characteristics of the characteristic meteorological data of various similar days obtained in step C, and the similar days are classified into categories. The corresponding training model of the corresponding classification is used to realize the preliminary power prediction;
[0018] F. According to the statistical results of the time-sharing errors in each similar day, the time-sharing errors of the corresponding similar day predictions are corrected to obtain the final active power prediction value.
[0019] On the basis of the above technical solution, the data frequency of the historical characteristic meteorological data and historical active power sequence of the photovoltaic electric field in step A is 15 minutes, and 96 sets of characteristic meteorological data and active power data are obtained 24 hours a day.
[0020] Based on the above technical solution, the daily characteristic meteorological data in step A is as shown in formula (1):
[0021]
[0022] Among them, NWF i Represents: 96 sets of characteristic meteorological data for the i-th day, DB ij Represents: shortwave radiation dataset at the jth time point on the i-th day, QR ij Represents: latent heat flux dataset at the jth time point on the i-th day, GR ij Represents: the sensible heat flux dataset at the jth time point on the i-th day, CB ij Represents: the longwave radiation dataset at the jth time point on the i-th day;
[0023] The daily active power data in step A is shown in formula (2):
[0024]
[0025] Among them, P i Represents: 96 active power data of the i-th day, P ij Represents the active power data at the jth time point on the i-th day.
[0026] On the basis of the above technical solution, the specific steps of obtaining the Euclidean distance between any two days of active power data in step B are as follows:
[0027] According to the active power data, the Euclidean distance formula is calculated as shown in formula (3):
[0028]
[0029] Among them, P mj represents the active power data at the jth time point on the mth day, P nj represents the active power data at the jth time point on the nth day, d(P mj ,P nj ) represents: the Euclidean distance calculated using the active power data of any two days;
[0030] After obtaining the Euclidean distance of active power data for any two days, it is found that the range of all Euclidean distance values is between [0, s];
[0031] The specific steps of completing the preliminary segmentation of the Euclidean distance set by using the uncertainty threshold partitioning method based on the Euclidean distance in step B are as follows:
[0032] First, calculate the threshold value dd k , as shown in formula (4),
[0033]
[0034] Where k represents: the number of similar day classifications;
[0035] Secondly, the Euclidean distance range of each similar day classification basis is calculated, as shown in formula (5):
[0036]
[0037] Set the Euclidean distance between [0,d1], [d1,d2], [d2,d3], ..., [d k-1 ,s] are classified into different types of similar days, where d1 = dd k s,d2=2dd k s,d3=3dd k s,……,d k-1 =(k-1)dd k s;
[0038] When k takes a certain value, the distance correlation coefficient dcor(NWF m ,NWF n ), as shown in formula (6), and calculate the mean value of the distance correlation coefficient of each type of similar day characteristic meteorological data dcor μ , as shown in formula (7),
[0039]
[0040]
[0041] Among them, DB mj Represents: shortwave radiation dataset at the jth time point on the mth day, DB nj Represents: shortwave radiation dataset at the jth time point on the nth day, QR mj Represents: latent heat flux dataset at the jth time point on the mth day, QR nj Represents: latent heat flux dataset at the jth time point on the nth day, GR mj Represents: the sensible heat flux dataset at the jth time point on the mth day, GR nj Represents: the sensible heat flux dataset at the jth time point on the nth day, CB mj Represents: longwave radiation dataset at the jth time point on the mth day; CB nj Represents: the longwave radiation dataset at the jth time point on the nth day; M represents the total number of days included in this type of similar days;
[0042] Finally, calculate the dcor corresponding to all similar days μ , and then calculate all dcor under the current category μ The average dcor μμ , as the total distance correlation coefficient;
[0043] Change the value of k and calculate dcor again μμ ; The décor μμ The value of k corresponding to the minimum is taken as the final number of similar day classifications.
[0044] Based on the above technical solution, the value range of k is [4,10].
[0045] On the basis of the above technical solution, when the Euclidean distance between a certain active power data and two other active power data are respectively within the distance ranges of two types of similar days, the active power data is simultaneously classified into the two types of similar days.
[0046] On the basis of the above technical scheme, the intra-day data characteristics of similar days described in step C include: the variation range of shortwave radiation values in similar days, the average value of shortwave radiation values in similar days, the variation trend of shortwave radiation values in similar days, the variation range of latent heat flux values in similar days, the average value of latent heat flux values in similar days, the variation trend of latent heat flux values in similar days, the variation range of sensible heat flux values in similar days, the average value of sensible heat flux values in similar days, the variation trend of sensible heat flux values in similar days, the variation range of longwave radiation values in similar days, the average value of longwave radiation values in similar days, and the variation trend of longwave radiation values in similar days;
[0047] The variation range of shortwave radiation value within the similar day is shown in formula (8):
[0048] [minDB i ,maxDB i ] (8)
[0049] Formula (8) represents: the variation range of shortwave radiation on the i-th day within a group of similar days; minDB i is: the minimum value of shortwave radiation value within a similar day, maxDB i is: the maximum value of shortwave radiation value within a similar day;
[0050] The mean value of shortwave radiation in the similar day is shown in formula (9):
[0051]
[0052] Formula (9) represents: the mean value of shortwave radiation on the i-th day within a group of similar days;
[0053] The variation trend of the shortwave radiation within the similar day is shown in formula (10) or formula (11):
[0054]
[0055]
[0056] Formula (11) is a simplified form of formula (10);
[0057] Similarly, referring to the above process, calculate the variation range of latent heat flux values on similar days, the mean value of latent heat flux values on similar days, the variation trend of latent heat flux values on similar days, the variation range of sensible heat flux values on similar days, the mean value of sensible heat flux values on similar days, the variation trend of sensible heat flux values on similar days, the variation range of long-wave radiation values on similar days, the mean value of long-wave radiation values on similar days, and the variation trend of long-wave radiation values on similar days;
[0058] The similar day data characteristics described in step C include: the shortwave radiation variation range of each similar day at each time point, the shortwave radiation variation mean value of each similar day at each time point, the latent heat flux variation range of each similar day at each time point, the latent heat flux variation mean value of each similar day at each time point, the sensible heat flux variation range of each similar day at each time point, the sensible heat flux variation mean value of each similar day at each time point, the longwave radiation variation range of each similar day at each time point, and the longwave radiation variation mean value of each similar day at each time point;
[0059] Assume that there are k similar day categories, among which the similar days of category a are: XS a =[T1,T2,…,T M], including: shortwave radiation value data of M similar days; then the shortwave radiation variation range of each time point of each similar day is: [minDB mj ,maxDB nj ],[minDB mj ,maxDB nj ] means: the range of shortwave radiation change at the jth time point within a similar day of type a; minDB mj is: the minimum value of shortwave radiation at the jth time point on a similar day of type a, maxDB mj is: the maximum value of shortwave radiation at the jth time point on a similar day of type a;
[0060] The mean shortwave radiation change at each time point on various similar days is shown in formula (12):
[0061]
[0062] Formula (12) represents: the mean value of shortwave radiation at the jth time point on a similar day of type a;
[0063] Similarly, referring to the above process, calculate the latent heat flux variation range at each time point of various similar days, the mean value of latent heat flux variation at each time point of various similar days, the sensible heat flux variation range at each time point of various similar days, the mean value of sensible heat flux variation at each time point of various similar days, the long-wave radiation variation range at each time point of various similar days, and the mean value of long-wave radiation variation at each time point of various similar days.
[0064] Based on the above technical solution, in step D, assuming that the number of similar day classifications is k, the number of similar day training samples of the pth category is: M p , where 1≤p≤k, the active power prediction error set at different time points in the training samples of the p-th similar day is obtained: ε p =[error1,error2,...,error Mp ], through the time-sharing error statistics of the training samples in similar days, the distribution of prediction errors at each time point in various similar days is obtained;
[0065] Assume that the prediction error of the same time point obtained by training samples in each similar day conforms to the Gaussian distribution, as shown in formula (13):
[0066]
[0067] Among them, ε represents: the set of active power prediction errors of a certain type of similar day training samples at specific times, μ represents: the mean of the active power prediction errors of a certain type of similar day training samples at specific times, σ represents: the prediction error variance of a certain type of similar day training samples at specific times. Since similar days are divided into k categories, the obtained classification and time-sharing prediction error distributions total 96k.
[0068] On the basis of the above technical solution, in step E, if the characteristic meteorological data of a new day is obtained as shown in formula (14),
[0069]
[0070] in, Indicates: the shortwave radiation value at the jth time point, Indicates: the latent heat flux value at the jth time point, Indicates: the sensible heat flux value at the jth time point, Indicates: the long-wave radiation value at the jth time point;
[0071] The similar day intra-day data feature difference degree described in step E includes: similar day intra-day shortwave radiation change trend difference degree, similar day intra-day shortwave radiation change range difference degree, similar day intra-day shortwave radiation mean difference degree, similar day intra-day latent heat flux change trend difference degree, similar day intra-day latent heat flux change range difference degree, similar day intra-day latent heat flux mean difference degree, similar day intra-day sensible heat flux change trend difference degree, similar day intra-day sensible heat flux change range difference degree, similar day intra-day sensible heat flux mean difference degree, similar day intra-day longwave radiation change trend difference degree, similar day intra-day longwave radiation change range difference degree and similar day intra-day longwave radiation mean difference degree;
[0072] Referring to formula (10), it is assumed that the change trend of characteristic meteorological data of a new day is: Taking the shortwave radiation value data of class a similar days including M similar days as an example, the difference degree of shortwave radiation change trend within similar days is shown in formula (15):
[0073]
[0074] Among them, i represents: the i-th day in the similar day of type a, It means: the jth shortwave radiation change value in the i-th day data of a similar day, Indicates: the jth shortwave radiation change value in the characteristic meteorological data of a new day, The smaller the value, the higher the similarity between the characteristic meteorological data of the new day and the similar days. As the difference degree of shortwave radiation variation trend within similar days;
[0075] Referring to formula (8), assuming that the daily shortwave radiation variation range of the characteristic meteorological data of a new day is: [minDB * ,maxDB * ], then the difference of the shortwave radiation variation range within similar days is shown in formulas (16) and (17):
[0076] [DB ilow ,DB iup ]=[minDB i ,maxDB i ]∩[minDB*,maxDB*] (16)
[0077]
[0078] Among them, [DB ilow ,DB iup ] represents: the intersection of the shortwave radiation variation range of the characteristic meteorological data of a new day and the shortwave radiation variation range of the i-th day of a similar day. The variation range difference ζ represents: the sum of the overlap ratios of the shortwave radiation variation ranges of all similar days in category a and the shortwave radiation variation ranges of the characteristic meteorological data of a new day. The smaller this value is, the higher the similarity between the characteristic meteorological data of a new day and similar days of this category is. ζ is taken as the variation range difference of the shortwave radiation variation range of similar days.
[0079] Referring to formula (9), assuming that the mean value of the intraday shortwave radiation of the characteristic meteorological data of a new day is: μ*, then the intraday mean difference of similar days is as shown in formula (18):
[0080]
[0081] The smaller the η value is, the higher the similarity between the mean of shortwave radiation on that day and the mean of shortwave radiation on similar days is, which is used as the mean difference between similar days.
[0082] Similarly, referring to the above process, calculate the difference degree of latent heat flux change trend on similar days, the difference degree of latent heat flux change range on similar days, the difference degree of latent heat flux mean on similar days, the difference degree of sensible heat flux change trend on similar days, the difference degree of sensible heat flux change range on similar days, the difference degree of mean sensible heat flux on similar days, the difference degree of long-wave radiation change trend on similar days, the difference degree of long-wave radiation change range on similar days and the difference degree of long-wave radiation mean on similar days.
[0083] On the basis of the above technical scheme, the characteristic difference degree of the day-to-day data of similar days described in step E includes: the similarity of the shortwave radiation variation range at each time point of various similar days, the similarity of the shortwave radiation mean at each time point of various similar days, the similarity of the latent heat flux variation range at each time point of various similar days, the similarity of the latent heat flux mean at each time point of various similar days, the similarity of the sensible heat flux variation range at each time point of various similar days, the similarity of the sensible heat flux mean at each time point of various similar days, the similarity of the longwave radiation variation range at each time point of various similar days and the similarity of the longwave radiation mean at each time point of various similar days;
[0084] The calculation steps of the similarity of the shortwave radiation variation range at each time point of each type of similar day are as follows:
[0085] Calculate the number of time points in the characteristic meteorological data of a new day where the shortwave radiation at each time point is within the range of shortwave radiation variation at each time point of similar days, as shown in equations (19) and (20):
[0086]
[0087]
[0088] Then ∑ It means: the sum of the shortwave radiation values in the characteristic meteorological data of a new day within the shortwave radiation variation range of 96 time points in a certain type of similar days is called: the similarity of the shortwave radiation variation range at each time point of various similar days, λ ∑ The larger it is, the higher the similarity between the shortwave radiation variation range of the new day and that of the similar day is, which is used as the similarity of the shortwave radiation variation range at each time point of the similar day.
[0089] The calculation steps for the similarity of the shortwave radiation mean at each time point on the various similar days are as follows:
[0090] Calculate the sum of squares of the mean difference between the shortwave radiation at each time point in the characteristic meteorological data of the new day and the shortwave radiation at each time point on the similar day, as shown in formula (21):
[0091]
[0092] Among them, μ DBj It means: the mean value of shortwave radiation at the jth time point within a certain type of similar day; Indicates: the shortwave radiation value at the jth time point in the characteristic meteorological data of a new day; ξ 2 The smaller the value, the stronger the similarity between the mean shortwave radiation of the new day and the mean shortwave radiation of the similar day, which is used as the similarity of the mean shortwave radiation at each time point of the similar day.
[0093] Similarly, referring to the above process, calculate the similarity of the latent heat flux variation range at each time point of various similar days, the similarity of the latent heat flux mean at each time point of various similar days, the similarity of the sensible heat flux variation range at each time point of various similar days, the similarity of the sensible heat flux mean at each time point of various similar days, the similarity of the long-wave radiation variation range at each time point of various similar days, and the similarity of the long-wave radiation mean at each time point of various similar days;
[0094] The difference between the shortwave radiation data of a new day and the shortwave radiation data of similar days is expressed as formula (22):
[0095]
[0096] Among them, a represents: the a-th similar day, The smaller it is, the greater the similarity between the shortwave radiation data of the new day and the shortwave radiation of the similar day of type a is; η a It means: the difference between the mean shortwave radiation of a new day and the mean shortwave radiation of a similar day of type A, η a Refer to formula (18) for calculation; Indicates: the similarity between the mean shortwave radiation of the new day and the mean shortwave radiation of the similar day of type A at each time point, Calculate according to formula (21); ∑a Indicates: the similarity of the shortwave radiation variation range at each time point on a similar day of type a;
[0097] Similarly, referring to the above process, calculate the difference between the characteristic meteorological data of the new day and the latent heat flux of various similar days. The difference between the characteristic meteorological data of a new day and the sensible heat flux of various similar days The difference between the characteristic meteorological data of a new day and the long-wave radiation of various similar days
[0098] The total difference between the characteristic meteorological data of a new day and the similar day of type a is shown in formula (23):
[0099]
[0100] Refer to formula (23) to calculate the total difference between the characteristic meteorological data of the new day and all similar days. If the total difference between the characteristic meteorological data of the new day and a certain type of similar day is the smallest, the characteristic meteorological data of the new day is classified as that type of similar day.
[0101] On the basis of the above technical solution, according to the active power prediction error at different time points of each type of similar day generated in step D, a correction array with a proportion close to the prediction error distribution at different time points of the corresponding similar day is generated by using the Monte Carlo model, and the preliminary power prediction is corrected by time-based classification error;
[0102] The time-sharing classification error correction formula is shown in formula (24):
[0103] P = f yc (DB,QR,GR,CB)+MT(f wc (ε,μ,σ)) (24)
[0104] Where P represents the final active power prediction value after time-sharing classification error correction, f yc (DB,QR,GR,CB) represents: Preliminary power prediction using shortwave radiation DB, latent heat flux QR, sensible heat flux GR and longwave radiation CB, MT(f wc (ε,μ,σ)) represents the error fitting result of the Monte Carlo model using the prediction error distribution at different time points corresponding to similar days.
[0105] The beneficial technical effects of the present invention are as follows:
[0106] The method of the present invention utilizes the similarity between powers to realize the classification of similar days, which is more intuitive than realizing the classification of similar days by utilizing numerical weather forecast data. Different similar days are predicted separately, and the prediction errors of different similar days are obtained to realize error correction, which is beneficial to improving the prediction accuracy of the model. BRIEF DESCRIPTION OF THE DRAWINGS
[0107] The present invention has the following accompanying drawings:
[0108] Figure 1 The present invention is a flow chart of a photovoltaic power prediction method based on similar day selection and classification time-sharing error correction. DETAILED DESCRIPTION
[0109] The present invention will be further described below in conjunction with the accompanying drawings.
[0110] like Figure 1 The figure shows a flow chart of a photovoltaic power prediction method based on similar day selection and classification time-sharing error correction, which specifically includes:
[0111] Step A: Group the historical characteristic meteorological data and historical active power series of the photovoltaic field by day to obtain daily characteristic meteorological data and active power data respectively.
[0112] The data frequency of the historical numerical weather forecast data of the photovoltaic power field (i.e., the historical characteristic meteorological data of the photovoltaic power field) and the historical active power series is 15 minutes, that is, 96 sets of numerical weather forecast data (i.e., characteristic meteorological data) and active power data can be obtained every 24 hours. It is known from the correlation relationship that the active power data has the strongest correlation with the shortwave radiation value, latent heat flux value, sensible heat flux value and longwave radiation value. Therefore, in order to reduce the training data of the training model and reduce the training time, the numerical weather forecast data selected for model training are shortwave radiation value, latent heat flux value, sensible heat flux value and longwave radiation value.
[0113] A1. Each set of numerical weather forecast data (i.e., daily characteristic meteorological data) can be expressed as follows:
[0114]
[0115] Among them, NWF i Represents: numerical weather forecast data for the i-th day, DB ij Represents: shortwave radiation dataset at the jth time point on the i-th day, QR ij Represents: latent heat flux dataset at the jth time point on the i-th day, GR ij Represents: the sensible heat flux dataset at the jth time point on the i-th day, CB ij Represents: the longwave radiation dataset at the jth time point on the i-th day.
[0116] A2. The daily active power can be expressed as follows:
[0117]
[0118] It is similar to the representation method of numerical weather forecast data, where P i Indicates: active power data of the i-th day, P ij Represents the active power data at the jth time point on the i-th day (i.e., photovoltaic active power data).
[0119] Step B. Calculate the Euclidean distance between any two days of photovoltaic power data (i.e., active power data) to obtain the range of all Euclidean distance values;
[0120] The uncertainty threshold partitioning method based on Euclidean distance is used to complete the preliminary segmentation of the range of Euclidean distance values (also known as: Euclidean distance set), and the preliminary classification of similar days based on the similarity of active power data is achieved;
[0121] Then, under the preliminary classification of similar days, the total distance correlation coefficient was calculated;
[0122] Change the number of segments and take the similar day classification corresponding to the total distance correlation coefficient as the final similar day classification.
[0123] B1. Calculate the Euclidean distance between any two days of photovoltaic power data:
[0124] According to the active power data, the Euclidean distance formula is calculated as follows:
[0125]
[0126] Among them, P mj represents the active power data at the jth time point on the mth day, P nj represents the active power data at the jth time point on the nth day, d(P mj ,P nj ) means: the Euclidean distance calculated using the active power data of any two days.
[0127] After obtaining the Euclidean distance of active power data for any two days, it is found that the range of all Euclidean distance values is between [0, s].
[0128] B2. The classification of similar days is realized based on the uncertainty threshold classification method based on Euclidean distance:
[0129] Because photovoltaic power generation has a strong correlation with weather types, and because daily weather types can be divided into sunny days, cloudy days, showers and rainy days, in order to achieve similar classification according to the meteorological differences of various weather types, an uncertainty threshold division method based on Euclidean distance is proposed.
[0130] The uncertainty threshold division method based on Euclidean distance is a method for optimizing the threshold using the distance correlation coefficient statistics of similar day numerical weather forecast data.
[0131] The uncertainty threshold division method based on Euclidean distance is as follows:
[0132] First, calculate the threshold value dd k :
[0133]
[0134] Here, k represents the number of similar day classifications. There are four common weather types: sunny, cloudy, showery, and rainy. Since there are too many similar day classifications, the calculation will be complicated. Therefore, the value range of k is [4,10].
[0135] Secondly, the Euclidean distance range of each similar day classification basis is calculated, as shown in formula (5):
[0136]
[0137] When k takes a certain value, the distance correlation coefficient dcor(NWF m ,NWF n ), as shown in formula (6), and calculate the mean value of the distance correlation coefficient of each type of similar day characteristic meteorological data dcor μ , as shown in formula (7).
[0138]
[0139]
[0140] Among them, DB mj Represents: shortwave radiation dataset at the jth time point on the mth day, DB nj Represents: shortwave radiation dataset at the jth time point on the nth day, QR mj Represents: latent heat flux dataset at the jth time point on the mth day, QR nj Represents: latent heat flux dataset at the jth time point on the nth day, GR mj Represents: the sensible heat flux dataset at the jth time point on the mth day, GR nj Represents: the sensible heat flux dataset at the jth time point on the nth day, CB mj Represents: longwave radiation dataset at the jth time point on the mth day; CB nj = represents: the longwave radiation data set at the jth time point on the nth day; M represents the total number of days included in this type of similar days. The distance correlation coefficient dcor(NWF m ,NWF n ), using the shortwave radiation value, latent heat flux value, sensible heat flux value and longwave radiation value of similar days combined with the Euclidean distance calculation formula (3), divided by the total number of squared data, as shown in formula (6).
[0141] Calculate the dcor corresponding to all similar days μ , and then calculate all dcor under the current category μ The average dcor μμ , as the total distance correlation coefficient.
[0142] Change the value of k and calculate dcor again μμ ; The décor μμ The value of k corresponding to the minimum is taken as the final number of similar day classifications.
[0143] Thus, the Euclidean distance between [0,d1], [d1,d2], [d2,d3], ..., [d k-1 ,s] are classified into different types of similar days, where d1 = dd k s,d2=2ddk s,d3=3dd k s,……,d k-1 =(k-1)dd k s. For some special cases, when the Euclidean distances between a certain active power data and two other active power data are respectively within the distance ranges of two types of similar days, the active power data is simultaneously classified into two types of similar days. 1j , P 2j , P 3j Three days of active power data, satisfying d(P 1j ,P 2j )∈[0,d1], d(P 2j ,P 3j )∈[d1,d2], Then P 2j Place in P 1j , P 3j The training is performed separately within the similar day class, because this training method has nothing to do with the time sequence of the training samples, but only with the similarity between the training samples and the prediction samples. Therefore, whether a set of data is repeatedly trained or trained out of order has no effect on the model training results.
[0144] Step C. Statistically analyze the characteristic meteorological data of various similar days to obtain the intra-day data characteristics of similar days and the inter-day data characteristics of similar days of the characteristic meteorological forecast data of various similar days.
[0145] Statistics of intra-day data characteristics of various similar days, including: the range, mean and trend of shortwave radiation value, latent heat flux value, sensible heat flux value and longwave radiation value; statistics of inter-day data characteristics of various similar days, including: the range and mean of shortwave radiation value, latent heat flux value, sensible heat flux value and longwave radiation value at each time point. Take shortwave radiation value as an example:
[0146] C1. Statistics of numerical weather forecast data on similar days:
[0147] (1) The range of shortwave radiation values within a similar day:
[0148] [minDB i ,maxDB i ] (8)
[0149] Indicates: the range of shortwave radiation variation on the i-th day within a group of similar days; minDB i is: the minimum value of shortwave radiation value within a similar day, maxDB i is: the maximum value of shortwave radiation within a similar day.
[0150] (2) The average value of shortwave radiation on similar days:
[0151]
[0152] It means: the mean shortwave radiation on the i-th day in a group of similar days.
[0153] (3) The changing trend of shortwave radiation on similar days is shown in formula (10):
[0154]
[0155]
[0156] C2. Statistics of numerical weather forecast data for similar days:
[0157] (1) The range of shortwave radiation variation at each time point within various similar days:
[0158] Assume that there are k similar day categories, among which the similar days of category a are: XS a =[T1,T2,…,T M ], including: shortwave radiation value data of M similar days; then the shortwave radiation variation range of each group of similar days at each time point is: [minDB mj ,maxDB nj ], indicating: the range of shortwave radiation change at the jth time point within a similar day of type a; minDB mj is: the minimum value of shortwave radiation at the jth time point on a similar day of type a, maxDB mj is: the maximum value of shortwave radiation at the jth time point on a similar day of type a.
[0159] (2) The mean change of shortwave radiation at each time point in each type of similar day is shown in the following formula:
[0160]
[0161] It means: the mean value of shortwave radiation at the jth time point on a similar day of type a.
[0162] Similarly, referring to the above process, calculate the latent heat flux variation range at each time point of various similar days, the mean value of latent heat flux variation at each time point of various similar days, the sensible heat flux variation range at each time point of various similar days, the mean value of sensible heat flux variation at each time point of various similar days, the long-wave radiation variation range at each time point of various similar days, and the mean value of long-wave radiation variation at each time point of various similar days.
[0163] Step D. Take the characteristic meteorological data and corresponding active power data of various similar days as similar day training samples; train and predict the characteristic meteorological data and corresponding active power data of various similar days separately; and obtain the prediction error of each type of similar day training sample at different time points, so as to realize the classified and time-divided statistics of the similar day training error.
[0164] A certain proportion of training sets and test sets are selected for the characteristic meteorological data and corresponding active power data of various similar days. On the basis of training the training sample data of each type of similar day, the prediction errors of the training samples of various similar days are obtained.
[0165] Assuming that the number of similar day classifications is k, the number of similar day training samples of the pth category is: M p , where 1≤p≤k, the active power error set of the p-th similar day training sample is obtained as: ε k =[ε1,ε2,…,ε 96 ]; Among them, the active power prediction error set of the training samples at different time points in the p-th similar day can be obtained: ε p =[error1,error2,...,error Mp ], the prediction error set of the training samples at different time points in similar days is statistically analyzed, which is defined as: time-sharing error statistics. Through the time-sharing error statistics of the training samples in similar days, the prediction error distribution of each time point in each type of similar day is obtained. Here, it is assumed that the prediction error of the same time point obtained by training the training samples in each type of similar day conforms to the Gaussian distribution (normal distribution), and its expression is shown in the following formula:
[0166]
[0167] Among them, ε represents: the set of active power prediction errors of a certain type of similar day training samples at specific times, μ represents: the mean of the prediction errors of a certain type of similar day training samples at specific times, σ represents: the variance of the active power prediction errors of a certain type of similar day training samples at specific times. Since similar days are divided into k categories, the obtained classification and time-sharing prediction error distributions total 96k.
[0168] Step E. After obtaining the characteristic meteorological data of a new day, statistical analysis is performed on the characteristic meteorological data, and the difference between the intra-day data characteristics of similar days and the inter-day data characteristics of similar days obtained from the weather forecast data of various similar days (i.e., characteristic meteorological data) in step C is compared and analyzed to complete the classification of similar days, and the corresponding classification training model is used to achieve preliminary power prediction.
[0169] After obtaining the numerical weather forecast (i.e., characteristic meteorological data) for a certain day, analyze which type of similar day's statistical data the shortwave radiation value, latent heat flux value, sensible heat flux value, and longwave radiation value of that day are more similar to, and then input the data of that day into the training model corresponding to that type of similar day to obtain a preliminary forecast value. If the characteristic meteorological data of the day to be predicted (i.e., a new day) is expressed in the following form:
[0170]
[0171] in, Indicates: the shortwave radiation value at the jth time point, Indicates: the latent heat flux value at the jth time point, Indicates: the sensible heat flux value at the jth time point, Indicates: the long-wave radiation value at the jth time point;
[0172] E1. Analysis of intraday differences on similar days:
[0173] (1) Similar intraday trend difference index:
[0174] Taking the shortwave radiation in numerical weather forecast as an example, referring to formula (10), it is assumed that the change trend of the numerical weather forecast (i.e., characteristic meteorological data) for a new day is: Calculate the sum of the squares of the difference between the numerical weather forecast trend of the day and the numerical weather forecast trend of various similar days, and get the difference between the numerical weather forecast of the new day and various similar days. Take the shortwave radiation value data of M similar days as an example for a type of similar days, and the calculation formula is as follows:
[0175]
[0176] Among them, i represents: the i-th day in the similar day of type a, It means: the jth shortwave radiation change value in the i-th day data of a similar day, Indicates: the jth shortwave radiation change value in the characteristic meteorological data of a new day, The smaller the value, the higher the similarity between the numerical forecast weather data of the new day and similar days of the same type. As the difference in shortwave radiation change trend within similar days.
[0177] (2) Index of intraday variation range difference between similar days:
[0178] Taking the shortwave radiation in numerical weather forecast as an example, referring to formula (8), the change of shortwave radiation in the numerical weather forecast of a new day is: [minDB * ,maxDB *], find the intersection of the shortwave radiation range of the day and the range of changes of various similar days, and find the proportion of the intersection to the original similar day range, and calculate the difference degree of the change range. The calculation method is as follows:
[0179] [DB ilow ,DB iup ]=[minDB i ,maxDB i ]∩[minDB*,maxDB*] (16)
[0180]
[0181] [DB ilow ,DB iup ] represents: the intersection of the shortwave radiation variation range of the numerical weather forecast day of a new day and the shortwave radiation variation range of the i-th day of a similar day. The variation range difference ζ represents: the sum of the overlapping proportions of the shortwave radiation variation range of all similar days in category a and the shortwave radiation variation range of the characteristic meteorological data of the new day. The smaller this value is, the higher the similarity between the numerical weather forecast data of the new day and the similar days of this type. ζ is taken as the difference degree of the shortwave radiation variation range of similar days.
[0182] (3) Similar day intraday mean difference index:
[0183] Taking the shortwave radiation in the numerical weather forecast as an example, referring to formula (9), the shortwave radiation mean μ* of the numerical weather forecast of the new day is calculated, and the sum of the squares of the differences between the shortwave radiation mean of each day of a certain type of similar days is obtained to obtain the difference between the numerical weather forecast of the new day and the numerical weather forecast of similar days. The calculation formula is as follows:
[0184]
[0185] The smaller the η value is, the higher the similarity between the mean shortwave radiation of the day and the mean shortwave radiation of similar days is, which is used as the mean difference between similar days.
[0186] Similarly, referring to the above process, calculate the difference degree of latent heat flux change trend on similar days, the difference degree of latent heat flux change range on similar days, the difference degree of latent heat flux mean on similar days, the difference degree of sensible heat flux change trend on similar days, the difference degree of sensible heat flux change range on similar days, the difference degree of mean sensible heat flux on similar days, the difference degree of long-wave radiation change trend on similar days, the difference degree of long-wave radiation change range on similar days and the difference degree of long-wave radiation mean on similar days.
[0187] E2. Similarity analysis of time points between similar days:
[0188] (1) Similarity index of shortwave radiation variation range at each time point on various similar days:
[0189] Taking the shortwave radiation in numerical weather forecast as an example, the number of time points where each time point of the shortwave radiation in the numerical weather forecast of a new day is within the range of each time point of similar days is calculated. The calculation formula is as follows:
[0190]
[0191]
[0192] λ ∑ It means: the sum of the shortwave radiation values in the numerical weather forecast for a new day within the shortwave radiation range of 96 time points in a group of similar days. ∑ The larger the value is, the higher the similarity between the shortwave radiation variation range of the new day and that of the similar day is, which is used as the similarity of the shortwave radiation variation range at each time point of this type of similar day.
[0193] (2) Similarity index of shortwave radiation mean value at each time point on various similar days:
[0194] Taking the shortwave radiation in numerical weather forecast as an example, the sum of the squares of the difference between the shortwave radiation value at each time point in the numerical weather forecast of a new day and the mean shortwave radiation value at each time point on similar days is calculated. The calculation formula is as follows:
[0195]
[0196] Among them, μ DBj It means: the mean value of shortwave radiation at the jth time point within a certain type of similar day; Indicates: the shortwave radiation value at the jth time point in the numerical weather forecast of a new day. ξ 2 The smaller the value, the stronger the similarity between the mean shortwave radiation of the new day and the mean shortwave radiation of the similar day, which is used as the similarity of the mean shortwave radiation at each time point of this type of similar days.
[0197] Similarly, referring to the above process, calculate the similarity of the latent heat flux variation range at each time point of each similar day, the similarity of the latent heat flux mean at each time point of each similar day, the similarity of the sensible heat flux variation range at each time point of each similar day, the similarity of the sensible heat flux mean at each time point of each similar day, the similarity of the long-wave radiation variation range at each time point of each similar day, and the similarity of the long-wave radiation mean at each time point of each similar day.
[0198] (3) The difference index between the predicted day and similar days:
[0199] From the above analysis, we can see that 2 ,ζ,η,ξ2 The smaller the value, the greater the similarity with similar days, and λ ∑ The larger the value, the stronger the similarity, so we set λ ∑ Transformation expression, 1 / λ ∑ The smaller it is, the greater the similarity.
[0200] Then the difference between the shortwave radiation data of a new day and the shortwave radiation of various similar days can be expressed as:
[0201]
[0202] Among them, a represents: the a-th similar day. According to the analysis, The smaller it is, the greater the similarity between the shortwave radiation data of the new day and the shortwave radiation of the similar day of type a. a It means: the difference between the mean shortwave radiation of a new day and the mean shortwave radiation of a similar day of type A, η a Refer to formula (18) for calculation; Indicates: the similarity between the mean shortwave radiation of the new day and the mean shortwave radiation of the similar day of type A at each time point, Calculate according to formula (21); ∑a Indicates: the similarity of the shortwave radiation variation range at each time point on similar days of type a.
[0203] Similarly, referring to the above process, calculate the difference between the latent heat flux of the characteristic meteorological data of the new day and various similar days, the difference between the sensible heat flux of the characteristic meteorological data of the new day and various similar days, and the difference between the long-wave radiation of the characteristic meteorological data of the new day and various similar days.
[0204] The total difference between the characteristic meteorological data of a new day and the similar day of type a is shown in formula (23):
[0205]
[0206] Refer to formula (23) to calculate the total difference between the characteristic meteorological data of the new day and all similar days. If the total difference between the characteristic meteorological data of the new day and a certain type of similar day is the smallest, the characteristic meteorological data of the new day is classified as that type of similar day.
[0207] Step F: According to the statistical results of the time-sharing errors in each similar day, the time-sharing errors predicted for the corresponding similar day are corrected, thereby obtaining the final active power prediction value.
[0208] According to the active power prediction error at different time points of each type of similar day generated in step D, a correction array with a proportion close to the prediction error distribution of the corresponding similar day at different time points is generated by using the Monte Carlo model. The preliminary power prediction is corrected by time-sharing classification errors to obtain the final active power prediction value.
[0209] The time-sharing classification error correction formula is as follows:
[0210] P = f yc (DB,QR,GR,CB)+MT(f wc (ε,μ,σ)) (24)
[0211] Where P represents the final photovoltaic power prediction data size after time-sharing classification error correction, f yc (DB,QR,GR,CB) represents: the preliminary prediction results of photovoltaic power prediction using shortwave radiation DB, latent heat flux QR, sensible heat flux GR and longwave radiation CB, MT(f wc (ε,μ,σ)) represents the error fitting result of the Monte Carlo model using the prediction error distribution at different time points on corresponding similar days.
[0212] At this point, the photovoltaic power prediction based on similar day selection and classification and time-sharing error correction proposed in this patent has been realized.
[0213] The above description is only a preferred example of the present invention and does not limit the present invention in any form. Those skilled in the art may make some simple modifications, equivalent changes or decorations using the technical contents disclosed above, which are all within the protection scope of the present invention.
[0214] The contents not described in detail in this specification belong to the prior art known to professional and technical personnel in this field.
Claims
1. A photovoltaic power prediction method based on similar day selection and classification time-sharing error correction, characterized in that: The steps include: A. Group the historical characteristic meteorological data of the photovoltaic field by day to obtain the daily characteristic meteorological data; The historical active power series is grouped by day to obtain daily active power data; B. Calculate the Euclidean distance between any two days of active power data and obtain the range of all Euclidean distance values; The uncertainty threshold division method based on Euclidean distance is used to complete the preliminary segmentation of the range of Euclidean distance values, and the preliminary classification of similar days based on the similarity of active power data is achieved; Then, under the preliminary classification of similar days, the total distance correlation coefficient was calculated; Change the number of segments and take the similar day classification corresponding to the total distance correlation coefficient as the final similar day classification; C. Statistically analyze the characteristic meteorological data of various similar days to obtain the intra-day data characteristics and inter-day data characteristics of the characteristic meteorological data of various similar days; D. Take the characteristic meteorological data and corresponding active power data of various similar days as similar day training samples; perform separate training and prediction on the characteristic meteorological data and corresponding active power data of various similar days; obtain the prediction error of each type of similar day training sample at different time points, and realize the classification and time-sharing statistics of similar day training errors; E. After obtaining the characteristic meteorological data of a new day, statistical analysis is performed on the characteristic meteorological data, and the difference degree is compared and analyzed with the intra-day data characteristics and inter-day data characteristics of the characteristic meteorological data of various similar days obtained in step C, and the similar days are classified into categories. The corresponding training model of the corresponding classification is used to realize the preliminary power prediction; F. According to the statistical results of the time-sharing errors in each similar day, the time-sharing errors of the corresponding similar day predictions are corrected to obtain the final active power prediction value; The specific steps of obtaining the Euclidean distance between any two days of active power data in step B are as follows: According to the active power data, the Euclidean distance formula is calculated as shown in formula (3): Among them, P mj represents the active power data at the jth time point on the mth day, P nj represents the active power data at the jth time point on the nth day, d(P mj ,P nj ) represents: the Euclidean distance calculated using the active power data of any two days; After obtaining the Euclidean distance of active power data for any two days, it is found that the range of all Euclidean distance values is between [0, s]; The specific steps of completing the preliminary segmentation of the Euclidean distance set using the uncertainty threshold partitioning method based on the Euclidean distance in step B are as follows: First, calculate the threshold value dd k , as shown in formula (4), Where k represents: the number of similar day classifications; Secondly, the Euclidean distance range of each similar day classification basis is calculated, as shown in formula (5): Set the Euclidean distance between [0,d1], [d1,d2], [d2,d3], ..., [d k-1 ,s] are classified into different types of similar days, where d1 = dd k s,d2=2dd k s,d3=3dd k s,……,d k-1 =(k-1)dd k s; When k takes a certain value, the distance correlation coefficient dcor(NWF m ,NWF n ), as shown in formula (6), and calculate the mean value of the distance correlation coefficient of each type of similar day characteristic meteorological data dcor μ , as shown in formula (7), Among them, DB mj Represents: shortwave radiation dataset at the jth time point on the mth day, DB nj Represents: shortwave radiation dataset at the jth time point on the nth day, QR mj Represents: latent heat flux dataset at the jth time point on the mth day, QR nj Represents: latent heat flux dataset at the jth time point on the nth day, GR mj Represents: the sensible heat flux dataset at the jth time point on the mth day, GR nj Represents: the sensible heat flux dataset at the jth time point on the nth day, CB mj Represents: longwave radiation dataset at the jth time point on the mth day; CB nj Represents: the longwave radiation dataset at the jth time point on the nth day; M represents the total number of days included in this type of similar days; Finally, calculate the dcor corresponding to all similar days μ , and then calculate all dcor under the current category μ The average dcor mm , as the total distance correlation coefficient; Change the value of k and calculate dcor again mm ; The décor mm The value of k corresponding to the minimum is taken as the final number of similar day classifications.
2. The photovoltaic power prediction method based on similar day selection and classification time-sharing error correction as claimed in claim 1 is characterized by: The data frequency of the historical characteristic meteorological data and historical active power sequence of the photovoltaic electric field in step A is 15 minutes, and 96 sets of characteristic meteorological data and active power data are obtained every 24 hours.
3. The photovoltaic power prediction method based on similar day selection and classification time-sharing error correction as claimed in claim 2 is characterized by: The daily characteristic meteorological data in step A is shown in formula (1): Among them, NWF i Represents: 96 sets of characteristic meteorological data for the i-th day, DB ij Represents: shortwave radiation dataset at the jth time point on the i-th day, QR ij Represents: latent heat flux dataset at the jth time point on the i-th day, GR ij Represents: the sensible heat flux dataset at the jth time point on the i-th day, CB ij Represents: the longwave radiation dataset at the jth time point on the i-th day; The daily active power data in step A is shown in formula (2): Among them, P i Represents: 96 active power data of the i-th day, P ij Represents the active power data at the jth time point on the i-th day.
4. The photovoltaic power prediction method based on similar day selection and classification time-sharing error correction as claimed in claim 1, characterized in that: When the Euclidean distance between a certain active power data and two other active power data are respectively within the distance range of two types of similar days, the active power data will be classified into two types of similar days at the same time.
5. The photovoltaic power prediction method based on similar day selection and classification time-sharing error correction as claimed in claim 1, characterized in that: The intra-day data features of similar days described in step C include: the variation range of shortwave radiation values in similar days, the average value of shortwave radiation values in similar days, the variation trend of shortwave radiation values in similar days, the variation range of latent heat flux values in similar days, the average value of latent heat flux values in similar days, the variation trend of latent heat flux values in similar days, the variation range of sensible heat flux values in similar days, the average value of sensible heat flux values in similar days, the variation trend of sensible heat flux values in similar days, the variation range of longwave radiation values in similar days, the average value of longwave radiation values in similar days, and the variation trend of longwave radiation values in similar days; The variation range of shortwave radiation value within the similar day is shown in formula (8): [minDB i ,maxDB i ](8) Formula (8) represents: the range of shortwave radiation variation on the i-th day within a group of similar days; minDB i is: the minimum value of shortwave radiation value within a similar day, maxDB i is: the maximum value of shortwave radiation value within a similar day; The mean value of shortwave radiation in the similar day is shown in formula (9): Formula (9) represents: the mean value of shortwave radiation on the i-th day within a group of similar days; The variation trend of the shortwave radiation within the similar day is shown in formula (10) or formula (11): Formula (11) is a simplified form of formula (10); Similarly, referring to the above process, calculate the variation range of latent heat flux values on similar days, the mean value of latent heat flux values on similar days, the variation trend of latent heat flux values on similar days, the variation range of sensible heat flux values on similar days, the mean value of sensible heat flux values on similar days, the variation trend of sensible heat flux values on similar days, the variation range of long-wave radiation values on similar days, the mean value of long-wave radiation values on similar days, and the variation trend of long-wave radiation values on similar days; The similar day data characteristics described in step C include: the shortwave radiation variation range of each similar day at each time point, the shortwave radiation variation mean value of each similar day at each time point, the latent heat flux variation range of each similar day at each time point, the latent heat flux variation mean value of each similar day at each time point, the sensible heat flux variation range of each similar day at each time point, the sensible heat flux variation mean value of each similar day at each time point, the longwave radiation variation range of each similar day at each time point, and the longwave radiation variation mean value of each similar day at each time point; Assume that there are k similar day categories, among which the similar days of category a are: XS a =[T1,T2,…,T M ], including: shortwave radiation value data of M similar days; then the shortwave radiation variation range of each time point of each similar day is: [minDB mj ,maxDB nj ],[minDB mj ,maxDB nj ] means: the range of shortwave radiation change at the jth time point within a similar day of type a; minDB mj is: the minimum value of shortwave radiation at the jth time point on a similar day of type a, maxDB mj is: the maximum value of shortwave radiation at the jth time point on a similar day of type a; The mean shortwave radiation change at each time point on various similar days is shown in formula (12): Formula (12) represents: the mean value of shortwave radiation at the jth time point on a similar day of type a; Similarly, referring to the above process, calculate the latent heat flux variation range at each time point of various similar days, the mean value of latent heat flux variation at each time point of various similar days, the sensible heat flux variation range at each time point of various similar days, the mean value of sensible heat flux variation at each time point of various similar days, the long-wave radiation variation range at each time point of various similar days, and the mean value of long-wave radiation variation at each time point of various similar days.
6. The photovoltaic power prediction method based on similar day selection and classification time-sharing error correction as claimed in claim 5, characterized in that: In step D, assuming that the number of similar day categories is k, the number of similar day training samples of the pth category is: M p , where 1≤p≤k, the active power prediction error set at different time points in the training samples of the p-th similar day is obtained: e p =[error1,error2,...,error Mp ], through the time-sharing error statistics of the training samples in similar days, the distribution of prediction errors at each time point in various similar days is obtained; Assume that the prediction error of the same time point obtained by training samples in each similar day conforms to the Gaussian distribution, as shown in formula (13): Among them, e represents: the set of active power prediction errors of a certain type of similar day training samples at specific times, μ represents: the mean of the active power prediction errors of a certain type of similar day training samples at specific times, s represents: the prediction error variance of a certain type of similar day training samples at specific times. Since similar days are divided into k categories, the obtained classification and time-sharing prediction error distributions total 96k.
7. The photovoltaic power prediction method based on similar day selection and classification time-sharing error correction as claimed in claim 6, characterized in that: In step E, if the characteristic meteorological data of a new day is obtained as shown in formula (14), in, Indicates: the shortwave radiation value at the jth time point, Indicates: the latent heat flux value at the jth time point, Indicates: the sensible heat flux value at the jth time point, Indicates: the long-wave radiation value at the jth time point; The similar day intra-day data feature difference degree described in step E includes: similar day intra-day shortwave radiation change trend difference degree, similar day intra-day shortwave radiation change range difference degree, similar day intra-day shortwave radiation mean difference degree, similar day intra-day latent heat flux change trend difference degree, similar day intra-day latent heat flux change range difference degree, similar day intra-day latent heat flux mean difference degree, similar day intra-day sensible heat flux change trend difference degree, similar day intra-day sensible heat flux change range difference degree, similar day intra-day sensible heat flux mean difference degree, similar day intra-day longwave radiation change trend difference degree, similar day intra-day longwave radiation change range difference degree and similar day intra-day longwave radiation mean difference degree; Referring to formula (10), it is assumed that the change trend of characteristic meteorological data of a new day is: Taking the shortwave radiation value data of class a similar days including M similar days as an example, the difference degree of shortwave radiation change trend within similar days is shown in formula (15): Among them, i represents: the i-th day in the similar day of type a, It means: the jth shortwave radiation change value in the i-th day data of a similar day, Indicates: the jth shortwave radiation change value in the characteristic meteorological data of a new day, The smaller the value, the higher the similarity between the characteristic meteorological data of the new day and the similar days of the same type. As the difference degree of shortwave radiation variation trend within similar days; Referring to formula (8), assuming that the daily shortwave radiation variation range of the characteristic meteorological data of a new day is: [minDB * ,maxDB * ], then the difference of the shortwave radiation variation range within similar days is shown in formulas (16) and (17): [DB ilow ,DB iup ]=[minDB i ,maxDB i ]∩[minDB*,maxDB*] (16) Among them, [DB ilow ,DB iup ] represents: the intersection of the shortwave radiation variation range of the characteristic meteorological data of a new day and the shortwave radiation variation range of the i-th day of a similar day. The variation range difference z represents: the sum of the overlap ratios of the shortwave radiation variation ranges of all similar days in category a and the shortwave radiation variation ranges of the characteristic meteorological data of a new day. The smaller this value is, the higher the similarity between the characteristic meteorological data of a new day and similar days of this category is. z is taken as the variation range difference of the shortwave radiation variation range of similar days. Referring to formula (9), assuming that the mean value of the intraday shortwave radiation of the characteristic meteorological data of a new day is: μ*, then the intraday mean difference of similar days is as shown in formula (18): The smaller the h value is, the higher the similarity between the mean of shortwave radiation on that day and the mean of shortwave radiation on similar days is, which is used as the mean difference between similar days. Similarly, referring to the above process, calculate the difference degree of latent heat flux change trend on similar days, the difference degree of latent heat flux change range on similar days, the difference degree of latent heat flux mean on similar days, the difference degree of sensible heat flux change trend on similar days, the difference degree of sensible heat flux change range on similar days, the difference degree of mean sensible heat flux on similar days, the difference degree of long-wave radiation change trend on similar days, the difference degree of long-wave radiation change range on similar days and the difference degree of long-wave radiation mean on similar days.
8. The photovoltaic power prediction method based on similar day selection and classification time-sharing error correction as claimed in claim 7, characterized in that: The feature difference between the daytime data of similar days in step E includes: the similarity of the shortwave radiation variation range at each time point of various similar days, the similarity of the shortwave radiation mean at each time point of various similar days, the similarity of the latent heat flux variation range at each time point of various similar days, the similarity of the latent heat flux mean at each time point of various similar days, the similarity of the sensible heat flux variation range at each time point of various similar days, the similarity of the sensible heat flux mean at each time point of various similar days, the similarity of the longwave radiation variation range at each time point of various similar days, and the similarity of the longwave radiation mean at each time point of various similar days; The calculation steps of the similarity of the shortwave radiation variation range at each time point of each type of similar day are as follows: Calculate the number of time points in the characteristic meteorological data of a new day where the shortwave radiation at each time point is within the range of shortwave radiation variation at each time point of similar days, as shown in equations (19) and (20): Then ∑ It means: the sum of the shortwave radiation values in the characteristic meteorological data of a new day within the shortwave radiation variation range of 96 time points in a certain type of similar days is called: the similarity of the shortwave radiation variation range at each time point of various similar days, l ∑ The larger it is, the higher the similarity between the shortwave radiation variation range of the new day and that of the similar day is, which is used as the similarity of the shortwave radiation variation range at each time point of the similar day. The calculation steps for the similarity of the shortwave radiation mean at each time point on the various similar days are as follows: Calculate the sum of squares of the mean difference between the shortwave radiation at each time point in the characteristic meteorological data of the new day and the shortwave radiation at each time point on the similar day, as shown in formula (21): Among them, μ DBj It means: the mean value of shortwave radiation at the jth time point within a certain type of similar day; Indicates: the shortwave radiation value at the jth time point in the characteristic meteorological data of a new day; x 2 The smaller the value, the stronger the similarity between the mean shortwave radiation of the new day and the mean shortwave radiation of the similar day, which is used as the similarity of the mean shortwave radiation at each time point of the similar day. Similarly, referring to the above process, calculate the similarity of the latent heat flux variation range at each time point of various similar days, the similarity of the latent heat flux mean at each time point of various similar days, the similarity of the sensible heat flux variation range at each time point of various similar days, the similarity of the sensible heat flux mean at each time point of various similar days, the similarity of the long-wave radiation variation range at each time point of various similar days, and the similarity of the long-wave radiation mean at each time point of various similar days; The difference between the shortwave radiation data of a new day and the shortwave radiation data of similar days is expressed as formula (22): Among them, a represents: the a-th similar day, The smaller it is, the greater the similarity between the shortwave radiation data of the new day and the shortwave radiation of the similar day of type a is; a It means: the difference between the mean shortwave radiation of a new day and the mean shortwave radiation of a similar day of type A, h a Refer to formula (18) for calculation; Indicates: the similarity between the mean shortwave radiation of the new day and the mean shortwave radiation of the similar day of type A at each time point, Refer to formula (21) for calculation; l ∑a Indicates: the similarity of the shortwave radiation variation range at each time point on a similar day of type a; Similarly, referring to the above process, calculate the difference between the characteristic meteorological data of the new day and the latent heat flux of various similar days. The difference between the characteristic meteorological data of a new day and the sensible heat flux of various similar days The difference between the characteristic meteorological data of a new day and the longwave radiation of various similar days The total difference between the characteristic meteorological data of a new day and the similar day of type a is shown in formula (23): Refer to formula (23) to calculate the total difference between the characteristic meteorological data of the new day and all similar days. If the total difference between the characteristic meteorological data of the new day and a certain type of similar day is the smallest, the characteristic meteorological data of the new day is classified as that type of similar day.
9. The photovoltaic power prediction method based on similar day selection and classification time-sharing error correction as claimed in claim 8, characterized in that: According to the active power prediction errors at different time points of each type of similar day generated in step D, a correction array with a proportion close to the prediction error distribution at different time points of the corresponding similar day is generated by using a Monte Carlo model, and the preliminary power prediction is corrected by time-based classification errors; The time-sharing classification error correction formula is shown in formula (24): P=f yc (DB,QR,GR,CB)+MT(f wc (e,μ,s)) (24) Where P represents the final active power prediction value after time-sharing classification error correction, f yc (DB,QR,GR,CB) represents: Preliminary power prediction using shortwave radiation DB, latent heat flux QR, sensible heat flux GR and longwave radiation CB, MT(f wc (e,μ,s)) represents the error fitting result of the Monte Carlo model using the prediction error distribution at different time points corresponding to similar days.
Citation Information
Patent Citations
Longitudinal photovoltaic power prediction method based on historical data mining
CN107194495A
A short-term photovoltaic power prediction method
CN109165774A
Photovoltaic power station short-term power prediction method
CN110705789A
Photovoltaic power ultra-short-term prediction method based on Mahalanobis distance similarity finding
CN110852492A
Day-ahead optical power prediction method based on similar day clustering and meteorological factor weighting
CN112070311A
Cited By
Block random power prediction method, device, equipment and medium
CN115423211A
