Summary of the invention
The object of the invention is to improve a kind of accuracy that can significantly improve output power of photovoltaic module predicted value, departure scope, and eliminate the Forecasting Methodology of outlier.
To achieve these goals, the technical solution adopted in the present invention is:
The present invention adopts neural network prediction and the rolling neural network prediction of physical model prediction, environmental factor to predict respectively, the power stage value of performance number taking the performance number of physical model prediction as the neural network prediction of P0, environmental factor as the performance number of P1, rolling neural network prediction as P2, final prediction is as P:
If P1>P0 and P2>P0, P=P0;
If P1>P0>P2, P=P2;
If P2>P0>P1, P=P1;
If P1<P0 and P2<P0, P=(P1+P2)/2.
Further, in physical model prediction of the present invention, according to photovoltaic module performance parameter and monitored parameters, adopt following formula to calculate the current value (I) of prediction:
(1-16)
(1-17)
(1-18)
(1-19)
(1-20)
(1-21)
(1-22)
(1-23)
(1-24)
(1-25)
(1-26)
(1-27)
Wherein
t *for photovoltaic battery temperature, unit is K;
t tairfor the environment temperature detecting, unit is K;
kphotovoltaic battery temperature coefficient while variation for intensity of illumination;
t qfor weather conditions index;
Z is air quality index;
t reffor reference temperature, unit is DEG C;
sfor intensity of illumination index, unit is
;
s reffor intensity of illumination under the status of criterion, be 1000
;
A is temperature compensation coefficient;
B is intensity of illumination penalty coefficient;
C is temperature compensation coefficient;
D
t *, d
s *, d
i *, d
u *be respectively the correction for temperature, intensity of illumination, electric current, voltage;
i sCfor short-circuit current, unit is A;
u oCfor open-circuit voltage, unit is V;
i mfor maximum power point output current, unit is A;
u mthe output voltage of maximum power point, unit is V;
i sC *,
i m *,
u oC *,
u m *, be respectively revised electric current, voltage;
I is the photovoltaic cell output current of prediction, and unit is A;
c 1,
c 2for intermediate parameters;
Described monitored parameters is selected from environment temperature, intensity of illumination, weather conditions and air quality.
Further, the neural network prediction of environmental factor of the present invention comprises the steps:
Step 1: data acquisition: determine monitoring number of days, determine the monitoring time section of every day, determine the monitoring time interval of every day, select applicable condition element as monitored parameters image data; Gather the photovoltaic module real output of every day;
Described monitoring number of days was 1 ~ 10 week, described monitoring time section be early 5 point ~ 8 to late 16 point ~ 20 points, described monitoring time is spaced apart 1 ~ 3 hour, and described condition element is selected from one or more in weather, temperature, pollution index, intensity of illumination or photovoltaic module clean-up performance;
Step 2: the normalized of data: reject after the obvious outlier in the data of above-mentioned collection, adopt following formula to be normalized data:
(2-1)
Wherein
xfor the data after normalized,
xfor the data before normalized,
x min for variable
xminimum value,
x maxfor variable
xmaximal value;
Step 3: the selection of input layer: taking the photovoltaic output power under the time interval of every day monitoring in step 1 as input layer;
Step 4: the selection of output layer node: using the data after normalization in step 2 as output layer node;
Step 5: the selection of hidden layer and hidden nodes: select according to following formula:
(2-2)
Wherein
mfor the number of hidden nodes,
nfor input layer number,
lfor output node number,
Step 6: adopt the data neural network training model in step 3 ~ five, after having trained for predicting photovoltaic power value.
Further, the training method of neural network training model of the present invention is trainlm training method.
Further, rolling neural network prediction of the present invention comprises the steps:
Step 1: data acquisition: determine monitoring number of days, determine the monitoring time section of every day, determine the monitoring time interval of every day, select applicable condition element as monitored parameters image data; Gather the photovoltaic module real output of every day;
Described monitoring number of days is 20 ~ 50 days, described monitoring time section be early 5 point ~ 8 to late 16 point ~ 20 points; Described monitoring time is spaced apart 1 ~ 3 hour, and described condition element is selected from one or more in weather, temperature, pollution index, intensity of illumination or photovoltaic module clean-up performance;
Step 2: Data classification: reject after the obvious outlier in the data of above-mentioned collection, select a kind of monitored parameters as investigating variables A, according to investigating variables A, step 1 the data obtained is classified;
Described investigation variables A is selected from the one in weather, temperature, pollution index or intensity of illumination or photovoltaic module clean-up performance;
Step 3: the normalized of data:
Adopt following formula to be normalized data:
(2-1)
Wherein
xfor the data after normalized,
xfor the data before normalized,
x min for variable
xminimum value,
x maxfor variable
xmaximal value;
Step 4: adopt the photovoltaic output power of predicting day at three days before prediction day in the same photovoltaic output power prediction of investigating under variables A condition, until complete the prediction to whole training set;
Step 5: input layer: to predict that the monitored parameters except investigation variables A under day first three day each time interval is as input layer;
Step 6: output layer node: to predict day that photovoltaic output power under each time interval of prediction is as output layer node;
Step 7: hidden layer and hidden nodes: select according to following formula:
(2-2)
Wherein
mfor the number of hidden nodes,
nfor input layer number,
lfor output node number,
Step 8: adopt the data neural network training model in step 5 ~ seven, after having trained for predicting photovoltaic power value.
Further, the training method of neural network training model of the present invention is trainlm training method.
Physical model prediction of the present invention mainly refers to the Forecasting Methodology based on photovoltaic module electricity generating principle and physical model, the method has been considered weather conditions, temperature, intensity of illumination, the impact of pollution index (as PM2.5 concentration) on photovoltaic generation power, existing photovoltaic cell mathematical model is revised, set up the mathematical model of new photovoltaic module, by setting up physical simulation model prediction photovoltaic power size.The existing physical model Forecasting Methodology of use that those skilled in the art can select, or the physical model Forecasting Methodology of the multifactor correction of disclosed process in use the present invention, used disclosed method in the present invention can further improve the accuracy of prediction.
The neural network prediction of environmental factor of the present invention is mainly, based on environmental factor, the generated output of photovoltaic module is had to larger impact.The method has been considered the environmental factor of Various Complex and the impact of the cleanliness of photovoltaic module on photovoltaic generation power, input using weather conditions, temperature, intensity of illumination, pollution index (as PM2.5 concentration), photovoltaic module cleanliness as neural network model, photovoltaic power is exported as it, obtain photovoltaic power forecast model by training, thereby using the prediction weather conditions of day, temperature, intensity of illumination, pollution index (as PM2.5 concentration), photovoltaic module cleanliness as input, thereby obtain corresponding photovoltaic power predicted value.What those skilled in the art can select arranges applicable environmental factor according to this area situation, or uses disclosed environmental factor in the present invention to predict.
Rolling neural network prediction of the present invention is mainly the prediction based on photovoltaic power historical data, use the training set of photovoltaic power historical data as neural network model, first group of training set is output as the 4th day data of photovoltaic power historical data, first group of training set be input as first three day photovoltaic power, intensity of illumination, pollution index (as PM2.5 concentration), second group is output as the photovoltaic power historical data of the 5th day, second group is input as photovoltaic power, intensity of illumination, the historical data of second day to the 4th day of pollution index (as PM2.5 concentration), by that analogy, train the data of all training sets, obtain on line rolling prediction model, to predict that day first three daylight volt power is as prediction input data input on line rolling prediction model, thereby obtain this prediction day photovoltaic output power.The existing rolling neural net prediction method of use that those skilled in the art can select, or use the rolling neural net prediction method of the present invention to disclosed multifactor investigation, use disclosed method in the present invention can further improve the accuracy of prediction.
The beneficial effect that adopts technique scheme to produce is:
Method of the present invention is considered the impact of multiple environmental factor, more approaches environmental baseline when photovoltaic module is actual to be used, and can improve the accuracy of prediction; The present invention simultaneously, by adopting physical method, considers the impact of many factors on photovoltaic generation power, can more approach actual conditions, thereby the photovoltaic generation power that can more calculate to a nicety; Moreover the present invention is by adopting statistical method, physical method and statistical method combination, have complementary advantages, more accurately effective prediction photovoltaic generation power; Combine by said method, the error range of prediction can be contracted to 15%, and this be not attainable in prior art, by dwindling error range, can carry out output power of photovoltaic module more accurately compensatory, greatly reduce loss; And method of the present invention almost can be eliminated outlier completely, further promote the accuracy of prediction.
The mathematical relation of method relative complex of the present invention is converted into the mathematical relation of advantages of simple simultaneously, is conducive to the application of Practical Project, has improved the speed of predicting, has reduced the difficulty of predicting.
Embodiment 1
As shown in Figure 1, first the present embodiment predicts photovoltaic power by physical method, by analyzing physical arrangement and the electricity generating principle of photovoltaic cell, determine the various factors that affects photovoltaic generation power, comprise weather conditions, temperature, intensity of illumination, pollution index (as PM2.5 concentration), analyze the impact of these factors on photovoltaic generation power, by corresponding mathematical relation, determine the mathematical formulae that calculates photovoltaic cell capable of generating power power, and mathematical model is converted into realistic model, after the parameter of solar cell is determined, by the weather conditions of certain period, temperature, intensity of illumination, the change curve of pollution index (as PM2.5 concentration) is as input, operation realistic model, obtain the physical model predicted power change curve of photovoltaic cell capable of generating power power.
Secondly, the present embodiment adopts statistical method, because photovoltaic generation power is subject to the impact of many factors, the prediction of photovoltaic power is belonged to complicated nonlinear problem, and application neural network predicts it is a kind of effective method to photovoltaic power.
The present embodiment adopts two kinds of BP neural networks that neural net prediction method combines.First method is the neural network prediction of environmental factor, consider the impact of various environmental factors on photovoltaic generation power, with the weather conditions of a period of time, temperature, intensity of illumination, pollution index (as PM2.5 concentration), photovoltaic module cleanliness are as the input of training set, output using the actual count data of the photovoltaic power output of the solar cell of this period as the training set of neural network, select rational neural metwork training method, arithmetic accuracy and neural network structure, train this group data, obtain the neural network model of photovoltaic cell capable of generating power power by training.Using the weather conditions of certain period of needs prediction, temperature, intensity of illumination, pollution index (as PM2.5 concentration), photovoltaic module cleanliness as prediction input data, be input to the neural network model training, move this model, obtain the neural network prediction performance number of photovoltaic cell capable of generating power power.
The second method of neural network prediction adopts rolling forecast method, and the photovoltaic generation power before predict day by employings under same weather conditions in three days is inputted as the training set of neural network model, predicts that the photovoltaic power of this prediction day is exported.In the present embodiment, choose before prediction day not photovoltaic power real output value in the same time 30 day every day, weather conditions, intensity of illumination, the data such as pollution index (as PM2.5 concentration) are as the raw data of power prediction, Shijiazhuang District feature is classified according to weather conditions, as: form respectively fine day, cloudy day, haze, cloudy weather, under these conditions according to the photovoltaic power that contains of chronological order arrangement, illumination, the tables of data of pollution index (as PM2.5 concentration), select corresponding the 4th day not photovoltaic power real output value in the same time to prediction day the previous day for the output of training set, when prediction photovoltaic power, first detect the weather conditions on the same day, use the data of four forms of above-mentioned correspondence to train, obtain the neural network model of photovoltaic power rolling forecast, by the prediction day identical with the prediction day weather conditions photovoltaic power of 3 days before, intensity of illumination, pollution index (as PM2.5 concentration) is as the input of this neural network power prediction, move this model, obtain the prediction photovoltaic predicted power value of day.
By the combination application of physics Forecasting Methodology and statistical prediction methods, the output power curve of three kinds of Forecasting Methodologies is compared and revised, the output valve of predicted power is limited in certain error range, can improve the accuracy of predicted data.
Weather conditions described in the present embodiment are the weather conditions that are applicable to this area, in a data acquisition and prediction, all use identical predetermined value.As the weather conditions of selecting are fine, the moon, cloudy, sleet, haze, and the value of default fine day is 1 respectively, and the value at cloudy day is 0, and cloudy value is 0.5, and the value of sleet is 0, and the value of haze is 0.2.Those skilled in the art, in the time using method of the present invention to predict, can select the weather conditions and the preset value that are suitable for this area, all uses identical value as long as ensure in a data acquisition and prediction.
Pollution index described in the present embodiment can be air quality index (AQI), air quality subindex (IAQI), PM2.5 concentration or inspirable particle concentration, it is excellent that the data of announcing according to local weather bureau are defined as one-level, secondary is good, three grades of slight pollutions, level Four intermediate pollution, Pyatyi serious pollution, six ranks of six grades of severe contaminations.In a data acquisition and prediction, all use identical predetermined value, if default good value is 0, good value is 0.2, and the value of slight pollution is 0.3, and the value of intermediate pollution is 0.5, and the value of serious pollution is 0.7, severe contamination value be 0.9.Those skilled in the art, in the time using method of the present invention to predict, can select and be suitable for and this area pollution index and preset value, all uses identical value as long as ensure in a data acquisition and prediction.
(1) physical model prediction
The electricity generating principle figure of photovoltaic module as shown in Figure 2.Producer and the model of the photovoltaic module that the present embodiment is investigated are: prosperous JT240Ple is dredged in Jiangsu, and the data parameters that manufacturer provides is: short-circuit current
value be 8.55A, open-circuit voltage
value be 37.2V, maximum power point output current
value be 7.8A, peak power output
value be 240W, and the output voltage of maximum power point
value be 30.8V.
The formula of the mathematical model that existing photovoltaic cell parameter is set up is as follows:
(1-1)
(1-2)
(1-3)
Wherein ISC is short-circuit current, and unit is A;
UOC is open-circuit voltage, and unit is V;
Im is maximum power point output current, and unit is A;
The output voltage of Um maximum power point, unit is V;
I is the photovoltaic cell output current of prediction, and unit is A;
C1, C2 is intermediate parameters.
According to investigation factor, above-mentioned formula is revised, wherein the investigation factor of the present embodiment comprises: temperature T, and intensity of illumination S, PM2.5 concentration, weather conditions TQ(is fine, the moon is cloudy, sleet, haze).Weather conditions are fine, and the moon is cloudy, sleet, and haze, and the value of default fine day is 1 respectively, and the value at cloudy day is 0, and cloudy value is 0.5, and the value of sleet is 0, and the value of haze is 0.2.PM2.5 concentration is good 0 with air quality index Z(on the impact of photovoltaic generation power, good 0.2, slight pollution 0.3, intermediate pollution 0.5, serious pollution 0.7, severe contamination 0.9) represent.
Bring revised formula into:
(1-16)
(1-17)
(1-18)
(1-19)
(1-20)
(1-21)
(1-22)
(1-23)
(1-24)
(1-25)
(1-26)
(1-27)
Wherein T* is photovoltaic battery temperature, and unit is K;
Ttair is the environment temperature detecting, and unit is K;
Photovoltaic battery temperature coefficient when K is intensity of illumination variation;
Tq is weather conditions index;
Z is air quality index;
Tref is reference temperature, and unit is DEG C;
S is intensity of illumination index, and unit is
;
Sref is intensity of illumination under the status of criterion, is 1000
;
A is temperature compensation coefficient;
B is intensity of illumination penalty coefficient;
C is temperature compensation coefficient;
D T*, dS*, dI*, dU* is respectively the correction into temperature, intensity of illumination, electric current, voltage;
ISC is short-circuit current, and unit is A;
UOC is open-circuit voltage, and unit is V;
Im is maximum power point output current, and unit is A;
The output voltage of Um maximum power point, unit is V;
ISC**, Im**, UOC**, Um**, is respectively revised electric current, voltage;
I is the photovoltaic cell output current of prediction, and unit is A;
C1, C2 is intermediate parameters.
The current value of the photovoltaic module obtaining, according to P=UI, finally calculates generated output P0.Wherein P is power, and U is voltage, and I is electric current.
(2) neural network prediction of environmental factor
Step 1: data acquisition: determine that monitoring number of days is 30 days, the monitoring time section of determining every day is to amount to 16 hours at 8 in evening 5 of mornings, the monitoring time interval of determining every day is 1 hour, determines that according to condition element monitored parameters is weather, temperature, pollution index, intensity of illumination and photovoltaic module clean-up performance; Gather the photovoltaic module real output of every day.
Step 2: the normalized of data: reject after the obvious outlier in the data of above-mentioned collection, adopt following formula to be normalized data:
(2-1)
Be wherein the data after normalized,
for the data before normalized,
for variable
minimum value,
for variable
maximal value;
Step 3: the selection of input layer,
The present embodiment adopts 61 input variables, wherein 5 of 1-15 input mornings on daytime, (fine day represented with 1 to the weather conditions of each hour between at 8 in evening, cloudy day represents with 0, cloudy use 0.5 represents, haze represents with 0.2), 16-30 is input as 5 of mornings on daytime to the temperature value of each hour between at 8 in evening, 31-45 is input as 5 of mornings on daytime to the PM2.5 concentration value of each hour between at 8 in evening, 46-60 is input as 5 of mornings on daytime to the illumination intensity value of each hour between at 8 in evening, (cleanliness well represent with 1 the 61st clean-up performance that is input as photovoltaic cell component, cleanliness generally represent with 0.6, the very poor use 0.1 of cleanliness represents).
Step 4: the selection of output layer node: output layer node determines by target of prediction, photovoltaic generation statistical model prediction output layer node is 15 nodes, represents that 5 of mornings on daytime are to the photovoltaic output power of each hour between at 8 in evening.
Step 5: the selection of hidden layer and hidden nodes: calculate according to following formula:
Wherein
for the number of hidden nodes,
for input layer number,
for output node number,
Step 6: the present embodiment adopts the hidden layer configuration of 3 layers, and input quantity is 61, and output quantity is 15, and calculating the number of hidden nodes is 30.Select trainlm training method, neural network training model.
Obtain the neural network model net of photovoltaic cell capable of generating power power by training.Using the prediction weather conditions of day, temperature, intensity of illumination, PM2.5 concentration, photovoltaic module clean-up performance data as the input data of predicting, input neural network model net, moves this model, obtains the neural network prediction value of the photovoltaic power of this day.
(3) rolling neural network prediction
Step 1: data acquisition: the monitoring time section of determining every day is to amount to 16 hours at 8 in evening 5 of mornings, the monitoring time interval of determining every day is 1 hour, determines that according to condition element monitored parameters is weather, temperature, pollution index, intensity of illumination and photovoltaic module clean-up performance; Gather the photovoltaic module real output of every day.
Step 2: Data classification: reject after the obvious outlier in the data of above-mentioned collection, determine that investigating variables A is weather conditions, then classify according to weather conditions, form respectively the tables of data that contains photovoltaic power, illumination, PM2.5 concentration of arranging according to chronological order under fine day, cloudy day, haze, cloudy weather condition.
Step 3: the normalized of data:
Adopt following formula to be normalized data:
(2-1)
Wherein
for the data after normalized,
for the data before normalized,
for variable
minimum value,
for variable
maximal value;
Step 4: the photovoltaic output power of day is predicted in the photovoltaic output power prediction of first three day under same investigation variables A condition before of employing prediction day, until complete the prediction to whole training set.When the present embodiment prediction photovoltaic power, first detect the weather conditions on the same day, use the data of four forms of above-mentioned correspondence to predict, that fine day is as example taking prediction day weather conditions, choose not photovoltaic power, intensity of illumination, the PM2.5 concentration in the same time of the 1st day to the 3rd day of carrying out under above-mentioned fine day situation after data processing and input as first group of training set, not photovoltaic power output in the same time that corresponding training set is output as under fine day situation the 4th day; Under second group of the training set above-mentioned fine day situation of input data decimation, carry out not photovoltaic power, intensity of illumination, the PM2.5 concentration value in the same time of after data processing the 2nd day to the 4th day, the not photovoltaic power output in the same time that is output as under fine day situation the 5th day; By that analogy, always with the 4th day photovoltaic power of first three day photovoltaic power prediction under same weather conditions, until be output as last group data of training set.
Step 5: input layer: the present embodiment adopts 135 input variables, wherein 1-45 is input as 5 of the 1st day to the 3rd day every mornings to the photovoltaic output power of each hour between at 8 in evening, 46-90 is input as 5 of the 1st day to the 3rd day mornings to each little intensity of illumination temperature value between at 8 in evening, and 91-135 is input as 5 of the 1st day to the 3rd day mornings to the PM2.5 concentration value of each hour between at 8 in evening.
Step 6: output layer node: output layer node determines by target of prediction, photovoltaic generation statistical model prediction output layer node is 15 nodes, represents that 5 of mornings on daytime are to the photovoltaic output power of each hour between at 8 in evening.
Step 7: hidden layer and hidden nodes: select according to following formula:
Wherein
for the number of hidden nodes,
for input layer number,
for output node number,
Step 8: the BP neural network of this forecast model design adopts 3-tier architecture, and input quantity is 135, and output quantity is 15, and the number of hidden nodes of calculating is 45, selects trainlm training method, neural network training model.
Obtain the neural network model net1 of photovoltaic cell capable of generating power power by training.Before the prediction day identical with prediction day weather conditions, the photovoltaic power of 3 days, intensity of illumination, PM2.5 concentration are as the input of this neural network power prediction, and input neural network model net1, moves this model, obtain the photovoltaic predicted power of prediction day.
(4) power prediction
According to formula:
If P1>P0 and P2>P0, P=P0;
If P1>P0>P2, P=P2;
If P2>P0>P1, P=P1;
If P1<P0 and P2<P0, P=(P1+P2)/2.
Bring P0, P1 and the P2 of above-mentioned model prediction gained into, by said method, the predict 1 day photovoltaic output power of (8: 15~16: 45, interval 5min), obtains final predicted value P as table 1.According to the data of table 1, the performance number P of prediction approaches the actual performance number P reality recording, and the error range of predicted value is less than 15%.
The photovoltaic power predicted value of table 1 embodiment 1
(unit is: kw)
Table 1
Table 1 continuous 1
Table 1 continuous 2