Multi-microgrid collaborative optimization scheduling method and device and storage medium

Through the deep reinforcement learning method and TD3 algorithm, a multi-microgrid and shared energy storage scheduling model is constructed, which solves the problems of high multi-microgrid scheduling cost and low adaptability, achieves flexibility and high adaptability, and saves energy storage and microgrids. network scheduling costs and make reasonable scheduling decisions under uncertain scenarios.

CN118713091APending Publication Date: 2024-09-27STATE GRID JIANGSU ELECTRIC POWER CO LTD RESEARCH INSTITUTE +2
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410905600.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

In the existing technology, multi-microgrid scheduling costs are high and adaptability is low, energy storage systems are dispersed and utilization is difficult to improve, and model-driven methods are not feasible and fast enough to generate in uncertain scenarios, making it difficult to apply to multiple types of microgrids. economic dispatch.

Method used

The deep reinforcement learning (DRL) method is used to obtain data from microgrids and shared energy storage systems to construct microgrid and shared energy storage scheduling models. Combined with the TD3 algorithm, multi-microgrid collaborative optimization scheduling is achieved and energy storage scheduling and control costs are reduced. , improve adaptability.

Benefits of technology

It achieves the flexibility and high adaptability of multi-microgrid dispatching, saves energy storage and microgrid dispatching costs by more than 20%, makes reasonable dispatching decisions under uncertain scenarios, promotes the consumption and sharing of photovoltaic surplus power, and achieves multi-agent sharing. win.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118713091A
    Figure CN118713091A
Patent Text Reader

Abstract

The invention discloses a multi-microgrid collaborative optimization scheduling method and device and a storage medium, and belongs to the technical field of microgrid scheduling, and the method comprises the steps: obtaining the input power, energy consumption and energy price of each device in a microgrid, and obtaining the input power and output power of a shared energy storage system; interactively solving the constructed shared energy storage scheduling model and each micro-grid scheduling model based on all obtained data to obtain a multi-micro-grid scheduling scheme including target output power of each device in the micro-grid; scheduling multiple microgrids according to the multi-microgrid scheduling scheme, and completing multi-microgrid collaborative optimization scheduling; according to the method, shared energy storage participates in multi-microgrid scheduling based on the constructed shared energy storage scheduling model, consumption and sharing of photovoltaic surplus power are promoted, the capacity scale advantage can be exerted, the scheduling decision is more flexible, multi-agent win-win is realized, and the scheduling cost can be saved by more than 20% compared with an independent energy storage participation mode; and high adaptability to more microgrids is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a multi-microgrid coordinated optimization scheduling method, device and storage medium, and belongs to the technical field of microgrid scheduling. Background Art

[0002] As a terminal unit of the distribution system that integrates multiple flexible resources of "source, load and storage", multi-microgrid plays an irreplaceable role in promoting the large-scale consumption of distributed energy, enhancing the power supply reliability of the distribution system and improving the benefits of multiple subjects through intra-group autonomy and inter-group interaction. One of the core research contents of multi-microgrid is the economic dispatch and coordinated operation of flexible resources. However, the existing technology studies that the energy storage system is scattered in each microgrid and is only used to support the economic dispatch within the microgrid, which not only increases the energy storage construction and operation and maintenance costs of each microgrid, but also makes it difficult to improve the utilization rate of energy storage. With the continuous development of new energy storage technologies and the promotion and application of sharing models, the establishment of shared energy storage stations and the safe and economic dispatch of multiple microgrids in the distribution area are attracting widespread attention. Although existing studies have improved the stability and economy of multi-microgrid dispatching operation through a variety of robust methods and energy storage sharing modes, they are limited by strict model construction requirements and uncertainty scenario constraints. The feasibility and generation speed of multi-microgrid dispatching schemes in any scenario based on model-driven mathematical programming methods and heuristic optimization methods still need to be improved and enhanced.

[0003] With the rapid development of data-driven machine learning technology, the deep reinforcement learning (DRL) method that integrates deep learning information representation capabilities and reinforcement learning sequence decision-making capabilities is penetrating into various research fields. Its autonomous learning and adaptive capabilities can improve the robustness of coping with uncertain factors and provide an intelligent solution for the optimal scheduling of multiple microgrids. However, existing technical research only uses energy storage as a scheduling resource within the microgrid, which will increase the scheduling and control costs of energy storage for multiple microgrids and is difficult to apply to multiple types of microgrids in the distribution area. Summary of the invention

[0004] The purpose of the present invention is to provide a multi-microgrid collaborative optimization scheduling method, device and storage medium to solve the problems of high scheduling cost and low adaptability existing in the prior art.

[0005] To achieve the above objectives, the present invention is implemented by adopting the following technical solutions: In a first aspect, the present invention provides a multi-microgrid collaborative optimization scheduling method, comprising: Obtain the input power, energy consumption and energy price of each device in the microgrid, and obtain the input power and output power of the shared energy storage system; Based on all the acquired data, the constructed shared energy storage scheduling model and each microgrid scheduling model are interactively solved to obtain a multi-microgrid scheduling plan including the target output power of each device in the microgrid; Scheduling the multi-microgrid according to the multi-microgrid scheduling scheme to complete the multi-microgrid coordinated optimization scheduling; The microgrid dispatching model is constructed by the following method: taking the operation cost of the constructed microgrid system model as the minimum and taking the microgrid operation constraint as the constraint, the microgrid dispatching model is constructed; The shared energy storage scheduling model is constructed by the following method: taking the maximization of the operating benefit of the constructed shared energy storage model as the goal and taking the interactive power constraint of the shared energy storage system and the distribution system as the constraint to construct the shared energy storage scheduling model.

[0006] Furthermore, the expression of the microgrid dispatching model is: ; ; ; ; in, P e ( t ) is the microgrid in the dispatching period t When purchasing power from the distribution system, P dis,i ( t ) is a microgrid i In the scheduling period t The SES discharge power at P cha,i ( t ) is a microgrid i In the scheduling period t SES charging power at P chp ( t ) is the microgrid in the dispatching period t When the combined heat and power unit outputs electrical power, P gb ( t ) is the microgrid in the dispatching period t The gas boiler outputs electrical power. P eb ( t ) is the microgrid in the dispatching period t The electric power input to the electric boiler is q chp ( t ) is the microgrid in the dispatching period t The amount of natural gas consumed by the combined heat and power unit at that time, qgb ( t ) is the microgrid in the dispatching period t The amount of natural gas consumed by the gas boiler at f mic is the microgrid operating cost, f eg is the total energy purchase cost of the microgrid during all dispatch periods, f es is the total cost of energy purchase and sale from SES during all dispatch periods of the microgrid, f run is the total equipment maintenance cost of the microgrid during all dispatch periods, f c is the total carbon emission cost of the microgrid during all dispatch periods, f eg,t The microgrid is in the dispatching period t The energy purchase cost at f es,t,i For Microgrid i In the scheduling period t The cost of buying and selling energy from SES at that time, f run,t The microgrid is in the dispatching period t Equipment maintenance costs f c,t The microgrid is in the dispatching period t The carbon emission cost at c e ( t ) is in the scheduling period t Time-of-use electricity price of the power distribution system, c g is the natural gas price, c dis is the discharge price of the SES agent, c cha Charging price for SES smart body, c rc is the maintenance unit cost of the CHP unit, c rg is the unit cost of gas boiler maintenance, c re is the unit cost of maintenance of electric boiler, c ce is the carbon emission penalty factor; in, is the minimum value of the output power of the combined heat and power unit, is the maximum value of the output power of the combined heat and power unit, H gb ( t ) is the microgrid in the dispatching period t The gas boiler outputs thermal power. is the minimum value of the thermal power output of the gas boiler. is the maximum value of the thermal power output of the gas boiler. is the minimum value of electric boiler input power, is the maximum value of the electric power input to the electric boiler, P pv Output electrical power for photovoltaic system, P e Purchase power from the distribution system for the microgrid, The upper limit of power purchased by the microgrid from the distribution system, The lower limit of power purchased by the microgrid from the distribution system. P chp Output electrical power for the combined heat and power unit, P dis,i For Microgrid i The SES discharge power, P cha,i For Microgrid i SES charging power, P l is the electrical power demand, P eb Input electrical power to the electric boiler, P chp,i For Microgrid i The output power of the combined heat and power unit is P ij For Microgrid i and Microgrid j Interaction power, H chp Output thermal power for the combined heat and power unit, H eb Output heat power for electric boiler, H gb Output thermal power for gas boiler, H l is the heat demand power, k i For Microgrid i For the SES charge and discharge status, k i =0 means microgrid i Release power to SES, k i =1 indicates microgrid i Obtain electricity from SES, The upper limit of SES charging power. P tie For Microgrid i and Microgrid j Interaction power cap, N is the total number of microgrids.

[0007] Furthermore, the expression of the microgrid system model is: ; ; ; ; ; in, P pv ( t ) is the microgrid in the dispatching period t The photovoltaic system outputs electrical power when γ pv ( t ) is the microgrid in the dispatching period t The irradiation intensity of the photovoltaic panel is η pv is the conversion efficiency of the photovoltaic module, η MTTP is the photovoltaic maximum power tracking efficiency, A r is the irradiation area of ​​the photovoltaic panel, θ is the solar radiation angle, cos θ ( t ) is the microgrid in the dispatching period t The cosine value of the solar radiation angle at , H ng is the calorific value of natural gas, The power generation efficiency of the combined heat and power unit is is the heat-to-electricity ratio of the combined heat and power unit, H chp ( t ) is the microgrid in the dispatching period t When the combined heat and power unit outputs thermal power, η gb is the heat generation efficiency of the gas boiler, η eb is the heating efficiency of the electric boiler.

[0008] Furthermore, the expression of the shared energy storage scheduling model is: ; ; ; ; in, f ses For SES operation income, f e2gis the total SES and distribution system energy interaction benefit in all dispatch periods, f es is the total SES and multi-microgrid energy interaction benefit in all dispatch periods, which is equal to the total energy purchase and sale cost from SES in all dispatch periods of the microgrid. f esr is the total SES operation and maintenance cost for all scheduling periods, f e2g,t For the scheduling period t The energy interaction benefit between SES and distribution system is P edis ( t ) is in the scheduling period t The discharge power of the interaction between SES and the distribution system is P echa ( t ) is in the scheduling period t The charging power of SES interacting with the distribution system is f esr,t For the scheduling period t SES operation and maintenance costs, c ses is the unit cost of operation and maintenance of SES, P cha Charging power for SES, P dis is the SES discharge power, is the maximum value of SES charging and discharging power, k e2g It is the charging and discharging status of the interaction between SES and the distribution system. k e2g =0 means SES is charged from the distribution system, k e2g =1 means SES discharges to the distribution system, P edis is the discharge power of the interaction between SES and the distribution system, P echa The charging power of SES interacting with the distribution system, c e It is the time-of-use electricity price of the distribution system.

[0009] Furthermore, the expression of the shared energy storage model is: ; ; in, E ses ( t ) is in the scheduling period t SES energy capacity, Eses ( t- 1) In the scheduling period t- 1: SES energy capacity, η c For SES charging efficiency, η d is the SES discharge efficiency, is the minimum value of SES charging and discharging power, P cha ( t ) is in the scheduling period t SES charging power, P dis ( t ) is in the scheduling period t When SES discharge power, is the minimum value of SES energy capacity, is the maximum value of SES energy capacity, E start is the SES energy capacity at the initial time of the scheduling period, E end is the SES energy capacity at the end of the scheduling period.

[0010] Furthermore, the shared energy storage scheduling model and the microgrid scheduling model are modified after being constructed, and the modification is performed by the following method: Each microgrid dispatching model is used as a learning environment, and the Markov decision process is used to realize the interactive learning of the shared energy storage dispatching model and the learning environment, so as to complete the modification of the shared energy storage dispatching model and the microgrid dispatching model.

[0011] Furthermore, the interactive solution of the constructed shared energy storage scheduling model and each microgrid scheduling model is performed through the TD3 algorithm.

[0012] In a second aspect, the present invention provides a multi-microgrid collaborative optimization scheduling device, comprising: The data acquisition module is configured to: obtain the input power, energy consumption and energy price of each device in the microgrid, and obtain the input power and output power of the shared energy storage system; The interactive solution module is configured to: interactively solve the constructed shared energy storage scheduling model and each microgrid scheduling model based on all acquired data to obtain a multi-microgrid scheduling plan including the target output power of each device in the microgrid; A collaborative optimization scheduling module is configured to: schedule the multi-microgrid according to the multi-microgrid scheduling scheme to complete the multi-microgrid collaborative optimization scheduling; The microgrid dispatching model is constructed by the following method: taking the operation cost of the constructed microgrid system model as the minimum and taking the microgrid operation constraint as the constraint, the microgrid dispatching model is constructed; The shared energy storage scheduling model is constructed by the following method: taking the maximization of the operating benefit of the constructed shared energy storage model as the goal and taking the interactive power constraint of the shared energy storage system and the distribution system as the constraint to construct the shared energy storage scheduling model.

[0013] Furthermore, the expression of the microgrid dispatching model is: ; ; ; ; in, P e ( t ) is the microgrid in the dispatching period t When purchasing power from the distribution system, P dis,i ( t ) is a microgrid i In the scheduling period t The SES discharge power at P cha,i ( t ) is a microgrid i In the scheduling period t SES charging power at P chp ( t ) is the microgrid in the dispatching period t When the combined heat and power unit outputs electrical power, P gb ( t ) is the microgrid in the dispatching period t The gas boiler outputs electrical power. P eb ( t ) is the microgrid in the dispatching period t The electric power input to the electric boiler is q chp ( t ) is the microgrid in the dispatching period t The amount of natural gas consumed by the combined heat and power unit at that time, q gb ( t ) is the microgrid in the dispatching period t The amount of natural gas consumed by the gas boiler at f mic is the microgrid operating cost, f egis the total energy purchase cost of the microgrid during all dispatch periods, f es is the total cost of energy purchase and sale from SES during all dispatch periods of the microgrid, f run is the total equipment maintenance cost of the microgrid during all dispatch periods, f c is the total carbon emission cost of the microgrid during all dispatch periods, f eg,t The microgrid is in the dispatching period t The energy purchase cost at f es,t,i For Microgrid i In the scheduling period t The cost of buying and selling energy from SES at that time, f run,t The microgrid is in the dispatching period t Equipment maintenance costs f c,t The microgrid is in the dispatching period t The carbon emission cost at c e ( t ) is in the scheduling period t Time-of-use electricity price of the power distribution system, c g is the natural gas price, c dis is the discharge price of the SES agent, c cha Charging price for SES smart body, c rc is the maintenance unit cost of the CHP unit, c rg is the unit cost of gas boiler maintenance, c re is the unit cost of maintenance of electric boiler, c ce is the carbon emission penalty factor; in, is the minimum value of the output power of the combined heat and power unit, is the maximum value of the output power of the combined heat and power unit, H gb ( t ) is the microgrid in the dispatching period t The gas boiler outputs thermal power. is the minimum value of the thermal power output of the gas boiler. is the maximum value of the thermal power output of the gas boiler. is the minimum value of electric boiler input power, is the maximum value of the electric power input to the electric boiler, Ppv Output electrical power for photovoltaic system, P e Purchase power from the distribution system for the microgrid, The upper limit of power purchased by the microgrid from the distribution system, The lower limit of power purchased by the microgrid from the distribution system. P chp Output electrical power for the combined heat and power unit, P dis,i For Microgrid i The SES discharge power, P cha,i For Microgrid i SES charging power, P l is the electrical power demand, P eb Input electrical power to the electric boiler, P chp,i For Microgrid i The output power of the combined heat and power unit is P ij For Microgrid i and Microgrid j Interaction power, H chp Output thermal power for the combined heat and power unit, H eb Output heat power for electric boiler, H gb Output thermal power for gas boiler, H l is the heat demand power, k i For Microgrid i For the SES charge and discharge status, k i =0 means microgrid i Release power to SES, k i =1 indicates microgrid i Obtain electricity from SES, The upper limit of SES charging power. P tie For Microgrid i and Microgrid j Interaction power cap, N is the total number of microgrids.

[0014] In a third aspect, the present invention provides a computer-readable storage medium having a computer program / instruction stored thereon, which, when executed by a processor, implements the steps of the multi-microgrid collaborative optimization scheduling method described in any one of the first aspects.

[0015] Compared with the prior art, the beneficial effects achieved by the present invention are: The present invention provides a multi-microgrid collaborative optimization scheduling method, device and storage medium, which realize the participation of shared energy storage in multi-microgrid scheduling based on a well-established shared energy storage scheduling model, which not only promotes the consumption and sharing of photovoltaic surplus power, but also can give play to the capacity scale advantage, making scheduling decisions more flexible and achieving a win-win situation for multiple subjects. Compared with the independent energy storage participation mode, it can save more than 20% of the energy storage and microgrid scheduling costs, thereby achieving high adaptability to more microgrids. The adopted TD3 algorithm has advantages over the DDPG algorithm in training SES agents, and can make reasonable scheduling decisions under the scenario of uncertain source and load changes. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 It is a flow chart of a multi-microgrid collaborative optimization scheduling method provided by an embodiment of the present invention; Figure 2 It is a schematic diagram of the SES agent and multi-microgrid interaction framework provided by an embodiment of the present invention; Figure 3 It is a schematic diagram of the interactive solution of SES agents and multi-microgrids provided by an embodiment of the present invention; Figure 4 It is a schematic diagram of the SES agent and multi-microgrid interactive training framework based on the TD3 algorithm provided in an embodiment of the present invention; Figure 5 It is a schematic diagram of the change of the reward function for offline training of an SES agent provided by an embodiment of the present invention; Figure 6 It is a schematic diagram of the electric energy dispatch result of the microgrid 1 provided in an embodiment of the present invention; Figure 7 is a schematic diagram of thermal energy dispatch results of microgrid 1 provided in an embodiment of the present invention; Figure 8 It is a schematic diagram of the electric energy dispatch result of microgrid 2 provided in an embodiment of the present invention; Fig. 9 is a schematic diagram of the thermal energy dispatch result of the microgrid 2 provided in an embodiment of the present invention; Fig.10 It is a schematic diagram of the electric energy dispatch result of the microgrid 3 provided in an embodiment of the present invention; Fig.11 is a schematic diagram of the thermal energy dispatch result of the microgrid 3 provided in an embodiment of the present invention; Fig.12 It is a schematic diagram of the charging and discharging power pricing strategy of SES provided in an embodiment of the present invention; Fig.13 It is a schematic diagram of energy change and charge state of the SES provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0017] The present invention will be further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solutions of the present invention and are not intended to limit the protection scope of the present invention.

[0018] Example 1.

[0019] like Figure 1 As shown, the present invention provides a multi-microgrid collaborative optimization scheduling method, comprising: S1. Obtain the input power, energy consumption and energy price of each device in the microgrid, and obtain the input power and output power of the shared energy storage system.

[0020] S2. Based on all the acquired data, the constructed shared energy storage scheduling model and each microgrid scheduling model are interactively solved to obtain a multi-microgrid scheduling plan including the target output power of each device in the microgrid.

[0021] Before constructing the microgrid dispatching model, a multi-microgrid system model is first constructed, and the multi-microgrid system model consists of multiple microgrid system models.

[0022] Constructing a multi-microgrid system model: Multiple microgrids in the distribution area are interconnected through the distribution network. Each microgrid is provided with internal and external energy input by the distribution system, natural gas system, and rooftop photovoltaic system, and energy conversion is achieved through the combined heat and power (CHP), gas boiler (GB) or electric boiler (EB) in the energy station. The energy demand involves electrical energy and thermal energy. Each microgrid does not establish independent energy storage, and the stable economic dispatch of the microgrid is achieved by purchasing SES (shared energy storage system) power support services.

[0023] The constructed microgrid system model includes: The output power of the photovoltaic system can be expressed as: ; The output electric and thermal power of the combined heat and power unit can be expressed as: ; The operation process of the cogeneration unit should meet the upper and lower power constraints, which can be expressed as: ; The output thermal power of gas boilers and electric boilers can be expressed as: ; The operation process of gas boilers and electric boilers should meet the upper and lower power constraints, which can be expressed as: ; in, Ppv ( t ) is the microgrid in the dispatching period t The photovoltaic system outputs electrical power when γ pv ( t ) is the microgrid in the dispatching period t The irradiation intensity of the photovoltaic panel is η pv is the conversion efficiency of the photovoltaic module, η MTTP is the photovoltaic maximum power tracking efficiency, A r is the irradiation area of ​​the photovoltaic panel, θ is the solar radiation angle, cos θ ( t ) is the microgrid in the dispatching period t The cosine value of the solar radiation angle at , H ng is the calorific value of natural gas, The power generation efficiency of the combined heat and power unit is is the heat-to-electricity ratio of the combined heat and power unit, H chp ( t ) is the microgrid in the dispatching period t When the combined heat and power unit outputs thermal power, η gb is the heat generation efficiency of the gas boiler, η eb is the heat generation efficiency of the electric boiler, P chp ( t ) is the microgrid in the dispatching period t When the combined heat and power unit outputs electrical power, q chp ( t ) is the microgrid in the dispatching period t The amount of natural gas consumed by the combined heat and power unit at that time, is the minimum value of the output power of the combined heat and power unit, is the maximum value of the output power of the combined heat and power unit, H gb ( t ) is the microgrid in the dispatching period t The gas boiler outputs thermal power. is the minimum value of the thermal power output of the gas boiler. is the maximum value of the thermal power output of the gas boiler. is the minimum value of electric boiler input power, is the maximum value of the electric power input to the electric boiler, q gb ( t) is the microgrid in the dispatching period t The amount of natural gas consumed by the gas boiler at P eb Input electrical power to the electric boiler, P eb ( t ) is the microgrid in the dispatching period t The electric power input to the electric boiler.

[0024] Construction of microgrid dispatching model: The flexible and adjustable resources of each microgrid are concentrated in the energy station, including cogeneration units, gas boilers or electric boilers, and power regulation resources that can be provided by SES outside the microgrid; it is constructed by the following method: taking the minimization of the operating cost of the constructed microgrid system model as the goal, and taking the microgrid operation constraints (the upper and lower limits of the power of the cogeneration units, the upper and lower limits of the power of the gas boilers and electric boilers, the electric and thermal power balance constraints, the equipment power and capacity constraints, and the power transmission constraints between multiple microgrids) as constraints, the microgrid dispatching model is constructed.

[0025] The expression of the microgrid dispatch model is: ; ; ; ; in, P e ( t ) is the microgrid in the dispatching period t When purchasing power from the distribution system, P dis,i ( t ) is a microgrid i In the scheduling period t The SES discharge power at P cha,i ( t ) is a microgrid i In the scheduling period t SES charging power at P chp ( t ) is the microgrid in the dispatching period t When the combined heat and power unit outputs electrical power, P gb ( t ) is the microgrid in the dispatching period t The gas boiler outputs electrical power. P eb ( t ) is the microgrid in the dispatching period t The electric power input to the electric boiler is qchp ( t ) is the microgrid in the dispatching period t The amount of natural gas consumed by the combined heat and power unit at that time, q gb ( t ) is the microgrid in the dispatching period t The amount of natural gas consumed by the gas boiler at f mic is the microgrid operating cost, f eg is the total energy purchase cost of the microgrid during all dispatch periods, f es is the total cost of energy purchase and sale from SES during all dispatch periods of the microgrid, f run is the total equipment maintenance cost of the microgrid during all dispatch periods, f c is the total carbon emission cost of the microgrid during all dispatch periods, f eg,t The microgrid is in the dispatching period t The energy purchase cost at f es,t,i For Microgrid i In the scheduling period t The cost of buying and selling energy from SES at that time, f run,t The microgrid is in the dispatching period t Equipment maintenance costs f c,t The microgrid is in the dispatching period t The carbon emission cost at c e ( t ) is in the scheduling period t Time-of-use electricity price of the power distribution system, c g is the natural gas price, c dis is the discharge price of the SES agent, c cha Charging price for SES smart body, c rc is the maintenance unit cost of the CHP unit, c rg is the unit cost of gas boiler maintenance, c re is the unit cost of maintenance of electric boiler, c ce is the carbon emission penalty factor; in, is the minimum value of the output power of the combined heat and power unit, is the maximum value of the output power of the combined heat and power unit,H gb ( t ) is the microgrid in the dispatching period t The gas boiler outputs thermal power. is the minimum value of the thermal power output of the gas boiler. is the maximum value of the thermal power output of the gas boiler. is the minimum value of electric boiler input power, is the maximum value of the electric power input to the electric boiler, P pv Output electrical power for photovoltaic system, P e Purchase power from the distribution system for the microgrid, The upper limit of power purchased by the microgrid from the distribution system, The lower limit of power purchased by the microgrid from the distribution system. P chp Output electrical power for the combined heat and power unit, P dis,i For Microgrid i The SES discharge power, P cha,i For Microgrid i SES charging power, P l is the electrical power demand, P eb Input electrical power to the electric boiler, P chp,i For Microgrid i The output power of the combined heat and power unit is P ij For Microgrid i and Microgrid j Interaction power, H chp Output thermal power for the combined heat and power unit, H eb Output heat power for electric boiler, H gb Output thermal power for gas boiler, H l is the heat demand power, k i For Microgrid i For the SES charge and discharge status, k i =0 means microgrid i Release power to SES, k i =1 indicates microgrid i Obtain electricity from SES, The upper limit of SES charging power. P tie For Microgridi and Microgrid j Interaction power cap, N is the total number of microgrids.

[0026] Before building a shared energy storage dispatching model, first build a shared energy storage model; Construction of a shared energy storage model: In the distribution area, provide flexible power regulation services to multiple microgrids by establishing a shared energy storage station. SES can be built and operated by distribution system users, i.e. user-side SES, or by distribution system operators, i.e. grid-side SES. User-side SES is mainly used to improve the energy purchase strategy of multiple microgrids, promote the local consumption of distributed energy, and enhance the economic operation capacity of the microgrid itself; grid-side SES is mainly used to alleviate network congestion, etc., to maintain the safe and stable operation of the distribution system.

[0027] Shared energy storage models include: The energy change of SES during the charging and discharging scheduling process can be expressed as: ; The SES operation process should meet the upper and lower limits of power and capacity, which can be expressed as: ; in, E ses ( t ) is in the scheduling period t SES energy capacity, E ses ( t- 1) In the scheduling period t- 1: SES energy capacity, η c For SES charging efficiency, η d is the SES discharge efficiency, is the minimum value of SES charging and discharging power, P cha ( t ) is in the scheduling period t SES charging power, P dis ( t ) is in the scheduling period t When SES discharge power, is the minimum value of SES energy capacity, is the maximum value of SES energy capacity, E start is the SES energy capacity at the initial time of the scheduling period, E end is the SES energy capacity at the end of the scheduling period.

[0028] Construction of a shared energy storage scheduling model: With the goal of maximizing the operating benefits of the constructed shared energy storage model, and with the interactive power constraints of the SES and distribution system as constraints, a shared energy storage scheduling model is constructed; the core flexible adjustment resource of the SES intelligent body is energy storage.

[0029] The expression of the shared energy storage dispatch model is: ; ; ; ; in, f ses For SES operation income, f e2g is the total SES and distribution system energy interaction benefit in all dispatch periods, f es is the total SES and multi-microgrid energy interaction benefit in all dispatch periods, which is equal to the total energy purchase and sale cost from SES in all dispatch periods of the microgrid. f esr is the total SES operation and maintenance cost for all scheduling periods, f e2g,t For the scheduling period t The energy interaction benefit between SES and distribution system is P edis ( t ) is in the scheduling period t The discharge power of the interaction between SES and the distribution system is P echa ( t ) is in the scheduling period t The charging power of SES interacting with the distribution system is f esr,t For the scheduling period t SES operation and maintenance costs, c ses is the unit cost of operation and maintenance of SES, P cha Charging power for SES, P dis is the SES discharge power, is the maximum value of SES charging and discharging power, k e2g It is the charging and discharging status of the interaction between SES and the distribution system. k e2g =0 means SES is charged from the distribution system, k e2g =1 means SES discharges to the distribution system, Pedis is the discharge power of the interaction between SES and the distribution system, P echa The charging power of SES interacting with the distribution system, c e It is the time-of-use electricity price of the distribution system.

[0030] The price of the charging and discharging power service provided by the energy storage of the SES intelligent body must meet the constraints The reasons are: the energy storage charging price set by the SES intelligent body should be lower than the unit cost of electric boiler maintenance, ensuring that multiple microgrids give priority to the use of surplus electricity and reduce the frequent charging and discharging of energy storage; the energy storage discharging price set by the SES intelligent body should be between the unit cost of energy storage maintenance and the time-of-use electricity price of the distribution system, ensuring the normal economic operation of SES.

[0031] After constructing many microgrid system models and shared energy storage models, we build a shared energy storage agent and a multi-microgrid interaction framework: the SES agent implements energy storage scheduling management by formulating charging and discharging power price strategies, and each microgrid implements the scheduling management of its internal flexible resources. Figure 2 As shown in the figure, each microgrid only uploads the power demand and surplus to the SES intelligent body, and does not provide other dispatching information of the microgrid, thus avoiding the privacy leakage of the microgrid itself. At the same time, the SES intelligent body formulates the energy storage charging and discharging power pricing strategy based on its own operating benefits and microgrid needs. Through the continuous optimization and iteration between the SES intelligent body and multiple microgrids, a multi-microgrid and SES collaborative economic dispatching strategy adapted to the uncertain influence of microgrid source and load is finally formulated, so as to realize the local and nearby consumption of distributed photovoltaic power within and between microgrids, reduce the energy demand for external distribution systems and gas systems, and improve the utilization rate of energy storage and the overall economic benefits of multiple microgrids.

[0032] For the SES agent and multi-microgrid interaction framework and economic dispatch model, which contains nonlinear terms such as 0-1 variables and source-load prediction terms, it is necessary to linearize and simplify the model when solving it through mathematical programming methods. There are problems such as high prediction accuracy requirements, slow solution speed, easy to fall into local optimality and convergence difficulties. The data-driven DRL method can overcome the above difficulties through autonomous learning and exploration capabilities, adapt to the environmental changes of source-load uncertainty on microgrid dispatch, and efficiently respond to complex sequence decision-making problems such as dispatch operation. Therefore, a method combining DRL and mathematical heuristic algorithms is used to realize the interactive solution of SES agents and multi-microgrids.

[0033] The solution of SES agent and multi-microgrid interaction is as follows Figure 3As shown in the figure. The economic dispatch of multiple microgrids is a relatively simple nonlinear optimization problem. The commercial solver CPLEX embedded with mathematical heuristic algorithms can quickly obtain the power dispatch decision plan of each flexible and adjustable resource. For the economic dispatch of SES agents, the economic dispatch of each microgrid is regarded as a learning environment. The interactive learning between agents and the environment is realized by adopting the DRL method, and finally the rapid pricing of charging and discharging power of SES agents and the adaptability of charging and discharging power dispatch decision are realized.

[0034] The DRL process can be expressed as a Markov decision process, that is, the state at the next moment is only related to the state and action at the current moment. The Markov decision process consists of the state space S , Action Space A , reward function r , state transition probability P and discount factor γ DRL can achieve the best state-action strategy through continuous interactive learning between the environment state and the agent action.

[0035] Based on the constructed shared energy storage dispatch model, the state space is used to characterize the information required for the SES agent to make decisions, including the power demand and surplus of multiple microgrids, the interactive power between microgrids, the power purchased by microgrids from the distribution system, the energy capacity of SES and the time-of-use electricity price, which can be expressed as: .

[0036] Based on the constructed shared energy storage dispatch model, the action space is the SES agent control variable, including the SES charging and discharging power price and the power purchased by SES from the distribution system, which can be expressed as: .

[0037] Based on the constructed shared energy storage scheduling model, the reward function of the SES agent is the reward for selecting an action based on the current environmental state and acting on the environment. The cumulative reward of the state-action strategy is maximized through the continuous learning of the agent, that is, the reward function can be expressed as follows according to the expression of the shared energy storage scheduling model: ; in, φ is a non-negative constraint penalty term. The greater the deviation of the agent's action from the constraint, the greater the constraint penalty term. T is the total scheduling period of the SES agent.

[0038] The state transition probability represents the probability distribution of the environment transitioning from the current period state to the next period state after a given environment state and agent action, which can be expressed as: ; in, s t For scheduling period tstatus, s t+1 For scheduling period t+ 1 status, a t For scheduling period t Actions, S t For scheduling period t The state space of S t+1 For scheduling period t+ 1 status, A t For scheduling period t action space.

[0039] The SES agent measures the quality of the state-action strategy using the state-action value function: ; in, E π For strategic expectations, π represents the state-action strategy, γ ∈[0,1].

[0040] Improved deep reinforcement learning algorithm: For value-based reinforcement learning algorithms represented by the Q-learning algorithm, the DDPG algorithm combines the powerful representation ability of neural networks and the Actor-Critic framework that takes into account both value and strategy, solves the high-dimensionality problem of the environment space, and can be applied to discrete / continuous action spaces. However, the DDPG algorithm easily over-estimates the Q value, resulting in suboptimal strategies. To this end, an improved DDPG algorithm, the Twin Delayed Deep Deterministic Policy Gradient (TD3) algorithm, is used to avoid the problem of over-estimation of the Q value. The TD3 algorithm improves the performance of the DDPG algorithm in three aspects. First, two new Critic deep learning networks are added to suppress the over-estimation of the state-action value function; then, the Actor neural network is updated after the Critic neural network is updated multiple times through delayed updates, making the training of the Actor neural network more stable; finally, random noise is introduced into the target Actor neural network to increase the overall stability of the TD3 algorithm. The SES agent and multi-microgrid interactive training framework based on the TD3 algorithm is as follows: Figure 4 shown.

[0041] In this embodiment, the above-mentioned TD3 algorithm is used to interactively solve the constructed shared energy storage scheduling model and each microgrid scheduling model to obtain a multi-microgrid scheduling solution.

[0042] S2. Schedule the multi-microgrid according to the multi-microgrid scheduling scheme to complete the multi-microgrid coordinated optimization scheduling.

[0043] In summary, the present invention can achieve the following functions: (1) A shared interaction framework between SES agents and multiple microgrids, as well as a scheduling model for SES agents and multiple microgrids were constructed; (2) The SES agent scheduling model is represented as a Markov decision process to achieve limited information sharing between SES agents and multiple microgrids; (3) The charging and discharging power pricing strategy of the SES intelligent agent and the scheduling decision scheme of each microgrid are obtained through the TD3 algorithm and the mathematical heuristic algorithm respectively.

[0044] In order to further demonstrate the technical effect of the present invention, verification analysis is carried out in combination with actual data and scenarios; a multi-microgrid system containing three microgrids in the same distribution area is used for example verification analysis. The three microgrids are provided with shared services by a 1MW / 4MWh shared energy storage power station. The equipment in each microgrid energy station takes a combined heat and power unit and an electric boiler as an example. The parameters of the SES and the equipment in each microgrid are shown in Table 1. The time-of-use electricity price of the distribution system is: 0.59 yuan during peak hours (12:00-19:00), 0.38 yuan during normal hours (07:00-12:00, 19:00-23:00), and 0.16 yuan during valley hours (23:00-07:00). The SES intelligent body and multiple microgrids carry out collaborative optimization scheduling at intervals of 1 hour, and the scheduling cycle is 24 hours. The effectiveness of the method provided by the present invention is verified by comparing and analyzing the offline training process of SES intelligent agents based on the DDPG algorithm and the TD3 algorithm, the multi-microgrid collaborative optimization scheduling scheme considering energy sharing (the method provided by the present invention), and the multi-microgrid independent energy storage and multi-microgrid shared energy storage scheduling schemes.

[0045] Table 1-SES and microgrid equipment parameters

[0046] The offline training parameters of SES agents for different reinforcement learning algorithms are shown in Table 2.

[0047] Table 2-Parameter configuration table of different deep reinforcement learning algorithms

[0048] Intelligent agent training and multi-microgrid coordinated scheduling analysis: The SES agent uses the daily heat load data and rooftop photovoltaic power generation data of multiple microgrids in a distribution area in Guangdong from June to September 2021 as a data set for offline training. The average reward function change trend of the agent training process based on the DDPG algorithm and TD3 algorithm is shown in the figure below: Figure 5 shown.

[0049] based on Figure 5 It can be seen that the TD3 algorithm, as an improved DDPG algorithm, can effectively avoid falling into local optimality during training. By introducing delayed updates and random noise, the average reward value is significantly better than the DDPG algorithm, and the average reward curve is smoother.

[0050] The electric heat load data and rooftop photovoltaic power generation data of multiple microgrids in the same distribution area on a certain working day in August 2022 were selected to test and evaluate the trained SES agent. The electric heat energy dispatch results of microgrid 1, microgrid 2 and microgrid 3 in the multi-microgrid collaborative optimization dispatch scheme based on the TD3 algorithm are shown in the figure below. Figures 6 to 11 As shown in Figure 2, the charging and discharging power pricing strategy and energy change results of SES are as follows: Figure 12 to Figure 13 The operating costs of microgrids 1-3 are ¥7963, ¥8076.4, and ¥8853, respectively, and the operating profit of SES is ¥5121.6.

[0051] based on Figures 6 to 13 The results of multi-microgrid economic dispatch considering energy sharing show that: 1) Each microgrid gives priority to the use of photovoltaic power generation during 9:00-18:00, especially when the photovoltaic power generation is greater than the power demand, the surplus photovoltaic power generation is used for electric boilers (12:00-13:00 for microgrid 1, 13:00 for microgrid 2, etc.), SES charging (14:00-16:00 for microgrid 1 and microgrid 3, 14:00-15:00 for microgrid 2) and providing support power to the interconnected microgrids (12:00-13:00 for microgrid 1 to transfer surplus power to microgrid 2 and microgrid 3); 2) During the peak electricity price period of 17:00-22:00, the microgrid is more inclined to purchase power from SES to avoid purchasing high-priced power from the distribution system and increasing the operating energy purchase cost; 3) During the valley price period and photovoltaic During the power generation period, electric boilers are used to provide heat energy, while during the peak price period, combined heat and power units are used to provide computers and heat energy. This is because the peak price is higher than the unit thermal power cost provided by gas, thereby reducing the operating energy purchase cost of the microgrid; 4) Since the initial energy capacity of SES is 50%, it discharges to microgrid 1 at a discharge price lower than the time-of-use electricity price from 0:00 to 6:00 to obtain discharge income. At the same time, SES discharges during the peak and flat electricity price periods at 17:00 and 20:00-21:00, and charges during the flat valley electricity price period from 8:00 to 11:00 and the photovoltaic power generation surplus period from 14:00 to 15:00 to achieve peak-valley flat price difference arbitrage profit. In addition, at 17:00 during the photovoltaic power generation period, SES has sufficient energy capacity, and the discharge power price is reduced to sell power to attract microgrids to use SES. 5) It can be seen from the operating costs of multiple microgrids and the operating income of SES that the interests of both parties are met, and it also verifies that the trained SES agent can adapt to the uncertain change scenario of source and load.

[0052] Analysis of independent and shared energy storage dispatching in multiple microgrids: In order to verify that the SES mode is more economical than the independent energy storage mode in the dispatch of microgrids, the SES capacity is decomposed according to the power demand of each microgrid, and used as an independent energy storage capacity to provide charging and discharging services to the corresponding microgrid. The advantages and disadvantages of the two energy storage participation modes are compared and analyzed from four dimensions: microgrid energy purchase cost, maintenance cost, total dispatch cost and energy storage income, as shown in Table 3. The energy purchase cost includes the cost of purchasing electricity and gas, the maintenance cost includes equipment maintenance and carbon emission costs, and the dispatch cost is the total cost of the microgrid. As shown in the figure, the energy storage maintenance cost includes the electricity purchase and equipment maintenance costs, and the energy storage profit income is the total energy storage income. The dispatching cost of multiple microgrids and energy storage is the difference between the total cost of microgrids and the profit of energy storage, which shows the overall dispatching cost.

[0053] Table 3 - Results of different ways of energy storage participating in microgrid dispatch

[0054] From Table 3, we can see that independent energy storage participating in multi-microgrid dispatching will directly purchase electric power from the distribution system at a price higher than the shared energy storage discharge power price, which cannot give full play to the price advantage of adjustable charging and discharging power of large-capacity energy storage, resulting in a significant increase in the energy purchase cost of each microgrid; under the condition of similar microgrid maintenance costs, independent energy storage participating in multi-microgrid dispatching makes the dispatching cost of each microgrid higher than that of the shared energy storage participation method. In addition, under the multi-microgrid dispatching method of independent energy storage participating, the energy storage maintenance cost of the three microgrids is higher than that of the shared energy storage participation method. This is because shared energy storage can not only purchase the surplus photovoltaic power of the microgrid at a low price, but also the power mutual assistance between multiple microgrids further reduces the discharge demand for shared energy storage, while independent energy storage not only needs to purchase charging power from the distribution system, but also needs to store the surplus photovoltaic power and use it for its own discharge demand in other time periods, and cannot provide power support to the interconnected microgrid. The participation of shared energy storage in multi-microgrid dispatching reduces the total dispatching cost of each microgrid and generates SES intelligent body benefits. By comparing the overall dispatching costs of multi-microgrids and energy storage, it can be seen that the participation of shared energy storage can give full play to the scale advantages of large-capacity energy storage. Not only can the charging and discharging prices be adjusted, but also charging and discharging power services can be flexibly provided to each microgrid at different time periods from a global perspective. In this example, the overall dispatching cost can be saved by 24.3%.

[0055] Example 2.

[0056] The present invention provides a multi-microgrid collaborative optimization scheduling device, comprising: The data acquisition module is configured to: obtain the input power, energy consumption and energy price of each device in the microgrid, and obtain the input power and output power of the shared energy storage system; The interactive solution module is configured to: interactively solve the constructed shared energy storage scheduling model and each microgrid scheduling model based on all acquired data to obtain a multi-microgrid scheduling plan including the target output power of each device in the microgrid; A collaborative optimization scheduling module is configured to: schedule the multi-microgrid according to the multi-microgrid scheduling scheme to complete the multi-microgrid collaborative optimization scheduling; The microgrid dispatching model is constructed by the following method: taking the operation cost of the constructed microgrid system model as the minimum and taking the microgrid operation constraint as the constraint, the microgrid dispatching model is constructed; The shared energy storage scheduling model is constructed by the following method: taking the maximization of the operating benefit of the constructed shared energy storage model as the goal and taking the interactive power constraint of the shared energy storage system and the distribution system as the constraint to construct the shared energy storage scheduling model.

[0057] Example 3.

[0058] The present invention provides a computer-readable storage medium having a computer program / instruction stored thereon. When the computer program / instruction is executed by a processor, the steps of the multi-microgrid collaborative optimization scheduling method described in any one of the first aspects are implemented: Obtain the input power, energy consumption and energy price of each device in the microgrid, and obtain the input power and output power of the shared energy storage system; Based on all the acquired data, the constructed shared energy storage scheduling model and each microgrid scheduling model are interactively solved to obtain a multi-microgrid scheduling plan including the target output power of each device in the microgrid; Scheduling the multi-microgrid according to the multi-microgrid scheduling scheme to complete the multi-microgrid coordinated optimization scheduling; The microgrid dispatching model is constructed by the following method: taking the operation cost of the constructed microgrid system model as the minimum and taking the microgrid operation constraint as the constraint, the microgrid dispatching model is constructed; The shared energy storage scheduling model is constructed by the following method: taking the maximization of the operating benefit of the constructed shared energy storage model as the goal and taking the interactive power constraint of the shared energy storage system and the distribution system as the constraint to construct the shared energy storage scheduling model.

[0059] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0060] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0061] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0062] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0063] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A multi-microgrid collaborative optimization scheduling method, characterized in that: include: Obtain the input power, energy consumption and energy price of each device in the microgrid, and obtain the input power and output power of the shared energy storage system; Based on all the acquired data, the constructed shared energy storage scheduling model and each microgrid scheduling model are interactively solved to obtain a multi-microgrid scheduling plan including the target output power of each device in the microgrid; Scheduling the multi-microgrid according to the multi-microgrid scheduling scheme to complete the multi-microgrid coordinated optimization scheduling; The microgrid dispatching model is constructed by the following method: taking the operation cost of the constructed microgrid system model as the minimum and taking the microgrid operation constraint as the constraint, the microgrid dispatching model is constructed; The shared energy storage scheduling model is constructed by the following method: taking the maximization of the operating benefit of the constructed shared energy storage model as the goal and taking the interactive power constraint of the shared energy storage system and the distribution system as the constraint to construct the shared energy storage scheduling model.

2. The multi-microgrid coordinated optimization scheduling method according to claim 1, characterized in that: The expression of the microgrid dispatch model is: ; ; ; ; in, P e ( t ) is the microgrid in the dispatching period t When purchasing power from the distribution system, P dis,i ( t ) is a microgrid i In the scheduling period t The SES discharge power at P cha,i ( t ) is a microgrid i In the scheduling period t SES charging power at P chp ( t ) is the microgrid in the dispatching period t When the combined heat and power unit outputs electrical power, P gb ( t ) is the microgrid in the dispatching period t When the gas boiler outputs electrical power, P eb ( t ) is the microgrid in the dispatching period t The electric power input to the electric boiler is q chp ( t ) is the microgrid in the dispatching period t The amount of natural gas consumed by the combined heat and power unit at that time, q gb ( t ) is the microgrid in the dispatching period t The amount of natural gas consumed by the gas boiler at f mic is the microgrid operating cost, f eg is the total energy purchase cost of the microgrid during all dispatch periods, f es is the total cost of energy purchase and sale from SES during all dispatch periods of the microgrid, f run is the total equipment maintenance cost of the microgrid during all dispatch periods, f c is the total carbon emission cost of the microgrid during all dispatch periods, f eg,t The microgrid is in the dispatching period t The energy purchase cost at f es,t,i For Microgrid i In the scheduling period t The cost of buying and selling energy from SES at that time, f run,t The microgrid is in the dispatching period t Equipment maintenance costs f c,t The microgrid is in the dispatching period t The carbon emission cost at c e ( t ) is in the scheduling period t Time-of-use electricity price of the power distribution system, c g is the natural gas price, c dis is the discharge price of the SES agent, c cha Charging price for SES smart body, c rc is the maintenance unit cost of the CHP unit, c rg is the unit cost of gas boiler maintenance, c re is the unit cost of maintenance of electric boiler, c ce is the carbon emission penalty factor; in, is the minimum value of the output power of the combined heat and power unit, is the maximum value of the output power of the combined heat and power unit, H gb ( t ) is the microgrid in the dispatching period t The gas boiler outputs thermal power. is the minimum value of the thermal power output of the gas boiler. is the maximum value of the thermal power output of the gas boiler. is the minimum value of electric boiler input power, is the maximum value of the electric power input to the electric boiler, P pv Output electrical power for photovoltaic system, P e Purchase power from the distribution system for the microgrid, The upper limit of power purchased by the microgrid from the distribution system, The lower limit of power purchased by the microgrid from the distribution system. P chp Output electrical power for the combined heat and power unit, P dis,i For Microgrid i The SES discharge power, P cha,i For Microgrid i SES charging power, P l is the electrical power demand, P eb Input electrical power to the electric boiler, P chp,i For Microgrid i The output power of the combined heat and power unit is P ij For Microgrid i and Microgrid j Interaction power, H chp Output thermal power for the combined heat and power unit, H eb Output heat power for electric boiler, H gb Output thermal power for gas boiler, H l is the heat demand power, k i For Microgrid i For the SES charge and discharge status, k i =0 means microgrid i Release power to SES, k i =1 indicates microgrid i Obtain electricity from SES, The upper limit of SES charging power. P tie For Microgrid i and Microgrid j Interaction power cap, N is the total number of microgrids.

3. The multi-microgrid coordinated optimization scheduling method according to claim 2 is characterized in that: The expression of the microgrid system model is: ; ; ; ; ; in, P pv ( t ) is the microgrid in the dispatching period t The photovoltaic system outputs electrical power when γ pv ( t ) is the microgrid in the dispatching period t The irradiation intensity of the photovoltaic panel is η pv is the conversion efficiency of the photovoltaic module, η MTTP is the photovoltaic maximum power tracking efficiency, A r is the irradiation area of ​​the photovoltaic panel, θ is the solar radiation angle, cos θ ( t ) is the microgrid in the dispatching period t The cosine value of the solar radiation angle at , H ng is the calorific value of natural gas, The power generation efficiency of the combined heat and power unit is is the heat-to-electricity ratio of the combined heat and power unit, H chp ( t ) is the microgrid in the dispatching period t When the combined heat and power unit outputs thermal power, η gb is the heat generation efficiency of the gas boiler, η eb is the heating efficiency of the electric boiler.

4. The multi-microgrid coordinated optimization scheduling method according to claim 2, characterized in that: The expression of the shared energy storage scheduling model is: ; ; ; ; in, f ses For SES operation income, f e2g is the total SES and distribution system energy interaction benefit in all dispatch periods, f es is the total SES and multi-microgrid energy interaction benefit in all dispatch periods, which is equal to the total energy purchase and sale cost from SES in all dispatch periods of the microgrid. f esr is the total SES operation and maintenance cost for all scheduling periods, f e2g,t For the scheduling period t The energy interaction benefit between SES and distribution system is P edis ( t ) is in the scheduling period t The discharge power of the interaction between SES and the distribution system is P echa ( t ) is in the scheduling period t The charging power of SES interacting with the distribution system is f esr,t For the scheduling period t SES operation and maintenance costs, c ses is the unit cost of operation and maintenance of SES, P cha Charging power for SES, P dis is the SES discharge power, is the maximum value of SES charging and discharging power, k e2g It is the charging and discharging status of the interaction between SES and the distribution system. k e2g =0 means SES is charged from the distribution system, k e2g =1 means SES discharges to the distribution system, P edis is the discharge power of the interaction between SES and the distribution system, P echa The charging power of SES interacting with the distribution system, c e It is the time-of-use electricity price of the distribution system.

5. The multi-microgrid coordinated optimization scheduling method according to claim 4 is characterized in that: The expression of the shared energy storage model is: ; ; in, E ses ( t ) is in the scheduling period t SES energy capacity, E ses ( t- 1) In the scheduling period t- 1: SES energy capacity, η c For SES charging efficiency, η d is the SES discharge efficiency, is the minimum value of SES charging and discharging power, P cha ( t ) is in the scheduling period t SES charging power, P dis ( t ) is in the scheduling period t When SES discharge power, is the minimum value of SES energy capacity, is the maximum value of SES energy capacity, E start is the SES energy capacity at the initial time of the scheduling period, E end is the SES energy capacity at the end of the scheduling period.

6. The multi-microgrid coordinated optimization scheduling method according to claim 1, characterized in that: The shared energy storage dispatching model and the microgrid dispatching model are modified after being constructed. The modification is performed by the following method: Each microgrid dispatching model is used as a learning environment, and the Markov decision process is used to realize the interactive learning of the shared energy storage dispatching model and the learning environment, so as to complete the modification of the shared energy storage dispatching model and the microgrid dispatching model.

7. The multi-microgrid coordinated optimization scheduling method according to claim 1, characterized in that: The interactive solution of the constructed shared energy storage dispatching model and each microgrid dispatching model is performed through the TD3 algorithm.

8. A multi-microgrid collaborative optimization scheduling device, characterized in that: include: The data acquisition module is configured to: obtain the input power, energy consumption and energy price of each device in the microgrid, and obtain the input power and output power of the shared energy storage system; The interactive solution module is configured to: interactively solve the constructed shared energy storage scheduling model and each microgrid scheduling model based on all acquired data to obtain a multi-microgrid scheduling plan including the target output power of each device in the microgrid; A collaborative optimization scheduling module is configured to: schedule the multi-microgrid according to the multi-microgrid scheduling scheme to complete the multi-microgrid collaborative optimization scheduling; The microgrid dispatching model is constructed by the following method: taking the operation cost of the constructed microgrid system model as the minimum and taking the microgrid operation constraint as the constraint, the microgrid dispatching model is constructed; The shared energy storage scheduling model is constructed by the following method: taking the maximization of the operating benefit of the constructed shared energy storage model as the goal and taking the interactive power constraint of the shared energy storage system and the distribution system as the constraint to construct the shared energy storage scheduling model.

9. The multi-microgrid coordinated optimization scheduling device according to claim 8, characterized in that: The expression of the microgrid dispatching model in the interactive solution module is: ; ; ; ; in, P e ( t ) is the microgrid in the dispatching period t When purchasing power from the distribution system, P dis,i ( t ) is a microgrid i In the scheduling period t The SES discharge power at P cha,i ( t ) is a microgrid i In the scheduling period t SES charging power at P chp ( t ) is the microgrid in the dispatching period t When the combined heat and power unit outputs electrical power, P gb ( t ) is the microgrid in the dispatching period t When the gas boiler outputs electrical power, P eb ( t ) is the microgrid in the dispatching period t The electric power input to the electric boiler is q chp ( t ) is the microgrid in the dispatching period t The amount of natural gas consumed by the combined heat and power unit at that time, q gb ( t ) is the microgrid in the dispatching period t The amount of natural gas consumed by the gas boiler at f mic is the microgrid operating cost, f eg is the total energy purchase cost of the microgrid during all dispatch periods, f es is the total cost of energy purchase and sale from SES during all dispatch periods of the microgrid, f run is the total equipment maintenance cost of the microgrid during all dispatch periods, f c is the total carbon emission cost of the microgrid during all dispatch periods, f eg,t The microgrid is in the dispatching period t The energy purchase cost at f es,t,i For Microgrid i In the scheduling period t The cost of buying and selling energy from SES at that time, f run,t The microgrid is in the dispatching period t Equipment maintenance costs f c,t The microgrid is in the dispatching period t The carbon emission cost at c e ( t ) is in the scheduling period t Time-of-use electricity price of the power distribution system, c g is the natural gas price, c dis is the discharge price of the SES agent, c cha Charging price for SES smart body, c rc is the maintenance unit cost of the CHP unit, c rg is the unit cost of gas boiler maintenance, c re is the unit cost of maintenance of electric boiler, c ce is the carbon emission penalty factor; in, is the minimum value of the output power of the combined heat and power unit, is the maximum value of the output power of the combined heat and power unit, H gb ( t ) is the microgrid in the dispatching period t The gas boiler outputs thermal power. is the minimum value of the thermal power output of the gas boiler. is the maximum value of the thermal power output of the gas boiler. is the minimum value of electric boiler input power, is the maximum value of the electric power input to the electric boiler, P pv Output electrical power for photovoltaic system, P e Purchase power from the distribution system for the microgrid, The upper limit of power purchased by the microgrid from the distribution system, The lower limit of power purchased by the microgrid from the distribution system. P chp Output electrical power for the combined heat and power unit, P dis,i For Microgrid i The SES discharge power, P cha,i For Microgrid i SES charging power, P l is the electrical power demand, P eb Input electrical power to the electric boiler, P chp,i For Microgrid i The output power of the combined heat and power unit is P ij For Microgrid i and Microgrid j Interaction power, H chp Output thermal power for the combined heat and power unit, H eb Output heat power for electric boiler, H gb Output thermal power for gas boiler, H l is the heat demand power, k i For Microgrid i For the SES charge and discharge status, k i =0 means microgrid i Release power to SES, k i =1 indicates microgrid i Obtain electricity from SES, The upper limit of SES charging power. P tie For Microgrid i and Microgrid j Interaction power cap, N is the total number of microgrids.

10. A computer-readable storage medium having a computer program / instruction stored thereon, characterized in that: When the computer program / instruction is executed by a processor, the steps of the multi-microgrid collaborative optimization scheduling method described in any one of claims 1-7 are implemented.

Citation Information

Cited By

  • Power distribution network-microgrid coordinated optimization scheduling method and device, medium and equipment

    CN120049523A