Energy storage system operation method and device based on power transaction, terminal equipment and storage medium

By building and solving the unit combination model and market scheduling model of the energy storage system, and generating operation strategies, the problem of low operating efficiency of the existing energy storage system is solved, and more efficient resource allocation and utilization is achieved.

CN119765402APending Publication Date: 2025-04-04GUANGDONG POWER GRID CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411830399.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-12
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

The existing energy storage system operation methods are difficult to fully consider the complexity of power market transactions and the constraints of energy storage, resulting in low operating efficiency of energy storage resources.

Method used

By obtaining generator unit status data, generator unit output data, load node data, energy storage data, component cost data, and power price data, a unit combination model and market scheduling model are built, and the energy storage system operation strategy is generated to adjust the operation of the energy storage system.

Benefits of technology

By comprehensively considering multi-faceted data, under the unit combination constraints and market scheduling constraints, the resource allocation and operation strategies of the energy storage system are optimized, the maximum utilization of units and energy storage is achieved, and the operation efficiency of energy storage resources is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119765402A_ABST
    Figure CN119765402A_ABST
Patent Text Reader

Abstract

The invention discloses an energy storage system operation method and device based on power transaction, terminal equipment and a storage medium. The method comprises the following steps: constructing a unit combination model and unit combination constraints according to acquired generator set state data, generator set output data, load node data, energy storage data, unit cost data and power price data; a market scheduling model and market scheduling constraints are constructed; under the constraint of the unit commitment, solving the unit commitment model by taking the minimum unit operation cost as a target to obtain a unit operation state quantity; solving the market scheduling model by taking the minimum system operation cost as a target under the market scheduling constraint to obtain an energy storage operation state component; generating a corresponding energy storage system operation strategy according to the energy storage operation state component; and adjusting the operation of the energy storage system according to the operation strategy of the energy storage system. According to the invention, the operation efficiency of the energy storage resources is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power systems, and in particular to a method, device, terminal equipment and storage medium for operating an energy storage system based on power trading. Background Art

[0002] As the proportion of renewable energy access increases, the uncertainty and volatility of new energy output is difficult to be fully balanced by the output of thermal power units. Energy storage can achieve the time transfer of power supply through the storage and release of electricity over short and long time spans, converting the instantaneous power balance into a long-term power balance, effectively promoting the consumption of new energy, and improving the safety and stability of the power system. It is an important supporting technology for the development of new power systems. In the power market, LMP (Locational Marginal Pricing) as the basis of the power spot market theory is of great significance for guiding power transactions and the formation of electricity prices.

[0003] Currently, the operation of energy storage systems is mostly based on simple rule-based control, which makes it difficult to fully consider the complexity of electricity market transactions and the constraints of energy storage, resulting in low operating efficiency of energy storage resources. Summary of the invention

[0004] The embodiments of the present invention provide a method, apparatus, terminal device and storage medium for operating an energy storage system based on power trading, which can effectively solve the problem that the prior art does not fully consider the complexity of power market transactions and the constraints of energy storage, resulting in low operating efficiency of energy storage resources.

[0005] An embodiment of the present invention provides an energy storage system operation method based on power trading, comprising:

[0006] Obtain generator set status data, generator set output data, load node data, energy storage data, unit cost data and electricity price data;

[0007] Constructing a unit combination model and unit combination constraints according to the generator set status data, generator set output data, load node data, energy storage data and unit cost data;

[0008] Constructing a market dispatch model and market dispatch constraints according to the generator set status data, generator set output data, load node data, energy storage data and power price data;

[0009] According to the generator set state data, generator set output data, load node data, energy storage data and unit cost data, under the unit combination constraint, with the minimum unit operation cost as the goal, the unit combination model is solved to obtain the unit operation state quantity;

[0010] According to the generator set status data, generator set output data, load node data, energy storage data, power price data and unit operation status quantity, under the market dispatch constraint, with the minimum system operation cost as the goal, the market dispatch model is solved to obtain the energy storage operation status component;

[0011] Generating a corresponding energy storage system operation strategy according to the energy storage operation state component;

[0012] According to the energy storage system operation strategy, the operation of the energy storage system is adjusted.

[0013] Furthermore, the unit combination constraint includes: a first system power balance constraint, a first line power flow constraint, a spinning reserve constraint, a first thermal power unit output constraint, a thermal power unit start-up and shutdown time constraint, and a first energy storage constraint;

[0014] The first system power balance constraint is:

[0015]

[0016] Where G is the number of thermal power units; p i,t is the output of thermal power unit i at time t; is the energy storage output; N is the number of load nodes; D j,t is the load of load node j in period t; t Constrain the dual variable values ​​for system power balance;

[0017] The first line power flow constraint is:

[0018]

[0019] in, is the lower limit of the power flow of line I; is the upper limit of the power flow of line I; T l,i is the transfer distribution factor of line I to node i; is the dual variable value of the minimum line power flow constraint; is the dual variable value of the maximum line power flow constraint;

[0020] The spinning reserve constraints are:

[0021]

[0022] Among them, u i,t is the start and stop state variable of the thermal power unit at time t; is the maximum output of unit i; is the minimum output of unit i; is the system spare rate; is the system reserve rate;

[0023] The output constraint of the first thermal power unit is:

[0024]

[0025] in, is the dual variable value of the minimum output constraint of the thermal power unit; is the dual variable value of the maximum output constraint of the thermal power unit; p i,t-1 is the output of thermal power unit i at time t-1; u i,t-1 is the start-stop state variable of the thermal power unit at time t-1; R i is the maximum up and down ramp rate of the thermal power unit; is the dual variable value of the minimum climbing constraint of the thermal power unit; is the dual variable value of the maximum ramp constraint of the thermal power unit;

[0026] The start and stop time constraints of the thermal power unit are:

[0027]

[0028] in, It is the startup variable of thermal power unit; It is the shutdown variable of thermal power unit; It is the minimum continuous start-up time of thermal power units; The minimum continuous downtime of thermal power units;

[0029] The first energy storage constraint includes: first energy storage charge and discharge power constraint, first energy storage charge state upper and lower limit constraint, and first energy storage initial and final charge state constraint;

[0030] The first energy storage charging and discharging power constraint is:

[0031]

[0032] Among them, ρ ch,t P is the binary variable of the charge and discharge state of energy storage during period t; dch,max is the maximum discharge power of energy storage; P ch ,max is the maximum charging power of energy storage; is the dual variable value constrained by the maximum discharge power of the energy storage; is the dual variable value of the minimum power constraint for energy storage discharge; is the dual variable value of the maximum charging power constraint of the energy storage; is the dual variable value of the minimum power constraint for charging the energy storage;

[0033] The upper and lower limits of the first energy storage state of charge are:

[0034] Smin ≤S t ≤S max

[0035]

[0036] Among them, S min S is the minimum state of charge for energy storage; max S is the maximum charge state of energy storage; t is the state of charge of the energy storage at time t; S t-1 is the state of charge of the energy storage at time t-1; E is the energy change during the energy storage period t; s,rate is the energy storage capacity; η s is the energy conversion coefficient of energy storage charging and discharging;

[0037] The initial and final state of charge constraints of the first energy storage are:

[0038]

[0039] Among them, T is the total number of clearing periods; is the charging and discharging state of the energy storage during time period t; s cht′ is a binary variable of energy storage charging and discharging state during time period t; str is the dual variable value constrained by the initial and final state of charge of the energy storage.

[0040] Furthermore, the market dispatch constraint includes: a second system power balance constraint, a second line flow constraint, a second thermal power unit output constraint, and a second energy storage constraint;

[0041] The second system power balance constraint is:

[0042]

[0043] Where G is the number of thermal power units; p i,t is the output of thermal power unit i at time t; is the energy storage output; N is the number of load nodes; D j,t is the load of load node j in period t; t Constrain the dual variable values ​​for system power balance;

[0044] The second line power flow constraint is:

[0045]

[0046] in, is the lower limit of the power flow of line I; is the upper limit of the power flow of line I; T l,i is the transfer distribution factor of line I to node i; is the dual variable value of the minimum line power flow constraint; is the dual variable value of the maximum line power flow constraint;

[0047] The output constraint of the second thermal power unit is:

[0048]

[0049] in, is the dual variable value of the minimum output constraint of the thermal power unit; is the dual variable value of the maximum output constraint of the thermal power unit; p i,t-1 is the output of thermal power unit i at time t-1; u i,t-1 is the start-stop state variable of the thermal power unit at time t-1; R i is the maximum up and down ramp rate of the thermal power unit; is the dual variable value of the minimum climbing constraint of the thermal power unit; is the dual variable value of the maximum ramp constraint of the thermal power unit;

[0050] The second energy storage constraint includes: a second energy storage charging and discharging power constraint, a second energy storage state of charge upper and lower limit constraints, and a second energy storage initial and final state of charge constraint;

[0051] The second energy storage charging and discharging power constraint is:

[0052]

[0053] Among them, ρ ch,t P is the binary variable of the charge and discharge state of energy storage during period t; dch,max is the maximum discharge power of energy storage; P ch ,max is the maximum charging power of energy storage; is the dual variable value constrained by the maximum discharge power of the energy storage; is the dual variable value of the minimum power constraint for energy storage discharge; is the dual variable value of the maximum charging power constraint of the energy storage; is the dual variable value of the minimum power constraint for charging the energy storage;

[0054] The upper and lower limits of the second energy storage state of charge are:

[0055] S min ≤S t ≤S max

[0056]

[0057] Among them, S min S is the minimum state of charge for energy storage; max S is the maximum charge state of energy storage;t is the state of charge of the energy storage at time t; S t-1 is the state of charge of the energy storage at time t-1; E is the energy change during the energy storage period t; s,rata is the energy storage capacity; η s is the energy conversion coefficient of energy storage charging and discharging;

[0058] The initial and final charge states of the second energy storage are constrained as follows:

[0059]

[0060] Among them, T is the total number of clearing periods; is the charging and discharging state of the energy storage during time period t; s cht′ is a binary variable of energy storage charging and discharging state during time period t; str is the dual variable value constrained by the initial and final state of charge of the energy storage.

[0061] Furthermore, according to the generator set status data, generator set output data, load node data, energy storage data, power price data and unit operation status, under the market dispatch constraint, with the minimum system operation cost as the goal, the market dispatch model is solved to obtain the energy storage operation status component, including:

[0062] Constructing a Lagrangian function of a market dispatch model according to the generator set status data, generator set output data, load node data, energy storage data, power price data and unit operation status;

[0063] Under the market dispatch constraints, with the goal of minimizing the system operation cost, the Lagrangian function of the market dispatch model is derived to obtain the marginal electricity price of the load node;

[0064] Under the market dispatch constraint, the energy storage operation state component is obtained by decomposing the marginal electricity price of the load node.

[0065] Further, the energy storage operation state component includes: an energy storage quotation component, a state of charge constraint component, and an energy storage charge and discharge power constraint component;

[0066] According to the energy storage operation state component, a corresponding energy storage system operation strategy is generated, including:

[0067] Analyze the operation boundary status of each energy storage system in the energy storage cluster according to the energy storage operation state component to obtain the operation boundary status of each energy storage system;

[0068] Generate an energy storage system operation state model according to the operation state of each energy storage system;

[0069] According to the node topology data of the load node data and the current energy storage system, determining whether the current energy storage system overlaps with an energy storage system adjacent to the node;

[0070] When there is an overlap between the current energy storage system and the node's neighboring energy storage system, a corresponding energy storage system operation strategy is generated according to the energy storage operation state variables of the current energy storage system.

[0071] Furthermore, the unit operating cost is calculated by the following formula:

[0072]

[0073] Among them, Z1 is the unit operating cost; C power,i is the operating cost function of thermal power unit i; is the single startup cost of thermal power unit i; t is the preset length period; C storage is the energy storage operation cost function.

[0074] Furthermore, the system operating cost is calculated by the following formula:

[0075]

[0076] Among them, Z2 is the system operation cost.

[0077] As an improvement of the above solution, another embodiment of the present invention provides an energy storage system operation device based on power trading, including:

[0078] System data acquisition module, used to obtain generator set status data, generator set output data, load node data, energy storage data, unit cost data and electricity price data;

[0079] A first model and constraint building module, used to build a unit combination model and unit combination constraints according to the generator set state data, generator set output data, load node data, energy storage data and unit cost data;

[0080] A second model and constraint building module is used to build a market dispatch model and market dispatch constraints based on the generator set status data, generator set output data, load node data, energy storage data and power price data;

[0081] The first model solving module is used to solve the unit combination model according to the generator set state data, generator set output data, load node data, energy storage data and unit cost data, under the unit combination constraint, with the minimum unit operation cost as the goal, to obtain the unit operation state quantity;

[0082] The second model solving module is used to solve the market dispatch model according to the generator set state data, generator set output data, load node data, energy storage data, power price data and unit operation state quantity under the market dispatch constraint and with the goal of minimizing system operation cost, so as to obtain the energy storage operation state component;

[0083] An operation strategy generation module, used to generate a corresponding energy storage system operation strategy according to the energy storage operation state component;

[0084] The energy storage system operation adjustment module is used to adjust the operation of the energy storage system according to the energy storage system operation strategy.

[0085] Another embodiment of the present invention provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, a method for operating an energy storage system based on power trading as described in the above embodiment is implemented.

[0086] Another embodiment of the present invention provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute a method for operating an energy storage system based on power trading as described in the above embodiment.

[0087] By implementing the present invention, at least the following beneficial effects are achieved:

[0088] The present invention provides an energy storage system operation method, device, terminal equipment and storage medium based on power trading, wherein the method can obtain generator set status data, generator set output data, load node data, energy storage data, unit cost data and power price data; according to the generator set status data, generator set output data, load node data, energy storage data and unit cost data, a unit combination model and unit combination constraints are constructed; according to the generator set status data, generator set output data, load node data, energy storage data and power price data, a market dispatch model and market dispatch constraints are constructed; according to the generator set status data, generator set output data, load node data, energy storage data and power price data, a market dispatch model and market dispatch constraints are constructed; according to the generator set status data, generator set output data, load node data, energy storage data and power price data, a market dispatch model and market dispatch constraints are constructed. The unit output data, load node data, energy storage data and unit cost data are used to solve the unit combination model under the unit combination constraint with the goal of minimizing the unit operation cost, and obtain the unit operation state quantity; according to the generator unit state data, generator unit output data, load node data, energy storage data, electricity price data and unit operation state quantity, under the market dispatch constraint with the goal of minimizing the system operation cost, the market dispatch model is solved to obtain the energy storage operation state component; according to the energy storage operation state component, a corresponding energy storage system operation strategy is generated; according to the energy storage system operation strategy, the energy storage system operation is adjusted. By comprehensively considering multiple data such as generator unit status data, output data, load node data, energy storage data, unit cost, and electricity price, under the constraints of unit combination and market dispatch, the unit combination model and market dispatch model are constructed and solved, and the resource allocation and operation strategy of the energy storage system are optimized. With the goal of minimizing unit operating cost and system operating cost, the maximum utilization of units and energy storage is achieved, thereby improving the operating efficiency of energy storage resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0089] Figure 1 It is a flow chart of a method for operating an energy storage system based on power trading provided by an embodiment of the present invention;

[0090] Figure 2 It is a schematic diagram of an energy storage system operation state model of an energy storage system operation method based on power trading provided by an embodiment of the present invention;

[0091] Figure 3 It is a structural schematic diagram of an energy storage system operating device based on power trading provided by one embodiment of the present invention. DETAILED DESCRIPTION

[0092] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0093] See also Figure 1 , is a flow chart of a method for operating an energy storage system based on power trading provided by an embodiment of the present invention, comprising:

[0094] S1. Obtaining generator set status data, generator set output data, load node data, energy storage data, unit cost data and electricity price data;

[0095] Specifically, the status data of the generator sets include: the number of thermal power units, the lower limit of the line flow, the upper limit of the line flow, the upper reserve rate of the system, the lower reserve rate of the system, the minimum continuous start-up time of the unit and the minimum continuous shutdown time of the unit; the output data of the generator sets include: the output of the thermal power units, the maximum output of the units, the minimum output of the units and the maximum up and down climbing rates of the units; the load node data include: the number of load nodes, the loads of the load nodes and the node topology data; the energy storage data include: the energy storage output, the maximum discharge power of the energy storage, the maximum charging power of the energy storage, the minimum state of charge of the energy storage, the maximum state of charge of the energy storage, the energy storage capacity, the energy storage charge and discharge energy conversion coefficient and the energy storage energy change; the unit cost data include: the unit operating cost, the unit single startup cost and the unit maintenance cost; the electricity price data include: the energy storage operating cost and the trading electricity price.

[0096] S2. Constructing a unit combination model and unit combination constraints according to the generator set status data, generator set output data, load node data, energy storage data and unit cost data;

[0097] Specifically, the unit combination model is the SCUC model, which is used to determine the unit output plan and energy storage charging and discharging plan. It is an important tool for economic dispatch of power systems. It optimizes the output plan and dispatch of generator sets while considering the charging and discharging power and state constraints of energy storage equipment to achieve the economy and reliability of the power system.

[0098] Specifically, the unit combination constraints include: a first system power balance constraint, a first line power flow constraint, a spinning reserve constraint, a first thermal power unit output constraint, a thermal power unit start-up and shutdown time constraint, and a first energy storage constraint;

[0099] The first system power balance constraint is:

[0100]

[0101] Where G is the number of thermal power units; p i,t is the output of thermal power unit i at time t; is the energy storage output; N is the number of load nodes; D j,t is the load of load node j in period t; t Constrain the dual variable values ​​for system power balance;

[0102] The first line power flow constraint is:

[0103]

[0104] in, is the lower limit of the power flow of line I; is the upper limit of the power flow of line I; T l,i is the transfer distribution factor of line I to node i; is the dual variable value of the minimum line power flow constraint; is the dual variable value of the maximum line power flow constraint;

[0105] The spinning reserve constraints are:

[0106]

[0107] Among them, u i,t is the start-stop state variable of the thermal power unit at time t; is the maximum output of unit i; is the minimum output of unit i; is the system spare rate; is the system reserve rate;

[0108] The output constraint of the first thermal power unit is:

[0109]

[0110] in, is the dual variable value of the minimum output constraint of the thermal power unit; is the dual variable value of the maximum output constraint of the thermal power unit; p i,t-1 is the output of thermal power unit i at time t-1; u i,t-1 is the start-stop state variable of the thermal power unit at time t-1; R i is the maximum up and down ramp rate of the thermal power unit; is the dual variable value of the minimum climbing constraint of the thermal power unit; is the dual variable value of the maximum ramp constraint of the thermal power unit;

[0111] The start and stop time constraints of the thermal power unit are:

[0112]

[0113] in, It is the startup variable of thermal power unit; It is the shutdown variable of thermal power unit; It is the minimum continuous start-up time of thermal power units; The minimum continuous downtime of thermal power units;

[0114] The first energy storage constraint includes: first energy storage charge and discharge power constraint, first energy storage charge state upper and lower limit constraint, and first energy storage initial and final charge state constraint;

[0115] The first energy storage charging and discharging power constraint is:

[0116]

[0117] Among them, ρ ch,t P is the binary variable of the charge and discharge state of energy storage during period t; dch,max is the maximum discharge power of energy storage; P ch ,max is the maximum charging power of energy storage; is the dual variable value constrained by the maximum discharge power of the energy storage; is the dual variable value of the minimum power constraint for energy storage discharge; is the dual variable value of the maximum charging power constraint of the energy storage; is the dual variable value of the minimum power constraint for charging the energy storage;

[0118] The upper and lower limits of the first energy storage state of charge are:

[0119] S min ≤S t ≤S max

[0120]

[0121] Among them, S min S is the minimum state of charge for energy storage; max S is the maximum charge state of energy storage; t is the state of charge of the energy storage at time t; S t-1 is the state of charge of the energy storage at time t-1; E is the energy change during the energy storage period t; s,rate is the energy storage capacity; η s is the energy conversion coefficient of energy storage charging and discharging;

[0122] The initial and final charge states of the first energy storage are constrained as follows:

[0123]

[0124] Among them, T is the total number of clearing periods; is the charging and discharging state of energy storage during time period t; s ch,t′ is a binary variable of energy storage charging and discharging state during time period t; str is the dual variable value constrained by the initial and final state of charge of the energy storage.

[0125] In a preferred embodiment of the present invention, T l,i is the transfer distribution factor of line I to node i, which is determined by the grid topology and the equipment status in it. The grid transfer distribution factor is a parameter that describes the impact of the change in active power injection at a certain node in the grid on the change in the active power flow of the branch. The grid transfer distribution factor establishes a linear relationship between the active power flow of the transmission branch and the active power injected at each node of the grid. Under the condition of a certain grid topology, it can be understood as a known quantity. The start-up and shutdown time constraint of the thermal power unit is the minimum continuous start-up and shutdown time constraint of the thermal power unit. ρ ch,t is a binary variable of the charge and discharge state of energy storage in period t, 0 is the discharge state and 1 is the charge state. ch,t′ It is a binary variable of the energy storage charge and discharge state during the t' period, 0 is the discharge state, and 1 is the charge state. When the energy storage charge and discharge power is a positive value, it means that the energy storage is in a discharge state, and the energy storage is subject to the discharge power constraint; when the energy storage charge and discharge power is a negative value, it means that the energy storage is in a charging state, and the energy storage is subject to the charging power constraint. For the upper and lower limit constraints of the first energy storage charge state, since the charge state of the energy storage at each moment is related to the charge and discharge power at that moment and at each moment before that moment, the upper and lower limit constraints of the first energy storage charge state are time period coupling constraints. In order to facilitate the decomposition of the constraint effect of the energy storage charge state constraint on the energy storage charge and discharge power at each moment, this embodiment uses the initial charge state and the charge and discharge power at each moment to characterize the charge state of the energy storage at each moment, and transforms the upper and lower limit constraints of the first energy storage charge state into:

[0126]

[0127] Among them, S init is the initial charge state of energy storage; ρ ch,t′′ is a binary variable of energy storage charging and discharging state at time t; is the dual variable constraining the upper limit of the energy storage state of charge; is the dual variable of the lower limit constraint of the energy storage charge state. t and t' are both time period identifiers, ρ ch,t and ρ ch,t, respectively represent the charge and discharge state of energy storage in time periods t and t'. Due to the particularity of energy storage, the upper and lower limits of the state of charge constraint in time period t are related to the charge and discharge state of energy storage in time periods t'=1, 2, ..., t. Therefore, for any time period t, it is necessary to process the sum of the components of time periods such as t'=1, 2, ..., t or t'=t, t+1, ..., T. Therefore, there are two variables identifying time periods, t and t'.

[0128] Considering that this implementation uses a single typical day for analysis, under the premise that the daily load curve characteristics are similar, in order to ensure the stable benefits of energy storage, the initial and final state of charge of the daily energy storage should be similar, so the initial and final state of charge constraints of the first energy storage are set:

[0129] S T =S init

[0130] After eliminating the variable SOC, the initial and final state of charge constraints of the first energy storage are obtained as follows:

[0131]

[0132] The initial state of charge is the state of charge of the last period of the previous day. Set the state of charge of the energy storage at the end of each day to be the same.

[0133] S3. Constructing a market dispatch model and market dispatch constraints according to the generator set status data, generator set output data, load node data, energy storage data and power price data;

[0134] Specifically, the market dispatch model is the SCED model, which is based on the SCUC model and is used to clear the market and determine the node electricity price, frequency regulation capacity price and frequency regulation mileage price. It is the core model of the power market operation. By optimizing these electricity prices, the effective operation of the power market is achieved, and the participation mode of energy storage and market dispatch strategy are considered. The SCUC and SCED models play the key roles of unit output and market clearing in the power system, respectively, and jointly ensure the economic and reliable operation of the power system.

[0135] Specifically, the market dispatch constraints include: a second system power balance constraint, a second line flow constraint, a second thermal power unit output constraint, and a second energy storage constraint;

[0136] The second system power balance constraint is:

[0137]

[0138] Where G is the number of thermal power units; p i,t is the output of thermal power unit i at time t; is the energy storage output; N is the number of load nodes; D j,tis the load of load node j in period t; t Constrain the dual variable values ​​for system power balance;

[0139] The second line power flow constraint is:

[0140]

[0141] in, is the lower limit of the power flow of line I; is the upper limit of the power flow of line I; T l,i is the transfer distribution factor of line I to node i; is the dual variable value of the minimum line power flow constraint; is the dual variable value of the maximum line power flow constraint;

[0142] The output constraint of the second thermal power unit is:

[0143]

[0144] in, is the dual variable value of the minimum output constraint of the thermal power unit; is the dual variable value of the maximum output constraint of the thermal power unit; p i,t-1 is the output of thermal power unit i at time t-1; u i,t-1 is the start-stop state variable of the thermal power unit at time t-1; R i is the maximum up and down ramp rate of the thermal power unit; is the dual variable value of the minimum climbing constraint of the thermal power unit; is the dual variable value of the maximum ramp constraint of the thermal power unit;

[0145] The second energy storage constraint includes: a second energy storage charging and discharging power constraint, a second energy storage state of charge upper and lower limit constraints, and a second energy storage initial and final state of charge constraint;

[0146] The second energy storage charging and discharging power constraint is:

[0147]

[0148] Among them, ρ ch,t P is the binary variable of the charge and discharge state of energy storage during period t; dch,max is the maximum discharge power of energy storage; P ch ,max is the maximum charging power of energy storage; is the dual variable value constrained by the maximum discharge power of the energy storage; is the dual variable value of the minimum power constraint for energy storage discharge; is the dual variable value of the maximum charging power constraint of the energy storage; is the dual variable value of the minimum power constraint for charging the energy storage;

[0149] The upper and lower limits of the second energy storage state of charge are:

[0150] S min ≤S t ≤S max

[0151]

[0152] Among them, S min S is the minimum state of charge for energy storage; max S is the maximum charge state of energy storage; t is the state of charge of the energy storage at time t; S t-1 is the state of charge of the energy storage at time t-1; E is the energy change during the energy storage period t; s,rate is the energy storage capacity; η s is the energy conversion coefficient of energy storage charging and discharging;

[0153] The initial and final charge states of the second energy storage are constrained as follows:

[0154]

[0155] Among them, T is the total number of clearing periods; is the charging and discharging state of the energy storage during time period t; s ch,t′ is a binary variable of energy storage charging and discharging state during time period t; str is the dual variable value constrained by the initial and final state of charge of the energy storage.

[0156] In a preferred embodiment of the present invention, the SCUC model and the SCED model are in a top-to-bottom relationship. The SCUC is solved first to determine the powered-on units and the powered-off units in the power grid (which units are powered-on, which units are related, and the start-stop status of the units is determined). After the start-stop status of the units is known, the SCED model is solved, and the SCED determines the specific output of the powered-on units and obtains the node marginal electricity price of each node. The SCUC model and the SCED model have the same system power balance constraints, line flow constraints, unit output constraints, energy storage charging and discharging power constraints, energy storage charge state upper and lower limit constraints, and energy storage initial and final charge state constraints. Since the start-stop status of the thermal power unit in the SCED model has been fixed in the solution of the SCUC model, it does not include system rotating reserve constraints and thermal power unit start-stop time constraints.

[0157] S4, according to the generator set state data, generator set output data, load node data, energy storage data and unit cost data, under the unit combination constraint, with the minimum unit operation cost as the goal, solve the unit combination model to obtain the unit operation state quantity;

[0158] Preferably, the unit operating cost is calculated by the following formula:

[0159]

[0160] Among them, Z1 is the unit operating cost; C power,i is the operating cost function of thermal power unit i; is the single startup cost of thermal power unit i; t is the preset length period; C storage is the energy storage operation cost function.

[0161] In a preferred embodiment of the present invention, C power,i is the operating cost function of thermal power unit i, which is a quadratic function; C storage is the energy storage operation cost function, which is a quadratic function; t is a preset length period, for example, 15 minutes, t=1, 2, ..., 96 (ie, one day).

[0162] S5. According to the generator set status data, generator set output data, load node data, energy storage data, power price data and unit operation status, under the market dispatch constraint, with the minimum system operation cost as the goal, solve the market dispatch model to obtain the energy storage operation status component;

[0163] Specifically, the system operating cost is calculated by the following formula:

[0164]

[0165] Among them, Z2 is the system operation cost.

[0166] Preferably, according to the generator set status data, generator set output data, load node data, energy storage data, power price data and unit operation status quantity, under the market dispatch constraint, with the minimum system operation cost as the goal, the market dispatch model is solved to obtain the energy storage operation status component, including:

[0167] Constructing a Lagrangian function of a market dispatch model according to the generator set status data, generator set output data, load node data, energy storage data, power price data and unit operation status;

[0168] Under the market dispatch constraints, with the goal of minimizing the system operation cost, the Lagrangian function of the market dispatch model is derived to obtain the marginal electricity price of the load node;

[0169] Under the market dispatch constraint, the energy storage operation state component is obtained by decomposing the marginal electricity price of the load node.

[0170] Specifically, using the Lagrangian function to find the partial derivative of the load is a common method for calculating LMP (node ​​marginal price). According to the generator state data, generator output data, load node data, energy storage data, power price data and unit operation state quantity, the Lagrangian function of the market dispatch model is constructed. The Lagrangian function of the constructed SCED model is specifically:

[0171]

[0172] in, is the dual variable value of the minimum and maximum output constraints of the thermal power unit; is the dual variable value of the minimum and maximum ramp constraints of the thermal power unit; S init is the initial charge state of energy storage; S max ,S min It is the maximum and minimum charge state of energy storage.

[0173] Then, under the market dispatch constraint, with the goal of minimizing the system operation cost, the Lagrangian function of the market dispatch model is derived to obtain the marginal electricity price of the load node; that is, the partial derivative of the energy storage charging and discharging power is calculated according to the Lagrangian function to obtain the LMP formula of the energy storage, which is specifically:

[0174]

[0175]

[0176] In a preferred embodiment of the present invention, under the market dispatch constraint, the marginal electricity price of the load node is decomposed to obtain the energy storage operation state component. Considering the lower limit constraint of energy storage charge and discharge, that is, limiting the output power of energy storage to be less than 0 when charging and greater than 0 when discharging, the limit occurs in the period when the energy storage is neither charged nor discharged. The state of energy storage can be either charged or discharged. The positive or negative value and size of the value are closely related to whether the energy storage is fixed as charging or discharging in the SCUC model during the current period. Therefore, the sum of the lower limit constraint of energy storage charge and discharge and the marginal quotation of energy storage is used as the energy storage quotation component of LMP. The upper and lower limit constraints of the energy storage state of charge and the initial and final state of charge constraints of the energy storage are related to the energy storage state of charge, so the sum of the two parts of the constraint dual variables is used as the state of charge constraint component (SOC constraint component) of LMP. The dual variable value of the upper limit constraint of energy storage charging and discharging is used as the energy storage charging and discharging power constraint component of LMP The specific expressions of the three components of LMP are as follows:

[0177]

[0178] S6. Generate a corresponding energy storage system operation strategy according to the energy storage operation state component;

[0179] Preferably, the energy storage operation state component includes: an energy storage quotation component, a state of charge constraint component, and an energy storage charge and discharge power constraint component;

[0180] According to the energy storage operation state component, a corresponding energy storage system operation strategy is generated, including:

[0181] Analyze the operation boundary status of each energy storage system in the energy storage cluster according to the energy storage operation state component to obtain the operation boundary status of each energy storage system;

[0182] Generate an energy storage system operation state model according to the operation state of each energy storage system;

[0183] According to the node topology data of the load node data and the current energy storage system, determining whether the current energy storage system overlaps with an energy storage system adjacent to the node;

[0184] When there is an overlap between the current energy storage system and the node's neighboring energy storage system, a corresponding energy storage system operation strategy is generated according to the energy storage operation state variables of the current energy storage system.

[0185] Specifically, according to the energy storage operation status component, the operation overlap status of each energy storage system in the energy storage cluster is analyzed to obtain the operation overlap status of each energy storage system. The overlap status of the three LMP components of each energy storage system is tabulated, with "0" representing no overlap and "1" representing overlap, as shown in Table 1:

[0186] Table 1

[0187]

[0188] Then, according to the operation status of each energy storage system, the energy storage system operation status model is generated. Figure 2As shown. The energy storage system operation status model is a triangle. In the operation status, there is one component that overlaps, or two components that overlap, or all three components that overlap, or no component that overlaps. In the operation status triangle, if a component overlaps, the "corner" can be marked with a red diamond to indicate the overlapping state; if there is no overlap, the red diamond is located in the belly of the triangle; the energy storage system operation status model constructed is to more intuitively represent the operation status of the energy storage system in the state analysis process of many energy storage clusters.

[0189] Then, based on the node topology data of the load node data and the current energy storage system, determine whether the current energy storage system overlaps with the node's neighboring energy storage system. For example, based on daily electricity trading experience, select an energy storage system that is close to or competitive with your node, analyze its operating status in the past few trading periods, and use the operating status triangle to characterize whether the system's operating status overlaps.

[0190] When the current energy storage system overlaps with the energy storage system adjacent to the node, the corresponding energy storage system operation strategy is generated according to the energy storage operation state variables of the current energy storage system. For energy storage systems with competitive relationships in the energy storage cluster (competitive relationships can be determined based on the trading experience of market entities in the energy storage market) or energy storage systems adjacent to the node, an active operation strategy for the energy storage system is formulated.

[0191] S7. Adjust the operation of the energy storage system according to the energy storage system operation strategy.

[0192] In a preferred embodiment of the present invention, if other energy storage systems have energy storage system quotation components, charge and discharge power, or SOC constraints that overlap, the quotation, quotation quantity, and SOC of the next trading period of the energy storage system can be strategically adjusted, and the quotation value, charge and discharge power, and other factors in the next trading period can be adjusted. For example, if it is known that the target object energy storage system already has charge and discharge power constraints that overlap, the charge and discharge power declaration value of the system can be adjusted to obtain more charge and discharge opportunities for more electricity, obtain more market benefits, and form an active operation strategy in the energy storage cluster competition scenario.

[0193] By implementing this embodiment, the generator set status data, generator set output data, load node data, energy storage data, unit cost data and electricity price data are obtained; according to the generator set status data, generator set output data, load node data, energy storage data and unit cost data, a unit combination model and a unit combination constraint are constructed; according to the generator set status data, generator set output data, load node data, energy storage data and electricity price data, a market dispatch model and a market dispatch constraint are constructed; according to the generator set status data, generator set output data, load node data, energy storage data and electricity price data, a market dispatch model and a market dispatch constraint are constructed; according to the generator set status data, generator set output data, load node data, energy storage data and electricity price data, a market dispatch model and a market dispatch constraint are constructed According to the generator set status data, generator set output data, load node data, energy storage data, electricity price data and generator set operation status data, under the market dispatch constraint, with the goal of minimizing the system operation cost, the market dispatch model is solved to obtain the energy storage operation status component; according to the energy storage operation status component, the corresponding energy storage system operation strategy is generated; according to the energy storage system operation strategy, the energy storage system operation is adjusted. By comprehensively considering the generator set status data, output data, load node data, energy storage data, generator set cost and electricity price and other data, under the unit combination constraint and market dispatch constraint, the unit combination model and the market dispatch model are constructed and solved, the resource allocation and operation strategy of the energy storage system are optimized, and the maximum utilization of the unit and energy storage is achieved under the goal of minimizing the unit operation cost and the system operation cost, and the operation efficiency of the energy storage resources is improved.

[0194] See also Figure 3 , is a structural diagram of an energy storage system operation device based on power trading provided by an embodiment of the present invention, including:

[0195] System data acquisition module, used to obtain generator set status data, generator set output data, load node data, energy storage data, unit cost data and electricity price data;

[0196] A first model and constraint building module, used to build a unit combination model and unit combination constraints according to the generator set state data, generator set output data, load node data, energy storage data and unit cost data;

[0197] A second model and constraint building module is used to build a market dispatch model and market dispatch constraints based on the generator set status data, generator set output data, load node data, energy storage data and power price data;

[0198] The first model solving module is used to solve the unit combination model according to the generator set state data, generator set output data, load node data, energy storage data and unit cost data, under the unit combination constraint, with the minimum unit operation cost as the goal, to obtain the unit operation state quantity;

[0199] The second model solving module is used to solve the market dispatch model according to the generator set state data, generator set output data, load node data, energy storage data, power price data and unit operation state quantity under the market dispatch constraint and with the goal of minimizing system operation cost, so as to obtain the energy storage operation state component;

[0200] An operation strategy generation module, used to generate a corresponding energy storage system operation strategy according to the energy storage operation state component;

[0201] The energy storage system operation adjustment module is used to adjust the operation of the energy storage system according to the energy storage system operation strategy.

[0202] The present invention provides an energy storage system operation device based on power trading, which obtains generator set state data, generator set output data, load node data, energy storage data, unit cost data and power price data according to a system data acquisition module; in a first model and constraint construction module, a unit combination model and a unit combination constraint are constructed according to the generator set state data, generator set output data, load node data, energy storage data and unit cost data; in a second model and constraint construction module, a market dispatch model and a market dispatch constraint are constructed according to the generator set state data, generator set output data, load node data, energy storage data and power price data; in a first model solution module, a generator set state data, generator set output data, load node data, energy storage data and power price data are constructed according to the generator set state data, generator set output data, load node data, energy storage data and power price data. According to the data, load node data, energy storage data and unit cost data, under the unit combination constraint, with the goal of minimizing the unit operation cost, the unit combination model is solved to obtain the unit operation state quantity; then, according to the generator set state data, generator set output data, load node data, energy storage data, electricity price data and unit operation state quantity, under the market dispatch constraint, with the goal of minimizing the system operation cost, the second model solving module solves the market dispatch model to obtain the energy storage operation state component; then, in the operation strategy generation module, according to the energy storage operation state component, the corresponding energy storage system operation strategy is generated; finally, in the energy storage system operation adjustment module, the energy storage system operation is adjusted according to the energy storage system operation strategy. By comprehensively considering multiple data such as generator unit status data, output data, load node data, energy storage data, unit cost, and electricity price, under the constraints of unit combination and market dispatch, the unit combination model and market dispatch model are constructed and solved, and the resource allocation and operation strategy of the energy storage system are optimized. With the goal of minimizing unit operating cost and system operating cost, the maximum utilization of units and energy storage is achieved, thereby improving the operating efficiency of energy storage resources.

[0203] It should be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the accompanying drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without paying any creative effort.

[0204] Those skilled in the art can clearly understand that, for the sake of convenience and brevity, the specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0205] Another embodiment of the present invention further provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, a method for operating an energy storage system based on power trading as described in the above embodiment is implemented. The terminal device may be a computing device such as a desktop computer, a notebook, a PDA, and a cloud server. The terminal device may include, but is not limited to, a processor and a memory.

[0206] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the terminal device, and uses various interfaces and lines to connect various parts of the entire terminal device.

[0207] The memory can be used to store the computer program, and the processor realizes various functions of the terminal device by running or executing the computer program stored in the memory and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created according to the use of the mobile phone, etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device or other volatile solid-state storage device.

[0208] Another embodiment of the present invention provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute a method for operating an energy storage system based on power trading as described in the above embodiment.

[0209] The storage medium is a computer-readable storage medium, and the computer program is stored in the computer-readable storage medium. When the computer program is executed by the processor, the steps of each of the above-mentioned method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium.

[0210] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A method for operating an energy storage system based on power trading, characterized in that: include: Obtain generator set status data, generator set output data, load node data, energy storage data, unit cost data and electricity price data; Constructing a unit combination model and unit combination constraints according to the generator set status data, generator set output data, load node data, energy storage data and unit cost data; Constructing a market dispatch model and market dispatch constraints according to the generator set status data, generator set output data, load node data, energy storage data and power price data; According to the generator set state data, generator set output data, load node data, energy storage data and unit cost data, under the unit combination constraint, with the minimum unit operation cost as the goal, the unit combination model is solved to obtain the unit operation state quantity; According to the generator set status data, generator set output data, load node data, energy storage data, power price data and unit operation status quantity, under the market dispatch constraint, with the minimum system operation cost as the goal, the market dispatch model is solved to obtain the energy storage operation status component; Generating a corresponding energy storage system operation strategy according to the energy storage operation state component; According to the energy storage system operation strategy, the operation of the energy storage system is adjusted.

2. A method for operating an energy storage system based on power trading as claimed in claim 1, characterized in that: The unit combination constraints include: a first system power balance constraint, a first line flow constraint, a spinning reserve constraint, a first thermal power unit output constraint, a thermal power unit start-up and shutdown time constraint, and a first energy storage constraint; The first system power balance constraint is: Where G is the number of thermal power units; p i,t is the output of thermal power unit i at time t; is the energy storage output; N is the number of load nodes; D j,t is the load of load node j in period t; t Constrain the dual variable values ​​for system power balance; The first line power flow constraint is: Among them, P l min is the lower limit of the power flow of line I; P l max is the upper limit of the power flow of line I; T l,i is the transfer distribution factor of line I to node i; is the dual variable value of the minimum line power flow constraint; is the dual variable value of the maximum line power flow constraint; The spinning reserve constraints are: Among them, u i,t is the start and stop state variable of the thermal power unit at time t; is the maximum output of unit i; is the minimum output of unit i; is the system spare rate; is the system reserve rate; The output constraint of the first thermal power unit is: in, is the dual variable value of the minimum output constraint of the thermal power unit; is the dual variable value of the maximum output constraint of the thermal power unit; p i,t-1 is the output of thermal power unit i at time t-1; u i,t-1 is the start-stop state variable of the thermal power unit at time t-1; R i is the maximum up and down ramp rate of the thermal power unit; is the dual variable value of the minimum climbing constraint of the thermal power unit; is the dual variable value of the maximum ramp constraint of the thermal power unit; The start and stop time constraints of the thermal power unit are: in, It is the startup variable of thermal power unit; It is the shutdown variable of thermal power unit; It is the minimum continuous start-up time of thermal power units; The minimum continuous downtime of thermal power units; The first energy storage constraint includes: first energy storage charge and discharge power constraint, first energy storage charge state upper and lower limit constraint, and first energy storage initial and final charge state constraint; The first energy storage charging and discharging power constraint is: Among them, ρ ch,t P is the binary variable of the charge and discharge state of energy storage during period t; dch,max is the maximum discharge power of energy storage; P ch,max is the maximum charging power of energy storage; is the dual variable value constrained by the maximum discharge power of the energy storage; is the dual variable value of the minimum power constraint for energy storage discharge; is the dual variable value of the maximum charging power constraint of the energy storage; is the dual variable value of the minimum power constraint for charging the energy storage; The upper and lower limits of the first energy storage state of charge are: S min ≤S t ≤S max Among them, S min S is the minimum state of charge for energy storage; max S is the maximum charge state of energy storage; t is the state of charge of the energy storage at time t; S t-1 is the charge state of the energy storage at time t-1; E is the energy change during the energy storage period t; s,rate is the energy storage capacity; η s is the energy conversion coefficient of energy storage charging and discharging; The initial and final charge states of the first energy storage are constrained as follows: Where T is the total number of clearing periods; P t′ str is the charging and discharging state of energy storage during the t' period; s ch,t′ is a binary variable of energy storage charging and discharging state during time period t; str is the dual variable value constrained by the initial and final state of charge of the energy storage.

3. The method for operating an energy storage system based on power trading according to claim 1, characterized in that: The market dispatch constraints include: a second system power balance constraint, a second line flow constraint, a second thermal power unit output constraint, and a second energy storage constraint; The second system power balance constraint is: Where G is the number of thermal power units; p i,t is the output of thermal power unit i at time t; is the energy storage output; N is the number of load nodes; D j,t is the load of load node j in period t; t Constrain the dual variable values ​​for system power balance; The second line power flow constraint is: Among them, P l min is the lower limit of the power flow of line I; P l max is the upper limit of the power flow of line I; T l,i is the transfer distribution factor of line I to node i; is the dual variable value of the minimum line power flow constraint; is the dual variable value of the maximum line power flow constraint; The output constraint of the second thermal power unit is: in, is the dual variable value of the minimum output constraint of the thermal power unit; is the dual variable value of the maximum output constraint of the thermal power unit; p i,t-1 is the output of thermal power unit i at time t-1; u i,t-1 is the start-stop state variable of the thermal power unit at time t-1; R i is the maximum up and down climbing rate of the thermal power unit; is the dual variable value of the minimum climbing constraint of the thermal power unit; is the dual variable value of the maximum ramp constraint of the thermal power unit; The second energy storage constraint includes: a second energy storage charging and discharging power constraint, a second energy storage state of charge upper and lower limit constraints, and a second energy storage initial and final state of charge constraint; The second energy storage charging and discharging power constraint is: Among them, ρ ch,t P is the binary variable of the charge and discharge state of energy storage during period t; dch,max is the maximum discharge power of energy storage; P ch,max is the maximum charging power of energy storage; is the dual variable value constrained by the maximum discharge power of the energy storage; is the dual variable value of the minimum power constraint for energy storage discharge; is the dual variable value of the maximum charging power constraint of the energy storage; is the dual variable value of the minimum power constraint for charging the energy storage; The upper and lower limits of the second energy storage state of charge are: S min ≤S t ≤S max Among them, S min S is the minimum state of charge for energy storage; max S is the maximum charge state of energy storage; t is the state of charge of the energy storage at time t; S t-1 is the charge state of the energy storage at time t-1; E is the energy change during the energy storage period t; s,rate is the energy storage capacity; η s is the energy conversion coefficient of energy storage charging and discharging; The initial and final charge states of the second energy storage are constrained as follows: Where T is the total number of clearing periods; P t′ st is the charging and discharging state of energy storage during the t' period; s ch,t′ is the binary variable of energy storage charging and discharging state during period t'; str is the dual variable value constrained by the initial and final state of charge of the energy storage.

4. The method for operating an energy storage system based on power trading according to claim 1, characterized in that: According to the generator set status data, generator set output data, load node data, energy storage data, power price data and unit operation status, under the market dispatch constraint, with the minimum system operation cost as the goal, the market dispatch model is solved to obtain the energy storage operation status component, including: Constructing a Lagrangian function of a market dispatch model according to the generator set status data, generator set output data, load node data, energy storage data, power price data and unit operation status; Under the market dispatch constraints, with the goal of minimizing the system operation cost, the Lagrangian function of the market dispatch model is derived to obtain the marginal electricity price of the load node; Under the market dispatch constraint, the energy storage operation state component is obtained by decomposing the marginal electricity price of the load node.

5. The method for operating an energy storage system based on power trading according to claim 1, characterized in that: The energy storage operation state component includes: an energy storage quotation component, a state of charge constraint component, and an energy storage charge and discharge power constraint component; According to the energy storage operation state component, a corresponding energy storage system operation strategy is generated, including: Analyze the operation boundary status of each energy storage system in the energy storage cluster according to the energy storage operation state component to obtain the operation boundary status of each energy storage system; Generate an energy storage system operation state model according to the operation state of each energy storage system; According to the node topology data of the load node data and the current energy storage system, determining whether the current energy storage system overlaps with an energy storage system adjacent to the node; When there is an overlap between the current energy storage system and the node's neighboring energy storage system, a corresponding energy storage system operation strategy is generated according to the energy storage operation state variables of the current energy storage system.

6. The method for operating an energy storage system based on power trading according to claim 1, characterized in that: The unit operating cost is calculated by the following formula: Among them, Z1 is the unit operating cost; C power, i is the operating cost function of thermal power unit i; is the single startup cost of thermal power unit i; t is the preset length period; C storage is the energy storage operation cost function.

7. The method for operating an energy storage system based on power trading according to claim 1, characterized in that: The system operating cost is calculated by the following formula: Among them, Z2 is the system operation cost.

8. An energy storage system operation device based on power trading, characterized in that: include: System data acquisition module, used to obtain generator set status data, generator set output data, load node data, energy storage data, unit cost data and electricity price data; A first model and constraint building module, used to build a unit combination model and unit combination constraints according to the generator set state data, generator set output data, load node data, energy storage data and unit cost data; A second model and constraint building module, for building a market dispatch model and market dispatch constraints according to the generator set status data, generator set output data, load node data, energy storage data and power price data; The first model solving module is used to solve the unit combination model according to the generator set state data, generator set output data, load node data, energy storage data and unit cost data, under the unit combination constraint, with the minimum unit operation cost as the goal, to obtain the unit operation state quantity; The second model solving module is used to solve the market dispatch model according to the generator set state data, generator set output data, load node data, energy storage data, power price data and unit operation state quantity under the market dispatch constraint and with the goal of minimizing system operation cost, so as to obtain the energy storage operation state component; An operation strategy generation module, used to generate a corresponding energy storage system operation strategy according to the energy storage operation state component; The energy storage system operation adjustment module is used to adjust the operation of the energy storage system according to the energy storage system operation strategy.

9. A terminal device, characterized in that: It includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, it implements a method for operating an energy storage system based on power trading as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute a method for operating an energy storage system based on power trading as described in any one of claims 1 to 7.