METHOD AND SYSTEM FOR PARTICIPATING IN GRID FREQUENCY REGULATION WITHIN FULL RANGE OF CHARGING AND DISCHARGING OF ENERGY STORAGE

Abstract

The present invention discloses a method and system for participating in grid frequency regulation within full range of charging and discharging of energy storage, comprising: collecting grid operation power and frequency data, and constructing a full-range droop coefficient; setting constraints of upper and lower limits of a frequency deadband, obtaining an actual output power command value based on the constraint function constructed from a theoretical power command value and a rated charging and generating power value, and controlling operation of the grid; and setting a hysteresis interval on the power command of an energy storage system, wherein when the demand of the grid exceeds the upper threshold, the energy storage system switches from the charging mode to the discharging mode; and when the demand of the grid falls below the lower threshold, the energy storage system switches from the discharging mode to the charging mode.

Claims

1. A method for participating in grid frequency regulation within full range of charging and discharging of energy storage, wherein the method comprises: collecting grid operation power and frequency data, and constructing a full-range droop coefficient; setting constraints of upper and lower limits of a frequency deadband, obtaining a power regulation value according to the range of the real-time frequency, and calculating a theoretical power command value; obtaining an actual output power command value based on the constraint function constructed from a theoretical power command value and a rated charging and generating power value, and controlling the operation of the grid according to the actual output power command value; and setting a hysteresis interval on the power command of an energy storage system, wherein when the power demand of the grid exceeds the upper threshold of the hysteresis interval, the energy storage system switches from the charging mode to the discharging mode; and when the power demand of the grid falls below the lower threshold of the hysteresis interval, the energy storage system switches from the discharging mode to the charging mode.

2. The method for participating in grid frequency regulation within the full range of charging and discharging of energy storage according to claim 1, wherein the constructing the full-range droop coefficient comprises: collecting upper and lower limits of the grid operation frequency, recording rated generating power value of a generator and rated charging power value of a motor, and calculating the full-range droop coefficient, expressed by the formula as follows: = f d f u e ( f - f ) df P g + .Math. n - 1 N P S 1 + e - ( f n - f 0 ) wherein represents the full-range droop coefficient; P.sub.g represents the rated generating power value; P.sub.s represents the rated charging power value; f.sub.u represents the upper limit of the frequency; f.sub.d represents the lower limit of the frequency; f represents the current grid frequency; f.sub. represents the frequency deviation from the rated frequency; e.sup.(f-f.sup.0.sup.) represents the regulation sensitivity; represents the parameter regulating the growth rate of the exponential function; P S 1 + e - ( f n - f 0 ) represents the normalization function, simulating the nonlinear characteristic of the charging power varying with frequency; f.sub.n represents the frequency value of the segment n; and represents the parameter regulating the steepness of the curve.

3. The method for participating in grid frequency regulation within the full range of charging and discharging of energy storage according to claim 2, wherein the power regulation value comprises a power regulation value retrieval function constructed using a real-time grid frequency value and a rated grid frequency value, with upper and lower limits of a frequency deadband as the constraint condition, expressed by the formula as follows: P = { f r - f 0 f 0 P g f r > u 0 u > f r > d f r - f 0 f 0 P s d > f r wherein P represents the power regulation value; f.sub.r represents the real-time frequency value; f.sub.0 represents the rated frequency value; .sub.u represents the upper limit of the frequency deadband; .sub.d represents the lower limit of the frequency deadband; when value of P is positive, the power is increased; and when the value of P is negative, the power is decreased.

4. The method for participating in grid frequency regulation within the full range of charging and discharging of energy storage according to claim 3, wherein the actual output power command value comprises: obtaining the actual output power command value based on a constraint function constructed from the theoretical power command value and the rated charging and generating power value, and controlling the operation of the grid according to the actual output power command value; the formula for calculating the theoretical power command value being expressed as: P c = P + P r wherein P.sub.c represents the theoretical power command value; and P.sub.r represents the real-time power value; and performing determination to obtain the real output power command value, expressed by the formula as follows: P c = { P g P c > P g P + P r P g > P c > P s P s P s > P c wherein P.sub.c represents the actual output power command value; when the value of P.sub.c is positive, the energy storage system enters a discharging state, and the system outputs power P.sub.c externally; when the value of P.sub.c is negative, the energy storage system enters a charging state, and the system consumes power |P.sub.c| externally.

5. The method for participating in grid frequency regulation within the full range of charging and discharging of energy storage according to claim 4, wherein the upper and lower limits of the frequency are predetermined according to the design standards of the grid and the requirements for stable operation; a specific method comprising: determining the standard operation frequency of the grid according to the preset regional standards; and calculating the tolerable frequency deviation range of the grid, and setting upper and lower limits of the frequency accordingly; the upper limit of the grid frequency being expressed by the formula as follows: f u = f 0 + ( f + .Math. n = 1 N a n cos ( 2 n t T + n ) ) .Math. ( 1 + ( f 0 , L , C 1 + e - k ( L - L c ) ) the lower limit of the grid frequency being expressed by the formula as follows: f d = f 0 - ( f + .Math. n = 1 N a n cos ( 2 n t T + n ) ) .Math. ( 1 + ( f 0 , L , C 1 + e - k ( L - L c ) ) wherein f.sub.0 represents the standard operation frequency of the grid as determined by the preset regional standards; f represents the basic frequency deviation range; and a.sub.n represents the coefficients of the Fourier series, and is used for simulating the periodic regulation of the grid frequency caused by seasonal load variations; t represents the current measuring moment of the operation frequency; T represents the period duration; .sub.n represents the phase shift, simulating the influence of different seasonal variations; L represents the real-time load; L.sub.c represents the critical load value; C represents the proportion of renewable energy contribution in the current grid; and (f.sub.0,L,C) represents the chaotic mapping function, reflecting the combined influence of grid load and renewable energy contribution on frequency regulation; the chaotic mapping function being expressed by the formula as follows: ( f 0 , L , C ) = f 0 .Math. ( 1 - L L max ) .Math. ( 1 - C ) wherein L.sub.max represents the maximum load that the grid can withstand.

6. The method for participating in grid frequency regulation within the full range of charging and discharging of energy storage according to claim 5, wherein the hysteresis interval comprises a hysteresis interval further set on the power command of the energy storage system, the hysteresis interval defining a range within which the energy storage system does not respond to minor variations in power demand of the grid when switching between charging and discharging states, thereby avoiding frequent charge-discharge switching; the threshold of the hysteresis interval being predetermined according to the normal operation conditions of the grid and the performance characteristics of the energy storage system, and the hysteresis interval being defined by setting two power thresholds, i.e., an upper threshold of the hysteresis interval for discharging and a lower threshold of the hysteresis interval for charging; the upper limit threshold of the discharging hysteresis interval being expressed by the formula as follows: P up = P b + .Math. ( 1 + sin ( w .Math. t 0 + ) 1 + e - k .Math. ( P - P cr ) ) the lower threshold of the charging hysteresis interval being expressed by the formula as follows: P low = P b - .Math. ( 1 + sin ( w .Math. t 0 + ) 1 + e - k .Math. ( P - P cr ) ) wherein P.sub.b represents the power reference value of the energy storage system when no regulation is required; represents the power regulation sensitivity coefficient set according to changes in grid demand; sin(w.Math.t.sub.0+) represents the periodic variation factor, w represents the angular frequency, t.sub.0 represents the current time, represents the phase difference, simulating the periodic variation of the grid load; k represents the regulation coefficient for nonlinear response; P represents the current power demand; and P.sub.cr represents the critical power demand that triggers the power regulation response; wherein when the power demand of the grid exceeds the upper threshold of the hysteresis interval, the energy storage system switches from the charging mode to the discharging mode; and when the power demand of the grid falls below the lower threshold of the hysteresis interval, the energy storage system switches from the discharging mode to the charging mode.

7. The method for participating in grid frequency regulation within the full range of charging and discharging of energy storage according to claim 6, wherein the energy storage system maintains the current charging and discharging state within the hysteresis interval, and does not respond to minor fluctuations in power demand of the grid; and when the power demand variation beyond the hysteresis interval is reached, the energy storage system smoothly switches between charging and discharging states at a predetermined rate, thus avoiding impact to the grid.

8. A system for participating in grid frequency regulation within full range of charging and discharging of energy storage using the method according to claim 7, comprising: a data acquisition module, used for collecting data from real-time grid monitoring equipment, including grid frequency and the current power state of the energy storage system, the data being transmitted in real time to a data processing and analysis module; the data processing and analysis module, used for processing and analyzing the collected data; calculating the full-range droop coefficient in real time and determining whether the energy storage system needs to adjust the power output to respond to changes in grid frequency at the moment; the module also calculating the theoretical power command value of the energy storage system under given conditions; a control unit module, used for determining the optimal charging and discharging strategy based on information provided by the data processing and analysis module, including how to smoothly switch the charging and discharging states of the energy storage system; the control strategy taking into account the actual grid demand, performance limitations of the energy storage system, and grid stability requirements; and an energy storage and generation module, an executing module being used for adjusting the actual charging and discharging states of an energy storage system based on the command of a control strategy module, including adjusting the output power of an inverter connected to the grid and managing the energy flow in the energy storage system.

9. A computer device, comprising a memory and a processor, the memory stores a computer program, wherein the processor implements the steps in the method for participating in grid frequency regulation within full range of charging and discharging of energy storage when executing the computer program.

10. A computer-readable storage medium, on which a computer program is stored, wherein the computer program, when executed by the processor, implements the steps in the method for participating in grid frequency regulation within full range of charging and discharging of energy storage.

Description

BRIEF DESCRIPTION OF DRAWINGS

[0045] In order to more clearly illustrate the technical schemes of the embodiments of the present invention, the following will briefly introduce the drawings required in the embodiments. Apparently, the drawings described below are merely some embodiments of the present invention, for a common person skilled in the art, other drawings can also be obtained according to these drawings without creative labor. In the drawings:

[0046] FIG. 1 is an overall flowchart of the method for participating grid frequency regulation within in full range of charging and discharging of energy storage provided in the first embodiment of the present invention;

[0047] FIG. 2 is a flowchart of a charge-discharge switching method of the method for participating in grid frequency regulation within full range of charging and discharging of energy storage provided in the first embodiment of the present invention; and

[0048] FIG. 3 is a schematic diagram of the method for participating in grid frequency regulation within full range of charging and discharging of energy storage provided in the first embodiment of the present invention.

DETAILED DESCRIPTION OF THE EMBODIMENTS

[0049] In order to make the above objects, features and advantages of the present invention more obvious and easy to understand, the detailed description of the present invention will be illustrated in details below in conjunction with the drawings of the specification. Clearly, the described embodiments are part of the embodiments of the present invention, but not all. On the basis of the examples of the present invention, all other examples obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

Example 1

[0050] Referring to FIGS. 1-3, a first embodiment of the present invention provides a method for participating in grid frequency regulation within full range of charging and discharging of energy storage, comprising

[0051] S1: collecting grid operation power and frequency data, and constructing a full-range droop coefficient.

[0052] Further, collecting grid operation power and frequency data comprises,

[0053] Further, constructing the full-range droop coefficient comprises: collecting upper and lower limits of the grid operation frequency, recording rated generating power value of a generator and rated charging power value of a motor, and calculating the full-range droop coefficient, expressed by the formula as follows:

[00011] = f d f u e ( f - f ) df P g + .Math. n = 1 N P S 1 + e - ( f n - f 0 ) [0054] wherein represents the full-range droop coefficient; P.sub.g represents the rated generating power value; P.sub.s represents the rated charging power value; f.sub.u represents the upper limit of the frequency; f.sub.d represents the lower limit of the frequency; f represents the current grid frequency; f.sub. represents [0055] the frequency deviation from the rated frequency; e.sup.(f-f.sup.0.sup.) represents the regulation sensitivity; represents the parameter regulating the growth rate of the exponential function;

[00012] P S 1 + e - ( f n - f 0 ) represents the normalization function, simulating the nonlinear characteristic of the charging power varying with frequency; f.sub.n represents the frequency value of the segment n; and represents the parameter regulating the steepness of the curve.

[0056] Further, constructing the full-range droop coefficient: the core of the step lies in that the full-range droop coefficient is constructed based on the real-time demand of the grid and predetermined operation parameters (for example, the upper and lower limits of the frequency, and the rated power values of the generator and the motor). The coefficient can reflect how the energy storage system should regulate the charging and discharging behavior thereof under the current grid condition so as to maintain stability of the grid frequency. The innovativeness of the coefficient is that both the charging and discharging processes of the energy storage system are taken into account in a unified manner, so that the system is allowed to flexibly respond to changes in grid demand across the entire power range.

[0057] It should be noted that collecting the grid operation power and frequency data is the basis for achieving precise frequency regulation. The current demand of the grid can be promptly and accurately obtained by monitoring the operation state of the grid in real time, and direct data support is provided for the regulation of the energy storage system. The energy storage system can rapidly regulate the output power, based on the calculated full-range droop coefficient, when the grid frequency exceeds the normal operation range, in a smooth and responsive manner, whether by increasing discharge or by reducing charge. The regulation mechanism not only improves the stability of the grid but also enhances the adaptability of the grid to unexpected events;

[0058] S2: setting constraints of upper and lower limits of the frequency deadband, obtaining a power regulation value according to the range of the real-time frequency, and calculating a theoretical power command value.

[0059] Further, the power regulation value comprises a power regulation value retrieval function constructed using a real-time grid frequency value and a rated grid frequency value, with upper and lower limits of the frequency deadband as the constraint condition, expressed by the formula as follows:

[00013] P = { f r - f 0 f 0 P g f r > u 0 u > f r > d f r - f 0 f 0 P s d > f r [0060] wherein P represents the power regulation value; f.sub.r represents the real-time frequency value; f.sub.0 represents the rated frequency value; .sub.u represents the upper limit of the frequency deadband; .sub.d represents the lower limit of the frequency deadband.

[0061] Further, when value of P is positive, the power is increased; when the value of P is negative, the power is decreased.

[0062] Further, the actual output power command value comprises obtaining the actual output power command value based on a constraint function constructed from a theoretical power command value and a rated charging/discharging power value, and controlling the operation of the grid according to the actual output power command value.

[0063] Further, calculating the theoretical power command value is expressed by the formula as follows:

[00014] P c = P + P r [0064] wherein P.sub.c represents the theoretical power command value; P.sub.r represents the real-time power value.

[0065] Further, determination is performed to obtain the actual output power command value, expressed by the formula as follows:

[00015] P c = { P g P c > P g P + P r P g > P c > P s P s P s > P c [0066] wherein P.sub.c represents the actual output power command value; when the value of P.sub.c is positive, the energy storage system enters a discharging state, and the system outputs power P.sub.c externally; when the value of P.sub.c is negative, the energy storage system enters a charging state, and the system consumes power |P.sub.c| externally.

[0067] It should be noted that in setting the frequency deadband constraint: the step defines a tolerable frequency deviation range (deadband), which prevents the energy storage system from frequently switching states due to minor fluctuations of the grid frequency, and in turn reduces system wear and operational costs. Constructing a power regulation value function: the power value to be regulated by the energy storage system is accurately calculated by analyzing the deviation between the real-time grid frequency and the rated frequency, and taking into account the frequency deadband constraint. the innovativeness of the step lies in that the output of the energy storage system can be dynamically regulated to respond to real-time changes in grid frequency, so that the response speed and the stability of the grid are improved.

[0068] S3: obtaining an actual output power command value based on a constraint function constructed from a theoretical power command value and a rated charging/discharging power value, and controlling the operation of the grid according to the actual output power command value.

[0069] Further, the upper and lower limits of the frequency are predetermined according to the design standards of the grid and the requirements for stable operation; the specific method comprises: determining the standard operation frequency of the grid according to the preset regional standards; calculating the tolerable frequency deviation range of the grid; and setting an upper limit and a lower limit of the frequency accordingly.

[0070] Further, the upper limit of the grid frequency is expressed by the formula as follows:

[00016] f u = f 0 + ( f + .Math. n = 1 N a n cos ( 2 nt T + n ) ) .Math. ( 1 + ( f 0 , L , C ) 1 + e - k ( L - L c ) )

[0071] Further, the lower limit of the grid frequency is expressed by the formula as follows:

[00017] f d = f 0 - ( f + .Math. n = 1 N a n cos ( 2 nt T + n ) ) .Math. ( 1 + ( f 0 , L , C ) 1 + e - k ( L - L c ) ) [0072] wherein f.sub.0 represents the standard operation frequency of the grid as determined by the preset regional standards; f represents the basic frequency deviation range; and a.sub.n represents the coefficients of the Fourier series, and is used for simulating the periodic regulation of the grid frequency caused by seasonal load variations; t represents the current measuring moment of the operation frequency; T represents the period duration; .sub.n represents the phase shift, simulating the influence of different seasonal variations; L represents the real-time load; L.sub.c represents the critical load value; C represents the proportion of renewable energy contribution in the current grid; and (f.sub.0,L,C) represents the chaotic mapping function, reflecting the combined influence of grid load and renewable energy contribution on frequency regulation.

[0073] Further, the chaotic manning function is expressed by the formula as follows:

[00018] ( f 0 , L , C ) = f 0 .Math. ( 1 - L L max ) .Math. ( 1 - C ) [0074] wherein L.sub.max represents the maximum load that the grid can withstand.

[0075] It should be noted that in calculating the theoretical power command value and an actual output power command value: in the process, the power output of the energy storage system in the ideal condition is calculated, and an executable power command value is also obtained in accordance with the actual performance and limitations of the energy storage system. The strategy ensures that the energy storage system can support the grid frequency regulation to the maximum extent while protecting own safety and prolonging the service time;

[0076] S4: setting a hysteresis interval on the power command of the energy storage system, wherein when the power demand of the grid exceeds the upper threshold of the hysteresis interval, the energy storage system switches from the charging mode to the discharging mode; and when the power demand of the grid falls below the lower threshold of the hysteresis interval, the energy storage system switches from the discharging mode to the charging mode.

[0077] Further, the hysteresis interval comprises a hysteresis interval set on the power command of the energy storage system, the hysteresis interval defines a range within which the energy storage system does not respond to minor variations in power demand of the grid when switching between charging and discharging states, thereby avoiding frequent charge-discharge switching.

[0078] Further, the threshold of the hysteresis interval are predetermined according to the normal operation conditions of the grid and the performance characteristics of the energy storage system, the hysteresis interval is defined by setting two power thresholds: an upper threshold of the hysteresis interval for discharging and a lower threshold of the hysteresis interval for charging.

[0079] Further, the upper limit threshold of the discharging hysteresis interval is expressed by the formula as follows:

[00019] P up = P b + .Math. ( 1 + sin ( w .Math. t 0 + ) 1 + e - k .Math. ( P - P cr ) )

[0080] Further, the lower threshold of the charging hysteresis interval is expressed by the formula as follows:

[00020] P low = P b - .Math. ( 1 + sin ( w .Math. t 0 + ) 1 + e - k .Math. ( P - P cr ) )

[0081] wherein P.sub.b represents the power reference value of the energy storage system when no regulation is required; represents the power regulation sensitivity coefficient set according to changes in grid demand; sin(w.Math.t.sub.0+) represents the periodic variation factor, wherein w represents the angular frequency, t.sub.0 represents the current time, represents the phase difference, simulating the periodic variation of the grid load; k represents the regulation coefficient for nonlinear response; P represents the current power demand; and P.sub.cr represents the critical power demand that triggers the power regulation response.

[0082] Further, when the power demand of the grid exceeds the upper threshold of the hysteresis interval, the energy storage system switches from the charging mode to the discharging mode; and when the power demand of the grid falls below the lower threshold of the hysteresis interval, the energy storage system switches from the discharging mode to the charging mode.

[0083] Further, the energy storage system maintains the current charging and discharging state within the hysteresis interval, and does not respond to minor fluctuations in power demand of the grid; when the power demand variation beyond the hysteresis interval is reached, the energy storage system smoothly switches between charging and discharging states at a predetermined rate, thus avoiding impact to the grid.

[0084] It should be noted that in smoothly switching between the charging and discharging states: the innovative use of a predetermined rate to the charging and discharging states of the energy storage system is smoothly switched creatively at a preset rate, and the impact of the operation on the energy storage system operation on grid stability is significantly reduced; the smooth switching mechanism ensures that the grid can obtain continuous and stable support when subjected to large-scale variations in power demand, thereby improving the reliability and resilience of the grid; with respect to the optimization of the grid frequency regulation service: the present invention provides the grid with more flexible and efficient frequency regulation services by precisely controlling the power output of the energy storage system; and while maintaining the stability of the grid frequency, the energy storage system can also meet the real-time needs of the grid.

[0085] On the other side, the embodiment also provides a system for participating in full range of charging and discharging of energy storage, comprising: [0086] a data acquisition module, used for collecting data from real-time grid monitoring equipment, including grid frequency and the current power state of the energy storage system, the data being transmitted in real time to a data processing and analysis module; [0087] a data processing and analysis module, used for processing and analyzing the collected data; calculating the full-range droop coefficient in real time and determining whether the energy storage system needs to adjust the power output to respond to changes in grid frequency at the moment. the module also calculating the theoretical power command value of the energy storage system under given conditions; [0088] a control unit module, based on information provided by the data processing and analysis module, determining the optimal charging and discharging strategy, including how to smoothly switch the charging and discharging states of the energy storage system; the control strategy taking into account the actual grid demand, performance limitations of the energy storage system, and grid stability requirements; and [0089] an energy storage and generation module, an executing module being used for adjusting the actual charging and discharging states of an energy storage system based on the command of a control strategy module, including adjusting the output power of an inverter connected to the grid and managing the energy flow in the energy storage system.

[0090] The above functions can be stored in a computer-readable storage medium, if implemented in the form of software functional units and sold or used as independent products. Based on such understanding, the technical scheme of the present invention essentially or part that contributes to the prior art; or part of the technical solution may be embodied in a form of a software product; and the computer software product is stored in a storage medium and includes a plurality of instructions which are used to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The storage medium includes: a USB flash disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk and another medium that can store program codes.

[0091] Logics and/or steps expressed in the flow chart or otherwise described herein, for example, may be considered as a sequence table of executable instructions for implementing logical functions, and may be implemented in any computer-readable medium for use by instruction execution systems, apparatuses, or devices (such as computer-based systems, systems including processors, or other systems that may acquire instructions from the instruction execution systems, the apparatuses, or the devices and execute the instructions), or in a combination manner. For the purposes of the specification, a computer-readable medium can be any apparatus that can contain, store, communicate, propagate, or transport the program for use by or in connection with an instruction execution system, apparatus, or device.

[0092] More specific examples (non-exhaustive list) of the computer-readable medium may include the following: an electrical connection (an electronic apparatus) with one or more wires, a portable computer disk case (a magnetic apparatus), a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM or flash memory), an optical fiber, and a portable Compact Disk Read-Only Memory (CDROM). Furthermore, the computer-readable medium may even be paper or other suitable media on which the program is printed, since the program may be obtained electronically, for example, by optically scanning paper or other media and then, if necessary, by editing, interpreting or processing in another suitable manner, and then storing in a computer memory.

[0093] It should be understood that, each part of the present invention may be realized by hardware, software, firmware or a combination thereof. In the above implementation manners, a plurality of steps or methods may be realized by software or firmware stored in the memory and executed by the appropriate instruction execution systems. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one of the following technologies known in the art or a combination thereof: a discrete logic circuit having a logic gate circuit for implementing logic functions on data signals, a dedicated integrated circuit with suitable combined logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

Embodiment 2

[0094] The following is an embodiment of the present invention, providing a method for participating in grid frequency regulation within full range of charging and discharging of energy storage, so as to verify the beneficial effects of the present invention, and perform scientific validation via the calculation of economic benefits and the simulation experiments.

[0095] The rated generation power P.sub.g value of certain energy storage system is 15 MW, and the rated charging power P.sub.s is 10 MW, represented by the formula as 10 MW. According to the provisions of GB/T15945-1995 Quality of Electric Energy SupplyPermissible Deviation Of Frequency For Power System, the permissible deviation of the grid frequency is plus or minus 0.2 Hz, the nominal grid frequency f.sub.0 is 50 Hz, the corresponding upper frequency limit f.sub.u is 50.2 Hz, the lower frequency limit f.sub.d is 49.8 Hz, then, the full-range droop coefficient can be calculated as 62.5.

[0096] The frequency regulation deadband generally refers to a frequency deviation set in a power system to prevent unnecessary actions of the system under minor fluctuations of the grid frequency. For example, in the case of a thermal power generating unit, the corresponding primary frequency regulation deadband is 0.033 Hz, then the upper limit of the frequency deadband .sub.u is 50.033, and the lower limit of the frequency deadband .sub.d is 49.967.As a flexible regulating resource, the energy storage system can respond to the frequency regulation demand P.sub.c of the grid by storing and releasing energy, where the actual output power command value needs to be calculated. Assuming that the real-time power P.sub.r is 12 MW. [0097] (1) When the theoretical power command value P.sub.c is 20 MW, larger than the rated generation power value P.sub.g, the actual generation power rated value P.sub.c is equal to the generation power rated value P.sub.g:P.sub.c=P.sub.g=15 MW, at the time, the energy storage system enters the discharging state, and the system outputs 15 MW externally. [0098] (2) When the theoretical power command value P.sub.c is 13 MW, between the rated generation power value P.sub.g and the charging power rated value P.sub.s, at the time, the regulation power value P needs to be calculated based on the real-time frequency f.sub.r. [0099] {circle around (1)} When the real-time frequency value f.sub.r is 50.1 Hz, which exceeds the upper limit value of the frequency deadband .sub.u, the power regulation value P is calculated as

[00021] P = f r - f 0 f 0 P g = 6 2 . 5 50.1 - 5 0 5 0 1 5 = 1.875 MW , the actual output power command P.sub.c is equal to the power regulation value P plus the real-time power value P.sub.r as: P.sub.c=1.875+12=13.875 MW, at the time, the energy storage system enters the discharging state, and the system outputs 13.875 MW externally. [0100] {circle around (2)} When the real-time frequency value f.sub.r is 50.01 Hz, between the upper and lower limits of the frequency deadband, the frequency regulation value P is calculated as: P=0, the actual output power command P.sub.c is equal to the power regulation value P plus the real-time power value P.sub.r as: P.sub.c=0+12=12 MW; [0101] {circle around (3)} When the real-time frequency value f.sub.r is 49.9 Hz, lower than the lower limit value .sub.d of the frequency deadband, the power regulation value P is calculated as:

[00022] P = f r - f 0 f 0 P s = 6 2 . 5 49.9 - 5 0 5 0 1 0 = - 1.25 MW , the actual output power command P.sub.c is equal to the power regulation value P plus the real-time power value P.sub.r as: P.sub.c=1.25+12=10.75 MW, at the time, the energy storage system enters the discharging state, and the system outputs 10.75 MW; [0102] (3) When the theoretical power command value P.sub.c is 12 MW, lower than the rated charging power P.sub.s, the actual output power command P.sub.c is equal to the rated charging power P.sub.s:P.sub.c=10 MW, at the time, the energy storage system enters the charging state, and the system consumes 10 MW externally.

[0103] It should be noted that the above embodiment is merely used for illustrating the technical scheme of the present invention instead of limitations thereto; although the present invention is illustrated in detail with reference to the optimal embodiments, those ordinary persons skilled in the art should understand that the technical scheme of the present invention can be modified or equivalently substituted without departing from the spirit and scope of the technical scheme of the present invention. Such modifications and substitutions are intended to be encompassed within the scope of the claims of the present invention.