CN115271198A - Net load prediction method and device of photovoltaic equipment - Google Patents

Net load prediction method and device of photovoltaic equipment Download PDF

Info

Publication number
CN115271198A
CN115271198A CN202210871446.6A CN202210871446A CN115271198A CN 115271198 A CN115271198 A CN 115271198A CN 202210871446 A CN202210871446 A CN 202210871446A CN 115271198 A CN115271198 A CN 115271198A
Authority
CN
China
Prior art keywords
data
net load
photovoltaic equipment
wavelet
photovoltaic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210871446.6A
Other languages
Chinese (zh)
Inventor
宫飞翔
陈宋宋
龚桃荣
石坤
邓志东
田诺
黄秀彬
刘鲲鹏
李子乾
周颖
袁金斗
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Corp of China SGCC
China Electric Power Research Institute Co Ltd CEPRI
State Grid Jiangsu Electric Power Co Ltd
Original Assignee
State Grid Corp of China SGCC
China Electric Power Research Institute Co Ltd CEPRI
State Grid Jiangsu Electric Power Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by State Grid Corp of China SGCC, China Electric Power Research Institute Co Ltd CEPRI, State Grid Jiangsu Electric Power Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN202210871446.6A priority Critical patent/CN115271198A/en
Publication of CN115271198A publication Critical patent/CN115271198A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/04Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/14Fourier, Walsh or analogous domain transformations, e.g. Laplace, Hilbert, Karhunen-Loeve, transforms
    • G06F17/148Wavelet transforms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/18Complex mathematical operations for evaluating statistical data, e.g. average values, frequency distributions, probability functions, regression analysis
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J3/00Circuit arrangements for AC mains or AC distribution networks
    • H02J3/003Load forecast, e.g. methods or systems for forecasting future load demand
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
    • Y04S10/00Systems supporting electrical power generation, transmission or distribution
    • Y04S10/50Systems or methods supporting the power network operation or management, involving a certain degree of interaction with the load-side end user applications

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Data Mining & Analysis (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Economics (AREA)
  • Strategic Management (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Operations Research (AREA)
  • Algebra (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Resources & Organizations (AREA)
  • Game Theory and Decision Science (AREA)
  • Power Engineering (AREA)
  • Marketing (AREA)
  • Development Economics (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Evolutionary Biology (AREA)
  • Probability & Statistics with Applications (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本发明涉及电力系统光伏净负荷预测技术领域,具体提供了一种光伏设备的净负荷预测方法及装置,包括:利用预先构建的回归模型预测光伏设备的净负荷的小波数据在高维特征空间的稀疏解;对所述光伏设备的净负荷的小波数据在高维特征空间的稀疏解进行小波重构,得到光伏设备的净负荷预测数据;其中,所述小波数据包括:低频系数和高频系数。本发明提供的技术方案,可以有效实现数据的降维以及光伏负荷的高精度预测,可实现对多种外部特征与用电行为的分析,实现高维数据变量筛选和高精度预测,从而合理安排电力系统的运行计划。

Figure 202210871446

The invention relates to the technical field of photovoltaic net load prediction of power systems, and specifically provides a method and device for predicting the net load of photovoltaic equipment, including: using a pre-built regression model to predict the wavelet data of the net load of photovoltaic equipment in a high-dimensional feature space. Sparse solution; perform wavelet reconstruction on the sparse solution of the wavelet data of the net load of the photovoltaic equipment in the high-dimensional feature space, and obtain the net load prediction data of the photovoltaic equipment; wherein, the wavelet data includes: low frequency coefficients and high frequency coefficients . The technical solution provided by the present invention can effectively realize the dimensionality reduction of data and the high-precision prediction of photovoltaic load, can realize the analysis of various external characteristics and power consumption behavior, realize the selection of high-dimensional data variables and high-precision prediction, so as to make reasonable arrangements The operation plan of the power system.

Figure 202210871446

Description

一种光伏设备的净负荷预测方法及装置Net load forecasting method and device for photovoltaic equipment

技术领域technical field

本发明涉及电力系统光伏净负荷预测技术领域,具体涉及一种光伏设备的净负荷预测方法及装置。The invention relates to the technical field of photovoltaic net load forecasting of electric power systems, in particular to a method and device for net load forecasting of photovoltaic equipment.

背景技术Background technique

配电网净负荷是指用户用电负荷与可再生能源发电负荷的差值,也就是电力系统主电网对配电网提供的负荷值,在这里特指家庭的用电负荷与家用光伏设备利用太阳光转换电能的差值。目前针对净负荷数据的分析和预测相对较少,对净负荷预测有两种方法,一种是分别预测用电负荷和再生能源发电,然后求差值即间接预测,另一种是直接根据净负荷历史序列选取合适模型进行预测即直接预测。根据预测结果分类,负荷预测可分为短期负荷预测和中长期负荷预测。对于短期负荷预测,国内外研究方法大致分为两类:一类是以时间序列法为代表的传统方法;另一类是以人工神经网络为代表的新型人工智能方法。The net load of the distribution network refers to the difference between the user's electricity load and the renewable energy generation load, that is, the load value provided by the main grid of the power system to the distribution network. Here, it refers specifically to the household's electricity load and the utilization of household photovoltaic equipment The difference between the conversion of sunlight into electricity. At present, there are relatively few analyzes and forecasts for net load data. There are two methods for net load forecasting. One is to predict electricity load and renewable energy generation separately, and then calculate the difference, which is indirect forecasting. The load history series selects the appropriate model for forecasting, that is, direct forecasting. According to the classification of forecasting results, load forecasting can be divided into short-term load forecasting and medium- and long-term load forecasting. For short-term load forecasting, domestic and foreign research methods are roughly divided into two categories: one is the traditional method represented by the time series method; the other is the new artificial intelligence method represented by the artificial neural network.

前者有时间序列法、回归分析法及小波分析预测法等,其中时间序列法是短期负荷预测的经典预测方法之一,其本质就是收集电力负荷的历史资料,建立数学模型,把电力负荷作为数学模型里的随机变量,根据统计规律性去研究随机变量的变化过程,推导出表达式来对负荷进行预测,方法大致可以分为以下几个过程:自回归(AR)过程;滑动-平均(MA)过程;自回归滑动平均(ARMA)过程;积分型自回归滑动(ARIMA)过程;用传递函数(TF)建模的序列。经典的时间序列法对历史负荷资料的需求相对较少,不太需要人工上的干预,所以工作量也相对较少,整个预测过程计算速度优异且可以自动完成,这些都是本方法的优点。缺点是太过于依赖电力负荷资料数据,对其他变化因素处理不足,导致无法达到比较高的预测精度,一般只适应于本身就比较稳定均匀的负荷预测中。回归分析法也是以负荷的历史资料数据作为基础进行的经典预测方法之一,只是回归分析法在历史数据的基础上,也加入了对影响负荷的外在因素的考虑。其优点是简单方便,其缺点是对实际负荷与影响因素间的变化达不到完全真实的反映。小波分析预测法是通过对小波进行选择分类,将不同性质的负荷区分出来,然后针对不同的性质,挑选某种负荷,分析其规律来决定采用相对应的预测方法,将挑选的负荷进行分别预测,分解出序列后对序列进行重新构成,最后达到预测的目的。小波预测法可以观察到信号中的细节,尤其是信号中的某些奇异信号,其反应尤为敏感,可以做到很好地处理突变的或者某些微弱的信号。The former includes time series method, regression analysis method and wavelet analysis and forecasting method, among which time series method is one of the classic forecasting methods of short-term load forecasting. The random variable in the model, according to the statistical regularity to study the change process of the random variable, derives the expression to predict the load, the method can be roughly divided into the following processes: autoregressive (AR) process; sliding-average (MA ) process; autoregressive moving average (ARMA) process; integral type autoregressive sliding (ARIMA) process; sequence modeled with transfer function (TF). The classic time series method has relatively less demand for historical load data, and does not require manual intervention, so the workload is relatively small. The calculation speed of the entire forecasting process is excellent and can be completed automatically. These are the advantages of this method. The disadvantage is that it relies too much on power load data and does not deal with other variable factors enough, resulting in the inability to achieve relatively high prediction accuracy. Generally, it is only suitable for relatively stable and uniform load prediction. The regression analysis method is also one of the classic forecasting methods based on the historical data of the load, but the regression analysis method also adds consideration of the external factors that affect the load on the basis of the historical data. Its advantage is that it is simple and convenient, and its disadvantage is that it cannot fully reflect the changes between the actual load and the influencing factors. The wavelet analysis and prediction method is to distinguish the loads of different properties by selecting and classifying the wavelets, and then select a certain load for different properties, analyze its laws to determine the corresponding prediction method, and predict the selected loads separately. , after the sequence is decomposed, the sequence is reconstructed, and finally the purpose of prediction is achieved. The wavelet prediction method can observe the details of the signal, especially some singular signals in the signal, and its response is particularly sensitive, and it can handle sudden changes or some weak signals very well.

而后者目前主要是使用机器学习以及深度学习的方法进行负荷预测,并能够较为准确地预测非线性非平稳的数据。其中,人工神经网络(ANN)和循环神经网络(RNN)是该类方法的典型代表。ANN理论用于短期负荷预测的研究很多,其突出优点是对大量非结构性、非精确性规律具有自适应功能,具有信息记忆、自主学习、知识推理和优化计算的特点。ANN具有很强的自学习和复杂的非线性函数拟合能力,很适合于电力负荷预测问题,但研究过程中也表明ANN方法具有局部最优、泛化误差较大、隐单元数目难以确定等问题。RNN模型通过时序概念的引入,相比于传统神经网络存在非常大的优势,可在网络内部保存之前时刻学到的信息,在对每一时刻的数据进行处理时,都能利用之前时刻的信息,信息传递具有持续性,从而使得RNN能够很好地处理时间序列等周期性数据建模的问题。但是如果使用与当前时刻相差较长的信息时,RNN往往不能充分利用这些信息,这就是RNN的梯度消失问题,在实践中RNN只能处理十分有限时间内的信息。为了解决RNN梯度消失的问题,长短期记忆神经网络(LSTM)、门控循环单元(GRU)等RNN的变体相继被提出,因此后续又提出了Q-RNN等LSTM的变体,以上算法被证实在负荷预测上比RNN拥有更好的准确性或者更快的速度。通过上述描述可知,不同预测方法的适用范围及其性能优势有所不同,此外,由于净负荷受温度、光照等因素的影响,所以使用单一的算法针对净负荷进行预测无法得到较为准确的结果。The latter currently mainly uses machine learning and deep learning methods for load forecasting, and can more accurately predict nonlinear and non-stationary data. Among them, artificial neural network (ANN) and recurrent neural network (RNN) are typical representatives of this kind of method. There are many studies on the application of ANN theory to short-term load forecasting. Its outstanding advantages are that it has an adaptive function for a large number of non-structural and inaccurate laws, and has the characteristics of information memory, autonomous learning, knowledge reasoning and optimal calculation. ANN has strong self-learning and complex nonlinear function fitting capabilities, and is very suitable for power load forecasting problems. However, the research process also shows that the ANN method has local optimum, large generalization error, and difficult to determine the number of hidden units. question. Through the introduction of the concept of timing, the RNN model has a great advantage over traditional neural networks. It can store the information learned at the previous moment inside the network, and can use the information at the previous moment when processing the data at each moment. , the information transmission is continuous, so that RNN can well deal with the problems of periodic data modeling such as time series. However, when using information that is far from the current moment, RNN often cannot make full use of this information. This is the gradient disappearance problem of RNN. In practice, RNN can only process information within a very limited time. In order to solve the problem of RNN gradient disappearance, variants of RNN such as long short-term memory neural network (LSTM) and gated recurrent unit (GRU) have been proposed one after another. Therefore, variants of LSTM such as Q-RNN were subsequently proposed. The above algorithm was adopted It has been proved that it has better accuracy or faster speed than RNN in load forecasting. From the above description, it can be seen that different prediction methods have different application scopes and performance advantages. In addition, since the net load is affected by factors such as temperature and light, it is impossible to obtain more accurate results by using a single algorithm to predict the net load.

发明内容Contents of the invention

为了克服上述缺陷,本发明提出了一种光伏设备的净负荷预测方法及装置。In order to overcome the above defects, the present invention proposes a net load forecasting method and device for photovoltaic equipment.

第一方面,提供一种光伏设备的净负荷预测方法,所述光伏设备的净负荷预测方法包括:In the first aspect, a net load forecasting method of photovoltaic equipment is provided, and the net load forecasting method of photovoltaic equipment includes:

利用预先构建的回归模型预测光伏设备的净负荷的小波数据在高维特征空间的稀疏解;Sparse solution of wavelet data in high-dimensional feature space to predict net load of photovoltaic equipment using pre-built regression model;

对所述光伏设备的净负荷的小波数据在高维特征空间的稀疏解进行小波重构,得到光伏设备的净负荷预测数据;Performing wavelet reconstruction on the sparse solution of the wavelet data of the net load of the photovoltaic equipment in the high-dimensional feature space, to obtain the net load prediction data of the photovoltaic equipment;

其中,所述小波数据包括:低频系数和高频系数。Wherein, the wavelet data includes: low-frequency coefficients and high-frequency coefficients.

优选的,所述光伏设备的净负荷的低频系数的计算式如下:Preferably, the calculation formula of the low-frequency coefficient of the net load of the photovoltaic device is as follows:

Figure BDA0003760904260000021
Figure BDA0003760904260000021

所述光伏设备的净负荷的高频系数的计算式如下:The calculation formula of the high frequency coefficient of the net load of the photovoltaic equipment is as follows:

Figure BDA0003760904260000022
Figure BDA0003760904260000022

上式中,A为光伏设备的净负荷的低频系数,

Figure BDA0003760904260000023
Figure BDA0003760904260000024
对应的分解系数,
Figure BDA0003760904260000025
为对应缩放常数m和平移常数n选择的小波函数,t为当前时刻,D为光伏设备的净负荷的高频系数,
Figure BDA0003760904260000026
为ψmn对应的分解系数,ψmn为与
Figure BDA0003760904260000031
的互补的小波函数。In the above formula, A is the low frequency coefficient of the net load of the photovoltaic equipment,
Figure BDA0003760904260000023
for
Figure BDA0003760904260000024
The corresponding decomposition coefficient,
Figure BDA0003760904260000025
is the wavelet function selected corresponding to the scaling constant m and the translation constant n, t is the current moment, D is the high frequency coefficient of the net load of the photovoltaic equipment,
Figure BDA0003760904260000026
is the decomposition coefficient corresponding to ψ mn , and ψ mn is the
Figure BDA0003760904260000031
The complementary wavelet function of .

进一步的,所述

Figure BDA0003760904260000032
对应的分解系数的计算式如下:Further, the
Figure BDA0003760904260000032
The calculation formula of the corresponding decomposition coefficient is as follows:

Figure BDA0003760904260000033
Figure BDA0003760904260000033

所述ψmn对应的分解系数的计算式如下:The calculation formula of the decomposition coefficient corresponding to the ψ mn is as follows:

Figure BDA0003760904260000034
Figure BDA0003760904260000034

上式中,T为光伏设备的净负荷序列长度,pt为t时刻光伏设备的净负荷。In the above formula, T is the net load sequence length of photovoltaic equipment, p t is the net load of photovoltaic equipment at time t.

优选的,所述预先构建的回归模型的获取过程包括:Preferably, the acquisition process of the pre-built regression model includes:

对光伏设备的历史净负荷数据进行小波变换,得到光伏设备的历史净负荷数据的小波数据;Perform wavelet transformation on the historical net load data of the photovoltaic equipment to obtain the wavelet data of the historical net load data of the photovoltaic equipment;

采用核方法将光伏设备的历史净负荷数据的小波数据扩展到高维特征空间,得到光伏设备的历史净负荷数据的小波数据对应的线性数据;The wavelet data of the historical net load data of the photovoltaic equipment is extended to the high-dimensional feature space by using the nuclear method, and the linear data corresponding to the wavelet data of the historical net load data of the photovoltaic equipment are obtained;

利用所述线性数据构建训练数据和验证数据;Using the linear data to construct training data and verification data;

利用所述训练数据对初始Lasso回归模型进行训练,利用所述验证数据对训练后的Lasso回归模型进行验证,直至训练后的Lasso回归模型的模型指标满足收敛条件,得到所述预先构建的回归模型。Utilize the training data to train the initial Lasso regression model, utilize the verification data to verify the trained Lasso regression model, until the model index of the trained Lasso regression model meets the convergence condition, obtain the regression model constructed in advance .

进一步的,所述利用所述训练数据对初始回归模型进行训练的过程中,回归模型损失函数的计算式如下:Further, in the process of using the training data to train the initial regression model, the calculation formula of the regression model loss function is as follows:

LReg(β)=LOLS(β)+PL Reg (β) = L OLS (β) + P

上式中,LReg为惩罚后的损失函数,LOLS为标准损失函数,P为惩罚函数值,β为回归系数向量。In the above formula, L Reg is the penalty loss function, L OLS is the standard loss function, P is the penalty function value, and β is the regression coefficient vector.

进一步的,所述标准损失函数的计算式如下:Further, the calculation formula of the standard loss function is as follows:

LOLS(β)=||Y-Xβ||2 LOLS (β)=||Y- || 2

上式中,Y为x×1维预测变量矩阵,X为x×p维结果变量向量,x为观察值个数,p为预测变量个数。In the above formula, Y is an x×1-dimensional predictor variable matrix, X is an x×p-dimensional outcome variable vector, x is the number of observations, and p is the number of predictors.

进一步的,所述模型指标包括下述中的至少一种:平均绝对百分比误差、均方误差。Further, the model index includes at least one of the following: mean absolute percentage error, mean square error.

进一步的,所述平均绝对百分比误差的计算式如下:Further, the formula for calculating the mean absolute percentage error is as follows:

Figure BDA0003760904260000035
Figure BDA0003760904260000035

所述均方误差的计算式如下:The formula for calculating the mean square error is as follows:

Figure BDA0003760904260000041
Figure BDA0003760904260000041

上式中,MSE为平均绝对百分比误差,I为所述验证数据中总样本数据个数,yi为所述验证数据中第i个样本数据的实际值,

Figure BDA0003760904260000042
为所述验证数据中第i个样本数据的预测值,MAPE为均方误差。In the above formula, MSE is the mean absolute percentage error, I is the total number of sample data in the verification data, and y i is the actual value of the i-th sample data in the verification data,
Figure BDA0003760904260000042
is the predicted value of the i-th sample data in the verification data, and MAPE is the mean square error.

第二方面,提供一种光伏设备的净负荷预测装置,所述光伏设备的净负荷预测装置包括:In a second aspect, a net load forecasting device for photovoltaic equipment is provided, and the net load forecasting device for photovoltaic equipment includes:

预测模块,用于利用预先构建的回归模型预测光伏设备的净负荷的小波数据在高维特征空间的稀疏解;The prediction module is used to predict the sparse solution of the wavelet data of the net load of the photovoltaic equipment in the high-dimensional feature space by using the regression model constructed in advance;

重构模块,用于对所述光伏设备的净负荷的小波数据在高维特征空间的稀疏解进行小波重构,得到光伏设备的净负荷预测数据;The reconstruction module is used to perform wavelet reconstruction on the sparse solution of the wavelet data of the net load of the photovoltaic equipment in the high-dimensional feature space, and obtain the net load prediction data of the photovoltaic equipment;

其中,所述小波数据包括:低频系数和高频系数。Wherein, the wavelet data includes: low-frequency coefficients and high-frequency coefficients.

优选的,所述预测模块中,光伏设备的净负荷的低频系数的计算式如下:Preferably, in the prediction module, the calculation formula of the low frequency coefficient of the net load of the photovoltaic equipment is as follows:

Figure BDA0003760904260000043
Figure BDA0003760904260000043

所述光伏设备的净负荷的高频系数的计算式如下:The calculation formula of the high frequency coefficient of the net load of the photovoltaic equipment is as follows:

Figure BDA0003760904260000044
Figure BDA0003760904260000044

上式中,A为光伏设备的净负荷的低频系数,

Figure BDA0003760904260000045
Figure BDA0003760904260000046
对应的分解系数,
Figure BDA0003760904260000047
为对应缩放常数m和平移常数n选择的小波函数,t为当前时刻,D为光伏设备的净负荷的高频系数,
Figure BDA0003760904260000048
为ψmn对应的分解系数,ψmn为与
Figure BDA0003760904260000049
的互补的小波函数。In the above formula, A is the low frequency coefficient of the net load of the photovoltaic equipment,
Figure BDA0003760904260000045
for
Figure BDA0003760904260000046
The corresponding decomposition coefficient,
Figure BDA0003760904260000047
is the wavelet function selected corresponding to the scaling constant m and the translation constant n, t is the current moment, D is the high frequency coefficient of the net load of the photovoltaic equipment,
Figure BDA0003760904260000048
is the decomposition coefficient corresponding to ψ mn , and ψ mn is the
Figure BDA0003760904260000049
The complementary wavelet function of .

进一步的,所述

Figure BDA00037609042600000410
对应的分解系数的计算式如下:Further, the
Figure BDA00037609042600000410
The calculation formula of the corresponding decomposition coefficient is as follows:

Figure BDA00037609042600000411
Figure BDA00037609042600000411

所述ψmn对应的分解系数的计算式如下:The calculation formula of the decomposition coefficient corresponding to the ψ mn is as follows:

Figure BDA00037609042600000412
Figure BDA00037609042600000412

上式中,T为光伏设备的净负荷序列长度,pt为t时刻光伏设备的净负荷。In the above formula, T is the net load sequence length of photovoltaic equipment, p t is the net load of photovoltaic equipment at time t.

优选的,所述预测模块中,预先构建的回归模型的获取过程包括:Preferably, in the prediction module, the acquisition process of the pre-built regression model includes:

对光伏设备的历史净负荷数据进行小波变换,得到光伏设备的历史净负荷数据的小波数据;Perform wavelet transformation on the historical net load data of the photovoltaic equipment to obtain the wavelet data of the historical net load data of the photovoltaic equipment;

采用核装置将光伏设备的历史净负荷数据的小波数据扩展到高维特征空间,得到光伏设备的历史净负荷数据的小波数据对应的线性数据;Using nuclear devices to expand the wavelet data of the historical net load data of photovoltaic equipment to high-dimensional feature space, and obtain the linear data corresponding to the wavelet data of the historical net load data of photovoltaic equipment;

利用所述线性数据构建训练数据和验证数据;Using the linear data to construct training data and verification data;

利用所述训练数据对初始Lasso回归模型进行训练,利用所述验证数据对训练后的Lasso回归模型进行验证,直至训练后的Lasso回归模型的模型指标满足收敛条件,得到所述预先构建的回归模型。Utilize the training data to train the initial Lasso regression model, utilize the verification data to verify the trained Lasso regression model, until the model index of the trained Lasso regression model meets the convergence condition, obtain the regression model constructed in advance .

进一步的,所述利用所述训练数据对初始回归模型进行训练的过程中,回归模型损失函数的计算式如下:Further, in the process of using the training data to train the initial regression model, the calculation formula of the regression model loss function is as follows:

LReg(β)=LOLS(β)+PL Reg (β) = L OLS (β) + P

上式中,LReg为惩罚后的损失函数,LOLS为标准损失函数,P为惩罚函数值,β为回归系数向量。In the above formula, L Reg is the penalty loss function, LOLS is the standard loss function, P is the penalty function value, and β is the regression coefficient vector.

进一步的,所述标准损失函数的计算式如下:Further, the calculation formula of the standard loss function is as follows:

LOLS(β)=||Y-Xβ||2 LOLS (β)=||Y- || 2

上式中,Y为x×1维预测变量矩阵,X为x×p维结果变量向量,x为观察值个数,p为预测变量个数。In the above formula, Y is an x×1-dimensional predictor variable matrix, X is an x×p-dimensional outcome variable vector, x is the number of observations, and p is the number of predictors.

进一步的,所述模型指标包括下述中的至少一种:平均绝对百分比误差、均方误差。Further, the model index includes at least one of the following: mean absolute percentage error, mean square error.

进一步的,所述平均绝对百分比误差的计算式如下:Further, the formula for calculating the mean absolute percentage error is as follows:

Figure BDA0003760904260000051
Figure BDA0003760904260000051

所述均方误差的计算式如下:The formula for calculating the mean square error is as follows:

Figure BDA0003760904260000052
Figure BDA0003760904260000052

上式中,MSE为平均绝对百分比误差,I为所述验证数据中总样本数据个数,yi为所述验证数据中第i个样本数据的实际值,

Figure BDA0003760904260000053
为所述验证数据中第i个样本数据的预测值,MAPE为均方误差。In the above formula, MSE is the mean absolute percentage error, I is the total number of sample data in the verification data, and y i is the actual value of the i-th sample data in the verification data,
Figure BDA0003760904260000053
is the predicted value of the i-th sample data in the verification data, and MAPE is the mean square error.

第三方面,提供一种计算机设备,包括:一个或多个处理器;In a third aspect, a computer device is provided, including: one or more processors;

所述处理器,用于存储一个或多个程序;The processor is configured to store one or more programs;

当所述一个或多个程序被所述一个或多个处理器执行时,实现所述的光伏设备的净负荷预测方法。When the one or more programs are executed by the one or more processors, the net load forecasting method of the photovoltaic device is realized.

第四方面,提供一种计算机可读存储介质,其上存有计算机程序,所述计算机程序被执行时,实现所述的光伏设备的净负荷预测方法。In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed, the above method for net load forecasting of a photovoltaic device is implemented.

本发明上述一个或多个技术方案,至少具有如下一种或多种有益效果:The above-mentioned one or more technical solutions of the present invention have at least one or more of the following beneficial effects:

本发提供了一种光伏设备的净负荷预测方法及装置,包括:利用预先构建的回归模型预测光伏设备的净负荷的小波数据在高维特征空间的稀疏解;对所述光伏设备的净负荷的小波数据在高维特征空间的稀疏解进行小波重构,得到光伏设备的净负荷预测数据;其中,所述小波数据包括:低频系数和高频系数。本发明提供的技术方案,可以有效实现数据的降维以及光伏负荷的高精度预测,可实现对多种外部特征与用电行为的分析,实现高维数据变量筛选和高精度预测,从而合理安排电力系统的运行计划;The present invention provides a net load prediction method and device for photovoltaic equipment, including: using a pre-built regression model to predict the sparse solution of the wavelet data of the net load of photovoltaic equipment in a high-dimensional feature space; The sparse solution of the wavelet data in the high-dimensional feature space is subjected to wavelet reconstruction to obtain the net load prediction data of the photovoltaic equipment; wherein, the wavelet data includes: low-frequency coefficients and high-frequency coefficients. The technical solution provided by the present invention can effectively realize data dimensionality reduction and high-precision prediction of photovoltaic load, and can realize analysis of various external characteristics and power consumption behavior, realize high-dimensional data variable screening and high-precision prediction, and thus rationally arrange The operation plan of the power system;

进一步的,本发明提供的技术方案,引入一种小波变换结合Lasso回归模型的预测模型,其中小波变换将时间序列数据的时频域进行对调,聚焦到数据的细节,更适合描述光伏净负荷的内在特性,而在Lasso回归模型中引入核方法将原始数据映射到合适的高维特征空间,使得Lasso回归模型应用于非线性的光伏净负荷数据,最终实现光伏负荷的精准预测,维护大电网的稳定运行。Further, the technical solution provided by the present invention introduces a prediction model combining wavelet transform with Lasso regression model, in which wavelet transform reverses the time-frequency domain of time series data and focuses on the details of the data, which is more suitable for describing the photovoltaic net load Intrinsic characteristics, and the kernel method is introduced in the Lasso regression model to map the original data to a suitable high-dimensional feature space, so that the Lasso regression model can be applied to the nonlinear photovoltaic net load data, and finally realize the accurate prediction of photovoltaic load and maintain the stability of the large power grid. Stable operation.

附图说明Description of drawings

图1是本发明实施例的光伏设备的净负荷预测方法的主要步骤流程示意图;Fig. 1 is the schematic flow chart of main steps of the net load forecasting method of the photovoltaic equipment of the embodiment of the present invention;

图2是本发明实施例的光伏设备的净负荷预测装置的主要结构框图。Fig. 2 is a main structural block diagram of a net load forecasting device for photovoltaic equipment according to an embodiment of the present invention.

具体实施方式Detailed ways

下面结合附图对本发明的具体实施方式作进一步的详细说明。The specific implementation manners of the present invention will be further described in detail below in conjunction with the accompanying drawings.

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

如背景技术中所公开的,为了实现双碳目标以及缓解当前各地用电紧张的情况,目前已经在多个地区推行家用光伏设备的使用,而拥有光伏设备的家庭会在光照情况下通过光伏设备进行发电,当条件合适时可以实现电力的自给自足,甚至反过来输送到配电网中,缓解电网供电压力,因此对拥有光伏设备的家庭的净负荷预测就有助于提升配电网分配电力的安全稳定性、提供供电质量,有助于电网根据不同用户的用电需求而分配电力资源,实现资源的合理分配。As disclosed in the background technology, in order to achieve the double carbon target and alleviate the current shortage of electricity in various places, the use of household photovoltaic equipment has been promoted in many regions, and families with photovoltaic equipment will use photovoltaic equipment under sunlight. When the conditions are right, the self-sufficiency of electricity can be achieved, and even sent to the distribution network in turn to relieve the pressure on the power supply of the grid. Therefore, the net load forecast of households with photovoltaic equipment can help to improve the distribution of electricity in the distribution network. The safety and stability of the power supply and the quality of power supply will help the power grid to allocate power resources according to the power consumption needs of different users and achieve a reasonable allocation of resources.

为了改善上述问题,本发明提供的光伏设备的净负荷预测方法及装置,包括:利用预先构建的回归模型预测光伏设备的净负荷的小波数据在高维特征空间的稀疏解;对所述光伏设备的净负荷的小波数据在高维特征空间的稀疏解进行小波重构,得到光伏设备的净负荷预测数据;其中,所述小波数据包括:低频系数和高频系数。本发明提供的技术方案,可以有效实现数据的降维以及光伏负荷的高精度预测,可实现对多种外部特征与用电行为的分析,实现高维数据变量筛选和高精度预测,从而合理安排电力系统的运行计划;In order to improve the above problems, the net load prediction method and device of the photovoltaic equipment provided by the present invention include: using a pre-built regression model to predict the sparse solution of the wavelet data of the net load of the photovoltaic equipment in a high-dimensional feature space; Perform wavelet reconstruction of the wavelet data of the net load in the sparse solution of the high-dimensional feature space to obtain the net load prediction data of the photovoltaic equipment; wherein, the wavelet data includes: low-frequency coefficients and high-frequency coefficients. The technical solution provided by the present invention can effectively realize data dimensionality reduction and high-precision prediction of photovoltaic load, and can realize analysis of various external characteristics and power consumption behavior, realize high-dimensional data variable screening and high-precision prediction, and thus rationally arrange The operation plan of the power system;

进一步的,本发明提供的技术方案,引入一种小波变换结合Lasso回归模型的预测模型,其中小波变换将时间序列数据的时频域进行对调,聚焦到数据的细节,更适合描述光伏净负荷的内在特性,而在Lasso回归模型中引入核方法将原始数据映射到合适的高维特征空间,使得Lasso回归模型应用于非线性的光伏净负荷数据,最终实现光伏负荷的精准预测,维护大电网的稳定运行。下面对上述方案进行详细阐述。Further, the technical solution provided by the present invention introduces a prediction model combining wavelet transform with Lasso regression model, in which wavelet transform reverses the time-frequency domain of time series data and focuses on the details of the data, which is more suitable for describing the photovoltaic net load Intrinsic characteristics, and the kernel method is introduced in the Lasso regression model to map the original data to a suitable high-dimensional feature space, so that the Lasso regression model can be applied to the nonlinear photovoltaic net load data, and finally realize the accurate prediction of photovoltaic load and maintain the stability of the large power grid. Stable operation. The above scheme will be described in detail below.

实施例1Example 1

参阅附图1,图1是本发明的一个实施例的光伏设备的净负荷预测方法的主要步骤流程示意图。如图1所示,本发明实施例中的光伏设备的净负荷预测方法主要包括以下步骤:Referring to accompanying drawing 1, Fig. 1 is a schematic flowchart of main steps of a method for forecasting net load of photovoltaic equipment according to an embodiment of the present invention. As shown in Figure 1, the net load forecasting method of the photovoltaic equipment in the embodiment of the present invention mainly comprises the following steps:

步骤S101:利用预先构建的回归模型预测光伏设备的净负荷的小波数据在高维特征空间的稀疏解;Step S101: using the pre-built regression model to predict the sparse solution of the wavelet data of the net load of the photovoltaic equipment in the high-dimensional feature space;

步骤S102:对所述光伏设备的净负荷的小波数据在高维特征空间的稀疏解进行小波重构,得到光伏设备的净负荷预测数据;Step S102: performing wavelet reconstruction on the sparse solution of the wavelet data of the net load of the photovoltaic equipment in the high-dimensional feature space to obtain the net load prediction data of the photovoltaic equipment;

其中,所述小波数据包括:低频系数和高频系数。Wherein, the wavelet data includes: low-frequency coefficients and high-frequency coefficients.

小波变换主要包含连续小波变换和离散小波变换。由于在本实施例中是以过去同一时刻的数据来预测当前时刻的净负荷,本实施例采用离散小波变换来对原始净负荷时间序列数据进行分解。Wavelet transform mainly includes continuous wavelet transform and discrete wavelet transform. Since in this embodiment the net load at the current time is predicted using the data at the same time in the past, this embodiment uses discrete wavelet transform to decompose the original net load time series data.

对输入的光伏净负荷时间序列进行分解,经过分解后,原始信号会产生一个近似系列和若干细节系列。近似系列表示低频系数(approximate coefficients),包含光伏净负荷的趋势信息;细节系列表示高频系数(detail coefficients),包含与光伏净负荷相关的影响因素特征。其中,所述光伏设备的净负荷的低频系数的计算式如下:Decompose the input photovoltaic net load time series, after decomposition, the original signal will produce an approximate series and several detail series. The approximate series represent the low-frequency coefficients (approximate coefficients), which contain the trend information of the photovoltaic net load; the detail series represent the high-frequency coefficients (detail coefficients), which contain the characteristics of the influencing factors related to the photovoltaic net load. Wherein, the calculation formula of the low frequency coefficient of the net load of the photovoltaic equipment is as follows:

Figure BDA0003760904260000071
Figure BDA0003760904260000071

所述光伏设备的净负荷的高频系数的计算式如下:The calculation formula of the high frequency coefficient of the net load of the photovoltaic equipment is as follows:

Figure BDA0003760904260000072
Figure BDA0003760904260000072

上式中,A为光伏设备的净负荷的低频系数,

Figure BDA0003760904260000073
Figure BDA0003760904260000074
对应的分解系数,
Figure BDA0003760904260000075
为对应缩放常数m和平移常数n选择的小波函数,t为当前时刻,D为光伏设备的净负荷的高频系数,
Figure BDA0003760904260000076
为ψmn对应的分解系数,ψmn为与
Figure BDA0003760904260000077
的互补的小波函数。In the above formula, A is the low frequency coefficient of the net load of the photovoltaic equipment,
Figure BDA0003760904260000073
for
Figure BDA0003760904260000074
The corresponding decomposition coefficient,
Figure BDA0003760904260000075
is the wavelet function selected corresponding to the scaling constant m and the translation constant n, t is the current moment, D is the high frequency coefficient of the net load of the photovoltaic equipment,
Figure BDA0003760904260000076
is the decomposition coefficient corresponding to ψ mn , and ψ mn is the
Figure BDA0003760904260000077
The complementary wavelet function of .

进一步的,所述

Figure BDA0003760904260000078
对应的分解系数的计算式如下:Further, the
Figure BDA0003760904260000078
The calculation formula of the corresponding decomposition coefficient is as follows:

Figure BDA0003760904260000081
Figure BDA0003760904260000081

所述ψmn对应的分解系数的计算式如下:The calculation formula of the decomposition coefficient corresponding to the ψ mn is as follows:

Figure BDA0003760904260000082
Figure BDA0003760904260000082

上式中,T为光伏设备的净负荷序列长度,pt为t时刻光伏设备的净负荷。In the above formula, T is the net load sequence length of photovoltaic equipment, p t is the net load of photovoltaic equipment at time t.

由于在时间序列处理中,Daubechies(db)应用效果较好,因此在本实施例中选择Daubechies小波变换对原始净负荷数据进行分解,待Lasso回归模型预测之后,还需要进行小波重构将系数数据还原原始净负荷数据。Since the application effect of Daubechies (db) is better in time series processing, Daubechies wavelet transform is selected in this embodiment to decompose the original payload data. After the Lasso regression model is predicted, wavelet reconstruction is required to transform the coefficient data Restore the original payload data.

本实施例中,使用核Lasso的线性回归方法对小波变换得到的光伏净负荷的低频系数和高频系数进行预测。相比普通的线性回归,Lasso可以增强光伏净负荷的低频系数和高频系数的拟合效果,使用核函数可以将Lasso推广到非线性的光伏净负荷数据。In this embodiment, the low-frequency coefficient and high-frequency coefficient of the photovoltaic net load obtained by wavelet transformation are predicted by using the linear regression method of kernel Lasso. Compared with ordinary linear regression, Lasso can enhance the fitting effect of low-frequency coefficients and high-frequency coefficients of photovoltaic net load, and the use of kernel functions can extend Lasso to non-linear photovoltaic net load data.

所述预先构建的回归模型的获取过程包括:The acquisition process of the pre-built regression model includes:

对光伏设备的历史净负荷数据进行小波变换,得到光伏设备的历史净负荷数据的小波数据;Perform wavelet transformation on the historical net load data of the photovoltaic equipment to obtain the wavelet data of the historical net load data of the photovoltaic equipment;

采用核方法将光伏设备的历史净负荷数据的小波数据扩展到高维特征空间,得到光伏设备的历史净负荷数据的小波数据对应的线性数据;The wavelet data of the historical net load data of the photovoltaic equipment is extended to the high-dimensional feature space by using the nuclear method, and the linear data corresponding to the wavelet data of the historical net load data of the photovoltaic equipment are obtained;

利用所述线性数据构建训练数据和验证数据;Using the linear data to construct training data and verification data;

利用所述训练数据对初始Lasso回归模型进行训练,利用所述验证数据对训练后的Lasso回归模型进行验证,直至训练后的Lasso回归模型的模型指标满足收敛条件,得到所述预先构建的回归模型。Utilize the training data to train the initial Lasso regression model, utilize the verification data to verify the trained Lasso regression model, until the model index of the trained Lasso regression model meets the convergence condition, obtain the regression model constructed in advance .

进一步的,传统的回归方法选择函数的基准是函数通过自变量得到的低高频系数与实际值差值的平方和(即方差)最小,但这种方法容易造成过拟合。本实施例中在标准损失函数的基础上引入一个惩罚函数,在系数的绝对值之前乘以一个收缩参数,通过这种方法收缩系数值以减少方差,所述利用所述训练数据对初始回归模型进行训练的过程中,回归模型损失函数的计算式如下:Furthermore, the traditional regression method selects the function based on the fact that the sum of squares (ie, variance) of the difference between the low-frequency coefficients obtained by the function through the independent variable and the actual value is the smallest, but this method is prone to over-fitting. In this embodiment, a penalty function is introduced on the basis of the standard loss function, and a shrinkage parameter is multiplied before the absolute value of the coefficient. In this way, the value of the coefficient is shrunk to reduce the variance. The initial regression model using the training data During the training process, the calculation formula of the regression model loss function is as follows:

LReg(β)=LOLS(β)+PL Reg (β) = L OLS (β) + P

上式中,LReg为惩罚后的损失函数,LOLS为标准损失函数,P为惩罚函数值,β为回归系数向量。In the above formula, L Reg is the penalty loss function, L OLS is the standard loss function, P is the penalty function value, and β is the regression coefficient vector.

其中,所述标准损失函数的计算式如下:Wherein, the calculation formula of the standard loss function is as follows:

LOLS(β)=||Y-Xβ||2 LOLS (β)=||Y- || 2

上式中,Y为x×1维预测变量矩阵,X为x×p维结果变量向量,x为观察值个数,p为预测变量个数。In the above formula, Y is an x×1-dimensional predictor variable matrix, X is an x×p-dimensional outcome variable vector, x is the number of observations, and p is the number of predictors.

通过Lasso模型对小波变换得到的光伏净负荷的低高频系数进行预测,可以有效地防止过拟合,此外,无论是训练数据比较少的情况还是维度过高的情况,连续的或者离散的,Lasso都可以处理。Using the Lasso model to predict the low and high frequency coefficients of the photovoltaic net load obtained by wavelet transform can effectively prevent overfitting. In addition, whether it is the case of relatively small training data or the case of too high dimension, continuous or discrete, Lasso can handle it all.

另一方面,小波变换得到的光伏净负荷的低高频系数有可能是非线性的,而常规Lasso方法的无法处理非线性的数据,对于这些线性回归无法处理的数据类型,可以将原始数据扩展到高维空间,在高维空间进行线性回归。On the other hand, the low and high frequency coefficients of photovoltaic net load obtained by wavelet transform may be nonlinear, and the conventional Lasso method cannot handle nonlinear data. For these data types that cannot be processed by linear regression, the original data can be extended to High-dimensional space, perform linear regression in high-dimensional space.

核方法(KMs)是一类模式识别的算法。其目的是找出并学习一组数据中的相互的关系。用途较广的核方法有支持向量机、高斯过程等。Kernel methods (KMs) are a class of algorithms for pattern recognition. Its purpose is to find and learn the mutual relationship in a set of data. Widely used kernel methods include support vector machines, Gaussian processes, etc.

通过核方法,可以将非线性的光伏净负荷低高频系数嵌入到合适的高维特征空间;然后,利用通用的线性学习器在这个新的空间中分析和处理模式。而核函数(Kernelfunction)的存在,能够将将非线性映射隐含在线性学习器中进行同步计算,使得计算复杂度与高维特征空间的维数无关。Through the kernel method, the nonlinear low- and high-frequency coefficients of PV net loads can be embedded into a suitable high-dimensional feature space; then, patterns are analyzed and processed in this new space using a general linear learner. The existence of the kernel function (Kernel function) can imply the nonlinear mapping in the linear learner for simultaneous calculation, so that the computational complexity has nothing to do with the dimension of the high-dimensional feature space.

通过核函数将光伏净负荷低高频系数数据扩展到高维特征空间的数据进行Lasso拟合,从而得到高维特征空间的稀疏解。The data of low and high frequency coefficients of photovoltaic net load is extended to the data of high-dimensional feature space by kernel function for Lasso fitting, so as to obtain the sparse solution of high-dimensional feature space.

在一个最优的实施方式中,主要针对96维的净负荷数据的每一维都进行核Lasso回归预测,在此之前需要对每一维的光伏净负荷数据都进行离散小波变换得到高频系数D和低频系数A,之后分别对每一维度的D和A进行训练和预测,得到预测的D和A,之后进行小波重构得到一个维度的预测值,之后将96个维度的预测值组合起来就是一天的预测情况,之后再和实际值进行比较,分析预测效果。In an optimal implementation, the kernel Lasso regression prediction is mainly performed for each dimension of the 96-dimensional net load data. Before that, it is necessary to perform discrete wavelet transform on each dimension of the photovoltaic net load data to obtain high-frequency coefficients D and low-frequency coefficient A, then train and predict D and A in each dimension respectively to obtain predicted D and A, then perform wavelet reconstruction to obtain a predicted value of one dimension, and then combine the predicted values of 96 dimensions It is the forecast of one day, and then compare it with the actual value to analyze the forecast effect.

本实施例中,所述模型指标包括下述中的至少一种:平均绝对百分比误差、均方误差。In this embodiment, the model index includes at least one of the following: mean absolute percentage error, mean square error.

在一个实施方式中,所述平均绝对百分比误差的计算式如下:In one embodiment, the formula for calculating the mean absolute percentage error is as follows:

Figure BDA0003760904260000091
Figure BDA0003760904260000091

所述均方误差的计算式如下:The formula for calculating the mean square error is as follows:

Figure BDA0003760904260000092
Figure BDA0003760904260000092

上式中,MSE为平均绝对百分比误差,I为所述验证数据中总样本数据个数,yi为所述验证数据中第i个样本数据的实际值,

Figure BDA0003760904260000093
为所述验证数据中第i个样本数据的预测值,MAPE为均方误差。In the above formula, MSE is the mean absolute percentage error, I is the total number of sample data in the verification data, and y i is the actual value of the i-th sample data in the verification data,
Figure BDA0003760904260000093
is the predicted value of the i-th sample data in the verification data, and MAPE is the mean square error.

在一个最优的实施方式中,采用本发明提供的光伏设备的净负荷预测方法进行预测,整体预测效果良好,在此展示某台区针对2021/5/12-2021/5/18的周预测指标,如表1所示:In an optimal implementation, the net load forecasting method of photovoltaic equipment provided by the present invention is used for forecasting, and the overall forecasting effect is good. Here is a weekly forecast for a certain station area for 2021/5/12-2021/5/18 Indicators, as shown in Table 1:

表1Table 1

Figure BDA0003760904260000101
Figure BDA0003760904260000101

由此可以看出本发明提供的光伏设备的净负荷预测方法的预测效果良好。It can be seen from this that the prediction effect of the net load prediction method for photovoltaic equipment provided by the present invention is good.

之后选择小波变换结合核Lasso回归算法对各个台区进行预测,将待预测的周之前的历史数据作为训练集,训练之后对该周进行周预测,从2021/1/1-2021/1/7的周预测的结果指标值如表2所示:Then choose the wavelet transform combined with the kernel Lasso regression algorithm to predict each station area, use the historical data before the week to be predicted as the training set, and make weekly predictions for the week after training, from 2021/1/1-2021/1/7 The results of the weekly forecast index values are shown in Table 2:

表2Table 2

Figure BDA0003760904260000102
Figure BDA0003760904260000102

由此可以看出,核Lasso回归算法对大多数台区的预测效果较好,但是其中对台区5和台区9的效果很差,经过分析,台区5和台区9预测和实际值的差异主要体现在光伏净负荷的峰值上,峰值以及其附近的差异较大最终导致预测效果,虽然其他台区的整体预测效果较好,但是在峰值附近的预测效果也不够理想,可能的原因可能有两个,一个是核Lasso对峰值的预测效果很差,不能很快地反映时间序列的变化,另一个原因就是没有考虑温度、光照等气象因素对净负荷数据的影响。It can be seen from this that the kernel Lasso regression algorithm has a better prediction effect on most of the station areas, but the effect on station area 5 and station area 9 is very poor. After analysis, the predicted and actual values of station area 5 and station area 9 The difference is mainly reflected in the peak value of the photovoltaic net load. The large difference between the peak value and its vicinity will eventually lead to the prediction effect. Although the overall prediction effect of other stations is better, the prediction effect near the peak value is not ideal. The possible reasons There may be two reasons. One is that Kernel Lasso’s peak prediction effect is very poor and cannot quickly reflect changes in time series. The other reason is that it does not consider the influence of meteorological factors such as temperature and light on the payload data.

进一步的,使用小波变换的效果Further, the effect of using wavelet transform

最后可以比较仅使用核Lasso回归模型和使用小波变换结合核Lasso回归模型进行预测,发现在一些数据区域中后者相比前者准确性提高不少,在下面展示在某台区在2021/5/5-2021/5/11的周预测指标结果如表3所示:Finally, we can compare using only the kernel Lasso regression model and using the wavelet transform combined with the kernel Lasso regression model to make predictions. It is found that in some data areas, the accuracy of the latter is much higher than that of the former. It is shown below in a certain area in 2021/5/ The results of the weekly forecast indicators for 5-2021/5/11 are shown in Table 3:

Figure BDA0003760904260000111
Figure BDA0003760904260000111

之所以效果好,主要是因为小波变换能将时间序列划分为更加平稳、平滑的系数序列,便于后续核Lasso回归模型的预测。因此,可以通过将基于小波变换的核Lasso回归模型与仅使用核Lasso回归模型进行结合,即根据上一次预测的指标值来选择指标值更小的模型进行预测,如此持续下去,可以提升整体预测的准确性。The reason why the effect is good is mainly because the wavelet transform can divide the time series into more stable and smooth coefficient series, which is convenient for the prediction of the subsequent kernel Lasso regression model. Therefore, it is possible to combine the kernel Lasso regression model based on wavelet transform with the kernel Lasso regression model only, that is, to select a model with a smaller index value for prediction according to the index value of the last prediction, and continue to improve the overall prediction. accuracy.

实施例2Example 2

基于同一种发明构思,本发明还提供了一种光伏设备的净负荷预测装置,如图2所示,所述光伏设备的净负荷预测装置包括:Based on the same inventive concept, the present invention also provides a net load forecasting device for photovoltaic equipment, as shown in Figure 2, the net load forecasting device for photovoltaic equipment includes:

预测模块,用于利用预先构建的回归模型预测光伏设备的净负荷的小波数据在高维特征空间的稀疏解;The prediction module is used to predict the sparse solution of the wavelet data of the net load of the photovoltaic equipment in the high-dimensional feature space by using the regression model constructed in advance;

重构模块,用于对所述光伏设备的净负荷的小波数据在高维特征空间的稀疏解进行小波重构,得到光伏设备的净负荷预测数据;The reconstruction module is used to perform wavelet reconstruction on the sparse solution of the wavelet data of the net load of the photovoltaic equipment in the high-dimensional feature space, and obtain the net load prediction data of the photovoltaic equipment;

其中,所述小波数据包括:低频系数和高频系数。Wherein, the wavelet data includes: low-frequency coefficients and high-frequency coefficients.

优选的,所述预测模块中,光伏设备的净负荷的低频系数的计算式如下:Preferably, in the prediction module, the calculation formula of the low frequency coefficient of the net load of the photovoltaic equipment is as follows:

Figure BDA0003760904260000112
Figure BDA0003760904260000112

所述光伏设备的净负荷的高频系数的计算式如下:The calculation formula of the high frequency coefficient of the net load of the photovoltaic equipment is as follows:

Figure BDA0003760904260000121
Figure BDA0003760904260000121

上式中,A为光伏设备的净负荷的低频系数,

Figure BDA0003760904260000122
Figure BDA0003760904260000123
对应的分解系数,
Figure BDA0003760904260000124
为对应缩放常数m和平移常数n选择的小波函数,t为当前时刻,D为光伏设备的净负荷的高频系数,
Figure BDA0003760904260000125
为ψmn对应的分解系数,ψmn为与
Figure BDA0003760904260000126
的互补的小波函数。In the above formula, A is the low frequency coefficient of the net load of the photovoltaic equipment,
Figure BDA0003760904260000122
for
Figure BDA0003760904260000123
The corresponding decomposition coefficient,
Figure BDA0003760904260000124
is the wavelet function selected corresponding to the scaling constant m and the translation constant n, t is the current moment, D is the high frequency coefficient of the net load of the photovoltaic equipment,
Figure BDA0003760904260000125
is the decomposition coefficient corresponding to ψ mn , and ψ mn is the
Figure BDA0003760904260000126
The complementary wavelet function of .

进一步的,所述

Figure BDA0003760904260000127
对应的分解系数的计算式如下:Further, the
Figure BDA0003760904260000127
The calculation formula of the corresponding decomposition coefficient is as follows:

Figure BDA0003760904260000128
Figure BDA0003760904260000128

所述ψmn对应的分解系数的计算式如下:The calculation formula of the decomposition coefficient corresponding to the ψ mn is as follows:

Figure BDA0003760904260000129
Figure BDA0003760904260000129

上式中,T为光伏设备的净负荷序列长度,pt为t时刻光伏设备的净负荷。In the above formula, T is the net load sequence length of photovoltaic equipment, p t is the net load of photovoltaic equipment at time t.

优选的,所述预测模块中,预先构建的回归模型的获取过程包括:Preferably, in the prediction module, the acquisition process of the pre-built regression model includes:

对光伏设备的历史净负荷数据进行小波变换,得到光伏设备的历史净负荷数据的小波数据;Perform wavelet transformation on the historical net load data of the photovoltaic equipment to obtain the wavelet data of the historical net load data of the photovoltaic equipment;

采用核装置将光伏设备的历史净负荷数据的小波数据扩展到高维特征空间,得到光伏设备的历史净负荷数据的小波数据对应的线性数据;Using nuclear devices to expand the wavelet data of the historical net load data of photovoltaic equipment to high-dimensional feature space, and obtain the linear data corresponding to the wavelet data of the historical net load data of photovoltaic equipment;

利用所述线性数据构建训练数据和验证数据;Using the linear data to construct training data and verification data;

利用所述训练数据对初始Lasso回归模型进行训练,利用所述验证数据对训练后的Lasso回归模型进行验证,直至训练后的Lasso回归模型的模型指标满足收敛条件,得到所述预先构建的回归模型。Utilize the training data to train the initial Lasso regression model, utilize the verification data to verify the trained Lasso regression model, until the model index of the trained Lasso regression model meets the convergence condition, obtain the regression model constructed in advance .

进一步的,所述利用所述训练数据对初始回归模型进行训练的过程中,回归模型损失函数的计算式如下:Further, in the process of using the training data to train the initial regression model, the calculation formula of the regression model loss function is as follows:

LReg(β)=LOLS(β)+PL Reg (β) = L OLS (β) + P

上式中,LReg为惩罚后的损失函数,LOLS为标准损失函数,P为惩罚函数值,β为回归系数向量。In the above formula, L Reg is the penalty loss function, LOLS is the standard loss function, P is the penalty function value, and β is the regression coefficient vector.

进一步的,所述标准损失函数的计算式如下:Further, the calculation formula of the standard loss function is as follows:

LOLS(β)=||Y-Xβ||2 LOLS (β)=||Y- || 2

上式中,Y为x×1维预测变量矩阵,X为x×p维结果变量向量,x为观察值个数,p为预测变量个数。In the above formula, Y is an x×1-dimensional predictor variable matrix, X is an x×p-dimensional outcome variable vector, x is the number of observations, and p is the number of predictors.

进一步的,所述模型指标包括下述中的至少一种:平均绝对百分比误差、均方误差。Further, the model index includes at least one of the following: mean absolute percentage error, mean square error.

进一步的,所述平均绝对百分比误差的计算式如下:Further, the formula for calculating the mean absolute percentage error is as follows:

Figure BDA0003760904260000131
Figure BDA0003760904260000131

所述均方误差的计算式如下:The formula for calculating the mean square error is as follows:

Figure BDA0003760904260000132
Figure BDA0003760904260000132

上式中,MSE为平均绝对百分比误差,I为所述验证数据中总样本数据个数,yi为所述验证数据中第i个样本数据的实际值,

Figure BDA0003760904260000133
为所述验证数据中第i个样本数据的预测值,MAPE为均方误差。In the above formula, MSE is the mean absolute percentage error, I is the total number of sample data in the verification data, and y i is the actual value of the i-th sample data in the verification data,
Figure BDA0003760904260000133
is the predicted value of the i-th sample data in the verification data, and MAPE is the mean square error.

实施例3Example 3

基于同一种发明构思,本发明还提供了一种计算机设备,该计算机设备包括处理器以及存储器,所述存储器用于存储计算机程序,所述计算机程序包括程序指令,所述处理器用于执行所述计算机存储介质存储的程序指令。处理器可能是中央处理单元(CentralProcessingUnit,CPU),还可以是其他通用处理器、数字信号处理器(Digital SignalProcessor、DSP)、专用集成电路(Application SpecificIntegrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable GateArray,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等,其是终端的计算核心以及控制核心,其适于实现一条或一条以上指令,具体适于加载并执行计算机存储介质内一条或一条以上指令从而实现相应方法流程或相应功能,以实现上述实施例中一种光伏设备的净负荷预测方法的步骤。Based on the same inventive concept, the present invention also provides a computer device, the computer device includes a processor and a memory, the memory is used to store a computer program, the computer program includes program instructions, and the processor is used to execute the Program instructions stored in a computer storage medium. The processor may be a central processing unit (Central Processing Unit, CPU), or other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field -Programmable GateArray, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., which are the computing core and control core of the terminal, which are suitable for implementing one or more instructions, and are specifically suitable for loading and Execute one or more instructions in the computer storage medium to realize the corresponding method flow or corresponding function, so as to realize the steps of a method for predicting the net load of photovoltaic equipment in the above embodiment.

实施例4Example 4

基于同一种发明构思,本发明还提供了一种存储介质,具体为计算机可读存储介质(Memory),所述计算机可读存储介质是计算机设备中的记忆设备,用于存放程序和数据。可以理解的是,此处的计算机可读存储介质既可以包括计算机设备中的内置存储介质,当然也可以包括计算机设备所支持的扩展存储介质。计算机可读存储介质提供存储空间,该存储空间存储了终端的操作系统。并且,在该存储空间中还存放了适于被处理器加载并执行的一条或一条以上的指令,这些指令可以是一个或一个以上的计算机程序(包括程序代码)。需要说明的是,此处的计算机可读存储介质可以是高速RAM存储器,也可以是非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。可由处理器加载并执行计算机可读存储介质中存放的一条或一条以上指令,以实现上述实施例中一种光伏设备的净负荷预测方法的步骤。Based on the same inventive concept, the present invention also provides a storage medium, specifically a computer-readable storage medium (Memory). The computer-readable storage medium is a memory device in a computer device for storing programs and data. It can be understood that the computer-readable storage medium here may include a built-in storage medium in the computer device, and of course may also include an extended storage medium supported by the computer device. The computer-readable storage medium provides storage space, and the storage space stores the operating system of the terminal. Moreover, one or more instructions suitable for being loaded and executed by the processor are also stored in the storage space, and these instructions may be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here may be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one magnetic disk memory. One or more instructions stored in the computer-readable storage medium can be loaded and executed by the processor, so as to realize the steps of a method for predicting the net load of photovoltaic equipment in the above-mentioned embodiments.

本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems, or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.

最后应当说明的是:以上实施例仅用以说明本发明的技术方案而非对其限制,尽管参照上述实施例对本发明进行了详细的说明,所属领域的普通技术人员应当理解:依然可以对本发明的具体实施方式进行修改或者等同替换,而未脱离本发明精神和范围的任何修改或者等同替换,其均应涵盖在本发明的权利要求保护范围之内。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit them. Although the present invention has been described in detail with reference to the above embodiments, those of ordinary skill in the art should understand that: the present invention can still be Any modifications or equivalent replacements that do not depart from the spirit and scope of the present invention shall fall within the protection scope of the claims of the present invention.

Claims (18)

1.一种光伏设备的净负荷预测方法,其特征在于,所述方法包括:1. A net load forecasting method for photovoltaic equipment, characterized in that the method comprises: 利用预先构建的回归模型预测光伏设备的净负荷的小波数据在高维特征空间的稀疏解;Sparse solution of wavelet data in high-dimensional feature space to predict net load of photovoltaic equipment using pre-built regression model; 对所述光伏设备的净负荷的小波数据在高维特征空间的稀疏解进行小波重构,得到光伏设备的净负荷预测数据;Performing wavelet reconstruction on the sparse solution of the wavelet data of the net load of the photovoltaic equipment in the high-dimensional feature space, to obtain the net load prediction data of the photovoltaic equipment; 其中,所述小波数据包括:低频系数和高频系数。Wherein, the wavelet data includes: low-frequency coefficients and high-frequency coefficients. 2.如权利要求1所述的方法,其特征在于,所述光伏设备的净负荷的低频系数的计算式如下:2. The method according to claim 1, wherein the calculation formula of the low-frequency coefficient of the net load of the photovoltaic device is as follows:
Figure FDA0003760904250000011
Figure FDA0003760904250000011
所述光伏设备的净负荷的高频系数的计算式如下:The calculation formula of the high frequency coefficient of the net load of the photovoltaic equipment is as follows:
Figure FDA0003760904250000012
Figure FDA0003760904250000012
上式中,A为光伏设备的净负荷的低频系数,
Figure FDA0003760904250000013
Figure FDA0003760904250000014
对应的分解系数,
Figure FDA0003760904250000015
为对应缩放常数m和平移常数n选择的小波函数,t为当前时刻,D为光伏设备的净负荷的高频系数,
Figure FDA0003760904250000016
为ψmn对应的分解系数,ψmn为与
Figure FDA0003760904250000017
的互补的小波函数。
In the above formula, A is the low frequency coefficient of the net load of the photovoltaic equipment,
Figure FDA0003760904250000013
for
Figure FDA0003760904250000014
The corresponding decomposition coefficient,
Figure FDA0003760904250000015
is the wavelet function selected corresponding to the scaling constant m and the translation constant n, t is the current moment, D is the high frequency coefficient of the net load of the photovoltaic equipment,
Figure FDA0003760904250000016
is the decomposition coefficient corresponding to ψ mn , and ψ mn is the
Figure FDA0003760904250000017
The complementary wavelet function of .
3.如权利要求2所述的方法,其特征在于,所述
Figure FDA0003760904250000018
对应的分解系数的计算式如下:
3. The method of claim 2, wherein the
Figure FDA0003760904250000018
The calculation formula of the corresponding decomposition coefficient is as follows:
Figure FDA0003760904250000019
Figure FDA0003760904250000019
所述ψmn对应的分解系数的计算式如下:The calculation formula of the decomposition coefficient corresponding to the ψ mn is as follows:
Figure FDA00037609042500000110
Figure FDA00037609042500000110
上式中,T为光伏设备的净负荷序列长度,pt为t时刻光伏设备的净负荷。In the above formula, T is the net load sequence length of photovoltaic equipment, p t is the net load of photovoltaic equipment at time t.
4.如权利要求1所述的方法,其特征在于,所述预先构建的回归模型的获取过程包括:4. The method according to claim 1, wherein the acquisition process of the pre-built regression model comprises: 对光伏设备的历史净负荷数据进行小波变换,得到光伏设备的历史净负荷数据的小波数据;Perform wavelet transformation on the historical net load data of the photovoltaic equipment to obtain the wavelet data of the historical net load data of the photovoltaic equipment; 采用核方法将光伏设备的历史净负荷数据的小波数据扩展到高维特征空间,得到光伏设备的历史净负荷数据的小波数据对应的线性数据;The wavelet data of the historical net load data of the photovoltaic equipment is extended to the high-dimensional feature space by using the nuclear method, and the linear data corresponding to the wavelet data of the historical net load data of the photovoltaic equipment are obtained; 利用所述线性数据构建训练数据和验证数据;Using the linear data to construct training data and verification data; 利用所述训练数据对初始Lasso回归模型进行训练,利用所述验证数据对训练后的Lasso回归模型进行验证,直至训练后的Lasso回归模型的模型指标满足收敛条件,得到所述预先构建的回归模型。Utilize the training data to train the initial Lasso regression model, utilize the verification data to verify the trained Lasso regression model, until the model index of the trained Lasso regression model meets the convergence condition, obtain the regression model constructed in advance . 5.如权利要求4所述的方法,其特征在于,所述利用所述训练数据对初始回归模型进行训练的过程中,回归模型损失函数的计算式如下:5. The method according to claim 4, wherein, in the process of utilizing the training data to train the initial regression model, the calculation formula of the regression model loss function is as follows: LReg(β)=LOLS(β)+PL Reg (β) = L OLS (β) + P 上式中,LReg为惩罚后的损失函数,LOLS为标准损失函数,P为惩罚函数值,β为回归系数向量。In the above formula, L Reg is the penalty loss function, L OLS is the standard loss function, P is the penalty function value, and β is the regression coefficient vector. 6.如权利要求5所述的方法,其特征在于,所述标准损失函数的计算式如下:6. The method according to claim 5, wherein the calculation formula of the standard loss function is as follows: LOLS(β)=||Y-Xβ||2 LOLS (β)=||Y- || 2 上式中,Y为x×1维预测变量矩阵,X为x×p维结果变量向量,x为观察值个数,p为预测变量个数。In the above formula, Y is an x×1-dimensional predictor variable matrix, X is an x×p-dimensional outcome variable vector, x is the number of observations, and p is the number of predictors. 7.如权利要求4所述的方法,其特征在于,所述模型指标包括下述中的至少一种:平均绝对百分比误差、均方误差。7. The method according to claim 4, wherein the model index comprises at least one of the following: mean absolute percentage error, mean square error. 8.如权利要求7所述的方法,其特征在于,所述平均绝对百分比误差的计算式如下:8. method as claimed in claim 7, is characterized in that, the computing formula of described mean absolute percentage error is as follows:
Figure FDA0003760904250000021
Figure FDA0003760904250000021
所述均方误差的计算式如下:The formula for calculating the mean square error is as follows:
Figure FDA0003760904250000022
Figure FDA0003760904250000022
上式中,MSE为平均绝对百分比误差,I为所述验证数据中总样本数据个数,yi为所述验证数据中第i个样本数据的实际值,
Figure FDA0003760904250000023
为所述验证数据中第i个样本数据的预测值,MAPE为均方误差。
In the above formula, MSE is the mean absolute percentage error, I is the total number of sample data in the verification data, and y i is the actual value of the i-th sample data in the verification data,
Figure FDA0003760904250000023
is the predicted value of the i-th sample data in the verification data, and MAPE is the mean square error.
9.一种光伏设备的净负荷预测装置,其特征在于,所述装置包括:9. A net load forecasting device for photovoltaic equipment, characterized in that the device comprises: 预测模块,用于利用预先构建的回归模型预测光伏设备的净负荷的小波数据在高维特征空间的稀疏解;The prediction module is used to predict the sparse solution of the wavelet data of the net load of the photovoltaic equipment in the high-dimensional feature space by using the regression model constructed in advance; 重构模块,用于对所述光伏设备的净负荷的小波数据在高维特征空间的稀疏解进行小波重构,得到光伏设备的净负荷预测数据;The reconstruction module is used to perform wavelet reconstruction on the sparse solution of the wavelet data of the net load of the photovoltaic equipment in the high-dimensional feature space, and obtain the net load prediction data of the photovoltaic equipment; 其中,所述小波数据包括:低频系数和高频系数。Wherein, the wavelet data includes: low-frequency coefficients and high-frequency coefficients. 10.如权利要求9所述的装置,其特征在于,所述预测模块中,光伏设备的净负荷的低频系数的计算式如下:10. The device according to claim 9, wherein, in the prediction module, the calculation formula of the low-frequency coefficient of the net load of photovoltaic equipment is as follows:
Figure FDA0003760904250000024
Figure FDA0003760904250000024
所述光伏设备的净负荷的高频系数的计算式如下:The calculation formula of the high frequency coefficient of the net load of the photovoltaic equipment is as follows:
Figure FDA0003760904250000025
Figure FDA0003760904250000025
上式中,A为光伏设备的净负荷的低频系数,
Figure FDA0003760904250000031
Figure FDA0003760904250000032
对应的分解系数,
Figure FDA0003760904250000033
为对应缩放常数m和平移常数n选择的小波函数,t为当前时刻,D为光伏设备的净负荷的高频系数,
Figure FDA0003760904250000034
为ψmn对应的分解系数,ψmn为与
Figure FDA0003760904250000035
的互补的小波函数。
In the above formula, A is the low frequency coefficient of the net load of the photovoltaic equipment,
Figure FDA0003760904250000031
for
Figure FDA0003760904250000032
The corresponding decomposition coefficient,
Figure FDA0003760904250000033
is the wavelet function selected corresponding to the scaling constant m and the translation constant n, t is the current moment, D is the high frequency coefficient of the net load of the photovoltaic equipment,
Figure FDA0003760904250000034
is the decomposition coefficient corresponding to ψ mn , and ψ mn is the
Figure FDA0003760904250000035
The complementary wavelet function of .
11.如权利要求10所述的装置,其特征在于,所述
Figure FDA0003760904250000036
对应的分解系数的计算式如下:
11. The apparatus of claim 10, wherein the
Figure FDA0003760904250000036
The calculation formula of the corresponding decomposition coefficient is as follows:
Figure FDA0003760904250000037
Figure FDA0003760904250000037
所述ψmn对应的分解系数的计算式如下:The calculation formula of the decomposition coefficient corresponding to the ψ mn is as follows:
Figure FDA0003760904250000038
Figure FDA0003760904250000038
上式中,T为光伏设备的净负荷序列长度,pt为t时刻光伏设备的净负荷。In the above formula, T is the net load sequence length of photovoltaic equipment, p t is the net load of photovoltaic equipment at time t.
12.如权利要求9所述的装置,其特征在于,所述预测模块中,预先构建的回归模型的获取过程包括:12. The device according to claim 9, wherein, in the prediction module, the acquisition process of the pre-built regression model comprises: 对光伏设备的历史净负荷数据进行小波变换,得到光伏设备的历史净负荷数据的小波数据;Perform wavelet transformation on the historical net load data of the photovoltaic equipment to obtain the wavelet data of the historical net load data of the photovoltaic equipment; 采用核装置将光伏设备的历史净负荷数据的小波数据扩展到高维特征空间,得到光伏设备的历史净负荷数据的小波数据对应的线性数据;Using nuclear devices to expand the wavelet data of the historical net load data of photovoltaic equipment to high-dimensional feature space, and obtain the linear data corresponding to the wavelet data of the historical net load data of photovoltaic equipment; 利用所述线性数据构建训练数据和验证数据;Using the linear data to construct training data and verification data; 利用所述训练数据对初始Lasso回归模型进行训练,利用所述验证数据对训练后的Lasso回归模型进行验证,直至训练后的Lasso回归模型的模型指标满足收敛条件,得到所述预先构建的回归模型。Utilize the training data to train the initial Lasso regression model, utilize the verification data to verify the trained Lasso regression model, until the model index of the trained Lasso regression model meets the convergence condition, obtain the regression model constructed in advance . 13.如权利要求12所述的装置,其特征在于,所述利用所述训练数据对初始回归模型进行训练的过程中,回归模型损失函数的计算式如下:13. The device according to claim 12, wherein, in the process of using the training data to train the initial regression model, the calculation formula of the regression model loss function is as follows: LReg(β)=LOLS(β)+PL Reg (β) = L OLS (β) + P 上式中,LReg为惩罚后的损失函数,LOLS为标准损失函数,P为惩罚函数值,β为回归系数向量。In the above formula, L Reg is the penalty loss function, L OLS is the standard loss function, P is the penalty function value, and β is the regression coefficient vector. 14.如权利要求13所述的装置,其特征在于,所述标准损失函数的计算式如下:14. The device according to claim 13, wherein the calculation formula of the standard loss function is as follows: LOLS(β)=||Y-Xβ||2 LOLS (β)=||Y- || 2 上式中,Y为x×1维预测变量矩阵,X为x×p维结果变量向量,x为观察值个数,p为预测变量个数。In the above formula, Y is an x×1-dimensional predictor variable matrix, X is an x×p-dimensional outcome variable vector, x is the number of observations, and p is the number of predictors. 15.如权利要求12所述的装置,其特征在于,所述模型指标包括下述中的至少一种:平均绝对百分比误差、均方误差。15. The device according to claim 12, wherein the model index comprises at least one of the following: mean absolute percentage error, mean square error. 16.如权利要求15所述的装置,其特征在于,所述平均绝对百分比误差的计算式如下:16. The device according to claim 15, wherein the formula for calculating the mean absolute percentage error is as follows:
Figure FDA0003760904250000041
Figure FDA0003760904250000041
所述均方误差的计算式如下:The formula for calculating the mean square error is as follows:
Figure FDA0003760904250000042
Figure FDA0003760904250000042
上式中,MSE为平均绝对百分比误差,I为所述验证数据中总样本数据个数,yi为所述验证数据中第i个样本数据的实际值,
Figure FDA0003760904250000043
为所述验证数据中第i个样本数据的预测值,MAPE为均方误差。
In the above formula, MSE is the mean absolute percentage error, I is the total number of sample data in the verification data, and y i is the actual value of the i-th sample data in the verification data,
Figure FDA0003760904250000043
is the predicted value of the i-th sample data in the verification data, and MAPE is the mean square error.
17.一种计算机设备,其特征在于,包括:一个或多个处理器;17. A computer device, comprising: one or more processors; 所述处理器,用于存储一个或多个程序;The processor is configured to store one or more programs; 当所述一个或多个程序被所述一个或多个处理器执行时,实现如权利要求1至8中任意一项所述的光伏设备的净负荷预测方法。When the one or more programs are executed by the one or more processors, the net load forecasting method for a photovoltaic device according to any one of claims 1 to 8 is realized. 18.一种计算机可读存储介质,其特征在于,其上存有计算机程序,所述计算机程序被执行时,实现如权利要求1至8中任意一项所述的光伏设备的净负荷预测方法。18. A computer-readable storage medium, characterized in that there is a computer program stored thereon, and when the computer program is executed, the net load prediction method of photovoltaic equipment as claimed in any one of claims 1 to 8 is realized .
CN202210871446.6A 2022-07-22 2022-07-22 Net load prediction method and device of photovoltaic equipment Pending CN115271198A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210871446.6A CN115271198A (en) 2022-07-22 2022-07-22 Net load prediction method and device of photovoltaic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210871446.6A CN115271198A (en) 2022-07-22 2022-07-22 Net load prediction method and device of photovoltaic equipment

Publications (1)

Publication Number Publication Date
CN115271198A true CN115271198A (en) 2022-11-01

Family

ID=83770223

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210871446.6A Pending CN115271198A (en) 2022-07-22 2022-07-22 Net load prediction method and device of photovoltaic equipment

Country Status (1)

Country Link
CN (1) CN115271198A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117742135A (en) * 2024-02-09 2024-03-22 石家庄学院 Photovoltaic energy-saving control method and system for communication machine room

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117742135A (en) * 2024-02-09 2024-03-22 石家庄学院 Photovoltaic energy-saving control method and system for communication machine room

Similar Documents

Publication Publication Date Title
US11409347B2 (en) Method, system and storage medium for predicting power load probability density based on deep learning
Tang et al. Short‐term power load forecasting based on multi‐layer bidirectional recurrent neural network
CN111860982A (en) A short-term wind power prediction method for wind farms based on VMD-FCM-GRU
Li et al. A hybrid short-term building electrical load forecasting model combining the periodic pattern, fuzzy system, and wavelet transform
CN111079989B (en) DWT-PCA-LSTM-based water supply amount prediction device for water supply company
CN107480815A (en) A kind of power system taiwan area load forecasting method
CN107609667B (en) Heating load prediction method and system based on Box_cox transform and UFCNN
CN107239849A (en) One kind is based on improved exponential smoothing gray model Methods of electric load forecasting
CN110443417A (en) Multi-model integrated load prediction method based on wavelet transformation
CN102855385A (en) Wind power generation short-period load forecasting method
CN112257928A (en) A short-term power load probability prediction method based on CNN and quantile regression
CN107844849A (en) A kind of new energy output short term prediction method returned based on experience wavelet transformation with improving Gaussian process
CN113409072A (en) Empirical mode decomposition and distributed GRU neural network and price prediction method
CN109002928A (en) A kind of electric load peak value prediction technique and device based on Bayesian network model
Wu et al. Explainable temporal dependence in multi-step wind power forecast via decomposition based chain echo state networks
Sha Time series stock price forecasting based on genetic algorithm (GA)-long short-term memory network (LSTM) optimization
CN115759415A (en) Electricity Demand Forecasting Method Based on LSTM-SVR
CN114066003A (en) Power Load Forecasting Method Based on Wavelet Decomposition and Long Short-Term Memory Network
Zeng et al. Short-term load forecasting of smart grid systems by combination of general regression neural network and least squares-support vector machine algorithm optimized by harmony search algorithm method
CN115271198A (en) Net load prediction method and device of photovoltaic equipment
CN116050504A (en) A short-term prediction model of wind power based on deep learning
CN116245019A (en) A load forecasting method, system, device and storage medium based on Bagging sampling and improved random forest algorithm
Liu et al. Research and application of short-term load forecasting based on CEEMDAN-LSTM modeling
CN115526092A (en) A method and device for electric load forecasting
Li et al. Enhancing hourly electricity forecasting using fuzzy cognitive maps with sample entropy

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication