CN116681154A - Photovoltaic power calculation method based on EMD-AO-DELM - Google Patents

Photovoltaic power calculation method based on EMD-AO-DELM Download PDF

Info

Publication number
CN116681154A
CN116681154A CN202310511494.9A CN202310511494A CN116681154A CN 116681154 A CN116681154 A CN 116681154A CN 202310511494 A CN202310511494 A CN 202310511494A CN 116681154 A CN116681154 A CN 116681154A
Authority
CN
China
Prior art keywords
delm
emd
photovoltaic power
data
model
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
CN202310511494.9A
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.)
Hunan Institute of Engineering
Original Assignee
Hunan Institute of Engineering
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 Hunan Institute of Engineering filed Critical Hunan Institute of Engineering
Priority to CN202310511494.9A priority Critical patent/CN116681154A/en
Publication of CN116681154A publication Critical patent/CN116681154A/en
Pending legal-status Critical Current

Links

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
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/004Artificial life, i.e. computing arrangements simulating life
    • G06N3/006Artificial life, i.e. computing arrangements simulating life based on simulated virtual individual or collective life forms, e.g. social simulations or particle swarm optimisation [PSO]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/0499Feedforward networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • G06N3/088Non-supervised learning, e.g. competitive learning
    • 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
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/06Energy or water supply
    • 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/004Generation forecast, e.g. methods or systems for forecasting future energy generation
    • 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)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Economics (AREA)
  • General Health & Medical Sciences (AREA)
  • Biophysics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Software Systems (AREA)
  • Mathematical Physics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Molecular Biology (AREA)
  • Strategic Management (AREA)
  • Human Resources & Organizations (AREA)
  • Evolutionary Computation (AREA)
  • Data Mining & Analysis (AREA)
  • Computational Linguistics (AREA)
  • Biomedical Technology (AREA)
  • Artificial Intelligence (AREA)
  • General Business, Economics & Management (AREA)
  • Tourism & Hospitality (AREA)
  • Marketing (AREA)
  • Game Theory and Decision Science (AREA)
  • Water Supply & Treatment (AREA)
  • Public Health (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Operations Research (AREA)
  • Development Economics (AREA)
  • Primary Health Care (AREA)
  • Quality & Reliability (AREA)
  • Power Engineering (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本发明公开了一种基于EMD‑AO‑DELM的光伏功率计算方法,包括S1:获取气象因素,气象因素包括云量、气温、气压、湿度和总辐射,计算出总辐射和云量与光伏功率呈现高度正相关,相对湿度和大气压呈现负相关,因此选取云量和总辐射这两项作为DELM初始输入数据;S2:建立AO‑DELM的计算模型,将DELM初始输入权重作为AO算法的初始种群位置,并将适应度函数设置为训练集和测试集的均方误差之和;S3:建立EMD‑AO‑DELM的计算模型,采用EMD对光伏发电功率曲线进行分解,从而将原始环境信号中存在的不同尺度波动或趋势逐级分解出来,对分解后的IMF分量分别进行AO‑DELM建模分析;S4:验证计算模型的有效性和准确性;本发明通过输入更少的参数实现了预算光伏功率更精确。

The invention discloses a photovoltaic power calculation method based on EMD-AO-DELM, including S1: obtaining meteorological factors, the meteorological factors include cloud amount, air temperature, air pressure, humidity and total radiation, and calculating the total radiation, cloud amount and photovoltaic power It is highly positively correlated, and relative humidity and atmospheric pressure are negatively correlated, so cloud cover and total radiation are selected as the initial input data of DELM; S2: Establish the calculation model of AO-DELM, and use the initial input weight of DELM as the initial population of the AO algorithm location, and set the fitness function as the sum of the mean square errors of the training set and the test set; S3: Establish a calculation model of EMD‑AO‑DELM, use EMD to decompose the photovoltaic power curve, so that the original environmental signal The fluctuations or trends of different scales are decomposed step by step, and the AO-DELM modeling analysis is performed on the decomposed IMF components; S4: verify the validity and accuracy of the calculation model; the present invention realizes budget photovoltaic by inputting fewer parameters. Power is more precise.

Description

一种基于EMD-AO-DELM的光伏功率计算方法A photovoltaic power calculation method based on EMD-AO-DELM

技术领域technical field

本发明属于光伏功率计算技术领域,尤其涉及一种基于EMD-AO-DELM的光伏功率计算方法。The invention belongs to the technical field of photovoltaic power calculation, and in particular relates to a photovoltaic power calculation method based on EMD-AO-DELM.

背景技术Background technique

光伏发电作为一种新能源发电,目前被广泛应用。然而,光伏发电的电力输出受到多种因素的影响,包括太阳辐射强度、温度、湿度和云量等环境因素。这些因素的变化可能导致光伏电力系统的电力输出产生波动,从而对电力系统的安全性和稳定性产生不利影响,同时也给光伏并网调度过程带来挑战。As a new energy power generation, photovoltaic power generation is widely used at present. However, the power output of photovoltaic power generation is affected by various factors, including environmental factors such as solar radiation intensity, temperature, humidity and cloud cover. Changes in these factors may lead to fluctuations in the power output of the photovoltaic power system, which will adversely affect the security and stability of the power system, and also bring challenges to the photovoltaic grid-connected scheduling process.

针对光伏发电功率的预测技术,主要分为直接预测方法和间接预测方法。前者是对光伏历史数据信息进行训练学习,通过预测算法进行未来功率预测。后者则采用分步预测的方式,可分为对未来日照辐射以及未来功率预测两个部分。对比文件公开了一种基于EMD与ELM的光伏电站短期功率预测,提出一种基于经验模态分解(EMD)与极限学习机(ELM)组合功率预测方法,但未能充分考虑光伏电站输出功率的环境影响因素。现有技术提出了一种基于烟花算法(FWA)的改进BP神经网络光伏预测方法,该方法对于短期的光伏数据预测具有良好的精确度。但BP神经网络存在收敛速度慢和易陷入局部极值的问题。现有技术公开了一种基于CNN-BiLSTM的光伏功率预测方法,提出一种将卷积神经网络(CNN)和双向长短时记忆网络(BILSTM)结合的预测算法,但该方法测试样本类型过于单一,未能测试不同季度及天气下的预测精度。The prediction technology for photovoltaic power generation is mainly divided into direct prediction method and indirect prediction method. The former is to train and learn photovoltaic historical data information, and predict future power through prediction algorithms. The latter adopts a step-by-step forecast method, which can be divided into two parts: future solar radiation and future power prediction. The comparative document discloses a short-term power prediction method of photovoltaic power plants based on EMD and ELM, and proposes a combined power prediction method based on empirical mode decomposition (EMD) and extreme learning machine (ELM), but fails to fully consider the output power of photovoltaic power plants. environmental factors. The prior art proposes an improved BP neural network photovoltaic prediction method based on the Fireworks Algorithm (FWA), which has good accuracy for short-term photovoltaic data prediction. However, the BP neural network has the problems of slow convergence and easy to fall into local extremum. The existing technology discloses a photovoltaic power prediction method based on CNN-BiLSTM, and proposes a prediction algorithm combining convolutional neural network (CNN) and bidirectional long short-term memory network (BILSTM), but the test sample type of this method is too single , failing to test the prediction accuracy under different seasons and weather conditions.

光伏发电效率影响因素众多,主要分为主观因素和客观因素。其中,主观因素包括光伏阵列板型号参数、光伏板倾角与朝向等;客观因素包括气温、湿度、云量、降水量、光照辐射度等不可控的气象因素,往往起到决定性作用的是气象因素。输入样本因素过多会降低预测精度且使得预测模型复杂和冗余。There are many factors affecting the efficiency of photovoltaic power generation, which are mainly divided into subjective factors and objective factors. Among them, subjective factors include the model parameters of photovoltaic array panels, inclination and orientation of photovoltaic panels, etc.; objective factors include uncontrollable meteorological factors such as temperature, humidity, cloud cover, precipitation, and irradiance of light, and meteorological factors often play a decisive role. . Too many input sample factors will reduce the prediction accuracy and make the prediction model complex and redundant.

发明内容Contents of the invention

本发明的目的就在于为了解决现有的光伏功率预测方法输入样本因素过多会降低预测精度且使得预测模型复杂和冗余等问题而提供一种基于EMD-AO-DELM的光伏功率计算方法。The purpose of the present invention is to provide a photovoltaic power calculation method based on EMD-AO-DELM in order to solve the problems that too many input sample factors in the existing photovoltaic power prediction method will reduce the prediction accuracy and make the prediction model complex and redundant.

本发明通过以下技术方案来实现上述目的:包括以下步骤:The present invention achieves the above object through the following technical solutions: comprising the following steps:

S1:获取气象因素,气象因素包括云量、气温、气压、湿度和总辐射,计算出总辐射和云量与光伏功率呈现高度正相关,相对湿度和大气压呈现负相关,因此选取云量和总辐射这两项作为DELM初始输入数据;S1: Obtain meteorological factors. Meteorological factors include cloud amount, air temperature, air pressure, humidity and total radiation. It is calculated that total radiation and cloud amount are highly positively correlated with photovoltaic power, and relative humidity and atmospheric pressure are negatively correlated. Therefore, cloud amount and total These two items of radiation are used as the initial input data of DELM;

S2:建立AO-DELM的计算模型,将DELM初始输入权重作为AO算法的初始种群位置,并将适应度函数设置为训练集和测试集的均方误差之和;S2: Establish the calculation model of AO-DELM, use the initial input weight of DELM as the initial population position of the AO algorithm, and set the fitness function as the sum of the mean square errors of the training set and the test set;

S3:建立EMD-AO-DELM的计算模型,采用EMD对光伏发电功率曲线进行分解,从而将原始环境信号中存在的不同尺度波动或趋势逐级分解出来,对分解后的IMF分量分别进行AO-DELM建模分析,再将各IMF分量预测结果进行叠加求和得到最终的预测值;S3: Establish the calculation model of EMD-AO-DELM, use EMD to decompose the photovoltaic power generation curve, so as to decompose the fluctuations or trends of different scales in the original environmental signal step by step, and perform AO-DELM on the decomposed IMF components respectively DELM modeling analysis, and then the prediction results of each IMF component are superimposed and summed to obtain the final prediction value;

S4:验证计算模型的有效性和准确性。S4: Verify the validity and accuracy of the calculation model.

进一步的,所述步骤S1中包括:S11:引入Pearson(皮尔逊相关系数)相关系数,通过公式计算出用来衡量两个数据集合是否在一条线上面,用来衡量定距变量间的线性关系,其中,r>1表示两者之间表示呈正相关,r<1表示两者之间表示呈负相关;xi与yi分别代表两个因素第i个的值;/>和/>分别表示2个因素的平均值。Further, said step S1 includes: S11: introducing Pearson (Pearson correlation coefficient) correlation coefficient, by formula It is calculated to measure whether the two data sets are on the same line, and to measure the linear relationship between the fixed-distance variables. Among them, r>1 means that there is a positive correlation between the two, and r<1 means that there is a positive correlation between the two Negative correlation; xi and yi respectively represent the i-th value of the two factors; /> and /> Represents the mean of the two factors, respectively.

进一步的,所述步骤S2中包括:计算公式为fitness=MSE(train)+MSE(test)。Further, the step S2 includes: the calculation formula is fitness=MSE(train)+MSE(test).

进一步的,所述步骤S2中包括:S21:进行数据清洗,将历史光伏功率数据中一些采样时发生错误导致的异常值进行提出;S22:对清洗后的样本数据进行归一化处理;S23:初始化AO算法参数,包括种群规模,最大迭代次数T,探索和开发参数ɑ、δ;S24:初始化种群位置X,初始的种群适应度,最佳个体;S25:按序进行扩大探索阶段、缩小探索阶段、扩大开发阶段、缩小开发阶段,并不断更新种群位置;S26:计算更新种群的适应度,得到当前最佳个体位置和适应度,并比较当前最佳个体与到第t代找到的最佳个体适应度,保留较优的个体位置;S27:判断是否达到最大迭代次数或者求解条件,若是,则输出最优值,若不是,则返回步骤S25;S28:将最后优化后的权重值结果输入到DELM模型中。Further, the step S2 includes: S21: Perform data cleaning, and propose abnormal values caused by some sampling errors in the historical photovoltaic power data; S22: Perform normalization processing on the cleaned sample data; S23: Initialize the parameters of the AO algorithm, including the population size, the maximum number of iterations T, the exploration and development parameters ɑ, δ; S24: initialize the population position X, the initial population fitness, and the best individual; S25: expand the exploration stage and shrink the exploration in order stage, expand the development stage, shrink the development stage, and continuously update the population position; S26: calculate the fitness of the updated population, obtain the current best individual position and fitness, and compare the current best individual with the best found in the t generation Individual fitness, retaining a better individual position; S27: Judging whether the maximum number of iterations or the solution condition is reached, if yes, then output the optimal value, if not, return to step S25; S28: Input the final optimized weight value result into the DELM model.

进一步的,所述S3步骤中包括:S31:采用EMD对光伏历史数据进行分解,得到一组IMF分量;S32:将各IMF分量分别建立AO-DELM模型,对各个分量进行预测;S33:叠加各子序列的预测结果并验证模型预测的准确性。Further, the step S3 includes: S31: use EMD to decompose the historical photovoltaic data to obtain a set of IMF components; S32: establish an AO-DELM model for each IMF component, and predict each component; S33: superimpose each The prediction results of the subsequences and verify the accuracy of the model predictions.

进一步的,所述S4步骤中包括:采用MAPE与RMSE两者作为误差指标,MAPE计算公式为RMSE计算公式为/>其中,yoi是样本中第i个真实值,ypi是样本中第i个预测值,两者数值越小,精度越高。Further, the step S4 includes: using both MAPE and RMSE as error indicators, and the calculation formula of MAPE is RMSE calculation formula is /> Among them, yoi is the i-th real value in the sample, and ypi is the i-th predicted value in the sample. The smaller the two values, the higher the accuracy.

有益效果:本发明设计合理,结构简单稳定,实用性强,具有以下有益效果:Beneficial effects: the invention has reasonable design, simple and stable structure, strong practicability, and has the following beneficial effects:

1、在光伏发电影响因素当中,光照总辐射和云量与光伏功率呈现正相关,对最后的预测结果起到关键性作用;气压和湿度与光伏功率呈现负相关,在实际功率预测中,不宜作为输入数据;1. Among the influencing factors of photovoltaic power generation, the total solar radiation and cloud cover are positively correlated with photovoltaic power, which play a key role in the final prediction results; air pressure and humidity are negatively correlated with photovoltaic power, which is not suitable for actual power prediction. as input data;

2、针对光伏功率具有波动性和随机性的特点,对历史光伏功率数据进行了EMD分解,各分量之间相互独立,分别进行预测,最后进行叠加求和,实验证明,采用EMD分解方法后的预测效果更好;2. In view of the volatility and randomness of photovoltaic power, the historical photovoltaic power data is decomposed by EMD. predict better;

3、本文方法在一年四个季度中的预测表现均优于AO-DELM及DELM模型,其中,在S2和S3两个季度中预测精度最高,这与当地的天气状况有关,天气较为稳定,晴天占比高的季度预测精度更高。3. The prediction performance of the method in this paper is better than that of AO-DELM and DELM models in the four seasons of a year. Among them, the prediction accuracy is the highest in the two quarters of S2 and S3, which is related to the local weather conditions, and the weather is relatively stable. Seasons with a high proportion of sunny days have higher forecast accuracy.

附图说明Description of drawings

图1为本发明ELM结构示意图;Fig. 1 is the structural representation of ELM of the present invention;

图2为本发明ELM-AE结构示意图;Fig. 2 is the structural representation of ELM-AE of the present invention;

图3为本发明DELM结构示意图;Fig. 3 is the structure schematic diagram of DELM of the present invention;

图4为本发明AO-DELM结构流程图;Fig. 4 is a flow chart of AO-DELM structure of the present invention;

图5为本发明第一季度功率EMD分解序列示意图;Fig. 5 is a schematic diagram of the power EMD decomposition sequence in the first quarter of the present invention;

图6为本发明EMD与AO-DELM组合预测流程图;Fig. 6 is the combined prediction flowchart of EMD and AO-DELM of the present invention;

图7为本发明不同季度功率预测结果;Fig. 7 is the power prediction result of the present invention in different quarters;

图8为本发明第一季度各算法预测误差;Fig. 8 is the prediction error of each algorithm in the first quarter of the present invention;

图9为本发明流程图。Fig. 9 is a flowchart of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention.

实施例一:Embodiment one:

经验模态分解(EMD)是一种基于信号局部特征的信号分解方法。Empirical Mode Decomposition (EMD) is a signal decomposition method based on the local characteristics of the signal.

其吸收了小波变换多分辨率的优点,克服了小波变换中选择小波基和确定分解尺度的困难,因此更适用于非线性非平稳信号的分析,是一种自适应的信号分解方法。EMD假定任何复杂信号都是由简单的特征模态函数(IMF)组成的。并且每个IMF分量是相互独立的。EMD可以分解不同规模或趋势的时间序列数据,一步步分解成其组成部分,并将一系列具有相同规模特征的数据序列产生具有相同尺度特征的数据序列,通过这些数据序列,非平稳的非线性数据被转化为平稳的线性数据。与原始数据序列相比,分解后的序列具有更高的规律性。这对识别隐藏的关系有很大的帮助,可以提高预测的准确性。It absorbs the multi-resolution advantages of wavelet transform and overcomes the difficulties of selecting wavelet base and determining the decomposition scale in wavelet transform, so it is more suitable for the analysis of nonlinear and non-stationary signals, and it is an adaptive signal decomposition method. EMD assumes that any complex signal is composed of simple eigenmode functions (IMFs). And each IMF component is independent of each other. EMD can decompose time series data of different scales or trends, decompose it into its components step by step, and generate a series of data sequences with the same scale characteristics from a series of data sequences with the same scale characteristics. Through these data sequences, non-stationary nonlinear The data were transformed into stationary linear data. Compared with the original data sequence, the decomposed sequence has higher regularity. This is of great help in identifying hidden relationships, which can improve the accuracy of predictions.

其具体分解步骤如下:Its specific decomposition steps are as follows:

对于初始时间序列x(t),取其所有极大值与极小值点,所有极大值相连作为上包络线,所有极小值点相连作为下包络线,记m(t)为上下包络线的均值。令原始序列x(t)与均值m(t)相减,得到首个分量h1(t)=x(t)-m(t);For the initial time series x(t), take all its maximum and minimum points, connect all the maximum values as the upper envelope, and connect all the minimum points as the lower envelope, record m(t) as The mean of the upper and lower envelopes. Subtract the original sequence x(t) from the mean value m(t) to obtain the first component h1(t)=x(t)-m(t);

将h1(t)视作初始时间序列,记m1(t)为h1(t)的上下包络线的均值,重复步骤(1),得到第二个分量h2(t);Treat h1(t) as the initial time series, record m1(t) as the mean value of the upper and lower envelopes of h1(t), repeat step (1), and obtain the second component h2(t);

将上述步骤不断重复n次,直到hn(t)是一个本征模态函数或剩余分量rn(t)呈现单调性,终止分解过程;Repeat the above steps n times until hn(t) is an eigenmode function or the remaining component rn(t) is monotonic, and the decomposition process is terminated;

至此,初始时间序列x(t)可通过n个本征模分量hi(t)与一个剩余分量rn(t)之和来表示,公式为: So far, the initial time series x(t) can be expressed by the sum of n eigenmode components hi(t) and a residual component rn(t), the formula is:

天鹰算法原理:该数学模型简要描述如下:Principle of Tianying Algorithm: The mathematical model is briefly described as follows:

第1步:扩大探索Step 1: Expand Exploration

在这种方法中,Aquila鸟在地面上高飞,广泛探索捕猎空间,一旦Aquila鸟确定了猎物的区域,就会采取垂直俯冲的方式。这种行为的数学表示方法写为:In this method, the Aquila bird flies high above the ground, extensively exploring the hunting space, and then resorts to a vertical dive once the Aquila bird has identified the area of its prey. The mathematical representation of this behavior is written as:

其中,Xbest(t)代表迄今为止获得的最佳位置,XM(t)表示当前迭代中所有Aquila鸟的平均位置,t和T分别为当前迭代和最大迭代次数。N是种群大小,rand是0到1之间的随机数。Among them, Xbest(t) represents the best position obtained so far, XM(t) represents the average position of all Aquila birds in the current iteration, and t and T are the current iteration and the maximum number of iterations, respectively. N is the population size and rand is a random number between 0 and 1.

第2步:缩小探索阶段Step 2: Narrowing down the exploration phase

这是Aquila鸟最常用的捕猎方法。它在选定的区域内下降并围绕猎物飞行后,采用短距离滑翔的方式来攻击猎物。位置更新公式表示为:This is the most common hunting method used by Aquila birds. After it descends in a selected area and flies around the prey, it uses a short-distance gliding method to attack the prey. The location update formula is expressed as:

X(t+1)=Xbest(t)×LF(D)+XR(t)+(y-x)×randX(t+1)=X best (t)×LF(D)+X R (t)+(yx)×rand

其中,XR(t)代表Aquila鸟的随机位置,D是维度大小,LF(D)代表Levy飞行函数,其表现如下: Among them, XR(t) represents the random position of the Aquila bird, D is the dimension size, and LF(D) represents the Levy flight function, which is expressed as follows:

其中,s和β是分别等于0.01和1.5的常数,u和v是0和1之间的随机数。y和x用于呈现搜索中的螺旋形,其计算方法如下: Among them, s and β are constants equal to 0.01 and 1.5 respectively, and u and v are random numbers between 0 and 1. y and x are used to render the spiral in the search and are calculated as follows:

其中,r1指的是1到20之间的搜索周期数,D1是由从1到维度大小D的整数组成,且ω等于0.005。Among them, r1 refers to the number of search cycles between 1 and 20, D1 is composed of integers from 1 to dimension size D, and ω is equal to 0.005.

第3步:扩大开发阶段Step 3: Expanding the Development Phase

在第三阶段中,当猎物的区域被大致确定后,Aquila鸟垂直下降,进行初步攻击。AO利用选定的区域来接近和攻击猎物。这种行为表现如下:In the third stage, when the area of prey has been roughly determined, the Aquila bird descends vertically for an initial attack. AO utilizes selected areas to approach and attack prey. This behavior manifests itself as follows:

X(t+1)=(Xbest(t)-XM(t))×α-rand+((UB-LB)×rand+LB)×δX(t+1)=(X best (t)-X M (t))×α-rand+((U B -L B )×rand+L B )×δ

其中α和δ是固定为0.1的开发调整参数,UB和LB是上界和下界。where α and δ are development adjustment parameters fixed at 0.1, and UB and LB are upper and lower bounds.

第4步:缩小开发阶段Step 4: Narrowing down the development phase

在这种方法中,Aquila鸟根据猎物逃跑的轨迹追逐猎物,然后攻击地面上的猎物。该行为的数学表示如下: In this method, the Aquila bird chases the prey according to the trajectory of the prey's escape, and then attacks the prey on the ground. The mathematical representation of this behavior is as follows:

其中,X(t)是当前位置,QF(t)表示用于平衡搜索策略的质量函数值。G1表示天鹰在跟踪猎物过程中的运动参数,是[-1,1]之间的随机数。G2表示追逐猎物时的飞行斜率,从2到0线性递减。where X(t) is the current position and QF(t) represents the quality function value used to balance the search strategy. G1 represents the motion parameter of the eagle in the process of tracking the prey, which is a random number between [-1, 1]. G2 represents the flight slope when chasing prey, decreasing linearly from 2 to 0.

ELM:ELM:

极限学习机(Extreme Learning Machine,ELM)的模型由三部分组成,分别为:输入层、隐含层和输出层,是一个典型的(Single-hidden Layer Feed-forward NeuralNetwork,SLFN)单隐含层的前馈神经网络,其网络具有学习速度快、泛化能力强等优点。The extreme learning machine (Extreme Learning Machine, ELM) model consists of three parts, namely: input layer, hidden layer and output layer, which is a typical (Single-hidden Layer Feed-forward NeuralNetwork, SLFN) single hidden layer The feed-forward neural network has the advantages of fast learning speed and strong generalization ability.

ELM的模型结构如图1所示,其中,输入层含q个节点,隐含层含n个节点,输出层含e个节点,隐含层激活函数为g(x),常用的函数有Sigmoid、Hard-lim、Sin等。The model structure of ELM is shown in Figure 1, where the input layer contains q nodes, the hidden layer contains n nodes, the output layer contains e nodes, and the activation function of the hidden layer is g(x). The commonly used function is Sigmoid , Hard-lim, Sin, etc.

假设样本为xi∈RN×Rq,yi∈RN×Re(i=1,2,...,N),其中,隐含层的输出为式(10),隐含层输出矩阵和ELM网络输出之间的关系可由式(11)表示。Suppose the samples are xi∈RN×Rq, yi∈RN×Re(i=1,2,...,N), where the output of the hidden layer is formula (10), the output matrix of the hidden layer and the output of the ELM network The relationship between them can be expressed by formula (11).

h=g(ax+b)h=g(ax+b)

h(xi)V=yi,i=1,2,...,Nh(xi)V=yi, i=1,2,...,N

其中, in,

其中,ai=[ai1,ai2,…,ain]T是连接第i个输入节点和隐含层的权重,bj是第j个隐藏节点的阈值,vj=[vj1,vj2,…vjn]T是连接第j个隐藏节点和输出层的权重。H是神经网络的隐含层输出矩阵。输入权重aij和隐含层的阈值bj随机选取;输出权重V可以通过解方程组的方式得到。Among them, a i =[a i1 ,a i2 ,…,a in ] T is the weight connecting the i-th input node and the hidden layer, bj is the threshold of the j-th hidden node, v j =[v j1 ,v j2 ,...v jn ] T is the weight connecting the jth hidden node to the output layer. H is the hidden layer output matrix of the neural network. The input weight aij and the threshold bj of the hidden layer are randomly selected; the output weight V can be obtained by solving the equation system.

使用ELM获得输出权重可以分为三个步骤。Obtaining output weights using ELM can be divided into three steps.

随机选择0和1之间的数值来设置输入权重aij和隐含层的阈值bj;Randomly select a value between 0 and 1 to set the input weight aij and the threshold bj of the hidden layer;

计算隐含层输出矩阵H;计算输出权重V=H+Y。Calculate the hidden layer output matrix H; calculate the output weight V=H + Y.

其中H+表示输出矩阵H的广义逆矩阵。where H+ represents the generalized inverse matrix of the output matrix H.

与传统的基于梯度的前馈神经网络算法不同,极限学习机网络隐含层在训练过程中随机产生输入权重和阈值。因此,计算输出权重只能采用广义逆矩阵理论。而ELM是一种单隐层结构,在面对数据量大且维度较高的输入数据时,其捕捉数据的有效特征的能力不足。因此,更多学者采用DELM算法,作为ELM的一种衍生算法,解决了只有一个隐含层的极限学习机无法捕捉数据的有效特征的问题。Different from the traditional gradient-based feed-forward neural network algorithm, the hidden layer of the extreme learning machine network randomly generates input weights and thresholds during the training process. Therefore, the calculation of the output weight can only use the generalized inverse matrix theory. However, ELM is a single hidden layer structure, and its ability to capture the effective characteristics of the data is insufficient when facing input data with a large amount of data and high dimensions. Therefore, more scholars use the DELM algorithm, as a derivative algorithm of ELM, to solve the problem that the extreme learning machine with only one hidden layer cannot capture the effective characteristics of the data.

极限学习机-自动编码器(ELM-AE):Extreme Learning Machine-Autoencoder (ELM-AE):

自动编码器(ELM-AE)是一个人工的神经网络模块,在深度学习领域中普遍得到使用,是一种无监督的方式学习样本的结构。它的主要特点在于网络的输出和输入结果一致。ELM-AE的模型如同ELM,同样由一个输入层,一个隐含层和一个输出层三部分组成。其模型结构如图2所示,构建的ELM-AE在训练过程中隐含层节点的权重和阈值随机产生,并具有正交性,从而使得ELM-AE的泛化能力得到了一定程度的优化。为进一步提高模型的泛化能力和鲁棒性,在求解权重系数的过程中引入正则化参数。目标函数被设定为:Autoencoder (ELM-AE) is an artificial neural network module commonly used in the field of deep learning, which is an unsupervised way to learn the structure of samples. Its main feature is that the output of the network is consistent with the input results. The ELM-AE model, like ELM, also consists of an input layer, a hidden layer and an output layer. Its model structure is shown in Figure 2. The weights and thresholds of the hidden layer nodes of the constructed ELM-AE are randomly generated during the training process, and have orthogonality, so that the generalization ability of the ELM-AE has been optimized to a certain extent. . In order to further improve the generalization ability and robustness of the model, regularization parameters are introduced in the process of solving the weight coefficients. The objective function is set as:

假设给定N个不同的样本,xi∈Rn×Rq(i=1,2,N),ELM-AE隐含层的输出可以表示为式h=g(ax+b),那么隐含层的输出矩阵与输出层的输出之间的数学关系可以表示为其中,i=1,2,...,N,对于等维度ELM-AE表示,输出权重V的计算方法是:V=H- 1X其中,H是ELM-AE隐含层输出矩阵,X是ELM-AE的输入和输出矩阵。Suppose given N different samples, xi∈Rn×Rq(i=1, 2, N), the output of ELM-AE hidden layer can be expressed as formula h=g(ax+b), then the hidden layer The mathematical relationship between the output matrix and the output of the output layer can be expressed as Among them, i=1,2,...,N, for the equal-dimensional ELM-AE representation, the calculation method of the output weight V is: V=H - 1 X where, H is the output matrix of the ELM-AE hidden layer, X are the input and output matrices of the ELM-AE.

深度极限学习机(DELM)通过叠加极限学习机-自动编码器(ELM-AE)构建多层网络结构来提高网络的表达能力。是极限学习机和自动编码器的结合的新结构。Deep extreme learning machine (DELM) builds a multi-layer network structure by stacking extreme learning machine-autoencoder (ELM-AE) to improve the expressive ability of the network. It is a new structure combining extreme learning machine and automatic encoder.

DELM应用ELM-AE对模型进行逐层训练。i层隐含层的输出与(i-1)层隐含层的输出之间的数值关系可以由以下式子表示:Hi=g((vi)THi-1)DELM applies ELM-AE to train the model layer by layer. The numerical relationship between the output of the i hidden layer and the output of the (i-1) hidden layer can be expressed by the following formula: H i =g((v i ) T H i-1 )

DELM(深度极限学习机):DELM (Deep Extreme Learning Machine):

ELM-AE用于构建深度极限学习机DELM的基本单元,然后利用ELM-AE的输出权值初始化整个DELM。DELM的理念是通过最小化重建误差使输出无限接近于原始输入,通过层层迭代训练,以此来学习原始数据的高级特征。ELM-AE is used to construct the basic unit of deep extreme learning machine DELM, and then use the output weight of ELM-AE to initialize the whole DELM. The idea of DELM is to make the output infinitely close to the original input by minimizing the reconstruction error, and to learn the advanced features of the original data through layer-by-layer iterative training.

ELM-AE在编码器处将输入映射到隐含层特征向量,在解码器处从特征向量重建原始输入。从结构的角度看,DELM相当于连接多个ELM。与ELM相比,DELM能更全面地捕捉样本特征,提高处理高维输入的准确性。DELM通过ELM-AE逐层进行无监督训练和学习,最后连接到最后一层输出层进行有监督训练。该系统的参数不需要同时调整。DELM网络的结构如图3所示。DELM各隐含层的输入权重通过ELM-AE初始化,并进行分层无监督训练。在这整个过程中,DELM不需要反向微调。ELM-AE maps the input to hidden layer feature vectors at the encoder, and reconstructs the original input from the feature vectors at the decoder. From a structural point of view, DELM is equivalent to connecting multiple ELMs. Compared with ELM, DELM can more comprehensively capture sample features and improve the accuracy of processing high-dimensional input. DELM performs unsupervised training and learning layer by layer through ELM-AE, and finally connects to the last output layer for supervised training. The parameters of the system do not need to be adjusted simultaneously. The structure of the DELM network is shown in Figure 3. The input weights of each hidden layer of DELM are initialized by ELM-AE, and hierarchical unsupervised training is performed. During this whole process, DELM does not require reverse fine-tuning.

假设在模型有Y个隐含层的情况下,根据上文所述ELM-AE理论,通过输入数据X可以得到权重矩阵V1,然后就可以得到隐含层的输出矩阵H1。然后将H1作为下一个ELM-AE的输入与目标输出。以此类推逐层训练,可以得到Y层的输出权重矩阵VY和隐含层的输出矩阵HY。其中每个ELM-AE的输出权重用来初始化整个DELM。在ELM-AE训练过程中,输入层权重和阈值是随机生成的正交随机矩阵;同时,ELM-AE无监督训练过程采用最小二乘法更新参数。在这个过程中,只有输出层权重参数被更新,而输入层权重和阈值保持不变,每个ELM-AE的随机输入权重和随机阈值影响都会对DELM的预测精度造成影响。由于初始权重对于整个模型的预测结果起到更关键的作用。因此,本文针对DELM的输入权重利用AO算法进行优化。Assuming that the model has Y hidden layers, according to the ELM-AE theory mentioned above, the weight matrix V1 can be obtained through the input data X, and then the output matrix H1 of the hidden layer can be obtained. Then H1 is used as the input and target output of the next ELM-AE. By analogy with layer-by-layer training, the output weight matrix VY of the Y layer and the output matrix HY of the hidden layer can be obtained. The output weight of each ELM-AE is used to initialize the entire DELM. In the ELM-AE training process, the input layer weights and thresholds are randomly generated orthogonal random matrices; at the same time, the ELM-AE unsupervised training process uses the least squares method to update parameters. In this process, only the weight parameters of the output layer are updated, while the weights and thresholds of the input layer remain unchanged, and the influence of random input weights and random thresholds of each ELM-AE will affect the prediction accuracy of DELM. Since the initial weight plays a more critical role in the prediction results of the entire model. Therefore, this paper uses the AO algorithm to optimize the input weight of DELM.

本文利用天鹰优化算法的全局优化能力,可以在训练误差较小时找到深度极限学习机的输入权重,从而提高深度极限学习机的泛化能力,提高DELM的预测精度。In this paper, the global optimization ability of Tianying optimization algorithm can be used to find the input weight of deep extreme learning machine when the training error is small, so as to improve the generalization ability of deep extreme learning machine and improve the prediction accuracy of DELM.

因素选择:Factor selection:

结合图4-图9所示的,光伏发电效率影响因素众多,主要分为主观因素和客观因素。其中,主观因素包括光伏阵列板型号参数、光伏板倾角与朝向等;客观因素包括气温、湿度、云量、降水量、光照辐射度等不可控的气象因素,往往起到决定性作用的是气象因素。输入样本因素过多会降低预测精度且使得预测模型复杂和冗余。为探究气象因素与光伏功率的相关性,以便选取最优因素作为输入,此处引入Pearson相关系数,其用来衡量两个数据集合是否在一条线上面,它用来衡量定距变量间的线性关系。As shown in Figure 4-9, there are many factors affecting the efficiency of photovoltaic power generation, which are mainly divided into subjective factors and objective factors. Among them, subjective factors include the model parameters of photovoltaic array panels, inclination and orientation of photovoltaic panels, etc.; objective factors include uncontrollable meteorological factors such as temperature, humidity, cloud cover, precipitation, and irradiance of light, and meteorological factors often play a decisive role. . Too many input sample factors will reduce the prediction accuracy and make the prediction model complex and redundant. In order to explore the correlation between meteorological factors and photovoltaic power, in order to select the optimal factor as input, the Pearson correlation coefficient is introduced here, which is used to measure whether the two data sets are on a line, and it is used to measure the linearity between fixed-distance variables relation.

其中,r>1表示两者之间表示呈正相关,r<1表示两者之间表示呈负相关;xi与yi分别代表两个因素第i个的值;和/>分别表示2个因素的平均值。Among them, r>1 means that there is a positive correlation between the two, and r<1 means that there is a negative correlation between the two; xi and yi respectively represent the i-th value of the two factors; and /> Represents the mean of the two factors, respectively.

根据Pearson相关系数,整理出下表。According to the Pearson correlation coefficient, sort out the following table.

由此表可知,光照总辐射和云量与光伏功率呈现高度正相关,相对湿度和大气压呈现负相关,因此,选取云量和总辐射这两项作为DELM初始输入数据。It can be seen from the table that the total radiation and cloud amount are highly positively correlated with photovoltaic power, and the relative humidity and atmospheric pressure are negatively correlated. Therefore, cloud amount and total radiation are selected as the initial input data of DELM.

AO-DELM模型的建立:Establishment of AO-DELM model:

AO-DELM模型的主要思想是:将DELM初始输入权重作为AO算法的初始种群位置;并将适应度函数设置为训练集和测试集的均方误差之和,其表示如下:The main idea of the AO-DELM model is: use the initial input weight of DELM as the initial population position of the AO algorithm; and set the fitness function as the sum of the mean square errors of the training set and the test set, which is expressed as follows:

fitness=MSE(train)+MSE(test)fitness=MSE(train)+MSE(test)

AO-DELM预测模型流程如下:The process of AO-DELM prediction model is as follows:

进行数据清洗,将历史光伏功率数据中一些采样时发生错误导致的异常值进行剔除对清洗后的样本数据进行归一化处理;Carry out data cleaning, eliminate outliers caused by some sampling errors in historical photovoltaic power data, and normalize the cleaned sample data;

初始化AO算法参数,包括种群规模,最大迭代次数T,探索和开发参数ɑ、δ;Initialize the parameters of the AO algorithm, including the population size, the maximum number of iterations T, the exploration and development parameters ɑ, δ;

初始化种群位置X,初始的种群适应度,最佳个体;Initialize the population position X, the initial population fitness, and the best individual;

按序进行扩大探索阶段、缩小探索阶段、扩大开发阶段、缩小开发阶段,并不断更新种群位置;Expand the exploration phase, shrink the exploration phase, expand the development phase, and shrink the development phase in sequence, and continuously update the population position;

计算更新种群的适应度,得到当前最佳个体位置和适应度,并比较当前最佳个体与到第t代找到的最佳个体适应度,保留较优的个体位置;Calculate the fitness of the updated population, obtain the current best individual position and fitness, and compare the current best individual with the best individual fitness found in the tth generation, and retain the better individual position;

判断是否达到最大迭代次数或者求解条件,若是,则输出最优值,若不是,则返回步骤5;Determine whether the maximum number of iterations or the solution condition is reached, if yes, output the optimal value, if not, return to step 5;

将最后优化后的权重值结果输入到DELM模型中,其结构流程图如图4所示Input the final optimized weight value results into the DELM model, and its structure flow chart is shown in Figure 4

EMD-AO-DELM模型的建立Establishment of EMD-AO-DELM model

光伏功率数据是非线性非平稳的离散数据,传统线性时序模型方法存在较大的局限性,直接对其进行预测建模具有较大的误差。因此,采用EMD对光伏发电功率曲线进行分解,从而将原始环境信号中存在的不同尺度波动或趋势逐级分解出来。对分解后的IMF分量分别进行AO-DELM建模分析,再将各IMF分量预测结果进行叠加求和得到最终的预测值。Photovoltaic power data is nonlinear and non-stationary discrete data. The traditional linear time-series model method has great limitations, and direct predictive modeling of it has a large error. Therefore, EMD is used to decompose the power curve of photovoltaic power generation, so as to decompose the fluctuations or trends of different scales in the original environmental signal step by step. The AO-DELM modeling analysis is carried out on the decomposed IMF components, and then the prediction results of each IMF component are superimposed and summed to obtain the final prediction value.

具体步骤为:The specific steps are:

采用EMD对光伏历史数据进行分解,得到一组IMF分量;Using EMD to decompose the photovoltaic historical data to obtain a set of IMF components;

将各IMF分量分别建立AO-DELM模型,对各个分量进行预测;Establish the AO-DELM model for each IMF component to predict each component;

叠加各子序列的预测结果并验证模型预测的准确性;Superimpose the prediction results of each subsequence and verify the accuracy of the model prediction;

EMD-AO-DELM预测模型如图6所示。The EMD-AO-DELM prediction model is shown in Fig. 6.

采用EMD方法将光伏历史数据分解为4个不同特征的IMF分量以及一个余量Res,其中第一季度光伏功率各IMF序列如图5所示。IMF分量能够体现出原始数据的局部特征,更好地反映其周期项,随机项以及趋势项,准确反映出原始数据的特性。The EMD method is used to decompose the historical photovoltaic data into four IMF components with different characteristics and a residual Res. The IMF sequences of the photovoltaic power in the first quarter are shown in Figure 5. The IMF component can reflect the local characteristics of the original data, better reflect its periodic items, random items and trend items, and accurately reflect the characteristics of the original data.

其中,IMF1-IMF2呈现不平稳、振荡的曲线,属于随机项;IMF3-IMF4呈现平滑、频率降低、周期性的趋势,属于趋势项。因此,EMD分解可凸显原始光伏发电功率序列局部特征。Among them, IMF1-IMF2 presents an unstable and oscillating curve, which belongs to the random item; IMF3-IMF4 presents a smooth, decreasing frequency, and periodic trend, which belongs to the trend item. Therefore, EMD decomposition can highlight the local characteristics of the original photovoltaic power sequence.

评价指标:Evaluation indicators:

为了验证本预测模型的有效性与准确性,采用MAPE与RMSE两者作为误差指标。In order to verify the validity and accuracy of this forecasting model, both MAPE and RMSE are used as error indicators.

其中,yoi是样本中第i个真实值(observed),ypi是样本中第i个预测值(predicted),两者数值越小,精度越高。Among them, yoi is the i-th actual value (observed) in the sample, and ypi is the i-th predicted value (predicted) in the sample. The smaller the two values, the higher the accuracy.

实施例二:该实施例二中一种基于EMD-AO-DELM的光伏功率计算方法是在上述实施例基础上的改进,上述实施例中公开的技术内容不重复描述,上述实施例中公开的内容也属于该实施例二公开的内容Embodiment 2: A photovoltaic power calculation method based on EMD-AO-DELM in this embodiment 2 is an improvement on the basis of the above-mentioned embodiment. The technical content disclosed in the above-mentioned embodiment will not be described repeatedly. The disclosed in the above-mentioned embodiment The content also belongs to the content disclosed in the second embodiment

结合图4-9所示,本发明的一个实施例:一种基于EMD-AO-DELM的光伏功率计算方法,包括以下步骤:S1:异常数据清洗:在光伏电站实际采样过程中,会产生一些异常数据。异常数据会导致预测模型拟合度变差,泛化能力减弱。因此,必须对其进行清洗。As shown in Figures 4-9, an embodiment of the present invention: a photovoltaic power calculation method based on EMD-AO-DELM, including the following steps: S1: abnormal data cleaning: during the actual sampling process of photovoltaic power plants, some abnormal data. Abnormal data will lead to poor fitting of the predictive model and weakened generalization ability. Therefore, it must be cleaned.

对异常数据的检测采用3σ准则原理:其中X表示光伏功率初始数据,表示光伏功率初始数据平均值。在统计学上,3σ准则是在正态分布中,距平均值小于一个标准差、二个标准差、三个标准差以内的百分比,更精确的数字是68.27%、95.45%及99.73%。The detection of abnormal data adopts the principle of 3σ criterion: where X represents the initial data of photovoltaic power, Indicates the average value of the initial PV power data. In statistics, the 3σ criterion is the percentage within a normal distribution that is less than one standard deviation, two standard deviations, and three standard deviations from the mean. The more precise figures are 68.27%, 95.45%, and 99.73%.

数据归一化:同数据单位量程不一,这对模型的拟合速度造成影响,且不利于模型训练。为提升模型预测精度,对初始光伏功率数据进行归一化,将归一化后的功率值保持在[0,1]之间。其中,归一化公式下:其中,yi代表归一化后的数据,xi代表原始功率数据值。Data normalization: The range of the same data unit is different, which affects the fitting speed of the model and is not conducive to model training. In order to improve the prediction accuracy of the model, the initial photovoltaic power data is normalized, and the normalized power value is kept between [0, 1]. Among them, under the normalization formula: Among them, yi represents the normalized data, and xi represents the original power data value.

本实施例中,仿真结果:采用Matlab R2022a对所提出控制策略进行仿真分析,在本文所建立的预测模型中,设置DELM模型隐含层层数为2;隐含层节点数分别为5,5;AO最大迭代次数为200;种群数量为20;正则化系数设置为无穷大。为公平起见,作为对比的DELM模型参数隐含层层为2;隐含层节点数分别为5,5。将全年数据平均划分为四个季度,将每一个季度的数据按19:1分别划分为训练集和测试集,并进行归一化处理。对每一季度分别进行仿真验证,其中测试集取每日8点至19点有日照时间段,步长为1h,其中,第一季度到第四季度预测结果如图7所示。In this embodiment, the simulation results: Matlab R2022a is used to simulate and analyze the proposed control strategy. In the prediction model established in this paper, the number of hidden layers of the DELM model is set to 2; the number of hidden layer nodes is 5, 5 respectively ; The maximum number of iterations of AO is 200; the population size is 20; the regularization coefficient is set to infinity. For the sake of fairness, the parameter hidden layer of the DELM model used as a comparison is 2; the number of hidden layer nodes is 5 and 5 respectively. Divide the annual data into four quarters on average, divide the data of each quarter into a training set and a test set at a rate of 19:1, and perform normalization processing. The simulation verification is carried out for each quarter separately, and the test set is taken from the time period with sunshine from 8:00 to 19:00 every day, with a step size of 1 hour. Among them, the prediction results from the first quarter to the fourth quarter are shown in Figure 7.

结合图1-4所示的本实施例中:In this embodiment shown in conjunction with Fig. 1-4:

综合图7和上表来看,预测精度在S2和S3两个季度精度最高,主要是该地在S2和S3两个季度日照相对稳定,且晴天居多。但平均日照辐射低于S1季度,导致总体发电功率峰值比S1季度低。S1和S2预测精度相对较差是因为该地这两个季度天气不稳定,阵雨多云天气较多,尤其体现在S2季度上。四个季度光伏功率均呈现典型的正态分布,符合实际功率情况,预测模型准确无误。Based on Figure 7 and the above table, the prediction accuracy is the highest in the two quarters of S2 and S3, mainly because the sunshine is relatively stable in the two quarters of S2 and S3, and there are mostly sunny days. However, the average solar radiation is lower than that of the S1 season, resulting in a lower overall power generation peak value than that of the S1 season. The relatively poor prediction accuracy of S1 and S2 is due to the unstable weather in these two quarters, with more showers and cloudy weather, especially in the S2 season. The photovoltaic power in the four quarters showed a typical normal distribution, which was in line with the actual power situation, and the forecast model was accurate.

综上所述,通过仿真图以及图8误差分析,本文提到的EMD-AO-DELM模型相较于初始DELM模型及AO-DELM模型,预测精度得到显著提升,模型稳定性更好,各项指标明显优于其余两种算法。能够胜任实际光伏功率预测需求,更好地配合光伏并网调度工作。In summary, through the simulation diagram and the error analysis in Figure 8, the EMD-AO-DELM model mentioned in this paper has significantly improved prediction accuracy and better model stability compared with the initial DELM model and AO-DELM model. The index is obviously better than the other two algorithms. It can be competent for actual photovoltaic power forecasting requirements and better cooperate with photovoltaic grid-connected dispatching work.

本实施例中分析了一年四个季度的光伏发电预测情况,对光伏发电影响因素分析进行了相关性分析,并对光伏历史发电功率进行了EMD分解,对每个IMF分量分别输入AO-DELM模型,最后将各分量结果进行求和以得到预测结果。进而提出了一种基于EMD-AO-DELM的光伏功率预测模型,通过仿真结果分析,得到如下结论:In this example, the forecast situation of photovoltaic power generation in four quarters of a year is analyzed, the correlation analysis is carried out on the analysis of the influencing factors of photovoltaic power generation, and the EMD decomposition of the historical photovoltaic power generation power is carried out, and each IMF component is input into AO-DELM model, and finally sum the results of each component to get the prediction result. Furthermore, a photovoltaic power prediction model based on EMD-AO-DELM is proposed. Through the analysis of simulation results, the following conclusions are obtained:

在光伏发电影响因素当中,光照总辐射和云量与光伏功率呈现正相关,对最后的预测结果起到关键性作用;气压和湿度与光伏功率呈现负相关,在实际功率预测中,不宜作为输入数据。Among the influencing factors of photovoltaic power generation, the total solar radiation and cloud cover are positively correlated with photovoltaic power, which play a key role in the final prediction results; air pressure and humidity are negatively correlated with photovoltaic power, and should not be used as inputs in actual power prediction data.

针对光伏功率具有波动性和随机性的特点,对历史光伏功率数据进行了EMD分解,各分量之间相互独立,分别进行预测,最后进行叠加求和。实验证明,采用EMD分解方法后的预测效果更好。Aiming at the characteristics of fluctuation and randomness of photovoltaic power, the historical photovoltaic power data is decomposed by EMD, and each component is independent of each other, respectively predicted, and finally superimposed and summed. The experiment proves that the prediction effect is better after adopting the EMD decomposition method.

本文方法在一年四个季度中的预测表现均优于AO-DELM及DELM模型。其中,在S2和S3两个季度中预测精度最高,这与当地的天气状况有关。天气较为稳定,晴天占比高的季度预测精度更高。The prediction performance of the method in this paper is better than that of the AO-DELM and DELM models in the four quarters of the year. Among them, the prediction accuracy is the highest in the two seasons of S2 and S3, which is related to the local weather conditions. The weather is relatively stable, and the forecast accuracy is higher in quarters with a high proportion of sunny days.

对于本领域技术人员而言,显然本发明不限于上述示范性实施例的细节,而且在不背离本发明的精神.或基本特征的情况下,能够以其他的具体形式实现本发明。因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本发明的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化囊括在本发明内。不应将权利要求中的任何附图标记视为限制所涉及的权利要求。It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention. Accordingly, the embodiments should be regarded in all points of view as exemplary and not restrictive, the scope of the invention being defined by the appended claims rather than the foregoing description, and it is therefore intended that the scope of the invention be defined by the appended claims rather than by the foregoing description. All changes within the meaning and range of equivalents of the elements are embraced in the present invention. Any reference sign in a claim should not be construed as limiting the claim concerned.

此外,应当理解,虽然本说明书按照实施方式加以描述,但并非每个实施方式仅包含一个独立的技术方案,说明书的这种叙述方式仅仅是为清楚起见,本领域技术人员应当将说明书作为一个整体,各实施例中的技术方案也可以经适当组合,形成本领域技术人员可以理解的其他实施方式。In addition, it should be understood that although this specification is described according to implementation modes, not each implementation mode only includes an independent technical solution, and this description in the specification is only for clarity, and those skilled in the art should take the specification as a whole , the technical solutions in the various embodiments can also be properly combined to form other implementations that can be understood by those skilled in the art.

Claims (6)

1. A photovoltaic power calculation method based on EMD-AO-DELM is characterized in that: the method comprises the following steps:
s1: the method comprises the steps of obtaining meteorological factors, wherein the meteorological factors comprise cloud cover, air temperature, air pressure, humidity and total radiation, calculating that the total radiation and the cloud cover are highly positively correlated with photovoltaic power, and the relative humidity and the atmospheric pressure are negatively correlated, so that the cloud cover and the total radiation are selected as DELM initial input data;
s2: establishing an AO-DELM calculation model, taking the DELM initial input weight as an initial population position of an AO algorithm, and setting an fitness function as the sum of mean square errors of a training set and a test set;
s3: establishing an EMD-AO-DELM calculation model, decomposing a photovoltaic power generation power curve by adopting the EMD, so as to decompose different scale fluctuation or trend existing in an original environment signal step by step, respectively carrying out AO-DELM modeling analysis on decomposed IMF components, and then carrying out superposition summation on prediction results of the IMF components to obtain a final prediction value;
s4: and verifying the validity and accuracy of the calculation model.
2. The EMD-AO-DELM based photovoltaic power calculation method according to claim 1, wherein: the step S1 includes: s11: introducing Pearson correlation coefficient through the formulaCalculating a linear relationship between distance variables for measuring whether two data sets are on a line, wherein r>1 represents positive correlation between the two, r<1 represents that the two are in negative correlation; xi and yi represent the values of the ith of two factors, respectively; />And->Each representing an average of 2 factors.
3. The EMD-AO-DELM based photovoltaic power calculation method according to claim 1, wherein: the step S2 includes: the calculation formula is fitness=mse (train) +mse (test).
4. A method of EMD-AO-DELM based photovoltaic power calculation according to claim 3, wherein: the step S2 includes: s21: data cleaning is carried out, and abnormal values caused by errors in sampling some historical photovoltaic power data are proposed; s22: normalizing the cleaned sample data; s23: initializing AO algorithm parameters, including population scale, maximum iteration times T, and exploring and developing parameters alpha and delta; s24, initializing a population position X, initial population fitness and optimal individuals; s25: the method comprises the steps of sequentially carrying out an expansion exploration phase, a reduction exploration phase, an expansion development phase and a reduction development phase, and continuously updating the population positions; s26: calculating the fitness of the updated population to obtain the current optimal individual position and fitness, comparing the current optimal individual with the optimal individual fitness found until the t generation, and reserving the optimal individual position; s27: judging whether the maximum iteration times or solving conditions are reached, if so, outputting an optimal value, and if not, returning to the step S25; s28: and inputting the final optimized weight value result into the DELM model.
5. The EMD-AO-DELM based photovoltaic power calculation method according to claim 1, wherein: the step S3 comprises the following steps: s31: decomposing the photovoltaic historical data by adopting EMD to obtain a group of IMF components; s32: respectively establishing an AO-DELM model for each IMF component, and predicting each component; s33: and superposing the prediction results of the subsequences and verifying the accuracy of model prediction.
6. The EMD-AO-DELM based photovoltaic power calculation method according to claim 1, wherein: the step S4 includes: adopts both MAPE and RMSE as error indexes, and the MAPE calculation formula is as followsThe calculation formula of RMSE is +.>Where yoi is the i-th true value in the sample, ypi is the i-th predicted value in the sample, and the smaller the two values, the higher the accuracy.
CN202310511494.9A 2023-05-08 2023-05-08 Photovoltaic power calculation method based on EMD-AO-DELM Pending CN116681154A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310511494.9A CN116681154A (en) 2023-05-08 2023-05-08 Photovoltaic power calculation method based on EMD-AO-DELM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310511494.9A CN116681154A (en) 2023-05-08 2023-05-08 Photovoltaic power calculation method based on EMD-AO-DELM

Publications (1)

Publication Number Publication Date
CN116681154A true CN116681154A (en) 2023-09-01

Family

ID=87786298

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310511494.9A Pending CN116681154A (en) 2023-05-08 2023-05-08 Photovoltaic power calculation method based on EMD-AO-DELM

Country Status (1)

Country Link
CN (1) CN116681154A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117495435A (en) * 2023-12-29 2024-02-02 国网浙江省电力有限公司营销服务中心 FIG-IRELM-based electricity sales interval prediction method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117495435A (en) * 2023-12-29 2024-02-02 国网浙江省电力有限公司营销服务中心 FIG-IRELM-based electricity sales interval prediction method and device
CN117495435B (en) * 2023-12-29 2024-05-28 国网浙江省电力有限公司营销服务中心 Electricity sales interval prediction method and device based on FIG-IRELM

Similar Documents

Publication Publication Date Title
Lipu et al. Artificial intelligence based hybrid forecasting approaches for wind power generation: Progress, challenges and prospects
Gao et al. Deep learning and transfer learning models of energy consumption forecasting for a building with poor information data
Zhang et al. Short-term forecasting and uncertainty analysis of wind turbine power based on long short-term memory network and Gaussian mixture model
Khazaei et al. A high-accuracy hybrid method for short-term wind power forecasting
CN112653142A (en) Wind power prediction method and system for optimizing depth transform network
CN117114192B (en) Offshore wind power prediction method and device based on multi-scale space-time diagram transformation network
CN115347571B (en) Photovoltaic power generation short-term prediction method and device based on transfer learning
CN116644970A (en) A Photovoltaic Power Prediction Method Based on VMD Decomposition and Stacked Deep Learning
CN116345555A (en) A Short-Term Photovoltaic Power Forecasting Method Based on CNN-ISCA-LSTM Model
CN114462718A (en) CNN-GRU wind power prediction method based on time sliding window
CN116894384A (en) A multi-wind turbine wind speed spatio-temporal prediction method and system
Wang et al. An approach for day-ahead interval forecasting of photovoltaic power: A novel DCGAN and LSTM based quantile regression modeling method
CN114330100A (en) Short-term photovoltaic power probability interval prediction method
CN118199061B (en) Short-term power prediction method and system for renewable energy sources
CN116826699B (en) Photovoltaic cluster power prediction method, device, equipment and medium
Wang et al. An optimized deep nonlinear integrated framework for wind speed forecasting and uncertainty analysis
Zhou et al. Combined Ultra-Short-Term Photovoltaic Power Prediction Based on CEEMDAN Decomposition and RIME Optimized AM-TCN-BiLSTM
CN116681154A (en) Photovoltaic power calculation method based on EMD-AO-DELM
Gunawan et al. Backpropagation neural network (BPNN) algorithm for predicting wind speed patterns in East Nusa Tenggara
CN119051018A (en) A photovoltaic load prediction method and device based on artificial intelligence
Llugsi et al. A novel Encoder-Decoder structure for Time Series analysis based on Bayesian Uncertainty reduction
Brahma et al. Visualizing solar irradiance data in ArcGIS and forecasting based on a novel deep neural network mechanism
CN117293818A (en) Photovoltaic power generation prediction method based on Gaussian modeling attention mechanism and LSTM
CN113836814A (en) A solar energy prediction method based on multi-stream neural network
Yalçın et al. Prediction and Analysis of Weather Parameters with Global Horizontal Solar Irradiance Using LSTM-CNN Based Deep Learning Technique

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination