A micro-grid energy storage collaborative scheduling method and device under a two-part electricity price
By constructing a joint optimization objective function and a lexicographical order two-stage strategy, the problem of demand reduction and peak-valley arbitrage decision-making in the energy storage dispatch method under the two-part tariff system is solved, realizing the efficient utilization and life extension of the energy storage system and reducing the overall electricity cost.
Patent Information
- Application Number
- CN202611274061.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-21
- Publication Date
- 2026-11-27
AI Technical Summary
In existing technologies, energy storage dispatch methods under two-part tariffs suffer from a disconnect between demand reduction and peak-valley arbitrage decisions, resulting in low utilization of energy storage resources and high overall electricity costs. They also lack modeling of the coupling relationship of the two-part tariff structure, have insufficient real-time performance and adaptability, and do not fully consider the cycle life loss costs of energy storage.
By constructing a joint optimization objective function, combining load forecast data and time-of-use electricity price information, a lexicographical two-stage strategy is adopted for coordinated energy storage scheduling. This optimizes charging and discharging decisions to simultaneously serve demand reduction and peak-valley arbitrage objectives. Furthermore, rolling optimization is achieved through a model predictive control framework to reduce energy storage degradation costs.
It significantly reduces overall electricity costs, improves the smoothness of charge and discharge power, reduces the number of charge and discharge cycles, extends the service life of the energy storage system, and achieves a balance between economy, safety and long-term operation.
Smart Images

Figure CN123183996A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of microgrid energy management technology, and in particular to a method and apparatus for coordinated dispatch of microgrid energy storage under a two-part tariff. Background Technology
[0002] Energy storage systems play a crucial role in microgrid energy management, especially under my country's two-part tariff system for large industrial users. Energy storage systems can reduce basic electricity charges (demand charges) through demand reduction and lower electricity charges (per-hour charges) through peak-valley arbitrage, thereby effectively reducing users' overall electricity costs. Demand charges depend on the maximum demand power during the billing cycle, while per-hour charges depend on the product of electricity consumption and the corresponding electricity price at each time period. These two are closely coupled through the charging and discharging behavior of energy storage systems; therefore, the quality of energy storage charging and discharging strategies directly determines the overall electricity cost. Currently, various technical solutions have been proposed for the optimized scheduling of energy storage systems under the two-part tariff system.
[0003] Currently, mainstream energy storage dispatching schemes mainly fall into the following categories: One category is real-time demand control based on rule-based thresholds. This method acquires real-time load demand and the energy storage's state of charge (SOC). When the load demand is below a first preset threshold, the energy storage is charged and kept in standby mode within a second preset range. When the load demand is above the second preset threshold, the target output power of the energy storage is calculated. Essentially, this is a real-time feedback control relying on a fixed threshold, decoupling the energy storage charging and discharging decisions from the electricity price signal. Another category is static dispatching based on day-ahead optimization. This type of scheme uses a monthly or daily cycle, with the maximum load demand and the charging and discharging power for each time period as variables. It incorporates demand and electricity costs into a single-layer optimization objective, solving for the optimal charging and discharging strategy through linear programming. However, this method lacks the ability to cope with uncertainties in load and electricity prices. In recent years, some solutions have introduced the Model Predictive Control (MPC) framework, which incorporates demand cost and electricity price into the rolling optimization objective and uses a lexicographical two-stage optimization strategy to determine energy storage charging and discharging commands. However, its core focus is on prioritizing economic indicators and operational flexibility, without explicitly modeling the goal of maximizing peak-valley arbitrage profits, and it also lacks refined modeling of the coupling relationship between demand charge and electricity price under the two-part tariff.
[0004] However, the above-mentioned existing technical solutions still have the following shortcomings: (1) Demand reduction and peak-valley arbitrage are separated in decision-making. Existing methods usually treat the two as independent objectives or independent stages and do not recognize that the two are both competitive and cooperative in energy storage power allocation. Demand reduction requires discharge during load peaks, while peak-valley arbitrage requires discharge during electricity price peaks. The two time periods may overlap or conflict. Separate decision-making leads to suboptimal utilization of energy storage resources; (2) Insufficient modeling of the coupling relationship of the two-part electricity pricing structure. Demand charge depends on the maximum demand power in the settlement period, while electricity charge depends on the electricity consumption in each time period. The two are closely coupled through the shared variable of grid interaction power. Existing simplified models are difficult to accurately represent. The impact of this coupling relationship on the overall electricity cost; (3) Insufficient real-time performance and adaptability. The rule-based threshold method only relies on the current demand value for segmented decision-making, and cannot anticipate future load trends and electricity price changes. The day-ahead one-time optimization method cannot cope with intraday load fluctuations and prediction errors; (4) Low comprehensive utilization rate of energy storage resources. Due to the lack of a collaborative optimization mechanism, energy storage is prone to "choosing one over the other" between demand reduction and peak-valley arbitrage. The discharge operation in some periods fails to serve both objectives simultaneously; (5) Most existing methods do not fully consider the energy storage cycle life loss cost. Frequent charging and discharging accelerate battery aging, causing the theoretically optimal strategy to become less economical in actual operation due to shortened lifespan.
[0005] Therefore, it is necessary to provide a solution to address the aforementioned technical problems. Summary of the Invention
[0006] This invention provides a method and apparatus for coordinated dispatch of microgrid energy storage under a two-part tariff, which can solve the technical problems of low energy storage resource utilization and high overall electricity costs caused by the separation of demand reduction and peak-valley arbitrage decisions in existing energy storage dispatch methods. The technical solution is as follows:
[0007] In a first aspect, embodiments of the present invention provide a method for coordinated dispatch of microgrid energy storage under a two-part tariff, comprising:
[0008] Acquire load forecast data, time-of-use electricity price information, the current state of charge of the energy storage system, and the demand metering value for the current billing cycle;
[0009] Based on the load forecast data, time-of-use electricity price information, the current state of charge of the energy storage system, and the demand metering value in the current settlement period, a joint optimization objective function is constructed; the joint optimization objective function includes minimizing the overall electricity cost and minimizing the energy storage degradation cost;
[0010] Establish a set of constraints, which includes power balance constraints, dynamic constraints of energy storage state of charge, upper and lower limits constraints of energy storage state of charge, limits constraints of energy storage charging and discharging power, mutual exclusion constraints of charging and discharging, and limits constraints of demand.
[0011] Based on the set of constraints, the joint optimization objective function is solved with the goal of minimizing the overall electricity cost, resulting in a first scheduling result. Based on the first scheduling result and the set of constraints, the joint optimization objective function is solved with the goal of minimizing the energy storage degradation cost, resulting in a second scheduling result.
[0012] In some embodiments of the present invention, the minimization of comprehensive electricity costs includes the objectives of minimizing demand electricity costs, minimizing electricity consumption costs, and maximizing peak-valley arbitrage profits.
[0013] In some embodiments of the present invention, the joint optimization objective function is expressed by the following formula:
[0014] min F=Cdemand + Cenergy- Rarbitrage + Degradation
[0015] Where Cdemand = λ_d·max{P_grid(t), t∈T_settle}
[0016] Cenergy =Σ{t∈T}ρ(t)·P_grid(t)·Δt
[0017] Rarbitrage =Σ{t∈T_dis} [ρ(t)·_Pdis(t)·η_dis−ρ(t_ch)·P_ch(t_ch)·η_ch]·Δt
[0018] Cdegradation = c_bat·Σ{t∈T} |P_bat(t)|·Δt / Erated
[0019] Where: Cdemand represents demand charge, Cenergy represents energy charge, Rarbitrage represents net peak-valley arbitrage profit, Cdegradation represents energy storage degradation cost; λ_d represents demand charge, P_grid(t) represents grid interaction power at time t, ρ(t) represents energy charge at time t, P_dis(t) and P_ch(t) represent energy storage discharge and charging power, respectively, η_dis and η_ch represent discharge and charging efficiency, respectively, c_bat represents energy storage unit capacity, Erated represents energy storage rated capacity, T_dis represents total discharge time, t_ch represents charging time, and P_bat(t) represents optimal charge and discharge strategy.
[0020] In some embodiments of the present invention, obtaining the first scheduling result and the second scheduling result includes:
[0021] A lexicographical two-stage strategy is adopted to solve the joint optimization objective function based on the constraint set, with the goal of minimizing the comprehensive electricity cost, to obtain a first scheduling result; based on the first scheduling result and the constraint set, the joint optimization objective function is solved with the goal of minimizing the energy storage degradation cost, to obtain a second scheduling result.
[0022] In some embodiments of the present invention, the indicators for minimizing the energy storage degradation cost include the charge / discharge power smoothness indicator, the charge / discharge cycle count indicator, and the state of charge deviation indicator.
[0023] In some embodiments of the present invention, it further includes:
[0024] Based on the maximum observed demand value and remaining time within the current settlement window, the demand target value is dynamically adjusted. When the observed demand value is close to the demand limit, the demand target is reduced; when the remaining time is insufficient to form a new demand peak, the demand target is increased.
[0025] In some embodiments of the present invention, it further includes:
[0026] The model predictive control framework is used to execute the lexicographical two-stage optimization strategy in a rolling manner. In each control cycle, the optimal charging and discharging power sequence for multiple future time periods is obtained. In the next control cycle, the optimal power sequence is solved again based on the updated load measurement data and energy storage status.
[0027] Secondly, the present invention also provides a microgrid energy storage collaborative dispatching device under a two-part tariff system, comprising:
[0028] The acquisition module is used to acquire load forecast data, time-of-use electricity price information, the current state of charge of the energy storage system, and the demand metering value for the current billing cycle.
[0029] The construction module is used to construct a joint optimization objective function based on the load forecast data, time-of-use electricity price information, the current state of charge of the energy storage system, and the demand metering value in the current settlement period; the joint optimization objective function includes minimizing the overall electricity cost and minimizing the energy storage degradation cost;
[0030] The constraint module is used to establish a set of constraint conditions, which includes power balance constraints, dynamic constraints of energy storage state of charge, upper and lower limit constraints of energy storage state of charge, limit constraints of energy storage charging and discharging power, mutual exclusion constraints of charging and discharging, and demand limit constraints.
[0031] The scheduling module is used to solve the joint optimization objective function based on the set of constraints, with the goal of minimizing the overall electricity cost, to obtain a first scheduling result; and based on the first scheduling result and the set of constraints, to solve the joint optimization objective function with the goal of minimizing the energy storage degradation cost, to obtain a second scheduling result.
[0032] Thirdly, the present invention also provides an electronic device, comprising: a processor and a memory;
[0033] The memory stores a computer-readable program that can be executed by the processor;
[0034] When the processor executes the computer-readable program, it implements the steps in the microgrid energy storage collaborative scheduling method under the two-part electricity pricing system as described above.
[0035] Fourthly, the present invention also provides a computer-readable storage medium storing one or more programs that can be executed by one or more processors to implement the steps in the microgrid energy storage coordinated scheduling method under the two-part tariff system as described above.
[0036] The beneficial effects of the technical solutions provided by some embodiments of the present invention include at least the following: Based on load forecast data, time-of-use pricing information, the current state of charge of the energy storage system, and the demand metering value within the current billing cycle, by incorporating the minimization of comprehensive electricity costs and the minimization of energy storage degradation costs into the optimization objective function, each charge / discharge decision of the energy storage system can simultaneously serve the dual objectives of demand reduction and peak-valley arbitrage. This overcomes the shortcomings of prior art where the two are decided separately, leading to conflicts in energy storage power allocation, and significantly reduces comprehensive electricity costs. Simultaneously, through a two-stage solution strategy with the minimization of comprehensive electricity costs as the first-stage objective and the minimization of energy storage degradation costs as the second-stage objective, the smoothness of charge / discharge power is effectively improved, the number of charge / discharge cycles is reduced, and the deviation of the state of charge is constrained, while ensuring optimal economic efficiency. This reduces the energy storage cycle aging rate and extends the equipment's service life. The present invention achieves a balance between economic efficiency, safety, and long-life operation of microgrid energy storage systems under a two-part tariff, effectively solving the technical problems of separate decision-making between demand control and peak-valley arbitrage, and insufficient consideration of energy storage lifespan in prior art. Attached Figure Description
[0037] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0038] Figure 1 This is a system architecture diagram of an embodiment of microgrid energy storage collaborative scheduling under a two-part tariff provided by the present invention;
[0039] Figure 2 This is a flowchart illustrating an embodiment of the collaborative scheduling of microgrid energy storage under a two-part tariff system provided by the present invention.
[0040] Figure 3 This is a schematic diagram illustrating the synergy between a typical daily load curve and an energy storage charging and discharging strategy in an embodiment of the present invention.
[0041] Figure 4 This is a schematic diagram of an embodiment of the microgrid energy storage collaborative dispatching device under two-part electricity pricing provided by the present invention;
[0042] Figure 5 This is a schematic diagram of the operating environment of an embodiment of the electronic device provided by the present invention. Detailed Implementation
[0043] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0044] It should be noted that the microgrid energy storage collaborative dispatch method under the two-part tariff provided in this application is generally executed by the terminal equipment. Correspondingly, the microgrid energy storage collaborative dispatch device under the two-part tariff is generally installed in the terminal equipment.
[0045] Figure 1 An exemplary system architecture is shown that can be applied to the microgrid energy storage collaborative scheduling method or the microgrid energy storage collaborative scheduling device under the two-part tariff system of this application.
[0046] like Figure 1 As shown, the system architecture may include: terminal device 101 and server 102. Terminal device 101 and server 102 can communicate via a network, which serves as the medium for providing communication links between the various units. The network may include various types of wired or wireless communication links, such as: wired communication links including fiber optic cables, twisted-pair cables, or coaxial cables; and wireless communication links including Bluetooth communication links, Wi-Fi communication links, or microwave communication links.
[0047] It should be noted that the terminal device 101 and the server 102 can be either hardware or software. When the terminal device 101 and the server 102 are hardware, they can be implemented as a distributed server cluster consisting of multiple servers, or as a single server. When the terminal device 101 and the server 102 are software, they can be implemented as multiple software programs or software modules (for example, to provide distributed services), or as a single software program or software module; no specific limitations are made here.
[0048] The terminal device of this application can be equipped with various communication client applications, such as video recording applications, video playback applications, voice interaction applications, search applications, instant messaging tools, email clients, social platform software, etc.
[0049] A terminal device can be either hardware or software. When the terminal device is hardware, it can be various terminal devices with a display screen, including but not limited to smartphones, tablets, laptops, and desktop computers. When the terminal device is software, it can be installed on the terminal devices listed above. It can be implemented as multiple software programs or software modules (e.g., used to provide distributed services) or as a single software program or software module; no specific limitation is made here.
[0050] When the terminal device is hardware, it can also be equipped with a display device and a camera. The display device can be any device capable of displaying information, and the camera is used to capture video streams. For example, the display device can be a cathode ray tube display (CR), a light-emitting diode display (LED), an e-ink screen, a liquid crystal display (LCD), a plasma display panel (PDP), etc. Users can use the display device on the terminal device to view displayed text, images, videos, and other information.
[0051] It should be understood that Figure 1 The number of terminal devices, networks, and servers shown is for illustrative purposes only. Depending on implementation needs, there can be any number of terminal devices, networks, and servers.
[0052] The following will be combined with the appendix Figure 2 This application provides a detailed description of the microgrid energy storage collaborative dispatch method under a two-part tariff system provided in its embodiments. Specifically, the microgrid energy storage collaborative dispatch device under a two-part tariff system in this application embodiment can be... Figure 1 The terminal device shown.
[0053] Please see Figure 2 This document provides a flowchart illustrating a microgrid energy storage collaborative scheduling method under a two-part tariff system, as described in an embodiment of this application. Figure 2 As shown, the method described in this application embodiment may include the following steps:
[0054] S201. Obtain load forecast data, time-of-use electricity price information, current state of charge of energy storage system, and demand metering value for the current billing cycle.
[0055] It should be noted that demand charge (Cdemand) refers to the basic electricity fee charged by the power company within a settlement period (usually one month), based on the user's maximum power demand during that period. Energy charge (Cenergy) refers to the fee paid by the user based on the actual electricity consumption multiplied by the corresponding time-of-day electricity price.
[0056] It should be noted that the load forecast data is generated by acquiring historical load data and weather forecast data, and using time series forecasting algorithms (such as LSTM, Prophet, or ARIMA) to produce load forecast curves P_load(t) for the next N time steps, t=1,2,...,N. The forecast results simultaneously output point forecast values and confidence intervals for use by the subsequent optimization engine. The forecast results are updated on a rolling basis in each control cycle to achieve real-time updates of the load forecast data.
[0057] It should be noted that the time-of-use electricity price information includes the division of peak, normal, and valley periods and the corresponding electricity prices ρ_peak, ρ_flat, and ρ_valley, as well as the demand price λd (yuan / kW / month) and capacity price parameters in the two-part tariff. Based on the current date and time period, the electricity price signal ρ(t) for each moment is output in real time.
[0058] It should be noted that this module collects the operating parameters of the energy storage system in real time, including the current state of charge (SOC(t), battery health state (SOH(t), maximum charge / discharge power P_ch_max and P_dis_max, and rated energy storage capacity E_rated). These data serve as constraints and state variable inputs for the optimization engine.
[0059] It should be noted that the grid interaction power Pgrid(t) within the current settlement period is monitored and recorded in real time, and the maximum demand value D_current(t)=max{Pgrid(τ), τ∈[t-Tw, t]} within the rolling window is calculated, where Tw is the width of the demand settlement window (usually 15 minutes, 30 minutes or 1 hour).
[0060] S202. Based on the load forecast data, time-of-use electricity price information, the current state of charge of the energy storage system, and the demand metering value in the current settlement period, a joint optimization objective function is constructed; the joint optimization objective function includes minimizing the overall electricity cost and minimizing the energy storage degradation cost;
[0061] S203. Establish a set of constraints, which includes power balance constraints, dynamic constraints of energy storage state of charge, upper and lower limits of energy storage state of charge, limits of energy storage charging and discharging power, mutual exclusion constraints of charging and discharging, and limits of demand.
[0062] S204. Based on the set of constraints, with the goal of minimizing the overall electricity cost, the joint optimization objective function is solved to obtain a first scheduling result; based on the first scheduling result and the set of constraints, the joint optimization objective function is solved with the goal of minimizing the energy storage degradation cost to obtain a second scheduling result.
[0063] In this embodiment, based on load forecast data, time-of-use pricing information, the current state of charge of the energy storage system, and the demand metering value within the current billing cycle, the optimization objective function incorporates minimizing both overall electricity costs and energy storage degradation costs. This ensures that each charge / discharge decision of the energy storage system simultaneously serves both demand reduction and peak-valley arbitrage objectives, overcoming the shortcomings of prior art where these two objectives are decided separately, leading to conflicts in energy storage power allocation and significantly reducing overall electricity costs. Simultaneously, through a two-stage solution strategy with minimizing overall electricity costs as the first objective and minimizing energy storage degradation costs as the second objective, the smoothness of charge / discharge power is effectively improved, the number of charge / discharge cycles is reduced, and the state of charge deviation is constrained while ensuring optimal economic efficiency. This reduces the energy storage cycle aging rate and extends the equipment's lifespan. This invention achieves a balance between economic efficiency, safety, and long-life operation of microgrid energy storage systems under two-part tariffs, effectively solving the technical problems of separate decision-making between demand control and peak-valley arbitrage, and insufficient consideration of energy storage lifespan in prior art.
[0064] In some embodiments of the present invention, the minimization of comprehensive electricity costs includes the objectives of minimizing demand electricity costs, minimizing electricity consumption costs, and maximizing peak-valley arbitrage profits.
[0065] In a specific embodiment, the joint optimization objective function is expressed by the following formula:
[0066] min F=Cdemand + Cenergy- Rarbitrage + Degradation
[0067] Where Cdemand = λ_d·max{P_grid(t), t∈T_settle}
[0068] Cenergy =Σ{t∈T}ρ(t)·P_grid(t)·Δt
[0069] Rarbitrage =Σ{t∈T_dis} [ρ(t)·_Pdis(t)·η_dis−ρ(t_ch)·P_ch(t_ch)·η_ch]·Δt
[0070] Cdegradation = c_bat·Σ{t∈T} |P_bat(t)|·Δt / Erated
[0071] Where: Cdemand represents demand charge, Cenergy represents energy charge, Rarbitrage represents net peak-valley arbitrage profit, Cdegradation represents energy storage degradation cost; λ_d represents demand charge, P_grid(t) represents grid interaction power at time t, ρ(t) represents energy charge at time t, P_dis(t) and P_ch(t) represent energy storage discharge and charging power, respectively, η_dis and η_ch represent discharge and charging efficiency, respectively, c_bat represents energy storage unit capacity, Erated represents energy storage rated capacity, T_dis represents total discharge time, t_ch represents charging time, and P_bat(t) represents optimal charge and discharge strategy.
[0072] It should be noted that energy storage degradation cost reflects the capacity decay and lifespan reduction of the energy storage system during charging and discharging. The higher the charging and discharging power and the longer the charging and discharging time, the higher the degradation cost. The energy storage degradation cost component prompts the optimization algorithm to minimize unnecessary energy storage charging and discharging operations and extend the lifespan of the energy storage system while meeting economic objectives.
[0073] In some embodiments of the present invention, the constraint set includes the following:
[0074] (a) Power balance constraints
[0075] P_pv(t) + P_dis(t) + P_grid(t) = P_load(t) + P_ch(t)
[0076] Where P_pv(t) is the photovoltaic power generation (kW) and P_load(t) is the load power (kW). The power balance constraint means that at any given time, the sum of photovoltaic power generation, energy storage discharge power, and grid interaction power must equal the sum of load consumption power and energy storage charging power, thus ensuring the power balance of the microgrid system.
[0077] (II) Dynamic Constraints of Energy Storage SOC
[0078] SOC(t+1) = SOC(t) − P_dis(t)·Δt / (η_dis·E_rated) + P_ch(t)·η_ch·Δt / E_rated
[0079] The dynamic constraint of energy storage SOC describes the change of energy storage state of charge over time. SOC decreases during discharge and increases during charging. In the formula, Δt is the time step (hours), and E_rated is the rated capacity of energy storage (kWh).
[0080] (III) Upper and lower limits of energy storage SOC
[0081] SOC_min ≤ SOC(t) ≤ SOC_max
[0082] Wherein, SOC_min is the lower limit of state of charge, preferably set to 0.1~0.2, to avoid over-discharge of energy storage; SOC_max is the upper limit of state of charge, preferably set to 0.85~0.9, to avoid over-charging of energy storage. In a preferred embodiment of the present invention, SOC_min is 0.1 and SOC_max is 0.9. By setting upper and lower limits of SOC, the energy storage system is protected from damage caused by deep charge and discharge.
[0083] (iv) Limits on energy storage charging and discharging power
[0084] 0 ≤ P_ch(t) ≤ u_ch(t)·P_ch_max
[0085] 0 ≤ P_dis(t) ≤ u_dis(t)·P_dis_max
[0086] Where u_ch(t) and u_dis(t)∈{0,1} are charging and discharging state identifier variables, and P_ch_max and P_dis_max are the maximum charging power and maximum discharging power (kW) of the energy storage, respectively. The energy storage charging and discharging power limit constraint restricts the charging and discharging power of the energy storage to not exceed its rated power limit.
[0087] (v) Charging and discharging mutual exclusion constraint
[0088] u_ch(t) + u_dis(t) ≤ 1
[0089] The mutual exclusion constraint between charging and discharging ensures that the energy storage system cannot perform charging and discharging operations at the same time. This is a fundamental physical constraint for the operation of the energy storage system.
[0090] (vi) Demand Limit Constraints
[0091] P_grid(t) ≤ D_target,∀t∈T_settle
[0092] Where D_target is the optimized demand target value (kW). This constraint ensures that at any time during the demand settlement period, the grid interaction power does not exceed the set demand target value. The demand limit constraint is the core constraint for achieving demand reduction. The energy storage system controls the grid interaction power below the demand limit by discharging during peak load periods.
[0093] In a preferred embodiment of the present invention, the demand target value D_target participates in the optimization process as a decision variable, and is solved in conjunction with the energy storage charging and discharging power to obtain the optimal demand target value D_target*.
[0094] Furthermore, in a preferred embodiment of the present invention, an energy storage cycle life constraint is also included:
[0095] Σ_{t∈T} |P_bat(t)| · Δt / E_rated ≤ N_cycle_limit
[0096] Among them, N_cycle_limit is the daily cycle depth limit, which is used to constrain the cumulative charge and discharge of energy storage in a day to prevent overuse of the energy storage system.
[0097] In some embodiments of the present invention, a lexicographic two-stage strategy is employed to solve the joint optimization objective function. The lexicographic two-stage strategy solves the problem sequentially according to the priority of the objectives. The first stage prioritizes minimizing the overall electricity cost, and the second stage, based on the optimal solution of the first stage, prioritizes minimizing the energy storage degradation cost.
[0098] Phase 1 (Economic Priority): With the goal of minimizing the overall electricity cost F, the optimal charging and discharging strategy {P_bat(t)} and the optimal demand target value D_target are solved under the above set of constraints to obtain the optimal overall electricity cost F.
[0099] The optimization problem in the first stage can be expressed as:
[0100] min F = C_demand + C_energy − R_arbitrage + C_degradation
[0101] st power balance constraint, SOC dynamic constraint, SOC upper and lower limit constraint, charge and discharge power limit constraint, charge and discharge mutual exclusion constraint, demand limit constraint.
[0102] In a preferred embodiment of the present invention, the first stage optimization is solved using a mixed-integer linear programming (MILP) solver (such as Gurobi or CPLEX). Since binary variables u_ch(t) and u_dis(t) are introduced in the charge-discharge mutual exclusion constraint, the objective optimization problem is a mixed-integer linear programming problem, which is solved using the branch-and-bound method or the cutting plane method.
[0103] The second stage (flexibility optimization): Using the optimal comprehensive electricity cost F obtained in the first stage as a benchmark, a secondary optimization is performed within the allowable deviation ε (e.g., ε=5%), with the objective of minimizing the energy storage degradation cost. The optimization problem in the second stage can be expressed as:
[0104] min C_degradation = c_bat·Σ_{t∈T} |P_bat(t)|·Δt / E_rated
[0105] st F≤F*·(1+ε)
[0106] All constraints in Phase 1
[0107] In a preferred embodiment of the present invention, the specific indicators for minimizing energy storage degradation costs include three items:
[0108] (1) Charging and discharging power smoothness index: Σ|P_bat(t)−P_bat(t−1)|, the index penalizes the frequent jumps in charging and discharging power between adjacent time points, and reduces the switching stress of the energy storage converter (PCS);
[0109] (2) Charge-discharge cycle count index: ΣN_ch_cycle, this index penalizes the number of charge-discharge cycles and reduces battery cycle aging;
[0110] (3) State of charge deviation index: max(SOC(t)−SOC_target)², which penalizes the degree of deviation of SOC from the target value, and maintains the backup capacity and health status of the energy storage system.
[0111] The optimization objective for the second stage can be expressed as:
[0112] minω1·Σ|P_bat(t)−P_bat(t−1)|+ω2·ΣN_ch_cycle +ω3·max(SOC(t)−SOC_target)²
[0113] Wherein, ω1, ω2, and ω3 are weighting coefficients, reflecting the importance of the three indicators respectively. In a preferred embodiment of the present invention, the values of the weighting coefficients range from ω1∈[0.1, 1.0], ω2∈[0.1, 1.0], to ω3∈[0.5, 2.0]. The specific values of the weighting coefficients can be adjusted according to the type of energy storage system (such as lithium-ion batteries, lead-acid batteries, or flow batteries) and operational requirements.
[0114] By employing a lexicographical two-stage strategy, this invention ensures that the economic efficiency of the overall electricity cost is prioritized, while minimizing the energy storage degradation cost within the neighborhood of the optimal solution, thus achieving a reasonable trade-off between economic efficiency and energy storage lifespan.
[0115] In a specific embodiment, such as Figure 3 As shown, the red dashed line represents the demand limit line (e.g., 750kW). This invention reduces load peaks below this line through energy storage discharge. The green filled area represents the low-price charging process of energy storage during off-peak hours (e.g., 0:00-6:00). The blue filled area represents the energy storage discharge process during peak hours (e.g., 10:00-15:00 and 19:00-22:00). This discharge simultaneously achieves two objectives: (a) reducing demand peaks (when the load exceeds the demand limit); and (b) obtaining peak-valley arbitrage profits (discharging during peak electricity price periods). Through joint optimization, each energy storage discharge serves both demand reduction and peak-valley arbitrage objectives as much as possible, maximizing the comprehensive utilization efficiency of energy storage resources.
[0116] In some embodiments of the present invention, before solving the optimization objective, it is necessary to determine whether the current moment is within a critical demand control window. The critical demand control window refers to the time period from the current moment to the end of the demand settlement window that is less than a preset time (e.g., 2 hours). If so, in the demand reduction priority mode, the dynamic discharge power P_dis(t) = max(0, P_load(t) − D_target) is calculated, prioritizing ensuring that the grid interaction power does not exceed the demand limit. Simultaneously, it is checked whether the energy storage SOC is sufficient to support the discharge demand. If the SOC is insufficient to support the required discharge power, the discharge power is reduced proportionally, and the demand target value D_target is dynamically adjusted according to the predicted load change trend. Then, it is determined whether the current moment is during off-peak electricity hours (low electricity price periods). If so, the energy storage is controlled to charge at the optimal power. The charging power is limited by the grid interaction power margin (not exceeding the demand limit) and the maximum charging power of the energy storage P_ch_max. When charging during off-peak hours, the demand limit constraint must be comprehensively considered to avoid charging behavior causing the grid interaction power to exceed the demand limit. The system then determines whether it is currently in a peak or off-peak period (high electricity price period). If so, it controls the energy storage to discharge to obtain peak-valley arbitrage profits. The discharge power simultaneously considers electricity price, load demand, and energy storage SOC constraints. When discharging during peak periods, demand reduction targets must be taken into account, that is, demand reduction needs should be prioritized during peak load periods, and peak-valley arbitrage profits should be prioritized when the load does not exceed the demand limit. If the current period is neither off-peak nor peak (i.e., normal period), or if the energy storage SOC is in a state unsuitable for charging or discharging, the energy storage system is kept in standby mode, and P_bat(t) = 0.
[0117] A finite-time optimization problem is constructed using an N_p-step prediction window. A lexicographical two-stage strategy is employed to solve for the optimal charge-discharge sequence {P_bat(k|k), P_bat(k+1|k), …, P_bat(k+N_p-1|k)}, but only the first step result P_bat(k|k) at the current moment is executed. The grid interaction power at the current moment is recorded, and the maximum demand value within the rolling window is updated. Based on the observed maximum demand value and remaining time within the current settlement window, it is determined whether the demand limit target needs to be lowered. Specifically: when the observed demand value is close to the demand limit (e.g., reaching 90% of the demand limit), the demand target is reduced to tighten demand control; when the remaining time is insufficient to form a new demand peak, the demand target is increased to increase the flexibility of energy storage scheduling. If the current moment reaches the end of the scheduling cycle (e.g., the end of a day), the process rolls to the next moment (k=k+1), and the solution is recalculated based on the updated measured load data and energy storage status. The system calculates the total daily electricity cost (demand cost + electricity consumption cost - peak-valley arbitrage revenue + energy storage degradation cost), and outputs charging and discharging power curves and demand control effect reports for each time period, including actual maximum demand value, detailed breakdown of total electricity cost, and energy storage SOC change curve.
[0118] In this invention, the rolling optimization under the MPC framework enables the system to respond to load fluctuations and prediction errors in real time without relying on accurate all-day predictions, and has strong adaptability and robustness.
[0119] In a preferred embodiment of the invention, a dynamic demand limit adjustment step is also included. Based on the maximum demand value observed within the current settlement window and the remaining time, the demand target value D_target is adjusted online, making demand control more precise and efficient.
[0120] Specifically, let the maximum observed demand in the current settlement period be D_observed, the demand limit be D_limit, and the remaining time be T_remain. When D_observed ≥ 0.9·D_limit (i.e., the observed demand is close to the demand limit), the demand target is reduced to D_target = D_observed − ΔD to tighten demand control and prevent exceeding the demand limit. When T_remain < T_threshold (i.e., the remaining time is insufficient to form a new demand peak; the preferred value of T_threshold is 2 to 3 times the width of the demand settlement window), the demand target is increased to D_target = D_observed + ΔD' to increase the flexibility of energy storage scheduling and reduce the cost of energy storage degradation.
[0121] In a specific embodiment of the present invention, ΔD is taken as 2% to 5% of the demand limit, and ΔD' is taken as 5% to 10% of the demand limit. The dynamically adjusted demand target value D_target serves as the boundary condition of the demand limit constraint and participates in the MPC optimization solution of the next control cycle.
[0122] Through this dynamic adjustment mechanism, the demand control effect of the present invention is more precise, and it can minimize the cost of energy storage degradation while ensuring that the demand limit is not exceeded.
[0123] The following are embodiments of the apparatus described in this application, which can be used to execute the embodiments of the method described in this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the method described in this application.
[0124] Please see Figure 4 This illustration shows a schematic diagram of a microgrid energy storage collaborative dispatch device under a two-part tariff system provided in an exemplary embodiment of this application, hereinafter referred to as device 4. Device 4 can be implemented as all or part of a terminal device through software, hardware, or a combination of both. Device 4 includes:
[0125] The acquisition module 410 is used to acquire load forecast data, time-of-use electricity price information, the current state of charge of the energy storage system, and the demand metering value in the current settlement period.
[0126] The construction module 420 is used to construct a joint optimization objective function based on the load forecast data, time-of-use electricity price information, the current state of charge of the energy storage system, and the demand metering value in the current settlement period; the joint optimization objective function includes minimizing the overall electricity cost and minimizing the energy storage degradation cost;
[0127] The constraint module 430 is used to establish a set of constraint conditions, which includes power balance constraints, dynamic constraints of energy storage state of charge, upper and lower limits constraints of energy storage state of charge, limits constraints of energy storage charging and discharging power, mutual exclusion constraints of charging and discharging, and limits constraints of demand.
[0128] The scheduling module 440 is used to solve the joint optimization objective function based on the set of constraints, with the goal of minimizing the comprehensive electricity cost, to obtain a first scheduling result; and based on the first scheduling result and the set of constraints, to solve the joint optimization objective function with the goal of minimizing the energy storage degradation cost, to obtain a second scheduling result.
[0129] This application also provides a computer storage medium that can store multiple instructions, which are adapted to be loaded and executed by a processor as described above. Figure 2 The method steps of the illustrated embodiment can be found in the following documentation for detailed execution. Figure 2 The specific details of the illustrated embodiments will not be elaborated here.
[0130] This application also provides a computer program product that stores at least one instruction, which is loaded and executed by the processor to implement the microgrid energy storage collaborative scheduling method under the two-part electricity pricing system as described in the above embodiments.
[0131] Please see Figure 5 This document provides a schematic diagram of the structure of a terminal device according to an embodiment of this application. Figure 5 As shown, the terminal device 500 may include: at least one processor 501, at least one network interface 504, user interface 503, memory 505, and at least one communication bus 502.
[0132] The communication bus 502 is used to enable communication between these components.
[0133] The user interface 503 may include a display screen and a camera. Optionally, the user interface 503 may also include a standard wired interface and a wireless interface.
[0134] The network interface 504 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface).
[0135] The processor 501 may include one or more processing cores. The processor 501 connects to various parts within the terminal device 500 using various interfaces and lines, and performs various functions and processes data by running or executing instructions, programs, code sets, or instruction sets stored in the memory 505, and by calling data stored in the memory 505. Optionally, the processor 501 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 501 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content required for display; and the modem handles wireless communication. It is understood that the modem may also be implemented as a separate chip, without being integrated into the processor 501.
[0136] The memory 505 may include random access memory (RAM) or read-only memory. Optionally, the memory 505 may include a non-transitory computer-readable storage medium. The memory 505 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 505 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the above-described method embodiments, etc.; the data storage area may store data involved in the above-described method embodiments, etc. Optionally, the memory 505 may also be at least one storage device located remotely from the aforementioned processor 501. Figure 5 As shown, the memory 505, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and application programs.
[0137] exist Figure 5 In the terminal device 500 shown, the user interface 503 is mainly used to provide an input interface for the user and to obtain the user's input data; while the processor 501 can be used to call the application program stored in the memory 505 and specifically execute, such as Figure 2 The method shown can be referred to for details. Figure 2 As shown, it will not be elaborated further here.
[0138] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory, or random access memory, etc.
[0139] The above description discloses only preferred embodiments of the present invention and should not be construed as limiting the scope of the present invention. Therefore, equivalent variations made in accordance with the claims of the present invention are still within the scope of the present invention.
Claims
1. A method for coordinated dispatch of microgrid energy storage under a two-part tariff, characterized in that, include: Acquire load forecast data, time-of-use electricity price information, the current state of charge of the energy storage system, and the demand metering value for the current billing cycle; Based on the load forecast data, time-of-use electricity price information, the current state of charge of the energy storage system, and the demand metering value in the current settlement period, a joint optimization objective function is constructed; the joint optimization objective function includes minimizing the overall electricity cost and minimizing the energy storage degradation cost; Establish a set of constraints, which includes power balance constraints, dynamic constraints of energy storage state of charge, upper and lower limits constraints of energy storage state of charge, limits constraints of energy storage charging and discharging power, mutual exclusion constraints of charging and discharging, and limits constraints of demand. Based on the set of constraints, and with the goal of minimizing the overall electricity cost, the joint optimization objective function is solved to obtain the first scheduling result; Based on the first scheduling result and the set of constraints, the joint optimization objective function is solved with the goal of minimizing the energy storage degradation cost, resulting in the second scheduling result.
2. The microgrid energy storage collaborative dispatch method under a two-part tariff system as described in claim 1, characterized in that, The goal of minimizing overall electricity costs includes minimizing demand costs, minimizing electricity consumption costs, and maximizing peak-valley arbitrage profits.
3. The microgrid energy storage collaborative dispatch method under a two-part tariff system as described in claim 1, characterized in that, The joint optimization objective function is expressed by the following formula: min F=Cdemand + Cenergy- Rarbitrage + Degradation Where Cdemand = λ_d·max{P_grid(t), t∈T_settle} Cenergy =Σ{t∈T}ρ(t)·P_grid(t)·Δt Rarbitrage =Σ{t∈T_dis} [ρ(t)·_Pdis(t)·η_dis−ρ(t_ch)·P_ch(t_ch)·η_ch]·Δt Cdegradation = c_bat·Σ{t∈T} |P_bat(t)|·Δt / Erated Where: Cdemand represents demand charge, Cenergy represents energy charge, Rarbitrage represents net peak-valley arbitrage profit, Cdegradation represents energy storage degradation cost; λ_d represents demand charge, P_grid(t) represents grid interaction power at time t, ρ(t) represents energy charge at time t, P_dis(t) and P_ch(t) represent energy storage discharge and charging power, respectively, η_dis and η_ch represent discharge and charging efficiency, respectively, c_bat represents energy storage unit capacity, Erated represents energy storage rated capacity, T_dis represents total discharge time, t_ch represents charging time, and P_bat(t) represents optimal charge and discharge strategy.
4. The microgrid energy storage collaborative dispatch method under a two-part tariff system as described in claim 1, characterized in that, Obtaining the first scheduling result and the second scheduling result includes: A lexicographical two-stage strategy is adopted to solve the joint optimization objective function based on the constraint set, with the goal of minimizing the comprehensive electricity cost, to obtain a first scheduling result; based on the first scheduling result and the constraint set, the joint optimization objective function is solved with the goal of minimizing the energy storage degradation cost, to obtain a second scheduling result.
5. The microgrid energy storage collaborative dispatch method under a two-part tariff system as described in claim 1, characterized in that, The indicators for minimizing energy storage degradation costs include the smoothness of charge and discharge power, the number of charge and discharge cycles, and the deviation of state of charge.
6. The microgrid energy storage collaborative dispatch method under a two-part tariff system as described in claim 1, characterized in that, Also includes: Based on the maximum observed demand value and remaining time within the current settlement window, the demand target value is dynamically adjusted. When the observed demand value is close to the demand limit, the demand target is reduced; when the remaining time is insufficient to form a new demand peak, the demand target is increased.
7. The microgrid energy storage collaborative dispatch method under a two-part tariff system as described in claim 1, characterized in that, Also includes: The model predictive control framework is used to execute the lexicographical two-stage optimization strategy in a rolling manner. In each control cycle, the optimal charging and discharging power sequence for multiple future time periods is obtained. In the next control cycle, the optimal power sequence is solved again based on the updated load measurement data and energy storage status.
8. A microgrid energy storage collaborative dispatch device under a two-part tariff system, characterized in that, include: The acquisition module is used to acquire load forecast data, time-of-use electricity price information, the current state of charge of the energy storage system, and the demand metering value for the current billing cycle. The construction module is used to construct a joint optimization objective function based on the load forecast data, time-of-use electricity price information, the current state of charge of the energy storage system, and the demand metering value in the current settlement period; the joint optimization objective function includes minimizing the overall electricity cost and minimizing the energy storage degradation cost; The constraint module is used to establish a set of constraint conditions, which includes power balance constraints, dynamic constraints of energy storage state of charge, upper and lower limit constraints of energy storage state of charge, limit constraints of energy storage charging and discharging power, mutual exclusion constraints of charging and discharging, and demand limit constraints. The scheduling module is used to solve the joint optimization objective function based on the set of constraints, with the goal of minimizing the overall electricity cost, and obtain the first scheduling result. Based on the first scheduling result and the set of constraints, the joint optimization objective function is solved with the goal of minimizing the energy storage degradation cost, resulting in the second scheduling result.
9. An electronic device, characterized in that, include: Processor and memory; The memory stores a computer-readable program that can be executed by the processor; When the processor executes the computer-readable program, it implements the steps in the microgrid energy storage collaborative scheduling method under a two-part electricity price as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores one or more programs, which can be executed by one or more processors to implement the steps in the microgrid energy storage collaborative scheduling method under a two-part tariff as described in any one of claims 1-7.
