CN110266031B - Energy storage grid-connected charging and discharging capacity control method and device, server and storage medium - Google Patents
Energy storage grid-connected charging and discharging capacity control method and device, server and storage medium Download PDFInfo
- Publication number
- CN110266031B CN110266031B CN201910592983.5A CN201910592983A CN110266031B CN 110266031 B CN110266031 B CN 110266031B CN 201910592983 A CN201910592983 A CN 201910592983A CN 110266031 B CN110266031 B CN 110266031B
- Authority
- CN
- China
- Prior art keywords
- power
- energy storage
- actual
- discharge
- electric quantity
- 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.)
- Active
Links
- 238000004146 energy storage Methods 0.000 title claims abstract description 171
- 238000007599 discharging Methods 0.000 title claims abstract description 49
- 238000000034 method Methods 0.000 title claims abstract description 37
- 238000003860 storage Methods 0.000 title claims abstract description 25
- 238000010248 power generation Methods 0.000 claims abstract description 89
- 238000012937 correction Methods 0.000 claims abstract description 58
- 238000004364 calculation method Methods 0.000 claims abstract description 22
- 238000011156 evaluation Methods 0.000 claims abstract description 19
- 230000005611 electricity Effects 0.000 claims description 43
- 238000011478 gradient descent method Methods 0.000 claims description 18
- 238000005457 optimization Methods 0.000 claims description 10
- 238000012986 modification Methods 0.000 claims description 3
- 230000004048 modification Effects 0.000 claims description 3
- 230000006870 function Effects 0.000 description 97
- 230000003287 optical effect Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 238000013459 approach Methods 0.000 description 2
- 230000002354 daily effect Effects 0.000 description 2
- 238000005315 distribution function Methods 0.000 description 2
- 230000007613 environmental effect Effects 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 239000002699 waste material Substances 0.000 description 2
- OKTJSMMVPCPJKN-UHFFFAOYSA-N Carbon Chemical compound [C] OKTJSMMVPCPJKN-UHFFFAOYSA-N 0.000 description 1
- 230000002411 adverse Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 229910052799 carbon Inorganic materials 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000003912 environmental pollution Methods 0.000 description 1
- 230000003203 everyday effect Effects 0.000 description 1
- 239000002803 fossil fuel Substances 0.000 description 1
- 238000005286 illumination Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000012804 iterative process Methods 0.000 description 1
- 238000012886 linear function Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000002035 prolonged effect Effects 0.000 description 1
- 238000012887 quadratic function Methods 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J3/00—Circuit arrangements for ac mains or ac distribution networks
- H02J3/28—Arrangements for balancing of the load in a network by storage of energy
- H02J3/32—Arrangements for balancing of the load in a network by storage of energy using batteries with converting means
-
- H02J3/382—
Landscapes
- Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Supply And Distribution Of Alternating Current (AREA)
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
The embodiment of the invention discloses a method, a device, a server and a storage medium for controlling energy storage grid-connected charging and discharging capacity of a power generation side, wherein the method comprises the following steps: acquiring historical data of a power generation side in a power station, and acquiring actual power generation conditions and power limiting conditions of the power station according to the historical data; calculating actual power after the actual power is added into the power station energy storage equipment according to the energy storage side parameters; calculating double-fine rules and checking the score difference by combining the actual power generation condition and the power limiting condition of the station and the actual power generation power added into the energy storage equipment of the power station; optimizing parameters of the correction function so as to minimize the evaluation score difference of the double-rule obtained by calculation of the optimized correction function; and adjusting the predicted power value according to the corrected and optimized parameters, and controlling the energy storage side to perform charging/discharging control according to the adjusted predicted power value. The accuracy of the predicted power can be effectively improved, and the energy storage efficiency of the energy storage equipment can be optimized on the premise of meeting double-rule evaluation.
Description
Technical Field
The invention relates to the technical field of power grids, in particular to a power generation side energy storage grid-connected control method, a power generation side energy storage grid-connected control device, a server and a storage medium.
Background
With the exhaustion of fossil energy, research and application of new energy are increased in many countries in recent years, and it is expected that problems of energy shortage, such as wind power generation, photovoltaic power generation and the like, are alleviated by means of new energy power generation. The advantages brought by the new energy power generation are that not only the crisis of fossil fuel is relieved, but also a new idea is provided for the production and transmission of energy, on the other hand, the problems of environmental pollution caused by depending on fossil energy are solved, and the emission of carbon is reduced.
However, the new energy power generation technology has some adverse effects on the safe and stable operation of the power system. For example, wind power generation and photovoltaic power generation are affected by many environmental factors, and are characterized by randomness, intermittency and uncontrollable property. These characteristics will affect the real-time supply and demand balance of the power system, which may be harmful to the grid. To prevent this, the grid usually limits the generated power of the new energy power station. This approach can create a situation where energy is wasted. With the continuous reduction of the energy storage cost, the energy storage can be used for recovering and abandoning electricity.
After the new energy power station is connected with the energy storage equipment, although the randomness can be reduced and the electricity can be recovered through adjusting the actual grid-connected power, the generated power of the new energy power station is still influenced by environmental factors and has randomness. In order to increase the controllability of the new energy power station, the energy storage power stations are taken out from various regions, the specified energy storage power stations need to report the predicted power every day and are grid-connected to generate power strictly according to the predicted power. How to realize controlling energy storage equipment charge-discharge, make the new forms of energy power station that has energy storage equipment can satisfy the examination, can also promote energy storage equipment's availability factor simultaneously, become the technical problem that needs to solve at present urgently.
Disclosure of Invention
The embodiment of the invention provides an energy storage grid-connected charging and discharging control method, an energy storage grid-connected charging and discharging control device, a server and a storage medium, and aims to solve the technical problem that the existing new energy power station charging and discharging control with energy storage equipment is low in use efficiency on the premise of meeting the examination.
In a first aspect, an embodiment of the present invention provides an energy storage grid-connected charging and discharging amount control method, including:
acquiring historical data of a power generation side in a power station, and acquiring actual power generation conditions and power limiting conditions of the power station according to the historical data;
calculating the actual power generation power after the power station energy storage equipment is added according to the energy storage side parameters;
calculating double-rule check score difference by combining the actual power generation condition and the power limiting condition of the station and the actual power generation power added into the energy storage equipment of the power station;
optimizing parameters of the correction function so as to minimize the evaluation score difference of the double-rule obtained by calculation of the optimized correction function;
and adjusting the predicted power value according to the corrected and optimized parameters, and controlling the energy storage side to perform charging/discharging control according to the adjusted predicted power value.
Further, the optimizing the parameters of the correction function so that the minimum difference between the two detailed examination scores calculated by using the optimized correction function includes:
setting the step length and the loss function of the gradient descent method;
setting a random value range of the parameter so that the function curve fluctuates in a preset range;
and determining the optimal correction function parameters by a random gradient descent method.
Further, the determining the optimal correction function parameter by the stochastic gradient descent method includes:
randomly taking a parameter and calculating a local maximum value of the overall efficiency;
and calculating a loss function result, returning to randomly select a parameter, and terminating the cycle and outputting the parameter value until a termination condition is reached or the cycle number reaches a set number.
Further, the loss function expression is:
J(θ)=esp-R(hθ(x)),
where esp is the desired efficiency value, hθ(x) For the correction function, r (x) is an efficiency calculation function, and the efficiency calculation expression is:
wherein p isnTo predict power, prFor actual power, f is a power limiting mark, plFor theoretical power e as electricity price, PiIs the energy storage discharge power of the ith point, n is the input data length, C is the installed capacity, EjThe double-fine rule at the j point evaluates the deduction value, and m is the number of days included in the input data.
Further, the controlling the energy storage side to perform charge/discharge control according to the adjusted predicted power value includes:
judging whether the battery is in a power limiting state at present, and if the battery is in the power limiting state, judging whether the battery is fully charged;
when the battery is in an unfilled state, judging whether the chargeable quantity of the battery is larger than a power limit quantity, wherein the power limit quantity is Pd-Pth/4, Pd is the power limit quantity, Pth is theoretical power, and Ptr is actual power.
When the chargeable quantity of the battery is larger than the electricity limiting quantity, judging whether the electricity limiting quantity is larger than the charging depth;
when the chargeable quantity of the battery is not more than the limit quantity of electricity, judging whether the chargeable quantity is more than the charging depth, if so, charging according to the charging depth, otherwise, charging according to the chargeable quantity;
and when the limited electric quantity is smaller than the charging depth, charging by the limited electric quantity, otherwise, charging by the charging depth.
Further, the controlling the energy storage side to perform charge/discharge control according to the adjusted predicted power value includes:
when the power is not limited and the battery power is not empty, judging whether the actual power generation power of the power station side is smaller than a predicted power range, wherein the upper limit of the predicted power range is predicted power (1+ assessment range);
when the actual generated power is smaller than the upper limit of the predicted power range, judging whether the upper limit of discharge is larger than the sum of the actual generated power and the current electric quantity;
when the actual generated power is not less than the upper limit of the predicted power range, the electric quantity is not output;
when the upper discharge limit is larger than the sum of the actual power generation power and the existing electric quantity, judging whether the discharge depth is larger than the existing electric quantity;
when the depth of discharge is greater than the existing electric quantity, judging whether the sum of the actual generated power and the existing electric quantity is greater than the installed capacity, and when the sum of the actual generated power and the existing electric quantity is greater than the installed capacity, outputting electric quantity according to the difference between the installed capacity and the actual generated power;
and when the sum of the actual generated power and the current electric quantity is not more than the installed capacity, outputting the electric quantity according to the current electric quantity.
Further, the controlling the energy storage side to perform charging/discharging control according to the adjusted predicted power value further includes:
when the upper discharge limit is not more than the sum of the actual generated power and the existing electric quantity, judging whether the sum of the actual generated power and the discharge depth is more than the upper discharge limit;
when the sum of the actual generated power and the discharge depth is larger than the upper discharge limit, judging whether the upper discharge limit is larger than the installed capacity, and if so, outputting electric quantity according to the difference between the installed capacity and the actual generated power; otherwise, discharging according to the difference between the upper discharge limit and the actual generated power;
and when the sum of the actual generated power and the depth of discharge is not greater than the upper limit of discharge, judging whether the sum of the actual generated power and the depth of discharge is greater than the installed capacity, if so, outputting the quantity according to the difference between the installed capacity and the actual generated power, otherwise, outputting the quantity of electricity according to the depth of discharge.
Further, the obtaining of the actual power generation situation and the power limitation situation of the power station according to the historical data includes:
fitting the actual power generation power and the overall trend of the actually measured meteorological data;
obtaining theoretical power through the fitted function and meteorological data; and determining the electricity limiting condition according to the theoretical power and the actual generated power.
In a second aspect, an embodiment of the present invention further provides an energy storage grid-connected charging and discharging amount control apparatus, including:
the acquisition module is used for acquiring historical data of a power generation side in the power station and obtaining the actual power generation condition and the power limiting condition of the power station according to the historical data;
the calculation module is used for calculating the actual power generation power after the power station energy storage equipment is added according to the energy storage side parameters;
the score difference calculation module is used for checking the score difference by combining the actual power generation condition and the power limiting condition of the station and the actual power generation power calculation after the station is added into the energy storage equipment of the power station;
the optimization module is used for optimizing parameters of the correction function so as to minimize the double-rule assessment score difference calculated by using the optimized correction function;
and the control module is used for adjusting the predicted power value according to the corrected and optimized parameters and controlling the energy storage side to perform charging/discharging control according to the adjusted predicted power value.
Further, the optimization module comprises:
the setting unit is used for setting the step length and the loss function of the gradient descent method;
the setting unit is used for setting the random value range of the parameters so as to enable the function curve to fluctuate in a preset range;
and the determining unit is used for determining the optimal correction function parameters by a random gradient descent method.
Further, the determining unit is configured to:
randomly taking a parameter and calculating a local maximum value of the overall efficiency;
and calculating a loss function result, returning to randomly select a parameter, and terminating the cycle and outputting the parameter value until a termination condition is reached or the cycle number reaches a set number.
Further, the loss function expression is:
J(θ)=esp-R(hθ(x)),
where esp is the desired efficiency value, hθ(x) For the correction function, r (x) is an efficiency calculation function, and the efficiency calculation expression is:
wherein p isnTo predict power, prFor actual power, f is a power limiting mark, plFor theoretical power e as electricity price, PiIs the energy storage discharge power of the ith point, n is the input data length, C is the installed capacity, EjThe double-fine rule at the j point evaluates the deduction value, and m is the number of days included in the input data.
Further, the control module is configured to:
judging whether the battery is in a power limiting state at present, and if the battery is in the power limiting state, judging whether the battery is fully charged;
when the battery is in an unfilled state, judging whether the chargeable quantity of the battery is larger than a power limit quantity, wherein the power limit quantity is Pd-Pth/4, Pd is the power limit quantity, Pth is theoretical power, and Ptr is actual power.
When the chargeable quantity of the battery is larger than the electricity limiting quantity, judging whether the electricity limiting quantity is larger than the charging depth;
when the chargeable quantity of the battery is not more than the limit quantity of electricity, judging whether the chargeable quantity is more than the charging depth, if so, charging according to the charging depth, otherwise, charging according to the chargeable quantity;
and when the limited electric quantity is smaller than the charging depth, charging by the limited electric quantity, otherwise, charging by the charging depth.
Further, the control module is configured to:
when the power is not limited and the battery power is not empty, judging whether the actual power generation power of the power station side is smaller than a predicted power range, wherein the upper limit of the predicted power range is predicted power (1+ assessment range);
when the actual generated power is smaller than the upper limit of the predicted power range, judging whether the upper limit of discharge is larger than the sum of the actual generated power and the current electric quantity;
when the actual generated power is not less than the upper limit of the predicted power range, the electric quantity is not output;
when the upper discharge limit is larger than the sum of the actual power generation power and the existing electric quantity, judging whether the discharge depth is larger than the existing electric quantity;
when the depth of discharge is greater than the existing electric quantity, judging whether the sum of the actual generated power and the existing electric quantity is greater than the installed capacity, and when the sum of the actual generated power and the existing electric quantity is greater than the installed capacity, outputting electric quantity according to the difference between the installed capacity and the actual generated power;
and when the sum of the actual generated power and the current electric quantity is not more than the installed capacity, outputting the electric quantity according to the current electric quantity.
Further, the control module is further configured to:
when the upper discharge limit is not more than the sum of the actual generated power and the existing electric quantity, judging whether the sum of the actual generated power and the discharge depth is more than the upper discharge limit;
when the sum of the actual generated power and the discharge depth is larger than the upper discharge limit, judging whether the upper discharge limit is larger than the installed capacity, and if so, outputting electric quantity according to the difference between the installed capacity and the actual generated power; otherwise, discharging according to the difference between the upper discharge limit and the actual generated power;
and when the sum of the actual generated power and the depth of discharge is not greater than the upper limit of discharge, judging whether the sum of the actual generated power and the depth of discharge is greater than the installed capacity, if so, outputting the quantity according to the difference between the installed capacity and the actual generated power, otherwise, outputting the quantity of electricity according to the depth of discharge.
Further, the obtaining module includes:
the fitting unit is used for fitting the actual power generation power and the overall trend of the actually measured meteorological data;
the determining unit is used for obtaining theoretical power through the fitted function and meteorological data; and determining the electricity limiting condition according to the theoretical power and the actual generated power.
In a third aspect, an embodiment of the present invention further provides a server, where the server includes:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement any of the energy storage grid-connected charge and discharge capacity control methods provided by the above embodiments.
In a fourth aspect, an embodiment of the present invention further provides a storage medium containing computer-executable instructions, where the computer-executable instructions are executed by a computer processor to perform the energy storage grid-connection charging and discharging capacity control method according to any one of the embodiments.
According to the energy storage grid-connected charge and discharge capacity control method, device, server and storage medium provided by the embodiment of the invention, the historical data of the power generation side in the power station and the historical data of the power station after the energy storage side is added are obtained, the difference value of the double-rule check scores is calculated according to the historical data of the power generation side and the historical data after the energy storage side is added, the accuracy of power prediction is improved by optimizing the parameters of the correction function, and the charge and discharge capacity of the energy storage side is controlled according to the predicted power. The accuracy of the predicted power can be effectively improved, and the energy storage efficiency of the energy storage equipment can be optimized on the premise of meeting double-rule evaluation. Reduce energy loss and promote energy storage equipment's life and availability factor.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings:
fig. 1 is a schematic flow chart of an energy storage grid-connected charging and discharging capacity control method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of an energy storage grid-connected charging and discharging control method according to a second embodiment of the present invention;
fig. 3 is a schematic flow chart of an energy storage grid-connected charge and discharge control method according to a third embodiment of the present invention;
fig. 4 is a schematic flow chart of an energy storage grid-connected charging and discharging control method according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of an energy storage grid-connected charge and discharge amount control device according to a fifth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a server according to a sixth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a schematic flow chart of an energy storage grid-connected charge and discharge control method according to an embodiment of the present invention, where the embodiment is applicable to a case of controlling charge and discharge of an energy storage device during grid-connected power generation of a new energy power station equipped with the energy storage device, and the method may be executed by an energy storage grid-connected charge and discharge control device, and may be integrated in a server, and specifically includes the following steps:
and S110, acquiring historical data of a power generation side in the power station, and acquiring the actual power generation condition and the power limiting condition of the power station according to the historical data.
For example, the power generation-side history data may include: meteorological type data and power generation parameter data. Because the new energy power station converts energy forms such as wind and light into electric energy, the power generation capacity of the new energy power station depends on meteorological conditions. The actual generating power of the new energy power station can be estimated by using the meteorological type data. The weather type data may include: wind speed, temperature, illumination, etc. The meteorological data can be acquired by various measuring devices arranged on the power generation side, and the acquired meteorological data is stored.
The power generation parameter data may include: grid-connected power and predicted power of a power predictor. The grid-connected power in the power generation parameter data can be obtained from the operation parameters of the new energy power station.
Optionally, the actual power generation power and the actually measured meteorological data in a preset time period can be collected, and the data density is 15 minutes; and collecting the predicted power and predicted meteorological data of the corresponding time period from a power prediction factory, wherein the data density is also 15 minutes. Fitting the actual generating power and the overall trend of the actually measured meteorological data to obtain an actual generating power and actually measured meteorological data function, and obtaining theoretical power by using the function and the predicted meteorological data; and determining the electricity limiting condition according to the theoretical power and the actual generated power.
After the parameters are obtained, the meteorological data of the new energy power station at the same moment can be calculated to obtain the theoretical power of the new energy power station at the moment, and the limit condition of the new energy can be calculated according to the theoretical power and the actual power generation power.
And S120, calculating the actual generated power after the actual generated power is added into the power station energy storage equipment according to the energy storage side parameters.
For example, the energy storage side parameters may include: battery capacity, charge and discharge rate, battery yearly decay, percentage of power loss in the line and in the inverter, maximum cycle number of the battery, battery charge and discharge upper and lower limits (SOC) and battery age.
And (4) under the condition that the actual generating power does not exceed the installed capacity and the battery charging and discharging power is within the maximum charging and discharging capacity, calculating the theoretical charging and discharging condition of the battery and the actual generating power of the power station after energy storage is added according to constraint conditions in different logics. Wherein the constraint condition comprises: when the power is limited, the battery is charged in the SOC range; discharging at a maximum discharge rate within the SOC upon de-limiting; and charging the battery in an SOC range while power is limited; when electricity is not limited and the actual generated power is smaller than the upper limit of the assessment of the predicted power, the discharging power needs to be kept within the double-fine assessment range for discharging.
Optionally, the actual generated power after the power station energy storage device is added may be simulated and calculated in the following manner:
and the power after the energy storage is added is the historical actual power generation power plus the power of the energy storage equipment, wherein the power of the energy storage equipment is negative in the charging state of the energy storage equipment, and the power of the energy storage equipment is positive in the discharging state of the energy storage equipment.
And S130, calculating double-fine check score difference by combining the actual power generation condition and the power limiting condition of the station and the actual power generation power added into the energy storage equipment of the power station.
According to the power grid regulation, short-term power prediction, ultra-short-term power prediction and available electric quantity statistics of a wind power plant and a photovoltaic power station which are operated in a grid-connected mode meet certain standards. The maximum error of the daily prediction curve provided by the wind power plant is not more than 25%, and the maximum error of the daily prediction curve provided by the photovoltaic power station is not more than 20%.
The evaluation score calculation method comprises the following steps:
e is an assessment deviation value; i is the number of points, n is 96 (96 points a day),is the ith point powerThe predicted value is the value of the predicted value,is the actual power at point i. The assessment score is E × 0.015 × C. And C is installed capacity.
The assessment score E of the new energy power station without the energy storage equipment can be respectively calculated by using the formula1And the new energy power station assessment score E after the energy storage equipment is added2. And calculating the double-fine-rule assessment score according to the assessment score between the two.
It can be seen from the above formula that the assessment score depends on the predicted value of the grid-connected power and the actual value of the grid-connected power, and if the assessment score needs to be reduced, the assessment score and the actual value of the grid-connected power are close to the same. And after the energy storage device is added, the energy storage device should exert the maximum efficiency.
S140, parameters of the correction function are optimized, so that the double-fine rule assessment score difference calculated by the optimized correction function is the minimum.
The correction function has the function of reducing the assessment scores by changing the predicted power so that the assessment scores can meet the relevant requirements of the power grid. Meanwhile, due to the fact that incidence relation exists between the predicted power and the charging and discharging actions of the energy storage equipment, if the predicted power can be more fit with the actual grid-connected power, the charging and discharging times of the energy storage equipment can be effectively reduced, and the service life of the energy storage equipment is prolonged. Meanwhile, the use efficiency of the energy storage device can be increased.
Optionally, the modification function may include: linear functions, quadratic functions, multiple functions, gaussian distribution functions, normal distribution functions, sine functions, cosine functions, exponential functions, and the like. The correction function may be one of them. And parameters of the correction function are optimized to realize that the optimized correction function is adopted to fit various actual power data acquired in the steps.
And S150, adjusting the predicted power value according to the corrected and optimized parameters, and controlling the energy storage side to perform charging/discharging control according to the adjusted predicted power value.
The optimized correction function can be used as predicted power, so that the predicted power approaches to the actual power added to the energy storage side. The predicted power may be grid-connected power. Due to the addition of the energy storage side, the grid-connected power comprises actual power generation power and energy storage device charging/discharging power. Therefore, when the predicted power changes, the charging/discharging of the energy storage side can be controlled according to the actual generated power of the current new energy power station, the actually measured irradiance, the scheduling instruction and other relevant parameters. For example, the energy storage side may be controlled to be charged when the actual generated power is greater than the predicted power; and when the actual power generation power is smaller than the predicted power, controlling the energy storage side to discharge. Because the optimized correction function can be used as the predicted power, the accuracy of the predicted power is greatly improved, and the predicted power is closer to the actual power added to the energy storage side. The energy waste caused by the light abandoned by the abandoned wind can be effectively reduced, and the cycle times of the battery on the energy storage side can be reduced. The use efficiency of the energy storage side is improved.
According to the energy storage grid-connected charge and discharge control method provided by the embodiment of the invention, the historical data of the power generation side in the power station and the historical data of the power station after the energy storage side is added are obtained, the difference value of the double-rule check scores is calculated according to the historical data of the power generation side and the historical data after the energy storage side is added, the accuracy of power prediction is improved through the optimization of correction function parameters, and the charge and discharge quantity of the energy storage side is controlled according to the predicted power. The accuracy of the predicted power can be effectively improved, and the energy storage efficiency of the energy storage equipment can be optimized on the premise of meeting double-rule evaluation. Reduce energy loss and promote energy storage equipment's life and availability factor.
Example two
Fig. 2 is a schematic flow chart of an energy storage grid-connected charging and discharging control method according to a second embodiment of the present invention. In this embodiment, the parameters of the correction function are optimized, so that the minimum difference between the two detailed examination scores calculated by using the optimized correction function is specifically optimized as follows: setting the step length, the termination condition and the loss function of the gradient descent method; setting a random value range of the parameter so that the function curve fluctuates in a preset range; and determining the optimal correction function parameters by a random gradient descent method.
Correspondingly, the energy storage grid-connected charge and discharge capacity control method provided by the embodiment specifically comprises the following steps:
and S210, acquiring historical data of a power generation side in the power station, and acquiring the actual power generation condition and the power limiting condition of the power station according to the historical data.
And S220, calculating the actual generated power after the actual generated power is added into the power station energy storage equipment according to the energy storage side parameters.
And S230, calculating double-fine check score difference by combining the actual power generation condition and the power limiting condition of the station and the actual power generation power added into the energy storage equipment of the power station.
S240, setting the step length and the loss function of the gradient descent method.
In this embodiment, a random gradient descent method may be used to calculate the parameters of the correction function. Random gradient descent, also called incremental gradient descent, is a way to update parameters one by one in time as the samples are trained. When there is new data, the parameters are updated directly by the above formula, which in turn can significantly reduce the amount of computation because only one data is used for each update.
Since the stochastic gradient descent algorithm is essentially an iterative process, it is necessary to set iterative descent steps, which can be set empirically. The loss function is a function that maps the value of a random event or its associated random variable to a non-negative real number to represent the "risk" or "loss" of the random event. Thus, the loss function can be used as a termination condition for the iteration.
In this embodiment, the loss function expression may be:
J(θ)=esp-R(hθ(x) Where esp is the desired efficiency value, hθ(x) For the correction function, R (x) is the efficiency calculation function.
And S250, setting a random value range of the parameter so that the function curve fluctuates in a preset range.
Because the variation range of the correction function depends on the selection of parameters, the unreasonable parameter selection can cause the function curve to fluctuate in a large range, the difference between the function curve and the actually acquired power value is far, and the calculation amount and the calculation time length can be increased. Therefore, a reasonable value range of the parameters needs to be set so as to perform iterative optimization in a short time and calculate to obtain the optimized parameters. For example, the random value range of the parameter may be set according to the distribution of the actual power value.
And S260, determining the optimal correction function parameters by a random gradient descent method.
For example, the determining the optimal correction function parameter by the stochastic gradient descent method may include: randomly taking a parameter and calculating a local maximum value of the overall efficiency; and calculating a loss function result, returning to randomly select a parameter, and terminating the cycle and outputting the parameter value until a termination condition is reached or the cycle number reaches a set number. Illustratively, the expression for the overall efficiency is:
wherein p isnTo predict power, prFor actual power, f is a power limiting mark, plFor theoretical power e as electricity price, PiIs the energy storage discharge power of the ith point, n is the input data length, C is the installed capacity, EjThe double-fine rule at the j point evaluates the deduction value, and m is the number of days included in the input data.
The expression of the overall efficiency shows that the overall efficiency is related to the energy storage discharge power and the double-fine check deduction value, and the double-fine check deduction value is related to the predicted power, the actual generating power and the theoretical power. The corresponding overall efficiency can be calculated using the above formula. The overall efficiency embodies the efficiency maximization between the energy storage device discharge and the double-fine rule assessment scores. The overall efficiency can be used to indicate that the overall efficiency should be improved upwards when the parameters are changed.
In the iterative operation, the loss function can be used as one of the termination conditions. The loss function is used to estimate the modulusThe degree of disagreement of the predicted value f (x) of the pattern with the true value Y is a non-negative real-valued function. Specifically, in the present embodiment, the loss function is defined as follows: j (theta) ═ esp-R (h)θ(x)),
Where esp is the desired efficiency value, hθ(x) For the correction function, R (x) is the efficiency calculation function mentioned above. For example, when the loss function is less than or equal to 0, the loop may be skipped as a termination condition to obtain the optimal parameter. In addition, the number of iterative operations may be used as another termination condition, and the minimum value and the parameter thereof may be output after the number of iterative cycles is reached.
Since the problem of convergence to the locally optimal solution occurs by using the random gradient descent, in this embodiment, in order to jump out the local minimum value, one parameter is randomly updated each time, each local minimum value and the parameter thereof are stored in an array, and the minimum value and the parameter use the same index. And the later-stage searching application is facilitated. According to the output minimum value and the corresponding parameters, the optimal parameters of the correction function can be determined. The accuracy of the predicted power can be improved by using the optimal parameters.
And S270, adjusting the predicted power value according to the corrected and optimized parameters, and controlling the energy storage side to perform charging/discharging control according to the adjusted predicted power value.
In this embodiment, the parameters of the correction function are optimized, so that the minimum difference between the two detailed evaluation scores calculated by using the optimized correction function is specifically optimized as follows: setting the step length, the termination condition and the loss function of the gradient descent method; setting a random value range of the parameter so that the function curve fluctuates in a preset range; and determining the optimal correction function parameters by a random gradient descent method. By comprehensively considering relevant factors such as energy storage discharge power, double-rule check score values and the like, a reasonable overall efficiency expression and a loss function are set. The optimal parameters of the correction function are calculated by using a random gradient descent method, and the optimal parameters of the correction function can be quickly and accurately obtained.
EXAMPLE III
Fig. 3 is a schematic flow chart of an energy storage grid-connected charging and discharging control method according to a third embodiment of the present invention. In this embodiment, the charging/discharging control is performed by controlling the energy storage side according to the adjusted predicted power value, and specifically, the optimization is as follows: judging whether the battery is in a power limiting state at present, and if the battery is in the power limiting state, judging whether the battery is fully charged; when the battery is in an unfilled state, judging whether the chargeable quantity of the battery is larger than a power limit quantity, wherein the power limit quantity is Pd ═ Pth-Ptr)/4 (Pd: power limit quantity, Pth: theoretical power, Ptr: actual power), and when the chargeable quantity of the battery is larger than the power limit quantity, judging whether the power limit quantity is larger than the charging depth; when the chargeable quantity of the battery is not more than the limit quantity of electricity, judging whether the chargeable quantity is more than the charging depth, if so, charging according to the charging depth, otherwise, charging according to the output quantity of electricity; and when the limited electric quantity is smaller than the charging depth, charging by the limited electric quantity, otherwise, charging by the charging depth.
Correspondingly, the energy storage grid-connected charge and discharge capacity control method provided by the embodiment specifically comprises the following steps:
and S310, acquiring historical data of a power generation side in the power station, and acquiring the actual power generation condition and the power limiting condition of the power station according to the historical data.
And S320, calculating the actual generated power after the actual generated power is added into the power station energy storage equipment according to the energy storage side parameters.
And S330, calculating double-fine check score difference by combining the actual power generation condition and the power limiting condition of the station and the actual power generation power added into the energy storage equipment of the power station.
S340, optimizing parameters of the correction function so as to enable the double-fine rule assessment score difference calculated by the optimized correction function to be minimum.
And S350, adjusting the predicted power value according to the corrected and optimized parameters, judging whether the power is in a power limiting state at present, and if the power is in the power limiting state, judging whether the battery is fully charged.
When the new energy power station is in the power limiting state, the output power of the new energy power station side is already larger than grid-connected power, the output redundant power of the new energy power station side is stored in the energy storage device, and before the storage, the electric quantity is detected.
And S360, judging whether the chargeable quantity of the battery is larger than a limited quantity of electricity when the battery is in an unfilled state, wherein the limited quantity of electricity is Pd-Pth-Ptr)/4, Pd is the limited quantity of electricity, Pth is theoretical power, and Ptr is actual power.
Under the condition that the battery is not fully charged, whether the chargeable amount is larger than the limited electric quantity or not needs to be judged, and the limited electric quantity can be obtained through calculation of theoretical power and actual power. The limited amount of power may be an amount of power that the theoretically provided energy storage device safely receives stored power. Therefore, it is necessary to determine whether the chargeable amount of the battery is larger than the limit amount.
And S370, when the chargeable quantity of the battery is larger than the limit quantity of electricity, judging whether the limit quantity of electricity is larger than the charging depth.
When the chargeable amount of the battery is larger than the limit amount of electricity, it can be determined that the energy storage device can receive the storage safe amount of electricity. The charging depth refers to the amount of electricity that the battery receives from the external circuit during charging, which corresponds to the ratio of the amount of electricity to the capacity of the battery in its fully charged state. When charging, should charge to energy storage equipment according to the degree of depth of charging, ensure can not harm energy storage equipment, can ensure energy storage equipment's safety simultaneously.
And S380, when the chargeable quantity of the battery is not more than the limit quantity of electricity, judging whether the chargeable quantity is more than the charging depth, and when the chargeable quantity is more than the charging depth, charging according to the charging depth, otherwise, charging according to the output quantity of electricity.
When the chargeable quantity of the battery is not more than the limit quantity of electricity, if the chargeable quantity of the battery is more than the charging depth, the energy storage equipment is charged by the charging depth to ensure the safety of the energy storage equipment. Otherwise, the chargeable quantity is charged according to the output electric quantity.
And S390, when the limited electric quantity is smaller than the charging depth, charging with the limited electric quantity, otherwise, charging with the charging depth.
Correspondingly, when the charging depth is smaller than the charging depth, the charging can be carried out by the limited electric quantity, otherwise, the discharging charging is carried out by the charging depth.
In this embodiment, the energy storage side is controlled to perform charging/discharging control according to the adjusted predicted power value, which is specifically optimized as follows: judging whether the battery is in a power limiting state at present, and if the battery is in the power limiting state, judging whether the battery is fully charged; when the battery is in an unfilled state, judging whether the chargeable quantity of the battery is larger than a power limit quantity, wherein the power limit quantity is Pd ═ Pth-Ptr)/4 (Pd: power limit quantity, Pth: theoretical power, Ptr: actual power), and when the chargeable quantity of the battery is larger than the power limit quantity, judging whether the power limit quantity is larger than the charging depth; when the chargeable quantity of the battery is not more than the limit quantity of electricity, judging whether the chargeable quantity is more than the charging depth, if so, charging according to the charging depth, otherwise, charging according to the output quantity of electricity; and when the limited electric quantity is smaller than the charging depth, charging by the limited electric quantity, otherwise, charging by the charging depth. Because the correction function parameters of the predicted power are optimized, the accuracy of the predicted power is greatly improved. The battery charging conditions can be controlled by the adjusted predicted power, energy can be stored as far as possible on the premise of meeting the safety of energy storage equipment, and energy loss caused by wind and light abandoning is reduced.
Example four
Fig. 4 is a schematic flow chart of an energy storage grid-connected charging and discharging control method according to a fourth embodiment of the present invention. In this embodiment, the charging/discharging control is performed by controlling the energy storage side according to the adjusted predicted power value, and specifically, the optimization is as follows: when the power is not limited and the battery power is not empty, judging whether the actual power generation power of the power station side is smaller than a predicted power range, wherein the upper limit of the predicted power range is predicted power (1+ assessment range); when the actual generated power is smaller than the upper limit of the predicted power range, judging whether the upper limit of discharge is larger than the sum of the actual generated power and the current electric quantity; when the actual generated power is not less than the upper limit of the predicted power range, the electric quantity is not output; when the upper discharge limit is larger than the sum of the actual power generation power and the existing electric quantity, judging whether the discharge depth is larger than the existing electric quantity; when the depth of discharge is greater than the existing electric quantity, judging whether the sum of the actual generated power and the existing electric quantity is greater than the installed capacity, and when the sum of the actual generated power and the existing electric quantity is greater than the installed capacity, outputting electric quantity according to the difference between the installed capacity and the actual generated power; and when the sum of the actual generated power and the current electric quantity is not more than the installed capacity, outputting the electric quantity according to the current electric quantity.
Correspondingly, the energy storage grid-connected charge and discharge capacity control method provided by the embodiment specifically comprises the following steps:
and S410, acquiring historical data of a power generation side in the power station, and acquiring the actual power generation condition and the power limiting condition of the power station according to the historical data.
And S420, calculating the actual generated power added into the energy storage equipment of the power station according to the energy storage side parameters.
And S430, calculating double-fine check score difference by combining the actual power generation condition and the power limiting condition of the station and the actual power generation power added into the energy storage equipment of the power station.
And S440, optimizing parameters of the correction function so as to minimize the double-fine evaluation score difference calculated by utilizing the optimized correction function.
And S450, adjusting the predicted power value according to the corrected and optimized parameters, and judging whether the actual power generation power of the power station side is smaller than a predicted power range or not when the power supply is in a non-power-limited state and the battery power is not empty, wherein the upper limit of the predicted power range is predicted power x (1+ assessment range).
Under the non-electricity-limiting state, the actual generated power of the new energy power station is smaller than the predicted power, and at the moment, the stored electricity of the energy storage device can be used for realizing power supply. Therefore, it is necessary to first determine whether the current actual generated power can satisfy the upper limit of the range of the predicted power.
And S460, when the actual generated power is smaller than the upper limit of the predicted power range, judging whether the upper limit of discharge is larger than the sum of the actual generated power and the existing electric quantity, wherein the upper limit of discharge is the predicted power (1+ assessment range).
The upper discharge limit may be an upper limit of all electric quantities of the energy storage device that can be received by the current grid-connected power theoretically, and therefore, it is necessary to determine in advance whether the upper discharge limit is larger than the sum of the actual generated power and the current electric quantity.
And S470, when the actual generated power is not less than the upper limit of the predicted power range, not outputting the electric quantity.
When the actual generated power is larger than or equal to the upper limit of the predicted power range, the fact that the current actual generated power of the new energy power station meets the upper limit requirement of the predicted power is explained, if the energy storage device discharges, the actual grid-connected power can be further increased, the evaluation scores can be influenced, and unstable factors are brought to a power grid, so that when the actual generated power is not smaller than the upper limit of the predicted power range, the electric quantity is not output.
And S480, when the upper discharge limit is larger than the sum of the actual generated power and the existing electric quantity, judging whether the discharge depth is larger than the existing electric quantity.
If the upper discharge limit is larger than the sum of the actual generated power and the existing electric quantity, the energy storage device can discharge, all stored power is taken as grid-connected power and is merged into the power grid together, and the energy storage device is required to discharge in the depth of discharge in consideration of the service life of a battery of the energy storage device. The discharge depth refers to the electric quantity corresponding to the percentage of the electric quantity in the rated capacity taken out of the storage battery. Therefore, it is necessary to determine whether the depth of discharge is greater than the current amount of power.
And S490, when the depth of discharge is greater than the current electric quantity, judging whether the sum of the actual generated power and the current electric quantity is greater than the installed capacity, and when the sum of the actual generated power and the current electric quantity is greater than the installed capacity, outputting the electric quantity according to the difference between the installed capacity and the actual generated power.
Installed capacity refers to the integrated rated active power of the actual installation equipment of the new energy power station. The comprehensive grid-connected power of the new energy power station and the energy storage equipment cannot exceed the installed capacity, so that the electric quantity needs to be output according to the difference between the installed capacity and the actual generated power.
And S4100, outputting electric quantity according to the existing electric quantity when the sum of the actual generated power and the existing electric quantity is not more than the installed capacity.
In this embodiment, the energy storage side is controlled to perform charging/discharging control according to the adjusted predicted power value, which is specifically optimized as follows: when the power is not limited and the battery power is not empty, judging whether the actual power generation power of the power station side is smaller than a predicted power range, wherein the upper limit of the predicted power range is predicted power (1+ assessment range); when the actual generated power is smaller than the upper limit of the predicted power range, judging whether the upper limit of discharge is larger than the sum of the actual generated power and the current electric quantity; when the actual generated power is not less than the upper limit of the predicted power range, the electric quantity is not output; when the upper discharge limit is larger than the sum of the actual power generation power and the existing electric quantity, judging whether the discharge depth is larger than the existing electric quantity; when the depth of discharge is greater than the existing electric quantity, judging whether the sum of the actual generated power and the existing electric quantity is greater than the installed capacity, and when the sum of the actual generated power and the existing electric quantity is greater than the installed capacity, outputting electric quantity according to the difference between the installed capacity and the actual generated power; and when the sum of the actual generated power and the current electric quantity is not more than the installed capacity, outputting the electric quantity according to the current electric quantity. Because the correction function parameters of the predicted power are optimized, the accuracy of the predicted power is greatly improved. The various discharging conditions of the battery can be controlled by the adjusted predicted power, the stored electric energy can be output to the power grid under the condition of ensuring that the double-check rule score requirement and the power grid safety are met, and the energy waste can be reduced. And the service life of the battery can be extended in consideration of the depth of discharge.
In a preferred implementation manner of this embodiment, the controlling the energy storage side to perform charge/discharge control according to the adjusted predicted power value further includes: when the upper discharge limit is not more than the sum of the actual generated power and the existing electric quantity, judging whether the sum of the actual generated power and the discharge depth is more than the upper discharge limit; when the sum of the actual generated power and the discharge depth is larger than the upper discharge limit, judging whether the upper discharge limit is larger than the installed capacity, and if so, outputting electric quantity according to the difference between the installed capacity and the actual generated power; otherwise, discharging according to the difference between the upper discharge limit and the actual generated power; and when the sum of the actual generated power and the depth of discharge is not greater than the upper limit of discharge, judging whether the sum of the actual generated power and the depth of discharge is greater than the installed capacity, if so, outputting the quantity according to the difference between the installed capacity and the actual generated power, otherwise, outputting the quantity of electricity according to the depth of discharge. The method can comprehensively judge according to various parameters such as installed capacity, upper discharge limit and discharge depth, and can output the stored electric energy to the power grid under the condition of ensuring that the double-check rule score requirement and the power grid safety are met.
EXAMPLE five
Fig. 5 is a schematic structural diagram of an energy storage grid-connected charge/discharge amount control device according to a fifth embodiment of the present invention, and as shown in fig. 5, the energy storage grid-connected charge/discharge amount control device includes:
the obtaining module 510 is configured to obtain historical data of a power generation side in a power station, and obtain an actual power generation situation and a power limitation situation of the power station according to the historical data;
the calculating module 520 is used for calculating the actual power generation power after the power station energy storage equipment is added according to the energy storage side parameters;
the fraction difference calculating module 530 is used for calculating double-fine check fraction difference by combining the actual power generation condition and the power limiting condition of the station and the actual power generation power added into the energy storage equipment of the power station;
the optimization module 540 is configured to optimize parameters of the correction function, so that a difference between the two fine rule assessment scores calculated by using the optimized correction function is minimum;
and the control module 550 is configured to adjust the predicted power value according to the modified and optimized parameter, and control the energy storage side to perform charge/discharge control according to the adjusted predicted power value.
According to the energy storage grid-connected charging and discharging quantity control device provided by the embodiment, the historical data of the power generation side in the power station and the historical data of the power station after the energy storage side is added are obtained, the difference value of the double-rule check scores is calculated according to the historical data of the power generation side and the historical data after the energy storage side is added, the accuracy of power prediction is improved through optimization of correction function parameters, and the charging and discharging quantity of the energy storage side is controlled according to the predicted power. The accuracy of the predicted power can be effectively improved, and the energy storage efficiency of the energy storage equipment can be optimized on the premise of meeting double-rule evaluation. Reduce energy loss and promote energy storage equipment's life and availability factor.
On the basis of the above embodiments, the optimization module includes:
the setting unit is used for setting the step length and the loss function of the gradient descent method;
the setting unit is used for setting the random value range of the parameters so as to enable the function curve to fluctuate in a preset range;
and the determining unit is used for determining the optimal correction function parameters by a random gradient descent method.
On the basis of the foregoing embodiments, the determining unit is configured to:
randomly taking a parameter and calculating a local maximum value of the overall efficiency;
and calculating a loss function result, returning to randomly select a parameter, and terminating the cycle and outputting the parameter value until a termination condition is reached or the cycle number reaches a set number.
On the basis of the above embodiments, the loss function expression is:
J(θ)=esp-R(hθ(x)),
where esp is the desired efficiency value, hθ(x) For the correction function, r (x) is an efficiency calculation function, and the efficiency calculation expression is:
wherein p isnTo predict power, prFor actual power, f is a power limiting mark, plFor theoretical power e as electricity price, PiIs the energy storage discharge power of the ith point, n is the input data length, C is the installed capacity, EjThe double-fine rule at the j point evaluates the deduction value, and m is the number of days included in the input data.
On the basis of the above embodiments, the control module is configured to:
judging whether the battery is in a power limiting state at present, and if the battery is in the power limiting state, judging whether the battery is fully charged;
when the battery is in an unfilled state, judging whether the chargeable quantity of the battery is larger than a power limit quantity, wherein the power limit quantity is Pd-Pth/4, Pd is the power limit quantity, Pth is theoretical power, and Ptr is actual power.
When the chargeable quantity of the battery is larger than the electricity limiting quantity, judging whether the electricity limiting quantity is larger than the charging depth;
when the chargeable quantity of the battery is not more than the limit quantity of electricity, judging whether the chargeable quantity is more than the charging depth, if so, charging according to the charging depth, otherwise, charging according to the chargeable quantity;
and when the limited electric quantity is smaller than the charging depth, charging by the limited electric quantity, otherwise, charging by the charging depth.
On the basis of the above embodiments, the control module is configured to:
when the power is not limited and the battery power is not empty, judging whether the actual power generation power of the power station side is smaller than a predicted power range, wherein the upper limit of the predicted power range is predicted power (1+ assessment range);
when the actual generated power is smaller than the upper limit of the predicted power range, judging whether the upper limit of discharge is larger than the sum of the actual generated power and the current electric quantity;
when the actual generated power is not less than the upper limit of the predicted power range, the electric quantity is not output;
when the upper discharge limit is larger than the sum of the actual power generation power and the existing electric quantity, judging whether the discharge depth is larger than the existing electric quantity;
when the depth of discharge is greater than the existing electric quantity, judging whether the sum of the actual generated power and the existing electric quantity is greater than the installed capacity, and when the sum of the actual generated power and the existing electric quantity is greater than the installed capacity, outputting electric quantity according to the difference between the installed capacity and the actual generated power;
and when the sum of the actual generated power and the current electric quantity is not more than the installed capacity, outputting the electric quantity according to the current electric quantity.
On the basis of the foregoing embodiments, the control module is further configured to:
when the upper discharge limit is not more than the sum of the actual generated power and the existing electric quantity, judging whether the sum of the actual generated power and the discharge depth is more than the upper discharge limit;
when the sum of the actual generated power and the discharge depth is larger than the upper discharge limit, judging whether the upper discharge limit is larger than the installed capacity, and if so, outputting electric quantity according to the difference between the installed capacity and the actual generated power; otherwise, discharging according to the difference between the upper discharge limit and the actual generated power;
and when the sum of the actual generated power and the depth of discharge is not greater than the upper limit of discharge, judging whether the sum of the actual generated power and the depth of discharge is greater than the installed capacity, if so, outputting the quantity according to the difference between the installed capacity and the actual generated power, otherwise, outputting the quantity of electricity according to the depth of discharge.
On the basis of the foregoing embodiments, the obtaining module includes:
the fitting unit is used for fitting the actual power generation power and the overall trend of the actually measured meteorological data;
the determining unit is used for obtaining theoretical power through the fitted function and meteorological data; and determining the electricity limiting condition according to the theoretical power and the actual generated power.
The energy storage grid-connected charge and discharge quantity control device provided by the embodiment of the invention can execute the energy storage grid-connected charge and discharge quantity control method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
EXAMPLE six
Fig. 6 is a schematic structural diagram of a server according to a sixth embodiment of the present invention. FIG. 6 illustrates a block diagram of an exemplary server 12 suitable for use in implementing embodiments of the present invention. The server 12 shown in fig. 6 is only an example, and should not bring any limitation to the function and the scope of use of the embodiment of the present invention.
As shown in FIG. 6, the server 12 is in the form of a general purpose computing device. The components of the server 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
The server 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by server 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. The server 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 6, and commonly referred to as a "hard drive"). Although not shown in FIG. 6, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
The server 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with the device/server 12, and/or with any devices (e.g., network card, modem, etc.) that enable the server 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the server 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 20. As shown, the network adapter 20 communicates with the other modules of the server 12 via the bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the server 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing by running the program stored in the system memory 28, for example, implementing the energy storage grid-connected charging and discharging control method provided by the embodiment of the present invention.
EXAMPLE seven
The embodiment of the invention also provides a storage medium containing computer executable instructions, and the computer executable instructions are used for executing the energy storage grid-connected charging and discharging control method provided by the embodiment when being executed by a computer processor.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (9)
1. An energy storage grid-connected charging and discharging capacity control method is characterized by comprising the following steps:
acquiring historical data of a power generation side in a power station, and acquiring actual power generation conditions and power limiting conditions of the power station according to the historical data;
calculating the actual power generation power after the power station energy storage equipment is added according to the energy storage side parameters;
calculating a double-rule evaluation score difference by combining the actual power generation condition and the power limiting condition of the power station and the actual power generation power added into the energy storage equipment of the power station, wherein the double-rule evaluation score difference is as follows: the difference between the double-fine evaluation score without adding the power station energy storage equipment and the double-fine evaluation score after adding the power station energy storage equipment;
optimizing parameters of the correction function so as to minimize the evaluation score difference of the double-rule obtained by calculation of the optimized correction function;
and adjusting the predicted power value according to the optimized correction function, and controlling the energy storage side to perform charging/discharging control according to the adjusted predicted power value.
2. The method of claim 1, wherein optimizing the parameters of the modification function such that the difference between the double-fine-check scores calculated using the optimized modification function is minimized comprises:
setting the step length and the loss function of a random gradient descent method;
setting a random value range of the parameters so that the loss function curve fluctuates in a preset range;
and determining the optimal correction function parameters by a random gradient descent method.
3. The method of claim 2, wherein determining optimal correction function parameters by stochastic gradient descent comprises:
randomly taking a parameter and calculating a local maximum value of the overall efficiency;
and calculating a loss function result, returning to randomly select a parameter, and terminating the cycle and outputting the parameter value until a termination condition is reached or the cycle number reaches a set number.
4. The method of claim 2, wherein the penalty function expression is:
J(θ)=esp-R(hθ(x)),
where esp is the desired efficiency value, hθ(x) For the correction function, r (x) is an efficiency calculation function, and the efficiency calculation expression is:
wherein p isnTo predict power, prF is the electricity limiting mark, plAs theoretical power, e is the electricity price, PiIs the energy storage discharge power of the ith point, n is the input data length, C is the installed capacity, EjThe double-fine rule at the j point evaluates the deduction value, and m is the number of days included in the input data.
5. The method of claim 1, wherein the controlling the energy storage side to perform charge/discharge control according to the adjusted predicted power value comprises:
in a non-electricity-limiting state and when the electric quantity of the energy storage equipment of the power station is not empty, judging whether the actual power generation power of the power station side is smaller than a predicted power range, wherein the upper limit of the predicted power range is predicted power (1+ assessment range);
when the actual generated power is smaller than the upper limit of the predicted power range, judging whether the upper limit of discharge is larger than the sum of the actual generated power and the current electric quantity;
when the actual generated power is not less than the upper limit of the predicted power range, the electric quantity is not output;
when the upper discharge limit is larger than the sum of the actual power generation power and the existing electric quantity, judging whether the discharge depth is larger than the existing electric quantity;
when the depth of discharge is greater than the existing electric quantity, judging whether the sum of the actual generated power and the existing electric quantity is greater than the installed capacity, and when the sum of the actual generated power and the existing electric quantity is greater than the installed capacity, outputting electric quantity according to the difference between the installed capacity and the actual generated power;
and when the sum of the actual generated power and the current electric quantity is not more than the installed capacity, outputting the electric quantity according to the current electric quantity.
6. The method of claim 5, wherein the controlling the energy storage side to perform charge/discharge control according to the adjusted predicted power value further comprises:
when the upper discharge limit is not more than the sum of the actual generated power and the existing electric quantity, judging whether the sum of the actual generated power and the discharge depth is more than the upper discharge limit;
when the sum of the actual generated power and the discharge depth is larger than the upper discharge limit, judging whether the upper discharge limit is larger than the installed capacity, and if so, outputting electric quantity according to the difference between the installed capacity and the actual generated power; otherwise, discharging according to the difference between the upper discharge limit and the actual generated power;
and when the sum of the actual generated power and the depth of discharge is not greater than the upper limit of discharge, judging whether the sum of the actual generated power and the depth of discharge is greater than the installed capacity, if so, outputting electric quantity according to the difference between the installed capacity and the actual generated power, otherwise, outputting electric quantity according to the depth of discharge.
7. An energy storage grid-connected charge and discharge amount control device is characterized by comprising:
the acquisition module is used for acquiring historical data of a power generation side in the power station and obtaining the actual power generation condition and the power limiting condition of the power station according to the historical data;
the calculation module is used for calculating the actual power generation power after the power station energy storage equipment is added according to the energy storage side parameters;
the score difference calculation module is used for calculating a double-rule evaluation score difference by combining the actual power generation condition and the power limiting condition of the power station and the actual power generation power added into the energy storage equipment of the power station, wherein the double-rule evaluation score difference is as follows: the difference between the double-fine evaluation score without adding the power station energy storage equipment and the double-fine evaluation score after adding the power station energy storage equipment;
the optimization module is used for optimizing parameters of the correction function so as to minimize the double-rule assessment score difference calculated by using the optimized correction function;
and the control module is used for adjusting the predicted power value according to the optimized correction function and controlling the energy storage side to perform charge/discharge control according to the adjusted predicted power value.
8. A server, characterized in that the server comprises:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors are enabled to implement the energy storage grid-connection charge and discharge capacity control method according to any one of claims 1 to 6.
9. A storage medium containing computer executable instructions for performing the energy storage grid connection charge and discharge control method according to any one of claims 1 to 6 when executed by a computer processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910592983.5A CN110266031B (en) | 2019-07-03 | 2019-07-03 | Energy storage grid-connected charging and discharging capacity control method and device, server and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910592983.5A CN110266031B (en) | 2019-07-03 | 2019-07-03 | Energy storage grid-connected charging and discharging capacity control method and device, server and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110266031A CN110266031A (en) | 2019-09-20 |
CN110266031B true CN110266031B (en) | 2021-01-26 |
Family
ID=67923986
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910592983.5A Active CN110266031B (en) | 2019-07-03 | 2019-07-03 | Energy storage grid-connected charging and discharging capacity control method and device, server and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110266031B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110766319B (en) * | 2019-10-22 | 2022-08-02 | 东软睿驰汽车技术(沈阳)有限公司 | Method and device for evaluating abuse risk of battery pack |
CN111753097B (en) * | 2020-06-22 | 2023-11-14 | 国能日新科技股份有限公司 | Deep learning-based data analysis method and device for electric power spot transaction clearance |
CN111753337B (en) * | 2020-07-02 | 2023-02-21 | 上海电器科学研究所(集团)有限公司 | SOC (State of Charge) processing method for energy storage battery management system during unexpected power failure |
CN112491044B (en) * | 2020-11-23 | 2022-11-18 | 阳光新能源开发股份有限公司 | Power prediction deviation compensation method and device and controller |
CN114019399B (en) * | 2021-10-29 | 2023-09-19 | 华北电力大学 | Method and system for predicting maximum service life of lithium ion battery energy storage power station |
CN115051419B (en) * | 2022-08-15 | 2022-11-11 | 国能日新科技股份有限公司 | Power generation limitation judgment method and device, electronic equipment and storage medium |
CN116388299B (en) * | 2023-05-30 | 2023-08-01 | 华北电力大学 | Wind-solar energy storage station group power tracking optimization control method, system and equipment |
CN117175632B (en) * | 2023-06-26 | 2024-08-02 | 南京国电南自电网自动化有限公司 | Method and device for improving wind-solar resource utilization rate and power prediction accuracy rate |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104701873B (en) * | 2015-03-27 | 2018-12-11 | 国家电网公司 | A kind of battery energy storage system optimal control method contributed for tracking wind-powered electricity generation plan |
US10038322B2 (en) * | 2016-06-21 | 2018-07-31 | General Electric Company | Systems and methods for controlling performance parameters of an energy storage device |
CN107579515B (en) * | 2017-07-31 | 2020-04-24 | 东南大学 | Capacity allocation method for improving frequency modulation performance of power plant |
CN108054771B (en) * | 2017-11-21 | 2023-10-20 | 中国电力科学研究院有限公司 | Charging and discharging control method and system for energy storage system |
-
2019
- 2019-07-03 CN CN201910592983.5A patent/CN110266031B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN110266031A (en) | 2019-09-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110266031B (en) | Energy storage grid-connected charging and discharging capacity control method and device, server and storage medium | |
CN103020853A (en) | Method for checking short-term trade plan safety | |
CN114036451A (en) | Energy storage control method and system of grid-connected optical storage and charging device | |
CN112803464B (en) | Energy storage system charge-discharge control method, system, equipment and storage medium | |
CN113190693B (en) | Data processing method and device of energy storage system, electronic equipment and storage medium | |
CN115456304A (en) | Offshore wind farm reliability index calculation method and device considering typhoon influence | |
CN114336762A (en) | Day-ahead scheduling energy storage configuration optimization method for wind-solar power generation and power grid load fluctuation | |
CN116316713A (en) | Wind-solar and photovoltaic-containing power grid energy storage configuration method and device | |
CN116470543A (en) | Operation control method, device, equipment and medium of virtual power plant | |
CN117411065A (en) | Distribution network optimal scheduling method and system considering distributed photovoltaic uncertainty | |
CN112072643A (en) | Light-storage system online scheduling method based on depth certainty gradient strategy | |
CN117578617A (en) | New energy station electric quantity control method, device, equipment and medium | |
CN112510690B (en) | Optimal scheduling method and system considering wind-fire-storage combination and demand response reward and punishment | |
CN117498308A (en) | Control method and system for improving new energy prediction accuracy by using energy storage power station | |
CN114268141B (en) | Method and system for correcting and adjusting SOC of energy storage system | |
CN115117943A (en) | Charging and discharging scheduling method, device, equipment and medium | |
CN112736894A (en) | Two-stage unit combination modeling method considering randomness of wind power and electric automobile | |
CN118229121B (en) | Wind-solar hydrogen production integrated planning production simulation method, system and storage medium | |
Lian et al. | Real‐time energy management strategy for fuel cell plug‐in hybrid electric bus using short‐term power smoothing prediction and distance adaptive state‐of‐charge consumption | |
CN109449935B (en) | Time sequence production simulation method and system based on energy interconnection | |
US20230402839A1 (en) | Energy management system with machine learning | |
CN117013926A (en) | Photovoltaic energy storage control system and method | |
CN118798691A (en) | Industrial and commercial energy storage demand control method and device, electronic equipment and storage medium | |
CN118367621A (en) | Load regulation and control method and device | |
CN117541001A (en) | Virtual power plant optimal scheduling method, system and equipment considering conditional risk |
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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 100096 Xisanqi Building Materials City, Haidian District, Beijing Applicant after: Beijing Wuzhou Yuxin Technology Co., Ltd Address before: 100096 Xisanqi Building Materials City, Haidian District, Beijing Applicant before: BEIJING GUONENG YUXIN TECHNOLOGY Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |