Multi-microgrid shared energy storage capacity planning method and system based on generalized energy storage replacement effect

By constructing a two-level planning model for shared energy storage capacity in multiple microgrids and an improved genetic algorithm, and utilizing physical-virtual dual-chromosome covariate encoding and dynamic ε-relaxation constraint rules, the problem of low resource utilization in multi-microgrid energy storage planning is solved, and the optimization of life-cycle cost minimization and power supply reliability is achieved.

CN123144153APending Publication Date: 2026-11-20ECONOMIC & TECH RES INST OF HUBEI ELECTRIC POWER COMPANY SGCC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610977999.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-02
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing multi-microgrid energy storage capacity planning methods fail to effectively utilize virtual energy storage and adjustable load resources, resulting in low utilization of system flexibility resources and poor planning performance, making it difficult to achieve a globally optimal balance between investment costs and power supply reliability.

Method used

A bi-level planning model based on the generalized energy storage substitution effect is adopted, combined with a genetic algorithm improved by physical-virtual dual-chromosome co-coding, dynamic ε-relaxation constraint rules and robust fitness mapping, to construct a multi-microgrid shared energy storage capacity planning method. Through the collaborative optimization of physical and virtual energy storage, the equivalent substitution ratio of demand-side flexibility resources is quantified, and a substitution reliability penalty cost mechanism is introduced to dynamically balance economic benefits and power supply risks.

Benefits of technology

It improves system flexibility and resource utilization, minimizes the total cost of the entire life cycle of multi-microgrid shared energy storage capacity planning, achieves the global optimal balance between investment cost and power supply reliability, and enhances planning effectiveness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123144153A_ABST
    Figure CN123144153A_ABST
Patent Text Reader

Abstract

The method and system for planning shared energy storage capacity of multiple microgrids based on generalized energy storage substitution effect, by constructing a double-layer planning model of multiple microgrid shared energy storage capacity through physical energy storage and virtual energy storage of multiple microgrids, introducing generalized energy storage substitution effect in the capacity planning stage, quantifying the equivalent substitution ratio of demand side flexibility resources to physical energy storage capacity under the premise of meeting system power supply reliability constraints, realizing scientific reduction of physical energy storage rated capacity, and introducing substitution reliability penalty cost mechanism, dynamically balancing the economic benefits brought by substitution rate improvement and system power supply risk, achieving the minimum of comprehensive total cost of multiple microgrids in whole life cycle and the global optimization of resource allocation efficiency. The design not only can utilize virtual energy storage and adjustable load resources in multiple microgrids to improve the utilization rate of flexible resources, but also can realize the global optimal balance of investment cost and power supply reliability through improved genetic algorithm, and improve the planning effect of multiple microgrid shared energy storage capacity.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to an energy storage capacity planning method, and more particularly to a multi-microgrid shared energy storage capacity planning method and system based on the generalized energy storage substitution effect. Background Technology

[0002] With the deepening implementation of the "dual carbon" goals, multi-microgrid systems have become an important vehicle for enhancing the absorption capacity of high-proportion renewable energy and improving the reliability of local power grids. In multi-microgrid systems, energy storage configuration is a core element for smoothing random fluctuations in source and load, achieving peak shaving and valley filling, and energy time-shifting. Currently, multi-microgrid energy storage capacity planning mainly adopts independent physical energy storage configurations or centralized shared energy storage models, relying on physical devices such as lithium batteries, flow batteries, and flywheels to provide regulation capabilities.

[0003] Existing planning methods take physical energy storage capacity configuration as the core optimization variable, resulting in a single planning dimension. They only optimize the capacity of physical energy storage, leading to high initial investment in physical energy storage equipment. Furthermore, the cost per kilowatt-hour is limited by charge-discharge cycle life and degradation characteristics, making it difficult to further reduce the cost per kilowatt-hour over the entire life cycle. This results in long investment recovery periods and limited economic viability for multi-microgrid projects.

[0004] Meanwhile, no collaborative substitution model between physical energy storage and virtual energy storage has been established at the planning level. Due to the lack of coupled quantification of substitution rate, reliability boundary and life cycle cost, planners cannot scientifically assess the equivalent reduction effect of virtual energy storage on physical capacity during the capacity decision-making stage, making it difficult to achieve the global optimal balance between investment cost and power supply reliability.

[0005] While this energy storage capacity planning method is feasible, it still has the following drawbacks:

[0006] 1. Ignoring virtual energy storage and adjustable load resources within microgrids leads to low utilization of system flexibility resources.

[0007] 2. The algorithm used does not establish a collaborative substitution model between physical energy storage and virtual energy storage at the planning level, and lacks coupled quantification of substitution rate, reliability boundary and full life cycle cost, making it difficult to achieve a global optimal balance between investment cost and power supply reliability, resulting in poor planning effect.

[0008] The information disclosed in this background section is intended only to enhance understanding of the overall background of this application and should not be construed as an admission or in any way implying that the information constitutes prior art known to those skilled in the art. Summary of the Invention

[0009] The purpose of this invention is to overcome the shortcomings of existing technologies, such as low system flexibility and resource utilization, and poor planning effect. It provides a multi-microgrid shared energy storage capacity planning method and system based on the generalized energy storage substitution effect, which has high system flexibility and resource utilization, and good planning effect.

[0010] To achieve the above objectives, the technical solution of the present invention is:

[0011] A method for planning shared energy storage capacity in multi-microgrid networks based on the generalized energy storage substitution effect, the energy storage capacity planning method comprising the following steps:

[0012] S1. Construct a two-layer planning model for shared energy storage capacity of multi-microgrids, which includes physical and virtual energy storage. The upper layer model of the two-layer planning model aims to minimize the total cost over the entire life cycle. The constraints of the upper layer model include generalized energy storage substitution constraints and system reliability constraints.

[0013] The lower-level model of the two-layer planning model aims to minimize the typical daily operating cost to meet the replacement requirements. The constraints of the lower-level model include virtual energy storage operation constraints, rigid constraints for achieving the replacement rate target, virtual energy storage response reliability constraints, energy balance constraints, and multi-microgrid coupling constraints.

[0014] S2. A solution model is constructed using physical-virtual dual-chromosome joint encoding as input. The solution model is based on a genetic algorithm improved by dynamic ε-relaxation constraint rules and robust fitness mapping to solve the bi-level programming model and obtain a multi-microgrid shared energy storage capacity planning scheme.

[0015] The physical-virtual dual-chromosome co-encoding is used to set the physical and virtual energy storage of multi-microgrids on different gene segments for collaborative optimization. The dynamic ε-relaxation constraint rule is used to gradually tighten the constraints of the upper-level model during the solution process. The robust fitness mapping is used to eliminate false excellent individuals in advance.

[0016] S2 includes:

[0017] S2.1, Randomly generate a number of sizes according to the physical-virtual dual-chromosome combined real number encoding method. The initial population;

[0018] S2.2, to Each individual in Solidify its rated physical energy storage capacity The substitution rate is then passed to the lower-level model, and the CPLEX solver is called to obtain the operating cost and the actual achievable substitution rate.

[0019] S2.3 Calculation based on the dynamic ε-relaxation constraint rule The degree of constraint violation for each individual in the set, combined with the current algebraic... Stratify and sort the population;

[0020] S2.4 Calculate the robust fitness of each individual based on the robust fitness mapping, and eliminate false excellent individuals;

[0021] S2.5. Use tournament selection, simulated binary crossover, and polynomial mutation to generate offspring populations;

[0022] S2.6 If the fitness of the optimal individual in the maximum number of generations or M consecutive generations meets both the cost convergence condition and the feasibility stability condition, then output the individual in the Pareto front that meets the replacement rate requirement and has the lowest total cost as the multi-microgrid shared energy storage capacity planning scheme; otherwise, return to step S2.2.

[0023] The cost convergence condition includes the relative rate of change of the optimal fitness being less than the cost convergence threshold η, which in this embodiment is η = 1 / 2. ;

[0024] The feasibility stability condition includes that the constraint violation degree of the optimal individual is satisfied. And there is no significant downward trend.

[0025] In S2, the physical-virtual dual-chromosome co-coding includes:

[0026] The decision variables of the upper-level model are divided into physical chromosomes and virtual chromosomes, and a dual-chromosome simultaneous real-number encoding is used to obtain... Each individual in The encoding structure is ;

[0027] The physical chromosomes include:

[0028] ;

[0029] The virtual chromosome includes:

[0030] ;

[0031] In the above formula, Rated power of physical energy storage; The rated capacity of physical energy storage meets the requirements. ,in This refers to the baseline physical energy storage capacity that meets the system load peak-to-valley difference and basic reliability requirements without considering virtual energy storage substitution. The generalized energy storage substitution rate coefficient represents the equivalent substitution ratio of virtual energy storage to physical energy storage capacity. The time-sharing dynamic response reliability coefficient of virtual energy storage during peak hours. The time-sharing dynamic response reliability coefficient of virtual energy storage during off-peak hours. The virtual energy storage time-sharing dynamic response reliability coefficient during normal periods;

[0032] The physical chromosome determines the hardware configuration, and the virtual chromosome determines the alternative strategy. The two are strongly coupled through the underlying runtime model.

[0033] The dynamic ε-relaxation constraint rules include:

[0034] ;

[0035] In the above formula, For individuals The degree of violation of the generalized substitution constraint; This is the generalized energy storage substitution rate coefficient; For the annual equivalent available capacity of virtual energy storage, The baseline physical energy storage rated capacity;

[0036] The generalized energy storage substitution rate coefficient include:

[0037] ;

[0038] Let the first The constraint relaxation threshold in generational evolution is:

[0039] ;

[0040] In the above formula, It is the initial relaxation factor. It is the attenuation constant;

[0041] Let the first individual for , No. individual for If an individual and All constraints are satisfied. Then compare according to Pareto non-dominated sorting and crowding degree; otherwise, when hour, Dominate ;

[0042] The robust fitness mapping includes:

[0043] ;

[0044] In the above formula, This refers to the deviation between the actual achievable substitution rate at the lower level and the instruction substitution rate at the upper level. This is a penalty amplification factor for vacancies, used to directly eliminate falsely excellent individuals at the fitness level. The falsely excellent individuals are... individuals, The preset substitution rate deviation tolerance threshold is set.

[0045] In S1, the total comprehensive cost over the entire life cycle includes the annualized investment cost of physical energy storage, the annual operating cost of virtual energy storage, and the cost of replacement reliability penalty.

[0046] The objective function of the upper-level model includes:

[0047] ;

[0048] ;

[0049] ;

[0050] ;

[0051] In the above formula, The overall total cost of the upper-level planning model; The annual investment cost of alternative optimized physical energy storage; The annual operating cost of virtual energy storage; To replace the reliability penalty cost, and to balance the system power supply reliability risk brought about by the increase in replacement rate; Unit power cost of energy storage systems; Unit capacity cost of energy storage systems; The discount rate reflects the time value of money; in this invention, r = 0.08 is used. For the lifespan of the energy storage system; Annual operating cost of virtual energy storage; for The load that users reduce at any time; for The increasing load on users at any given moment; Demand response compensation unit price, This is a reliability penalty factor; The maximum allowable replacement rate threshold is set to constrain the system's power supply reliability. The benchmark annualized investment cost of physical energy storage without virtual energy storage alternatives;

[0052] The reliability penalty coefficient include:

[0053] ;

[0054] ;

[0055] In the above formula, The annualized investment cost per unit capacity of physical energy storage;

[0056] The system reliability constraints include:

[0057] ;

[0058] The generalized energy storage substitution constraints include:

[0059] ;

[0060] ;

[0061] In the above formula, This refers to the rated capacity of physical energy storage. Virtual energy storage can effectively replace capacity on a single day.

[0062] In S1, the objective function of the lower-level model includes:

[0063] ;

[0064] ;

[0065] ;

[0066] In the above formula, Cost of purchasing electricity from the grid; Revenue from selling electricity to the grid; Fuel costs for distributed power generation from gas turbines; Physical energy storage charge and discharge lifetime loss cost is used to quantify the full life cycle degradation cost caused by frequent charge and discharge of physical energy storage. , for The charging and discharging power of the physical energy storage at all times; Cost of lifespan loss per unit charge / discharge power; Intraday effective virtual energy storage dispatch cost; , for Real-time effective virtual charging and discharging power;

[0067] The virtual energy storage operation constraints include:

[0068] Only when the system has surplus renewable energy power, and this surplus power would normally require physical energy storage charging for consumption, can the user-side flexible load be increased to effectively replace physical energy storage charging behavior through load growth:

[0069] ;

[0070] Only when there is a power deficit in the system, and this deficit would normally need to be filled by physical energy storage discharge, can the user-side load interruption be invoked to reduce power consumption, effectively replacing physical energy storage discharge with load reduction:

[0071] ;

[0072] In the above formula, This is the adjusted actual load power; This is the original base load; Virtual charging power; This refers to the virtual discharge power.

[0073] The rigid constraints for achieving the replacement rate target include:

[0074] ;

[0075] The virtual energy storage response reliability constraints include:

[0076] ;

[0077] In the above formula, For micro-network At any given moment, the maximum load power that can theoretically be reduced; For micro-network At any given moment, the theoretically maximum load power that can be increased; The time-sharing dynamic response reliability coefficient is assigned a value based on the historical response accuracy of users in different time periods and the difference in participation willingness during peak and valley periods.

[0078] The energy balance constraints include:

[0079] ;

[0080] The multi-micronetwork coupling constraints include:

[0081] ;

[0082] ;

[0083] In the above formula, Purchase power from the main grid; , The charging and discharging power of a physical energy storage system; The power generation capacity of a combined heat and power (CHP) unit; The heat power generated by the gas-fired boiler; , This refers to the cooling / heating power of the air conditioning system. This is the system's heat load or cooling load requirement; Cogeneration units in Heating power at any given time.

[0084] A multi-microgrid shared energy storage capacity planning system based on the generalized energy storage substitution effect, specifically including: a model building module and a solution module;

[0085] The model building module is used to: construct a two-layer planning model for shared energy storage capacity of multi-microgrids, which is based on the physical and virtual energy storage of multi-microgrids. The upper-layer model of the two-layer planning model aims to minimize the total cost over the entire life cycle. The constraints of the upper-layer model include generalized energy storage substitution constraints and system reliability constraints.

[0086] The lower-level model of the two-layer planning model aims to minimize the typical daily operating cost to meet the replacement requirements. The constraints of the lower-level model include virtual energy storage operation constraints, rigid constraints for achieving the replacement rate target, virtual energy storage response reliability constraints, energy balance constraints, and multi-microgrid coupling constraints.

[0087] The solution module is used to: construct a solution model with physical-virtual dual-chromosome joint encoding as input. The solution model is based on a genetic algorithm improved by dynamic ε-relaxation constraint rules and robust fitness mapping to solve the bi-level programming model and obtain a multi-microgrid shared energy storage capacity planning scheme.

[0088] The physical-virtual dual-chromosome co-encoding is used to set the physical and virtual energy storage of multi-microgrids on different gene segments for collaborative optimization. The dynamic ε-relaxation constraint rule is used to gradually tighten the constraints of the upper-level model during the solution process. The robust fitness mapping is used to eliminate false excellent individuals in advance.

[0089] The solution module is specifically used to randomly generate a scale of [value] according to the physical-virtual dual-chromosome combined real number encoding method. The initial population;

[0090] right Each individual in Solidify its rated physical energy storage capacity The substitution rate is then passed to the lower-level model, and the CPLEX solver is called to obtain the operating cost and the actual achievable substitution rate.

[0091] Calculation based on the dynamic ε-relaxation constraint rule The degree of constraint violation for each individual in the set, combined with the current algebraic... Stratify and sort the population;

[0092] The robust fitness of each individual is calculated based on the robust fitness mapping, and falsely excellent individuals are eliminated.

[0093] The offspring population is generated using tournament selection, simulated binary crossover, and polynomial mutation.

[0094] If the fitness of the optimal individual in the maximum number of generations or M consecutive generations meets both the cost convergence condition and the feasibility stability condition, then the individual with the lowest total cost and the required replacement rate in the Pareto front is output as the multi-microgrid shared energy storage capacity planning scheme; otherwise, return to step S2.2.

[0095] The cost convergence condition includes the relative rate of change of the optimal fitness being less than the cost convergence threshold η, which in this embodiment is η = 1 / 2. ;

[0096] The feasibility stability condition includes that the constraint violation degree of the optimal individual is satisfied. And there is no significant downward trend.

[0097] In the solution module, the physical-virtual dual-chromosome combined encoding includes:

[0098] The decision variables of the upper-level model are divided into physical chromosomes and virtual chromosomes, and a dual-chromosome simultaneous real-number encoding is used to obtain... Each individual in The encoding structure is ;

[0099] The physical chromosomes include:

[0100] ;

[0101] The virtual chromosome includes:

[0102] ;

[0103] In the above formula, Rated power of physical energy storage; The rated capacity of physical energy storage meets the requirements. ,in This refers to the baseline physical energy storage capacity that meets the system load peak-to-valley difference and basic reliability requirements without considering virtual energy storage substitution. The generalized energy storage substitution rate coefficient represents the equivalent substitution ratio of virtual energy storage to physical energy storage capacity. The time-sharing dynamic response reliability coefficient of virtual energy storage during peak hours. The time-sharing dynamic response reliability coefficient of virtual energy storage during off-peak hours. The virtual energy storage time-sharing dynamic response reliability coefficient during normal periods;

[0104] The physical chromosome determines the hardware configuration, and the virtual chromosome determines the alternative strategy. The two are strongly coupled through the underlying runtime model.

[0105] The dynamic ε-relaxation constraint rules include:

[0106] ;

[0107] In the above formula, For individuals The degree of violation of the generalized substitution constraint; This is the generalized energy storage substitution rate coefficient; For the annual equivalent available capacity of virtual energy storage, The baseline physical energy storage rated capacity;

[0108] The generalized energy storage substitution rate coefficient include:

[0109] ;

[0110] Let the first The constraint relaxation threshold in generational evolution is:

[0111] ;

[0112] In the above formula, It is the initial relaxation factor. It is the attenuation constant;

[0113] Let the first individual for , No. individual for If an individual and All constraints are satisfied. Then compare according to Pareto non-dominated sorting and crowding degree; otherwise, when hour, Dominate ;

[0114] The robust fitness mapping includes:

[0115] ;

[0116] In the above formula, This refers to the deviation between the actual achievable substitution rate at the lower level and the instruction substitution rate at the upper level. This is a penalty amplification factor for vacancies, used to directly eliminate falsely excellent individuals at the fitness level. The falsely excellent individuals are... individuals, The preset substitution rate deviation tolerance threshold is set.

[0117] In the model building module, the total lifecycle cost includes the annualized investment cost of physical energy storage, the annual operating cost of virtual energy storage, and the cost of replacement reliability penalty.

[0118] The objective function of the upper-level model includes:

[0119] ;

[0120] ;

[0121] ;

[0122] ;

[0123] In the above formula, The overall total cost of the upper-level planning model; The annual investment cost of alternative optimized physical energy storage; The annual operating cost of virtual energy storage; To replace the reliability penalty cost, and to balance the system power supply reliability risk brought about by the increase in replacement rate; Unit power cost of energy storage systems; Unit capacity cost of energy storage systems; The discount rate reflects the time value of money; in this invention, r = 0.08 is used. For the lifespan of the energy storage system; Annual operating cost of virtual energy storage; for The load that users reduce at any time; for The increasing load on users at any given moment; Demand response compensation unit price, This is a reliability penalty factor; The maximum allowable replacement rate threshold is set to constrain the system's power supply reliability. The benchmark annualized investment cost of physical energy storage without virtual energy storage alternatives;

[0124] The reliability penalty coefficient include:

[0125] ;

[0126] ;

[0127] In the above formula, The annualized investment cost per unit capacity of physical energy storage;

[0128] The system reliability constraints include:

[0129] ;

[0130] The generalized energy storage substitution constraints include:

[0131] ;

[0132] ;

[0133] In the above formula, This refers to the rated capacity of physical energy storage. Virtual energy storage can effectively replace capacity on a single day.

[0134] In the model building module, the objective function of the lower-level model includes:

[0135] ;

[0136] ;

[0137] ;

[0138] In the above formula, Cost of purchasing electricity from the grid; Revenue from selling electricity to the grid; Fuel costs for distributed power generation from gas turbines; Physical energy storage charge and discharge lifetime loss cost is used to quantify the full life cycle degradation cost caused by frequent charge and discharge of physical energy storage. , for The charging and discharging power of the physical energy storage at all times; Cost of lifespan loss per unit charge / discharge power; Intraday effective virtual energy storage dispatch cost; , for Real-time effective virtual charging and discharging power;

[0139] The virtual energy storage operation constraints include:

[0140] Only when the system has surplus renewable energy power, and this surplus power would normally require physical energy storage charging for consumption, can the user-side flexible load be increased to effectively replace physical energy storage charging behavior through load growth:

[0141] ;

[0142] Only when there is a power deficit in the system, and this deficit would normally need to be filled by physical energy storage discharge, can the user-side load interruption be invoked to reduce power consumption, effectively replacing physical energy storage discharge with load reduction:

[0143] ;

[0144] In the above formula, This is the adjusted actual load power; This is the original base load; Virtual charging power; This refers to the virtual discharge power.

[0145] The rigid constraints for achieving the replacement rate target include:

[0146] ;

[0147] The virtual energy storage response reliability constraints include:

[0148] ;

[0149] In the above formula, For micro-network At any given moment, the maximum load power that can theoretically be reduced; For micro-network At any given moment, the theoretically maximum load power that can be increased; The time-sharing dynamic response reliability coefficient is assigned a value based on the historical response accuracy of users in different time periods and the difference in participation willingness during peak and valley periods.

[0150] The energy balance constraints include:

[0151] ;

[0152] The multi-micronetwork coupling constraints include:

[0153] ;

[0154] ;

[0155] In the above formula, Purchase power from the main grid; , The charging and discharging power of a physical energy storage system; The power generation capacity of a combined heat and power (CHP) unit; The heat power generated by the gas-fired boiler; , This refers to the cooling / heating power of the air conditioning system. This is the system's heat load or cooling load requirement; Cogeneration units in Heating power at any given time.

[0156] Compared with the prior art, the beneficial effects of the present invention are as follows:

[0157] 1. This invention discloses a multi-microgrid shared energy storage capacity planning method based on the generalized energy storage substitution effect. A two-layer planning model for shared energy storage capacity is constructed for both physical and virtual energy storage within the multi-microgrid. During the capacity planning stage, the generalized energy storage substitution effect is introduced. Under the premise of meeting system power supply reliability constraints, the equivalent substitution ratio of demand-side flexibility resources for physical energy storage capacity is quantified, achieving a scientific reduction in the rated capacity of physical energy storage. Simultaneously, a substitution reliability penalty cost mechanism is introduced to dynamically balance the economic benefits of increased substitution rates with system power supply risks, ultimately minimizing the overall total cost of the multi-microgrid throughout its lifecycle and achieving globally optimal resource allocation efficiency. Therefore, this design can fully utilize virtual energy storage and adjustable load resources within the multi-microgrid, effectively improving the utilization rate of system flexibility resources.

[0158] 2. In this invention, a multi-microgrid shared energy storage capacity planning method based on the generalized energy storage substitution effect, the genetic algorithm is improved through physical-virtual dual-chromosome simultaneous encoding, dynamic ε-relaxation constraint rules, and robust fitness mapping to obtain a solution model. Physical-virtual dual-chromosome simultaneous encoding is used to collaboratively optimize the physical and virtual energy storage of the multi-microgrid by setting them on different gene segments. Dynamic ε-relaxation constraint rules are used to gradually tighten the constraints of the upper-level model during the solution process. Robust fitness mapping is used to eliminate falsely excellent individuals in advance. The solution model is based on solving a two-level planning model to obtain a multi-microgrid shared energy storage capacity planning scheme. Therefore, this design can achieve a globally optimal balance between investment cost and power supply reliability by improving the genetic algorithm, effectively improving the planning effect of multi-microgrid shared energy storage capacity. Attached Figure Description

[0159] Figure 1 This is a flowchart of the method described in this invention.

[0160] Figure 2 This is a structural diagram of the system described in this invention.

[0161] Figure 3 This is a two-layer planning flowchart for the generalized energy storage collaborative configuration in Example 1.

[0162] Figure 4 This is a generalized energy storage capacity configuration diagram in Example 2.

[0163] Figure 5 This is a schematic diagram of the physical energy storage charging and discharging and energy state in Example 2.

[0164] Figure 6 This is a schematic diagram of the total demand response power in Example 2.

[0165] Figure 7 This is a diagram of the device described in Example 4. Detailed Implementation

[0166] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0167] Example 1:

[0168] See Figure 1 and Figure 3 A method for planning shared energy storage capacity in multi-microgrid networks based on the generalized energy storage substitution effect, the energy storage capacity planning method comprising the following steps:

[0169] S1. Construct a two-layer planning model for shared energy storage capacity of multi-microgrids, which includes physical and virtual energy storage. The upper layer model of the two-layer planning model aims to minimize the total cost over the entire life cycle. The constraints of the upper layer model include generalized energy storage substitution constraints and system reliability constraints.

[0170] The lower-level model of the two-layer planning model aims to minimize the typical daily operating cost to meet the replacement requirements. The constraints of the lower-level model include virtual energy storage operation constraints, rigid constraints for achieving the replacement rate target, virtual energy storage response reliability constraints, energy balance constraints, and multi-microgrid coupling constraints.

[0171] S2. A solution model is constructed using physical-virtual dual-chromosome joint encoding as input. The solution model is based on a genetic algorithm improved by dynamic ε-relaxation constraint rules and robust fitness mapping to solve the bi-level programming model and obtain a multi-microgrid shared energy storage capacity planning scheme.

[0172] The physical-virtual dual-chromosome co-encoding is used to set the physical and virtual energy storage of multi-microgrids on different gene segments for collaborative optimization. The dynamic ε-relaxation constraint rule is used to gradually tighten the constraints of the upper-level model during the solution process. The robust fitness mapping is used to eliminate false excellent individuals in advance.

[0173] S2 includes:

[0174] S2.1, Randomly generate a number of sizes according to the physical-virtual dual-chromosome combined real number encoding method. The initial population;

[0175] S2.2, to Each individual in Solidify its rated physical energy storage capacity The substitution rate is then passed to the lower-level model, and the CPLEX solver is called to obtain the operating cost and the actual achievable substitution rate.

[0176] S2.3 Calculation based on the dynamic ε-relaxation constraint rule The degree of constraint violation for each individual in the set, combined with the current algebraic... Stratify and sort the population;

[0177] S2.4 Calculate the robust fitness of each individual based on the robust fitness mapping, and eliminate false excellent individuals;

[0178] S2.5. Use tournament selection, simulated binary crossover, and polynomial mutation to generate offspring populations;

[0179] S2.6 If the fitness of the optimal individual in the maximum number of generations or M consecutive generations meets both the cost convergence condition and the feasibility stability condition, then output the individual in the Pareto front that meets the replacement rate requirement and has the lowest total cost as the multi-microgrid shared energy storage capacity planning scheme; otherwise, return to step S2.2.

[0180] The cost convergence condition includes the relative rate of change of the optimal fitness being less than the cost convergence threshold η, which in this embodiment is η = 1 / 2. ;

[0181] The feasibility stability condition includes that the constraint violation degree of the optimal individual is satisfied. And there is no significant downward trend.

[0182] In S2, the physical-virtual dual-chromosome co-coding includes:

[0183] The decision variables of the upper-level model are divided into physical chromosomes and virtual chromosomes, and a dual-chromosome simultaneous real-number encoding is used to obtain... Each individual in The encoding structure is ;

[0184] The definition template of the coding structure stipulates that the genotype of each individual is composed of "physical chromosome + virtual chromosome", which is equivalent to a defined "data structure". A specific individual x in the population has a genotype that strictly follows the definition template. Encode the structure;

[0185] The physical chromosomes include:

[0186] ;

[0187] The virtual chromosome includes:

[0188] ;

[0189] In the above formula, Rated power of physical energy storage; The rated capacity of physical energy storage meets the requirements. ,in This refers to the baseline physical energy storage capacity that meets the system load peak-to-valley difference and basic reliability requirements without considering virtual energy storage substitution. The generalized energy storage substitution rate coefficient represents the equivalent substitution ratio of virtual energy storage to physical energy storage capacity. The time-sharing dynamic response reliability coefficient of virtual energy storage during peak hours. The time-sharing dynamic response reliability coefficient of virtual energy storage during off-peak hours. The virtual energy storage time-sharing dynamic response reliability coefficient during normal periods is 0.6-1.

[0190] The physical chromosome determines the hardware configuration, and the virtual chromosome determines the alternative strategy. The two are strongly coupled through the underlying runtime model.

[0191] During genetic operations (selection, crossover, mutation), physical chromosomes and virtual chromosomes are processed independently. Because physical energy storage capacity is no longer correlated with... Within the same gene segment, the mutation operator will not be ignored due to the enormous value of the physical energy storage capacity. Minor adjustments. Furthermore, crossover operations can preserve desirable gene fragments in both the physical and virtual domains. For example, a physically conservative but virtually aggressive (high) configuration... An individual with a high reliability coefficient is subjected to bichromosome crossover with an individual with an aggressive physical configuration but a conservative virtual configuration. The offspring may inherit the former's superior virtual configuration and the latter's low-cost physical configuration, rapidly combining to create a high-quality solution with "low physical capacity, high virtual substitution rate, and feasibility." This physical-virtual collaborative optimization mode is extremely difficult to achieve under single-chromosome encoding due to gene segment locking. Bichromosome co-encoding enables the algorithm to explore the optimal combination of physical energy storage capacity and generalized energy storage substitution rate in different domains, effectively avoiding evolutionary stagnation caused by dimensional differences and coupling interlocks, and significantly improving the search efficiency for the globally optimal solution of "high substitution rate, low physical capacity."

[0192] The dynamic ε-relaxation constraint rules include:

[0193] ;

[0194] In the above formula, For individuals The degree of violation of the generalized substitution constraint; This is the generalized energy storage substitution rate coefficient; For the annual equivalent available capacity of virtual energy storage, The baseline physical energy storage rated capacity;

[0195] The generalized energy storage substitution rate coefficient include:

[0196] ;

[0197] The benchmark physical energy storage rated capacity include:

[0198]

[0199]

[0200]

[0201] In the above formula, The baseline capacity is required to meet the system's peak shaving and valley filling requirements; For the first Peak load periods of the day; For the first sky The original load power at any given time; The maximum permissible power purchase capacity for the power grid and multi-microgrid interconnection line; For the first The period of renewable energy curtailment; For the first sky Total output of new energy sources at all times; This is the maximum allowable power output of the tie line to be sold to the grid.

[0202] The annual equivalent available capacity of the virtual energy storage

[0203] ;

[0204] ;

[0205] ;

[0206] In the above formula, The virtual energy storage response reliability coefficient is obtained based on the historical response accuracy of adjustable loads and statistics on user participation willingness. The maximum equivalent charging capacity of virtual energy storage per day; for The maximum load power that can be added to the user side at any given time; This represents the maximum equivalent discharge capacity of virtual energy storage per day. for The maximum load power that can be reduced on the user side at any given time;

[0207] Let the first The constraint relaxation threshold in generational evolution is:

[0208] ;

[0209] In the above formula, It is the initial relaxation factor, which is taken in this invention. , It is the decay constant (taken as 1 / 3 of the maximum number of iterations);

[0210] Let the first individual for , No. individual for If an individual and All constraints are satisfied. Then compare according to Pareto non-dominated order and crowding; otherwise, when hour, Dominate ;

[0211] In multi-microgrid energy storage planning, there are strict constraints, especially the aforementioned system reliability constraints, which is a typical "narrow feasible region" problem. Standard genetic algorithms follow the hard criterion that "feasible solutions absolutely dominate infeasible solutions." If most of the initial population falls into the infeasible region (for example, the replacement rate is set too high, resulting in too little physical energy storage), the algorithm will immediately eliminate these individuals, leading to a loss of population diversity and getting stuck in a local optimum (i.e., conservatively configuring a large amount of physical energy storage).

[0212] The dynamic ε-relaxation constraint rule described in this embodiment has strict constraints in multi-microgrid energy storage planning, especially the aforementioned system reliability constraint, which is a typical "narrow feasible region" problem. Standard genetic algorithms follow the hard criterion that "feasible solutions absolutely dominate infeasible solutions." If most of the initial population falls into the infeasible region (e.g., the replacement rate is set too high, resulting in too low physical energy storage), the algorithm will immediately eliminate these individuals, leading to a loss of population diversity and getting stuck in a local optimum (i.e., conservatively configuring a large amount of physical energy storage).

[0213] The robust fitness mapping includes:

[0214] ;

[0215] In the above formula, This refers to the deviation between the actual achievable substitution rate at the lower level and the instruction substitution rate at the upper level. The penalty amplification factor for the shortfall is taken in this embodiment. This is used to directly eliminate falsely excellent individuals at the fitness level, where the falsely excellent individuals are... individuals, To preset the tolerance threshold for substitution rate deviation, this embodiment takes... .

[0216] The replacement rate given by the upper-level planning model is a "command value". However, in the lower-level operational model, the actual output of virtual energy storage is limited by the historical response accuracy of users. If the upper-level model provides... If the power level is too high, exceeding the actual alternative capabilities available to the lower layers, the system will face power supply risks.

[0217] Standard genetic algorithms only calculate the objective function value and cannot directly perceive this "disconnect between planning and operation". Without intervention, the algorithm may select falsely excellent individuals that have "high nominal replacement rates but cannot be achieved in actual operation (leading to power outage penalties)". This patent introduces a shortage penalty mechanism in fitness calculation, and the constructed robust fitness function will return the replacement shortage penalty cost rather than the normal operation cost;

[0218] The replacement rate given by the upper-level planning model is a "command value". However, in the lower-level operational model, the actual output of virtual energy storage is limited by the historical response accuracy of users. If the upper-level model provides... If the power level is too high, exceeding the actual alternative capabilities available to the lower layers, the system will face power supply risks.

[0219] When the substitution rate of upper-level instructions exceeds the actual capacity of lower-level instructions, the fitness function will deteriorate sharply due to the penalty term; even if the scheme appears to have little physical energy storage investment on paper, its fitness ranking will plummet after the addition of a huge penalty term.

[0220] Beneficial effects: Closed-loop feedback: A strong feedback mechanism between the "planning layer" and the "operation layer" is established to ensure that the planned virtual energy storage capacity is based on the actual response capabilities of users, rather than theoretical speculation.

[0221] Risk mitigation: It directly eliminates dangerous schemes that excessively reduce physical energy storage, leading to the inability of the system to balance power in actual operation, thus ensuring the feasibility and robustness of the final plan.

[0222] In S1, the total comprehensive cost over the entire life cycle includes the annualized investment cost of physical energy storage, the annual operating cost of virtual energy storage, and the cost of replacement reliability penalty.

[0223] The objective function of the upper-level model includes:

[0224] ;

[0225] ;

[0226] ;

[0227] ;

[0228] In the above formula, The overall total cost of the upper-level planning model; The annual investment cost of alternative optimized physical energy storage; The annual operating cost of virtual energy storage; To replace the reliability penalty cost, and to balance the system power supply reliability risk brought about by the increase in replacement rate; Unit power cost of energy storage systems; Unit capacity cost of energy storage systems; The discount rate reflects the time value of money; in this invention, r = 0.08 is used. For the lifespan of the energy storage system; Annual operating cost of virtual energy storage; for The load that users reduce at any time; for The increasing load on users at any given moment; Demand response compensation unit price, This is a reliability penalty factor; The maximum allowable replacement rate threshold for system power supply reliability constraints is set to ensure that the physical energy storage capacity is not less than 30% of the baseline capacity, as specified below. It is 0.7; The benchmark annualized investment cost of physical energy storage without virtual energy storage alternatives;

[0229] The reliability penalty coefficient include:

[0230] ;

[0231] ;

[0232] In the above formula, The annualized investment cost per unit capacity of physical energy storage;

[0233] The system reliability constraints include:

[0234] ;

[0235] The generalized energy storage substitution constraints include:

[0236] ;

[0237] ;

[0238] In the above formula, This refers to the rated capacity of physical energy storage. Virtual energy storage can effectively replace capacity on a single day.

[0239] In S1, the objective function of the lower-level model includes:

[0240] ;

[0241] ;

[0242] ;

[0243] In the above formula, Cost of purchasing electricity from the grid; Revenue from selling electricity to the grid; Fuel costs for distributed power generation from gas turbines; Physical energy storage charge and discharge lifetime loss cost is used to quantify the full life cycle degradation cost caused by frequent charge and discharge of physical energy storage. , for The charging and discharging power of the physical energy storage at all times; Cost of lifespan loss per unit charge / discharge power; Intraday effective virtual energy storage dispatch cost; , for Real-time effective virtual charging and discharging power;

[0244] The virtual energy storage operation constraints include:

[0245] Only when the system has surplus renewable energy power, and this surplus power would normally require physical energy storage charging for consumption, can the user-side flexible load be increased to effectively replace physical energy storage charging behavior through load growth:

[0246] ;

[0247] Only when there is a power deficit in the system, and this deficit would normally need to be filled by physical energy storage discharge, can the user-side load interruption be invoked to reduce power consumption, effectively replacing physical energy storage discharge with load reduction:

[0248] ;

[0249] In the above formula, This is the adjusted actual load power; This is the original base load; Virtual charging power; This refers to the virtual discharge power.

[0250] The rigid constraints for achieving the replacement rate target include:

[0251] ;

[0252] The virtual energy storage response reliability constraints include:

[0253] ;

[0254] In the above formula, For micro-network At any given moment, the maximum load power that can theoretically be reduced; For micro-network At any given moment, the theoretically maximum load power that can be increased; The reliability coefficient is a time-sharing dynamic response coefficient, which is assigned a value based on the historical response accuracy of users in different time periods and the difference in participation willingness during peak and off-peak periods (for example, the reliability coefficient is 0.8 when users have low response willingness during peak periods and 0.95 when they are in off-peak periods).

[0255] The energy balance constraints include:

[0256] ;

[0257] The multi-micronetwork coupling constraints include:

[0258] ;

[0259] ;

[0260] In the above formula, Purchase power from the main grid; , The charging and discharging power of a physical energy storage system; The power generation capacity of a combined heat and power (CHP) unit; The heat power generated by the gas-fired boiler; , This refers to the cooling / heating power of the air conditioning system. This is the system's heat load or cooling load requirement; Cogeneration units in Heating power at any given time.

[0261] Example 2:

[0262] To verify the energy storage capacity planning method proposed in Example 1, this example selected an industrial park as the test object and conducted a typical daily simulation analysis, the details of which are as follows:

[0263] Under the optimized scheduling strategy of this invention, the system achieves efficient allocation of generalized energy storage resources. Table 1 shows the capacity and power configuration results of physical energy storage and virtual energy storage.

[0264] ;

[0265] As shown in the table above, the system is configured with 10,121 kWh of physical energy storage, while fully utilizing 12,139 kWh of virtual energy storage resources. This indicates that, through a two-layer optimization model and an equivalent substitution mechanism, virtual energy storage undertakes a significant proportion of the regulation tasks, effectively replacing some of the expensive physical energy storage capacity. Under this configuration, although demand response incurs certain annual costs, the system's total annual operating cost is controlled at 3.94 million yuan, verifying that this planning method, while ensuring system reliability, achieves a significant improvement in economic efficiency through synergy with generalized energy storage.

[0266] See Figure 4 This study demonstrates the capacity optimization effect under the generalized energy storage collaborative configuration. By comparing the capacity of the "baseline physical" and the "optimized physical", it clearly shows that after introducing virtual energy storage to participate in the planning-level collaborative configuration, the system's dependence on expensive physical energy storage is significantly reduced. The planned capacity is effectively reduced from the baseline of 14936kWh to 10121kWh, achieving a comprehensive substitution rate of 32.2%. This optimization is not at the expense of regulation capability, but is fully supplemented and accurately substituted by the "virtual equivalent" capacity (the virtual capacity is greater than the actual substitution amount to take into account the reasonable reservation of user-side response reliability). Ultimately, under the premise of ensuring system flexibility and power supply reliability, the collaborative optimization of generalized energy storage is achieved with a more streamlined actual physical configuration, which strongly verifies the core innovative advantages of this patented method in terms of economy and resource utilization.

[0267] See Figure 5 This study demonstrates the typical daily operating characteristics of physical energy storage in a generalized energy storage system. By establishing a planning-level physical-virtual energy storage quantitative substitution mechanism and time-series equivalent scheduling rules, most regulation tasks are transferred to low-cost virtual energy storage. This enables physical energy storage to exhibit optimized operating characteristics of "centralized charging and centralized discharging"—charging is precisely matched to maximize the absorption of new energy during peak photovoltaic power generation periods in the daytime, while discharging is concentrated during peak load periods in the evening to fill the gap. There are no frequent small-amplitude charging and discharging actions throughout the process, and the SOC curve transitions smoothly and always remains above the safety threshold. This not only significantly reduces the total life cycle loss cost of physical energy storage but also strictly adheres to the system reliability baseline, clearly demonstrating the advantages of the collaborative architecture of "virtual as the main component and physical as the guarantee".

[0268] See Figure 6This study depicts the typical daily response characteristics of virtual energy storage (i.e., total demand response power) in a generalized energy storage system. The curves show that the response power is almost zero from 0-6 AM, fluctuates slightly from 7-10 AM, rapidly climbs to a peak of approximately 650 kW from 3-6 PM, and then gradually declines to around 50 kW at midnight. This peak value precisely matches the traditional afternoon to evening peak electricity consumption of industrial and commercial microgrids, corresponding to the period when physical energy storage would normally need to discharge centrally to fill power gaps, directly reflecting the time-series equivalent substitution rule. The low response intensity during off-peak periods aligns with the operating conditions of sufficient photovoltaic output and no significant system deficit, while also conforming to the distribution pattern of the time-sharing response reliability coefficient on the user side. This effectively replaces the regulation task of physical energy storage while also considering the economy and feasibility of dispatching.

[0269] Example 3:

[0270] See Figure 2 A multi-microgrid shared energy storage capacity planning system based on the generalized energy storage substitution effect, specifically including: a model building module and a solution module;

[0271] The model building module is used to: construct a two-layer planning model for shared energy storage capacity of multi-microgrids, which is based on the physical and virtual energy storage of multi-microgrids. The upper-layer model of the two-layer planning model aims to minimize the total cost over the entire life cycle. The constraints of the upper-layer model include generalized energy storage substitution constraints and system reliability constraints.

[0272] The lower-level model of the two-layer planning model aims to minimize the typical daily operating cost to meet the replacement requirements. The constraints of the lower-level model include virtual energy storage operation constraints, rigid constraints for achieving the replacement rate target, virtual energy storage response reliability constraints, energy balance constraints, and multi-microgrid coupling constraints.

[0273] The solution module is used to: construct a solution model with physical-virtual dual-chromosome joint encoding as input. The solution model is based on a genetic algorithm improved by dynamic ε-relaxation constraint rules and robust fitness mapping to solve the bi-level programming model and obtain a multi-microgrid shared energy storage capacity planning scheme.

[0274] The physical-virtual dual-chromosome co-encoding is used to set the physical and virtual energy storage of multi-microgrids on different gene segments for collaborative optimization. The dynamic ε-relaxation constraint rule is used to gradually tighten the constraints of the upper-level model during the solution process. The robust fitness mapping is used to eliminate false excellent individuals in advance.

[0275] The solution module is specifically used to randomly generate a scale of [value] according to the physical-virtual dual-chromosome combined real number encoding method. The initial population;

[0276] right Each individual in Solidify its rated physical energy storage capacity The substitution rate is then passed to the lower-level model, and the CPLEX solver is called to obtain the operating cost and the actual achievable substitution rate.

[0277] Calculation based on the dynamic ε-relaxation constraint rule The degree of constraint violation for each individual in the set, combined with the current algebraic... Stratify and sort the population;

[0278] The robust fitness of each individual is calculated based on the robust fitness mapping, and falsely excellent individuals are eliminated.

[0279] The offspring population is generated using tournament selection, simulated binary crossover, and polynomial mutation.

[0280] If the fitness of the optimal individual in the maximum number of generations or M consecutive generations meets both the cost convergence condition and the feasibility stability condition, then the individual with the lowest total cost and the required replacement rate in the Pareto front is output as the multi-microgrid shared energy storage capacity planning scheme; otherwise, return to step S2.2.

[0281] The cost convergence condition includes the relative rate of change of the optimal fitness being less than the cost convergence threshold η, which in this embodiment is η = 1 / 2. ;

[0282] The feasibility stability condition includes that the constraint violation degree of the optimal individual is satisfied. And there is no significant downward trend.

[0283] In the solution module, the physical-virtual dual-chromosome combined encoding includes:

[0284] The decision variables of the upper-level model are divided into physical chromosomes and virtual chromosomes, and a dual-chromosome simultaneous real-number encoding is used to obtain... Each individual in The encoding structure is ;

[0285] The physical chromosomes include:

[0286] ;

[0287] The virtual chromosome includes:

[0288] ;

[0289] In the above formula, Rated power of physical energy storage; The rated capacity of physical energy storage meets the requirements. ,in This refers to the baseline physical energy storage capacity that meets the system load peak-to-valley difference and basic reliability requirements without considering virtual energy storage substitution. The generalized energy storage substitution rate coefficient represents the equivalent substitution ratio of virtual energy storage to physical energy storage capacity. The time-sharing dynamic response reliability coefficient of virtual energy storage during peak hours. The time-sharing dynamic response reliability coefficient of virtual energy storage during off-peak hours. The virtual energy storage time-sharing dynamic response reliability coefficient during normal periods is 0.6-1.

[0290] The physical chromosome determines the hardware configuration, and the virtual chromosome determines the alternative strategy. The two are strongly coupled through the underlying runtime model.

[0291] The dynamic ε-relaxation constraint rules include:

[0292] ;

[0293] In the above formula, For individuals The degree of violation of the generalized substitution constraint; This is the generalized energy storage substitution rate coefficient; For the annual equivalent available capacity of virtual energy storage, The baseline physical energy storage rated capacity;

[0294] The generalized energy storage substitution rate coefficient include:

[0295] ;

[0296] The benchmark physical energy storage rated capacity include:

[0297]

[0298]

[0299]

[0300] In the above formula, The baseline capacity is required to meet the system's peak shaving and valley filling requirements; For the first Peak load periods of the day; For the first sky The original load power at any given time; The maximum permissible power purchase capacity for the power grid and multi-microgrid interconnection line; For the first The period of renewable energy curtailment; For the first sky Total output of new energy sources at all times; This is the maximum allowable power output of the tie line to be sold to the grid.

[0301] The annual equivalent available capacity of the virtual energy storage

[0302] ;

[0303] ;

[0304] ;

[0305] In the above formula, The virtual energy storage response reliability coefficient is obtained based on the historical response accuracy of adjustable loads and statistics on user participation willingness. The maximum equivalent charging capacity of virtual energy storage per day; for The maximum load power that can be added to the user side at any given time; This represents the maximum equivalent discharge capacity of virtual energy storage per day. for The maximum load power that can be reduced on the user side at any given time;

[0306] Let the first The constraint relaxation threshold in generational evolution is:

[0307] ;

[0308] In the above formula, It is the initial relaxation factor, which is taken in this invention. , It is the decay constant (taken as 1 / 3 of the maximum number of iterations);

[0309] Let the first individual for , No. individual for If an individual and All constraints are satisfied. Then compare according to Pareto non-dominated order and crowding; otherwise, when hour, Dominate ;

[0310] The robust fitness mapping includes:

[0311] ;

[0312] In the above formula, This refers to the deviation between the actual achievable substitution rate at the lower level and the instruction substitution rate at the upper level. The penalty amplification factor for the shortfall is taken in this embodiment. This is used to directly eliminate falsely excellent individuals at the fitness level, where the falsely excellent individuals are... individuals, To preset the tolerance threshold for substitution rate deviation, this embodiment takes... .

[0313] In the model building module, the total lifecycle cost includes the annualized investment cost of physical energy storage, the annual operating cost of virtual energy storage, and the cost of replacement reliability penalty.

[0314] The objective function of the upper-level model includes:

[0315] ;

[0316] ;

[0317] ;

[0318] ;

[0319] In the above formula, The overall total cost of the upper-level planning model; The annual investment cost of alternative optimized physical energy storage; The annual operating cost of virtual energy storage; To replace the reliability penalty cost, and to balance the system power supply reliability risk brought about by the increase in replacement rate; Unit power cost of energy storage systems; Unit capacity cost of energy storage systems; The discount rate reflects the time value of money; in this invention, r = 0.08 is used. For the lifespan of the energy storage system; Annual operating cost of virtual energy storage; for The load that users reduce at any time; for The increasing load on users at any given moment; Demand response compensation unit price, This is a reliability penalty factor; The maximum allowable replacement rate threshold for system power supply reliability constraints is set to ensure that the physical energy storage capacity is not less than 30% of the baseline capacity, as specified below. It is 0.7; The benchmark annualized investment cost of physical energy storage without virtual energy storage alternatives;

[0320] The reliability penalty coefficient include:

[0321] ;

[0322] ;

[0323] In the above formula, The annualized investment cost per unit capacity of physical energy storage;

[0324] The system reliability constraints include:

[0325] ;

[0326] The generalized energy storage substitution constraints include:

[0327] ;

[0328] ;

[0329] In the above formula, This refers to the rated capacity of physical energy storage. Virtual energy storage can effectively replace capacity on a single day.

[0330] In the model building module, the objective function of the lower-level model includes:

[0331] ;

[0332] ;

[0333] ;

[0334] In the above formula, Cost of purchasing electricity from the grid; Revenue from selling electricity to the grid; Fuel costs for distributed power generation from gas turbines; Physical energy storage charge and discharge lifetime loss cost is used to quantify the full life cycle degradation cost caused by frequent charge and discharge of physical energy storage. , for The charging and discharging power of the physical energy storage at all times; Cost of lifespan loss per unit charge / discharge power; Intraday effective virtual energy storage dispatch cost; , for Real-time effective virtual charging and discharging power;

[0335] The virtual energy storage operation constraints include:

[0336] Only when the system has surplus renewable energy power, and this surplus power would normally require physical energy storage charging for consumption, can the user-side flexible load be increased to effectively replace physical energy storage charging behavior through load growth:

[0337] ;

[0338] Only when there is a power deficit in the system, and this deficit would normally need to be filled by physical energy storage discharge, can the user-side load interruption be invoked to reduce power consumption, effectively replacing physical energy storage discharge with load reduction:

[0339] ;

[0340] In the above formula, This is the adjusted actual load power; This is the original base load; Virtual charging power; This refers to the virtual discharge power.

[0341] The rigid constraints for achieving the replacement rate target include:

[0342] ;

[0343] The virtual energy storage response reliability constraints include:

[0344] ;

[0345] In the above formula, For micro-network At any given moment, the maximum load power that can theoretically be reduced; For micro-network At any given moment, the theoretically maximum load power that can be increased; The reliability coefficient is a time-sharing dynamic response coefficient, which is assigned a value based on the historical response accuracy of users in different time periods and the difference in participation willingness during peak and off-peak periods (for example, the reliability coefficient is 0.8 when users have low response willingness during peak periods and 0.95 when they are in off-peak periods).

[0346] The energy balance constraints include:

[0347] ;

[0348] The multi-micronetwork coupling constraints include:

[0349] ;

[0350] ;

[0351] In the above formula, Purchase power from the main grid; , The charging and discharging power of a physical energy storage system; The power generation capacity of a combined heat and power (CHP) unit; The heat power generated by the gas-fired boiler; , This refers to the cooling / heating power of the air conditioning system. This is the system's heat load or cooling load requirement; Cogeneration units in Heating power at any given time.

[0352] Example 4:

[0353] See Figure 7 A multi-microgrid shared energy storage capacity planning device based on the generalized energy storage substitution effect, characterized in that it includes a memory and a processor, wherein the memory is used to store computer program code and transmit the computer program code to the processor;

[0354] The processor is configured to execute, according to instructions in the computer program code, the multi-microgrid shared energy storage capacity planning method based on the generalized energy storage substitution effect as described in Embodiment 1.

[0355] Example 5:

[0356] A computer program product includes a computer program that is executed by a processor as described in Example 1, which is a multi-microgrid shared energy storage capacity planning method based on the generalized energy storage substitution effect.

[0357] The above description is only a preferred embodiment of the present invention. The scope of protection of the present invention is not limited to the above embodiments. Any equivalent modifications or changes made by those skilled in the art based on the content disclosed in the present invention should be included within the scope of protection set forth in the claims.

Claims

1. A method for planning shared energy storage capacity in multi-microgrid networks based on the generalized energy storage substitution effect, characterized in that, The energy storage capacity planning method includes the following steps: S1. Construct a two-layer planning model for shared energy storage capacity of multi-microgrids, which includes physical and virtual energy storage. The upper layer model of the two-layer planning model aims to minimize the total cost over the entire life cycle. The constraints of the upper layer model include generalized energy storage substitution constraints and system reliability constraints. The lower-level model of the two-layer planning model aims to minimize the typical daily operating cost to meet the replacement requirements. The constraints of the lower-level model include virtual energy storage operation constraints, rigid constraints for achieving the replacement rate target, virtual energy storage response reliability constraints, energy balance constraints, and multi-microgrid coupling constraints. S2. A solution model is constructed using physical-virtual dual-chromosome joint encoding as input. The solution model is based on a genetic algorithm improved by dynamic ε-relaxation constraint rules and robust fitness mapping to solve the bi-level programming model and obtain a multi-microgrid shared energy storage capacity planning scheme. The physical-virtual dual-chromosome co-encoding is used to set the physical and virtual energy storage of multi-microgrids on different gene segments for collaborative optimization. The dynamic ε-relaxation constraint rule is used to gradually tighten the constraints of the upper-level model during the solution process. The robust fitness mapping is used to eliminate false excellent individuals in advance.

2. The method for planning shared energy storage capacity in multi-microgrids based on the generalized energy storage substitution effect according to claim 1, characterized in that, S2 includes: S2.1, Randomly generate a number of sizes according to the physical-virtual dual-chromosome combined real number encoding method. The initial population; S2.2, to Each individual in Solidify its rated physical energy storage capacity The substitution rate is then passed to the lower-level model, and the CPLEX solver is called to obtain the operating cost and the actual achievable substitution rate. S2.3 Calculation based on the dynamic ε-relaxation constraint rule The degree of constraint violation for each individual in the set, combined with the current algebraic... Stratify and sort the population; S2.4 Calculate the robust fitness of each individual based on the robust fitness mapping, and eliminate false excellent individuals; S2.

5. Use tournament selection, simulated binary crossover, and polynomial mutation to generate offspring populations; S2.6 If the fitness of the optimal individual in the maximum number of generations or M consecutive generations meets both the cost convergence condition and the feasibility stability condition, then output the individual in the Pareto front that meets the replacement rate requirement and has the lowest total cost as the multi-microgrid shared energy storage capacity planning scheme; otherwise, return to step S2.

2. The cost convergence condition includes that the relative rate of change of the optimal fitness is less than the cost convergence threshold η; The feasibility stability condition includes that the constraint violation degree of the optimal individual is satisfied. And there is no significant downward trend.

3. The method for planning shared energy storage capacity in multi-microgrid networks based on the generalized energy storage substitution effect according to claim 2, characterized in that, In S2, the physical-virtual dual-chromosome co-coding includes: The decision variables of the upper-level model are divided into physical chromosomes and virtual chromosomes, and a dual-chromosome simultaneous real-number encoding is used to obtain... Each individual in The encoding structure is ; The physical chromosomes include: ; The virtual chromosome includes: ; In the above formula, Rated power of physical energy storage; The rated capacity of physical energy storage meets the requirements. ,in This refers to the baseline physical energy storage capacity that meets the system load peak-to-valley difference and basic reliability requirements without considering virtual energy storage substitution. The generalized energy storage substitution rate coefficient represents the equivalent substitution ratio of virtual energy storage to physical energy storage capacity. The time-sharing dynamic response reliability coefficient of virtual energy storage during peak hours. The time-sharing dynamic response reliability coefficient of virtual energy storage during off-peak hours. The time-sharing dynamic response reliability coefficient of virtual energy storage during normal periods; The physical chromosome determines the hardware configuration, and the virtual chromosome determines the alternative strategy. The two are strongly coupled through the underlying runtime model. The dynamic ε-relaxation constraint rules include: ; In the above formula, For individuals Generalized substitution constraint violation degree; This is the generalized energy storage substitution rate coefficient; For the annual equivalent available capacity of virtual energy storage, The baseline physical energy storage rated capacity; The generalized energy storage substitution rate coefficient include: ; Let the first The constraint relaxation threshold in generational evolution is: ; In the above formula, It is the initial relaxation factor. It is the attenuation constant; Let the first individual for , No. individual for If an individual and All constraints are satisfied. Then compare according to Pareto non-dominated order and crowding; otherwise, when hour, Dominate ; The robust fitness mapping includes: ; In the above formula, This refers to the deviation between the actual achievable substitution rate at the lower level and the instruction substitution rate at the upper level. This is a penalty amplification factor for vacancies, used to directly eliminate falsely excellent individuals at the fitness level. The falsely excellent individuals are... individuals, The preset substitution rate deviation tolerance threshold is set.

4. A method for planning shared energy storage capacity of multi-microgrids based on the generalized energy storage substitution effect according to any one of claims 1 to 3, characterized in that: In S1, the total comprehensive cost over the entire life cycle includes the annualized investment cost of physical energy storage, the annual operating cost of virtual energy storage, and the cost of replacement reliability penalty. The objective function of the upper-level model includes: ; ; ; ; In the above formula, The overall total cost of the upper-level planning model; The annual investment cost of alternative optimized physical energy storage; The annual operating cost of virtual energy storage; To replace the reliability penalty cost, and to balance the system power supply reliability risk brought about by the increase in replacement rate; Unit power cost of energy storage systems; Unit capacity cost of energy storage systems; The discount rate reflects the time value of money; in this invention, r = 0.08 is used. For the lifespan of the energy storage system; Annual operating cost of virtual energy storage; for The load that users reduce at any time; for The increasing load on users at any given moment; Demand response compensation unit price, This is a reliability penalty factor; The maximum allowable replacement rate threshold is set to constrain the system's power supply reliability. The benchmark annualized investment cost of physical energy storage without virtual energy storage alternatives; The reliability penalty coefficient include: ; ; In the above formula, The annualized investment cost per unit capacity of physical energy storage; The system reliability constraints include: ; The generalized energy storage substitution constraints include: ; ; In the above formula, This refers to the rated capacity of physical energy storage. Virtual energy storage can effectively replace capacity on a single day.

5. The method for planning shared energy storage capacity in multi-microgrid networks based on the generalized energy storage substitution effect according to claim 4, characterized in that, In S1, the objective function of the lower-level model includes: ; ; ; In the above formula, Cost of purchasing electricity from the grid; Revenue from selling electricity to the grid; Fuel costs for distributed power generation from gas turbines; Physical energy storage charge and discharge lifetime loss cost is used to quantify the full life cycle degradation cost caused by frequent charge and discharge of physical energy storage. , for The charging and discharging power of the physical energy storage at all times; Cost of lifespan loss per unit charge / discharge power; Intraday effective virtual energy storage dispatch cost; , for Real-time effective virtual charging and discharging power; The virtual energy storage operation constraints include: Only when the system has surplus renewable energy power, and this surplus power would normally require physical energy storage charging for consumption, can the user-side flexible load be increased to effectively replace physical energy storage charging behavior through load growth: ; Only when there is a power deficit in the system, and this deficit would normally need to be filled by physical energy storage discharge, can the user-side load interruption be invoked to reduce power consumption, effectively replacing physical energy storage discharge with load reduction: ; In the above formula, This is the adjusted actual load power; This is the original base load; Virtual charging power; This refers to the virtual discharge power. The rigid constraints for achieving the replacement rate target include: ; The virtual energy storage response reliability constraints include: ; In the above formula, For micro-network At any given moment, the maximum load power that can theoretically be reduced; For micro-network At any given moment, the theoretically maximum load power that can be increased; The time-sharing dynamic response reliability coefficient is assigned a value based on the historical response accuracy of users in different time periods and the difference in participation willingness during peak and valley periods. The energy balance constraints include: ; The multi-micronetwork coupling constraints include: ; ; In the above formula, Purchase power from the main grid; , The charging and discharging power of a physical energy storage system; The power generation capacity of a combined heat and power (CHP) unit; The heat power generated by the gas-fired boiler; , This refers to the cooling / heating power of the air conditioning system. This is the system's heat load or cooling load requirement; Cogeneration units in Heating power at any given time.

6. A multi-microgrid shared energy storage capacity planning system based on the generalized energy storage substitution effect, characterized in that, Specifically, it includes: Model building module, solution module; The model building module is used to: construct a two-layer planning model for shared energy storage capacity of multi-microgrids, which is based on the physical and virtual energy storage of multi-microgrids. The upper-layer model of the two-layer planning model aims to minimize the total cost over the entire life cycle. The constraints of the upper-layer model include generalized energy storage substitution constraints and system reliability constraints. The lower-level model of the two-layer planning model aims to minimize the typical daily operating cost to meet the replacement requirements. The constraints of the lower-level model include virtual energy storage operation constraints, rigid constraints for achieving the replacement rate target, virtual energy storage response reliability constraints, energy balance constraints, and multi-microgrid coupling constraints. The solution module is used to: construct a solution model with physical-virtual dual-chromosome joint encoding as input. The solution model is based on a genetic algorithm improved by dynamic ε-relaxation constraint rules and robust fitness mapping to solve the bi-level programming model and obtain a multi-microgrid shared energy storage capacity planning scheme. The physical-virtual dual-chromosome co-encoding is used to set the physical and virtual energy storage of multi-microgrids on different gene segments for collaborative optimization. The dynamic ε-relaxation constraint rule is used to gradually tighten the constraints of the upper-level model during the solution process. The robust fitness mapping is used to eliminate false excellent individuals in advance.

7. A multi-microgrid shared energy storage capacity planning system based on the generalized energy storage substitution effect according to claim 6, characterized in that, The solution module is specifically used to randomly generate a scale of [value] according to the physical-virtual dual-chromosome combined real number encoding method. The initial population; right Each individual in Solidify its rated physical energy storage capacity The substitution rate is then passed to the lower-level model, and the CPLEX solver is called to obtain the operating cost and the actual achievable substitution rate. Calculation based on the dynamic ε-relaxation constraint rule The degree of constraint violation for each individual in the set, combined with the current algebraic... Stratify and sort the population; The robust fitness of each individual is calculated based on the robust fitness mapping, and false excellent individuals are eliminated. The offspring population is generated using tournament selection, simulated binary crossover, and polynomial mutation. If the fitness of the optimal individual in the maximum number of generations or M consecutive generations meets both the cost convergence condition and the feasibility stability condition, then the individual with the lowest total cost and the required replacement rate in the Pareto front is output as the multi-microgrid shared energy storage capacity planning scheme; otherwise, return to step S2.

2. The cost convergence condition includes that the relative rate of change of the optimal fitness is less than the cost convergence threshold η; The feasibility stability condition includes that the constraint violation degree of the optimal individual is satisfied. And there is no significant downward trend.

8. A multi-microgrid shared energy storage capacity planning system based on the generalized energy storage substitution effect according to claim 7, characterized in that, In the solution module, the physical-virtual dual-chromosome joint encoding includes: The decision variables of the upper-level model are divided into physical chromosomes and virtual chromosomes, and a dual-chromosome simultaneous real-number encoding is used to obtain... Each individual in The encoding structure is ; The physical chromosomes include: ; The virtual chromosome includes: ; In the above formula, Rated power of physical energy storage; The rated capacity of physical energy storage meets the requirements. ,in This refers to the baseline physical energy storage capacity that meets the system load peak-to-valley difference and basic reliability requirements without considering virtual energy storage substitution. The generalized energy storage substitution rate coefficient represents the equivalent substitution ratio of virtual energy storage to physical energy storage capacity. The time-sharing dynamic response reliability coefficient of virtual energy storage during peak hours. The time-sharing dynamic response reliability coefficient of virtual energy storage during off-peak hours. The time-sharing dynamic response reliability coefficient of virtual energy storage during normal periods; The physical chromosome determines the hardware configuration, and the virtual chromosome determines the alternative strategy. The two are strongly coupled through the underlying runtime model. The dynamic ε-relaxation constraint rules include: ; In the above formula, For individuals Generalized substitution constraint violation degree; This is the generalized energy storage substitution rate coefficient; For the annual equivalent available capacity of virtual energy storage, The baseline physical energy storage rated capacity; The generalized energy storage substitution rate coefficient include: ; Let the first The constraint relaxation threshold in generational evolution is: ; In the above formula, It is the initial relaxation factor. It is the attenuation constant; Let the first individual for , No. individual for If an individual and All constraints are satisfied. Then compare according to Pareto non-dominated order and crowding; otherwise, when hour, Dominate ; The robust fitness mapping includes: ; In the above formula, This refers to the deviation between the actual achievable substitution rate at the lower level and the instruction substitution rate at the upper level. This is a penalty amplification factor for vacancies, used to directly eliminate falsely excellent individuals at the fitness level. The falsely excellent individuals are... individuals, The preset substitution rate deviation tolerance threshold is set.

9. A multi-microgrid shared energy storage capacity planning system based on the generalized energy storage substitution effect according to any one of claims 6 to 8, characterized in that: In the model building module, the total lifecycle cost includes the annualized investment cost of physical energy storage, the annual operating cost of virtual energy storage, and the cost of replacement reliability penalty. The objective function of the upper-level model includes: ; ; ; ; In the above formula, The overall total cost of the upper-level planning model; The annual investment cost of alternative optimized physical energy storage; The annual operating cost of virtual energy storage; To replace the reliability penalty cost, and to balance the system power supply reliability risk brought about by the increase in replacement rate; Unit power cost of energy storage systems; Unit capacity cost of energy storage systems; The discount rate reflects the time value of money; in this invention, r = 0.08 is used. For the lifespan of the energy storage system; Annual operating cost of virtual energy storage; for The load that users reduce at any time; for The increasing load on users at any given moment; Demand response compensation unit price, This is a reliability penalty factor; The maximum allowable replacement rate threshold is set to constrain the system's power supply reliability. The benchmark annualized investment cost of physical energy storage without virtual energy storage alternatives; The reliability penalty coefficient include: ; ; In the above formula, The annualized investment cost per unit capacity of physical energy storage; The system reliability constraints include: ; The generalized energy storage substitution constraints include: ; ; In the above formula, This refers to the rated capacity of physical energy storage. Virtual energy storage can effectively replace capacity on a single day.

10. A multi-microgrid shared energy storage capacity planning system based on the generalized energy storage substitution effect according to claim 9, characterized in that, In the model building module, the objective function of the lower-level model includes: ; ; ; In the above formula, Cost of purchasing electricity from the grid; Revenue from selling electricity to the grid; Fuel costs for distributed power generation from gas turbines; Physical energy storage charge and discharge lifetime loss cost is used to quantify the full life cycle degradation cost caused by frequent charge and discharge of physical energy storage. , for The charging and discharging power of the physical energy storage at all times; Cost of lifespan loss per unit charge / discharge power; Intraday effective virtual energy storage dispatch cost; , for Real-time effective virtual charging and discharging power; The virtual energy storage operation constraints include: Only when the system has surplus renewable energy power, and this surplus power would normally require physical energy storage charging for consumption, can the user-side flexible load be increased to effectively replace physical energy storage charging behavior through load growth: ; Only when there is a power deficit in the system, and this deficit would normally need to be filled by physical energy storage discharge, can the user-side load interruption be invoked to reduce power consumption, effectively replacing physical energy storage discharge with load reduction: ; In the above formula, This is the adjusted actual load power; This is the original base load; Virtual charging power; This refers to the virtual discharge power. The rigid constraints for achieving the replacement rate target include: ; The virtual energy storage response reliability constraints include: ; In the above formula, For micro-network At any given moment, the maximum load power that can theoretically be reduced; For micro-network At any given moment, the theoretically maximum load power that can be increased; The time-sharing dynamic response reliability coefficient is assigned a value based on the historical response accuracy of users in different time periods and the difference in participation willingness during peak and valley periods. The energy balance constraints include: ; The multi-micronetwork coupling constraints include: ; ; In the above formula, Purchase power from the main grid; , The charging and discharging power of a physical energy storage system; The power generation capacity of a combined heat and power (CHP) unit; The heat power generated by the gas-fired boiler; , This refers to the cooling / heating power of the air conditioning system. This is the system's heat load or cooling load requirement; Cogeneration units in Heating power at any given time.