An energy hierarchical management optimization method for active distribution network of multi-microgrid system

By constructing an energy hierarchical management model for a multi-microgrid system and using an improved Sparrow search algorithm, the difficult problem of energy hierarchical management in a multi-microgrid system is solved, the economy and reliability of the power system are achieved, and the user's electricity consumption is improved. timeliness and stability.

CN114819349BActive Publication Date: 2024-09-20HEBEI UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210455248.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-28
Publication Date
2024-09-20
Estimated Expiration
2042-04-28

AI Technical Summary

Technical Problem

In a multi-microgrid system, how to optimize energy hierarchical management, improve the utilization efficiency of renewable energy, and deal with difficult issues such as user load demand response and system operation strategy while ensuring the safe and reliable operation of the active distribution network.

Method used

An active distribution network energy hierarchical management model containing multiple microgrid systems with combined cooling, heating and power is constructed. Through the interaction between the active distribution network energy decision-making center and the microgrid energy management system, the improved Sparrow search algorithm is used for energy hierarchical management. The model is solved to achieve optimization of energy hierarchical management.

Benefits of technology

It achieves the goal of maximizing the economic benefits of the power grid while improving the flexibility and stability of power system operation, reducing operating costs, optimizing the energy hierarchical management of multi-microgrid systems, and improving the economy and reliability of users' electricity consumption. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114819349B
    Figure CN114819349B
Patent Text Reader

Abstract

The invention relates to an active distribution network energy hierarchical management optimization method of a multi-microgrid system, and the technical characteristics thereof are as follows: constructing an active distribution network energy hierarchical management model of a multi-microgrid system containing a cooling, heating and power cogeneration type, the model being divided into an active distribution network layer optimization model and a multi-microgrid system layer optimization model; introducing a multi-microgrid system demand response strategy, and realizing maximum absorption of renewable energy while considering demand response; introducing four means of nonlinear mapping, sine and cosine model, dynamic inertia weight factor and Lévy flight strategy to improve a sparrow search algorithm, setting parameters of the improved sparrow search algorithm for initialization, updating the optimal position of an iterative population and its corresponding fitness value; finally displaying the optimization result of the improved sparrow search algorithm on the energy hierarchical management model; the invention optimizes the energy hierarchical management problem, and both ensures the flexibility of power system dispatching and reduces the operation cost of the power system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of electric power systems, and in particular to an active distribution network energy hierarchical management optimization method for a multi-microgrid system. Background Art

[0002] As global fossil energy reserves decrease, the proportion of renewable energy consumption is gradually increasing. Compared with traditional centralized power generation, renewable energy usually participates in the operation of distribution networks in the form of distributed power sources. Distributed power sources have the characteristics of less pollution, high efficiency and flexible installation, which are effective support and powerful supplement to large power grids. The integration of distributed power sources, energy storage systems and user loads into a modular, miniaturized and decentralized functional network system through centralized control and protection devices plays an important role in making full use of renewable energy, improving the flexibility and stability of the power system, and providing reliable and efficient electricity to power users. However, the output of renewable energy is random and volatile, and a large number of access to the distribution network will have an adverse effect on the reliability of the power system. Therefore, it is necessary to adopt a flexible network topology to achieve active control of distributed power sources and active management of the load demand side.

[0003] As the core component to ensure the coordinated operation of distribution network and microgrid system, the energy management of multi-microgrid (MMG) system is composed of the energy management of each internal microgrid system. When a large number of complex microgrid systems are connected to the active distribution network, how to ensure the safe, reliable and economic operation of each microgrid system under the premise of stable operation of the main network has important research value for power production and life electricity consumption, and will also be one of the important trends of the future energy Internet. Therefore, the corresponding research and analysis of the energy management of active distribution network containing multi-microgrid system can not only effectively improve the utilization efficiency of renewable energy, but also conform to the development of energy Internet, which has important practical value. However, facing the problems of user load demand response, system operation strategy and model solution, it is the difficulty of studying the hierarchical energy management of active distribution network containing multi-microgrid system.

[0004] In summary, considering the larger-scale and more complex multi-microgrid system model as well as various factors such as energy interaction and market transactions between active distribution networks, optimizing the hierarchical energy management of active distribution networks containing multi-microgrid systems has become an urgent problem to be solved. Summary of the invention

[0005] The purpose of the present invention is to overcome the shortcomings of the prior art, propose an energy hierarchical management optimization method for active distribution network of multi-microgrid system, construct an energy hierarchical management model for active distribution network of multi-microgrid system including combined cooling, heating and power (CCHP), which is interacted and managed by the energy decision center (EDC) of active distribution network and the energy management system (EMS) of microgrid. The energy hierarchical management model is solved by using the improved sparrow search algorithm (ISSA), and the energy hierarchical management model is optimized, so that the economic benefits of the power grid are maximized while ensuring the safe and reliable operation of the active distribution network.

[0006] The present invention solves the technical problem by adopting the following technical solutions:

[0007] An active distribution network energy hierarchical management optimization method for a multi-microgrid system comprises the following steps:

[0008] Step 1, establish an active distribution network layer optimization model;

[0009] Step 2, establishing a multi-microgrid system-level optimization model;

[0010] Step 3: Introduce a multi-microgrid system demand response strategy;

[0011] Step 4, using the improved sparrow search algorithm to solve the energy hierarchical management model;

[0012] Step 5, displaying the optimization result of the improved sparrow search algorithm on the energy hierarchical management model;

[0013] Furthermore, the specific implementation method of step 1 includes the following steps:

[0014] Step 1.1, construct the objective function of the active distribution network layer;

[0015] Step 1.2, establish the constraints of the active distribution network layer;

[0016] The specific implementation method of step 1.1 is:

[0017] As the upper model of energy hierarchical management, the active distribution network layer realizes effective decision-making and management of energy flow within the system, with the lowest total cost of the generator set as the objective function as shown in formula (1):

[0018] min f=f1+f2+f3 (1)

[0019]

[0020]

[0021] Where f is the total cost of the generator set, f1 is the operating cost of the generator set, f2 is the energy interaction cost, f3 is the penalty fee of the active distribution network layer, T is the system operation cycle, which is set to 24h, and N G is the number of generating units, P G,q (t) is the output power of the qth unit at time t, a q 、b q and c q is the operating parameter of the qth unit, P v,ADN (t), P w,ADN (t) are the energy shortage and waste of the active distribution network layer at time t, ξ is the penalty coefficient, N MG is the number of microgrid systems, C MMG and C G is the transaction fee between the active distribution network, the multi-microgrid system and the main grid, P buy,MG,n (t), P sell,MG,n (t) are the power purchased and sold by the nth microgrid system to the active distribution network at time t, c buy,ADN (t), c sell,ADN (t) are the unit price of electricity purchased and sold from the active distribution network at the multi-microgrid system layer at time t, c buy,G (t), c sell,G (t) are the unit price of electricity purchased and sold by the active distribution network to the main grid at time t, P buy,G (t), P sell,G (t) are the power purchased and sold by the active distribution network to the main grid at time t;

[0022] The specific implementation method of step 1.2 is:

[0023] The active distribution network satisfies the load balance constraint and the unit output constraint, and needs to consider the transmission capacity constraint of the tie line between the active distribution network and the main grid at the same time, as shown in equations (4), (5) and (6):

[0024]

[0025]

[0026]

[0027] Where N G is the number of generating units, N MG is the number of microgrid systems, P D(t) is the independent user load demand at the active distribution network layer at time t, P G,j (t) The active distribution network layer is the output of the jth generator set at time t, P buy,MG,n (t), P sell,MG,n (t) are the power purchased and sold by the nth microgrid system to the active distribution network at time t, P buy,G (t), P sell,G (t) are the power purchased and sold by the active distribution network to the main grid at time t, and are the minimum and maximum output of the jth generator set, respectively. and are the minimum and maximum electricity sales from the active distribution network to the main grid, and are the minimum and maximum power purchases from the active distribution network to the main grid, P G,j (t), P sell,G (t) and P buy,G (t) are the output of the jth generator set at time t, the power sold and purchased by the active distribution network from the main grid;

[0028] Furthermore, the specific implementation method of step 2 includes the following steps:

[0029] Step 2.1, construct the objective function of the multi-microgrid system layer;

[0030] Step 2.2, establish the constraints of the multi-microgrid system layer;

[0031] The specific implementation method of step 2.1 is:

[0032] In the multi-microgrid system layer, each microgrid energy management system (EMS) sends the power interaction information of the lower layer to the upper layer active distribution network energy decision center (EDC). At the same time, in the multi-microgrid system layer, the sum of the operating costs of each microgrid system is used as the operating cost of the lower layer model, that is, the optimization objective function of the multi-microgrid system layer, as shown in formula (7):

[0033] min F=min g1+min g2 (7)

[0034] Where F is the comprehensive objective function of the multi-microgrid system layer, g1 and g2 are the economic cost and environmental cost of the objective function of each microgrid system, respectively;

[0035] Furthermore, the economic cost objective function of each microgrid system is shown in formula (8):

[0036] min g1=C F +C M +C ADN+C P (8)

[0037]

[0038] In the formula, C F is the natural gas consumption cost, C M is the initial investment cost, operation and maintenance cost of the equipment, C ADN is the energy interaction cost with the active distribution network layer, C P is the penalty fee, c gas is the unit price of natural gas, which is 2.05 yuan / m 3 , Q GT (t) is the heating power of the gas turbine at time t, Q GB (t) is the heat output of the gas boiler at time t, N D is the number of equipment types, r is the equipment discount rate, l is the equipment life cycle, is the initial investment cost of the kth type of equipment, is the operation and maintenance cost of the kth type of equipment, N k For the kth class of equipment, is the rated power of the kth type of equipment, P buy,MG (t), P sell,MG (t) are the power purchased from the active distribution network and the power sold to the active distribution network by the microgrid system at time t, c buy,ADN (t), c sell,ADN (t) are the unit price of electricity purchased from the active distribution network and the unit price of electricity sold to the active distribution network at the multi-microgrid system layer at time t, P v,MG (t), P w,MG (t) are the shortfall and waste of the microgrid system energy at time t, respectively. v,MG (t), Q w,MG (t) are the shortfall and waste of thermal energy in the microgrid system at time t, ξ is the penalty coefficient, and T is the operation cycle of the system, which is set to 24h;

[0039] Furthermore, the environmental cost objective function of each microgrid system is shown in formula (10):

[0040]

[0041] Where k = 1, 2, 3, and K∈{CO2, NO, SO2} is the type of pollutant, c k is the cost of treating each gram of type k pollutant by the microgrid system, χ k,GT , χ k,GB , χ k,EC and χ k,ADNare the emission coefficients of the kth type of pollutants from gas turbines, gas boilers, electric refrigerators, and electricity purchased from the active distribution network, P GT (t) is the power generation of the gas turbine at time t, Q GB (t) is the heat output of the gas boiler at time t, Q EC (t) is the cooling energy output by the electric refrigerator at time t, P buy,MG (t) is the power purchased by the microgrid system from the active distribution network at time t, T is the operation cycle of the system, which is set to 24h;

[0042] The specific implementation method of step 2.2 is:

[0043] The constraints in the multi-microgrid system layer include load balance constraints, energy storage system capacity constraints, equipment output constraints, equipment configuration quantity constraints, and transaction constraints with the active distribution network. At the same time, the energy storage system capacity and equipment configuration quantity are used as decision variables of the lower-level model.

[0044] Furthermore, the equipment output in any time period must match the demand of cooling, heating and electricity loads to meet the load balance constraint, as shown in formula (11):

[0045]

[0046] Where P Load (t), Q Load,h (t) and Q Load,c (t) are the demands of electric load, heat load and cooling load of CCHP microgrid system at time t, P WT (t) is the output power of the wind power generation system at time t, P PV (t) is the output power of the photovoltaic power generation system at time t, P BIO (t) is the output power of the biogas power generation system at time t, P GT (t) is the output power of the wind power generation system at time t, P c (t), P d (t) are the charging and discharging power of the battery at time t, P buy,MG (t), P sell,MG (t) are the power purchased from the active distribution network and the power sold to the active distribution network by the microgrid system at time t, Q HE (t) is the heat energy output by the heat converter at time t, Q c (t), Q d (t) are the heat storage and heat release powers of the heat storage tank at time t, Q GB (t) is the heat output of the gas boiler at time t, Q EC (t) is the cooling energy output by the electric refrigerator at time t, Q AC(t) The cooling energy output by the absorption refrigerator at time t;

[0047] Furthermore, the capacity constraints of the energy storage system include the capacity constraints of the battery and the heat storage tank, and the battery and the heat storage tank cannot be in the state of energy input and energy output at the same time. The constraint conditions are shown in equations (12) and (13) respectively:

[0048]

[0049] In the formula, and are the minimum and maximum energy storage capacity of the battery, and are the minimum and maximum charging power of the battery respectively, and are the minimum and maximum discharge power of the battery, E BAT (t), P c (t) and P d (t) are the energy storage capacity, charging power and discharging power of the battery at time t respectively;

[0050]

[0051] In the formula, and are the minimum and maximum energy storage capacity of the heat storage tank, and are the minimum and maximum heat storage power of the heat storage tank, and are the minimum and maximum heat release power of the heat storage tank, Q HST (t), Q c (t) and Q d (t) are the energy storage capacity, heat storage power and heat release power of the heat storage tank at time t respectively;

[0052] Furthermore, the equipment output constraint condition is shown in formula (14):

[0053]

[0054] In the formula, and are the minimum outputs of wind power generation system, photovoltaic power generation system, biogas power generation system, gas turbine and gas boiler respectively. and are the maximum outputs of wind power generation system, photovoltaic power generation system, biogas power generation system, gas turbine and gas boiler, respectively. WT (t), P PV (t), P BIO (t), P GT(t) and Q GB (t) are the outputs of wind power generation system, photovoltaic power generation system, biogas power generation system, gas turbine and gas boiler at time t respectively;

[0055] Furthermore, the equipment configuration quantity constraint is shown in formula (15):

[0056]

[0057] In the formula, and are the minimum number of wind turbines, photovoltaic cells, gas turbines, batteries, heat storage tanks and gas boilers. and are the maximum number of wind turbines, photovoltaic cells, gas turbines, batteries, heat storage tanks and gas boilers, respectively. WT 、N PV 、N GT 、N BAT 、N HST and N GB are the number of wind turbines, photovoltaic cells, gas turbines, batteries, heat storage tanks and gas boilers, respectively. BIO (t) is the intake volume of biogas at time t, and They are the minimum and maximum intake volumes of biogas in the biogas power generation system respectively;

[0058] Furthermore, the transaction constraints with the active distribution network are shown in formula (16):

[0059]

[0060] In the formula, and are the minimum and maximum power purchase of the microgrid system, and are the minimum and maximum power sales of the microgrid system, P buy,MG (t) and P sell,MG (t) are the power purchase and power sales of the microgrid system at time t;

[0061] Furthermore, the specific implementation method of step 3 includes the following steps:

[0062] Step 3.1, determine the electricity price elasticity matrix and the time-of-use electricity price of each microgrid system;

[0063] Step 3.2, analyzing the power load data in each time period;

[0064] Step 3.3, based on the environmental data and the equipment parameters of each microgrid system, calculate the output of renewable energy in each time period;

[0065] The electricity price elasticity matrix of step 3.1 is shown in formula (17):

[0066]

[0067] Where P p , P m and P y are the average load in each period after price-based demand response, P p,0 , P m,0 and P y,0 are the average load in each period before price-based demand response, P c is the electricity price elasticity coefficient, p, m and y represent the peak, flat and valley periods in the time-of-use electricity price mechanism respectively, Δc p , Δc m and Δc y They represent the change in electricity price in each period after demand response, c p,0 、c m,0 and c y,0 Indicates that the electricity price before the adoption of the time-of-use electricity price is regarded as the unified price;

[0068] Furthermore, the specific implementation method of step 4 includes the following steps:

[0069] Step 4.1, determine the maximum number of iterations, population size, search space range, dimension, and proportion of discoverers;

[0070] Step 4.2, introduce nonlinear mapping to initialize the population position;

[0071] Step 4.3, calculate the current fitness value and record the population position;

[0072] Step 4.4, introduce the sine-cosine model and dynamic inertia weight factor to improve the discoverer position update formula;

[0073] Step 4.5, update the position of the joiner and calculate the position and fitness value of the current individual;

[0074] Step 4.6, determine and update the vigilant position and execute the Lévy flight strategy;

[0075] Step 4.7, output the optimization result of the improved sparrow search algorithm;

[0076] The specific implementation method of step 4.1 is:

[0077] Assume an optimal search space, where discoverers account for 20% of the total number of sparrows, joiners account for 80% of the total number of sparrows, and vigilant ones account for 10% to 20% of the total population. Such sparrows will be randomly generated from individuals in the population. The initial position of the sparrows is shown in formula (18):

[0078]

[0079] In the formula, X is the matrix space, d represents the dimension of the variable to be optimized, and s is the number of sparrows;

[0080] The specific implementation method of step 4.2 is:

[0081] Improve the spatial distribution of sparrows and expand the search range of the global optimal solution, that is, expand the diversity of solutions to the energy stratification model and speed up the screening of individuals with small fitness values, and select nonlinear mapping to initialize the population, as shown in formula (19):

[0082]

[0083] Where w represents the current number of iterations of the nonlinear mapping, is the nonlinear value of the i-th sparrow in the j-th dimension at the w-th time during initialization, and p is the nonlinear mapping parameter, which is set to 0.4;

[0084] The specific initialization steps are as follows:

[0085] 1) Determine the nonlinear mapping parameter p and the maximum number of iterations;

[0086] 2) Randomly generate initial values ​​of nonlinear mapping variables;

[0087] 3) Substitute into formula (19) to iterate and update the number of iterations;

[0088] 4) If the maximum number of iterations is met, go to 5), otherwise return to 3);

[0089] 5) At the end of the iteration, the heterozygous sequence is obtained and remapped to the individual;

[0090] The specific implementation method of step 4.4 is:

[0091] The objective function is solved by using the oscillation changes of the sine and cosine model, that is, updating the position of the sparrow finder, strengthening the global optimization and local search capabilities of the energy stratification model, and reducing the fitness value to obtain the global optimal solution;

[0092] The update formulas of the discoverer position before and after improvement in sparrow are shown in formula (20) and formula (21) respectively:

[0093] Before improvement:

[0094]

[0095] In the formula, h represents the current iteration number of the algorithm, is the value of the i-th sparrow in the j-th dimension, α∈[0,1] is a random number, M max is the maximum number of iterations, Q represents a random value that follows a normal distribution, R2∈[0,1] is the warning value, and ST∈[0.5,1] is the safety value;

[0096] After improvement:

[0097]

[0098]

[0099] In the formula, It represents the optimal position of the sparrow population under the hth iteration, that is, the fitness value of the current individual is the smallest, which is the optimal solution of the energy hierarchical model. r1′ is the improved step search factor, where a is a constant, η is the adjustment coefficient, and η≥1, r2∈[0,2π], controls the moving distance of the sparrow individual, r3∈[0,2], controls the update of the optimal position of the sparrow individual to the position, represents the dynamic inertia weight factor, where and are weight parameters, set to 0.9 and 0.4 respectively;

[0100] The specific implementation method of step 4.5 is:

[0101] The position update formula of the joiner in the sparrow is shown in formula (23):

[0102]

[0103] In the formula, represents the worst position of the sparrow population under the hth iteration, is the other solution of the energy hierarchical model, d represents the dimension of the variable to be optimized, when i>s / 2, this part of the sparrows is in an extremely hungry state, with low energy and poor fitness value, and needs to change the foraging position to obtain higher energy;

[0104] The specific implementation method of step 4.6 is:

[0105] In the vigilance mechanism, the sparrows at the center of the population will attract the sparrows at the edge of the population and jump to the current optimal position, that is, to ensure that the energy hierarchical management model with high fitness values ​​gradually transitions to low fitness values, and other solutions move closer to the optimal solution. The introduction of the Lévy flight strategy will also make the energy hierarchical management model jump out of the local optimal solution and obtain the global optimal solution.

[0106] Introducing the alert mechanism, the position update is shown in formula (24):

[0107]

[0108] In the formula, β represents the step size control parameter and is a random value that follows a normal distribution with a mean of 0 and a variance of 1. K∈[-1, 1] is a random value that is also used to control the moving direction of the sparrow. σ is a very small constant that is used to prevent the denominator from being 0 and is set to 10. -5 , f w Indicates the worst individual fitness value in the current population, f i represents the fitness value of the i-th sparrow;

[0109] After the vigilant position is updated, the Lévy flight strategy is executed to update the individual position, as shown in formula (25):

[0110]

[0111] In the formula, is the dot multiplication operation, L is the step length control coefficient, L(λ) is the path function of Lévy flight, and its step length formula is shown in formula (26):

[0112] step=u / |v| 1 / γ (26)

[0113]

[0114] In the formula, γ is a constant, set to 1.5, u and v are random values ​​that follow a normal distribution, and σ u and σ v is the square of u and v, Γ is the gamma function;

[0115] The specific implementation method of step 4.7 is:

[0116] After the update is completed, the best and worst individual positions and their corresponding fitness values ​​are selected to determine whether the maximum number of iterations is met. If the maximum number of iterations is met, the best population position and the corresponding fitness value are output, otherwise return to step 4.3;

[0117] Furthermore, the specific implementation method of step 5 includes the following steps:

[0118] With the help of MATLB software, the optimization results of the interaction and management between the active distribution network energy decision center (EDC) and the microgrid energy management system (EMS) in step 5 are displayed on the computer monitor.

[0119] The above-mentioned active distribution network energy hierarchical management optimization method of a multi-microgrid system, the idea of ​​the improved sparrow search algorithm (ISSA) and the energy hierarchical management model are existing technologies and are well known to technicians in this technical field;

[0120] The above-mentioned method for optimizing the hierarchical management of energy of active distribution network of a multi-microgrid system, the construction of the scheduling model of the multi-microgrid system layer and the active distribution network layer and the input method of each model parameter are well-known methods;

[0121] In the above-mentioned method for optimizing hierarchical management of active distribution network energy in a multi-microgrid system, the computer, display and MATLAB computer software are all commercially available.

[0122] The advantages and positive effects of the present invention are:

[0123] 1. The active distribution network energy hierarchical management optimization method of a multi-microgrid system of the present invention is not limited to the active distribution network energy hierarchical management of the multi-microgrid system, and can also be extended to the optimization of other systems;

[0124] 2. The present invention improves the optimization speed and stability of the improved sparrow search algorithm (ISSA) through four means: nonlinear mapping initialization, sine-cosine model, dynamic inertia weight factor and Lévy flight strategy, so that the algorithm can quickly and accurately solve the optimal output scheme of the energy hierarchical management model, bringing good economic benefits to the operation of the power system;

[0125] 3. The present invention introduces a multi-microgrid system demand response strategy, which not only takes into account the participation of internal users in load demand response, but also realizes the maximum consumption of renewable energy, guarantees the economy, reliability and timeliness of users' electricity consumption to the greatest extent, and reduces the transfer or interruption of loads;

[0126] 4. The present invention is reasonably designed, which reduces the operating cost of the power system while improving the flexibility of power system dispatching, optimizes the energy hierarchical management problem of the active distribution network of the multi-microgrid system, and improves the stability of power system operation. BRIEF DESCRIPTION OF THE DRAWINGS

[0127] The present invention is further described below in conjunction with the accompanying drawings and embodiments.

[0128] Figure 1 It is a schematic flow diagram of the method of the present invention;

[0129] Figure 2 It is a diagram of energy hierarchical management structure of active distribution network including multi-microgrid system of combined cooling, heating and power;

[0130] Figure 3 It is a flow chart of the improved sparrow search algorithm in the method of the present invention;

[0131] Figure 4 It is the result diagram of energy management at the active distribution network level;

[0132] Figure 5 It is the result diagram of the interaction between the active distribution network layer and the electric energy;

[0133] Figure 6 It is the electric load result diagram of microgrid systems MG1, MG2, and MG3 under the demand response strategy;

[0134] Figure 7 It is the result diagram of energy management and electric energy interaction of microgrid system MG1, MG2, and MG3; DETAILED DESCRIPTION

[0135] Figure 1 The process of an active distribution network energy hierarchical management optimization method of a multi-microgrid system is shown as follows: start → establish an active distribution network layer optimization model → establish a multi-microgrid system layer optimization model → introduce a multi-microgrid system demand response strategy → use an improved sparrow search algorithm to solve the energy hierarchical management model → display the optimization results of the improved sparrow search algorithm on the energy hierarchical management model → end;

[0136] Figure 3 The process of the improved sparrow search algorithm of the present invention is as follows: start → assign values ​​to relevant parameters → introduce nonlinear mapping to initialize the population → solve and record the current optimal and worst population positions → introduce sine-cosine models and dynamic inertia factors → update the discoverer position → update the joiner position → determine and update the vigilant position and execute the Lévy flight strategy → update the optimal and worst individual positions and their corresponding fitness values ​​→ determine whether the maximum number of iterations has been reached, if satisfied, output the optimal population position and the corresponding fitness value, otherwise continue iteration → end;

[0137] Example 1

[0138] The present invention proposes an active distribution network energy hierarchical management optimization method for a multi-microgrid system. A PC is used as a platform for model construction. The operating environment is MATLAB R2016a software based on the Microsoft Windows 10 operating system, and the hardware configuration is Core i5-5200U 2.20GHz and 4GB RAM.

[0139] like Figure 2As shown, in this embodiment, the environmental data is derived from the Meteonorm8.0 meteorological data set. At the same time, the load data includes the independent load obtained inside the active distribution network and the cold, hot and electric loads of each CCHP microgrid system, which is derived from the load data of 16 commercial reference building information released by the U.S. Department of Energy. The restaurants, supermarkets and shopping malls in the data set are taken as MG1, the hotels and apartment areas are taken as MG2, and the office areas are taken as MG3;

[0140] Step 1, establish an active distribution network layer optimization model;

[0141] Step 1.1, construct the objective function of the active distribution network layer;

[0142] As the upper model of energy hierarchical management, the active distribution network layer realizes the effective decision-making and management of the energy flow within the system, with the minimum total cost of the generator set as the objective function as shown in formula (1);

[0143] Step 1.2, establish the constraints of the active distribution network layer;

[0144] The active distribution network satisfies the load balance constraint and the unit output constraint, and needs to consider the transmission capacity constraint of the tie line between the active distribution network and the main grid at the same time, as shown in equations (4), (5) and (6);

[0145] Step 2, establishing a multi-microgrid system-level optimization model;

[0146] Step 2.1, construct the objective function of the multi-microgrid system layer;

[0147] In the multi-microgrid system layer, each microgrid energy management system (EMS) sends the power interaction information of the lower layer to the upper layer active distribution network energy decision center (EDC). At the same time, in the multi-microgrid system layer, the sum of the operating costs of each microgrid system is used as the operating cost of the lower layer model, that is, the optimization objective function of the multi-microgrid system layer, as shown in formula (7);

[0148] Step 2.2, establish the constraints of the multi-microgrid system layer;

[0149] The constraints in the multi-microgrid system layer include load balance constraints, energy storage system capacity constraints, equipment output constraints, equipment configuration quantity constraints, and transaction constraints with the active distribution network. At the same time, the energy storage system capacity and equipment configuration quantity are used as decision variables of the lower model, as shown in Equations (11), (12), (13), (14), (15), and (16), respectively.

[0150] Step 3: Introduce a multi-microgrid system demand response strategy;

[0151] Step 3.1, determine the electricity price elasticity matrix and the time-of-use electricity price of each microgrid system;

[0152] The electricity price elasticity matrix is ​​shown in formula (17), and the time-of-use electricity prices of each microgrid system are shown in Table 3;

[0153] Step 3.2, analyzing the power load data in each time period;

[0154] Step 3.3, based on the environmental data and the equipment parameters of each microgrid system, calculate the output of renewable energy in each time period;

[0155] In the active distribution network layer, three generator sets are set and the output ratio between the generator sets is used as the decision variable and constraint condition of the upper model. Among them, the capacity of unit 1 is the largest and it will undertake the main power generation task, while the minimum output ratio of units 2 and 3 is 0.20. The operating parameters of each generator set are shown in Table 1. In the multi-microgrid system layer, the depreciation coefficient of the equipment is set to 0.08, the maximum and minimum charge states of the energy storage system are 0.9 and 0.2 respectively, and the lower limit of the biogas intake per unit time is 50m 3 / h, the unit prices of pollutants CO2, NO and SO2 are 0.000 21 yuan / g, 0.063 0 yuan / g and 0.014 8 yuan / g respectively. The relevant parameters and costs of various equipment and the emissions of pollutants are shown in Tables 2 and 3. The time-of-use electricity prices of the multi-microgrid system layer and the active distribution network layer (MMG-ADN) and the time-of-use electricity prices of the active distribution network layer and the main grid (AND-main grid) are shown in Table 4. The equipment composition and equipment quantity constraints of each microgrid system are shown in Table 5. The peak, flat and valley time divisions of each microgrid system are shown in Table 6.

[0156] Table 1 Generator parameters at the active distribution network layer

[0157]

[0158] Table 2 Equipment parameters of multi-microgrid system layer

[0159]

[0160] Table 3 Pollutant emission coefficients

[0161]

[0162] Table 4 Time-of-use electricity price

[0163]

[0164] Table 5 Equipment composition and upper limit of quantity of each microgrid system

[0165]

[0166] Table 6 The results of peak, flat and valley time division of each microgrid system

[0167]

[0168] Step 4, using the improved sparrow search algorithm to solve the energy hierarchical management model;

[0169] Step 4.1, determine the maximum number of iterations, population size, search space range, dimension, and proportion of discoverers;

[0170] The number of sparrow population s is 100, the number of discoverers is 20, the number of joiners is 80, of which the number of vigilant vigilant is 15, the search space range X is a 100×2 matrix space with a dimension of 2, the maximum number of iterations is 500, and the initial position of the sparrow is shown in formula (18);

[0171] Step 4.2, introduce nonlinear mapping to initialize the population position;

[0172] Improve the spatial distribution of sparrows and expand the search range of the global optimal solution, that is, expand the diversity of the energy layered model solution and speed up the screening of individuals with small fitness values, and select nonlinear mapping to initialize the population, as shown in formula (19);

[0173] Step 4.3, calculate the current fitness value and record the population position;

[0174] Step 4.4, introduce the sine-cosine model and dynamic inertia weight factor to improve the discoverer position update formula;

[0175] The objective function is solved by using the oscillation change of the sine-cosine model, that is, updating the position of the sparrow finder, strengthening the global optimization and local search capabilities of the energy hierarchical model, reducing the fitness value and obtaining the global optimal solution. The update formulas before and after the improvement of the finder position in the sparrow are shown in equations (20) and (21), respectively;

[0176] Step 4.5, update the position of the joiner and calculate the position and fitness value of the current individual;

[0177] The position update formula of the joiner in the sparrow is shown in formula (23). While updating the position of the discoverer, the position of the joiner is also updated, and the new fitness values ​​of the discoverer and the joiner are obtained and recorded, that is, the new round of solution set of the energy hierarchical management model is regulated to ensure the optimization ability in the iterative process;

[0178] Step 4.6, determine and update the vigilant position and execute the Lévy flight strategy;

[0179] In the vigilance mechanism, the sparrows at the center of the population will attract the sparrows at the edge of the population and jump to the current optimal position, that is, to ensure that the energy hierarchical management model with high fitness values ​​gradually transitions to low fitness values, and other solutions move closer to the optimal solution. The introduction of the Lévy flight strategy will also make the energy hierarchical management model jump out of the local optimal solution, and then obtain the global optimal solution. The vigilance mechanism is introduced, and the position update is shown in formula (24). After the position of the vigilant is updated, the Lévy flight strategy is executed to update the individual position, as shown in formula (25);

[0180] Step 4.7, output the optimization result of the improved sparrow search algorithm;

[0181] After the update is completed, the best and worst individual positions and their corresponding fitness values ​​are selected to determine whether the maximum number of iterations is met. If the maximum number of iterations is met, the best population position and the corresponding fitness value are output; otherwise, return to step 4.3;

[0182] Step 5, displaying the optimization result of the improved sparrow search algorithm on the energy hierarchical management model;

[0183] The results of active distribution network layer energy management are as follows: Figure 4 As shown in the figure, the result of the interaction between the active distribution network layer and the electric energy is as follows Figure 5 As shown in the figure, the power load results of microgrid systems MG1, MG2, and MG3 under the demand response strategy are as follows: Figure 6 As shown, the results of the energy management and power interaction of the microgrid system MG1, MG2, and MG3 are as follows Figure 7 As shown in Table 7, considering the demand-side response factor, the active distribution network layer is based on the results of the interconnected operation mode of each microgrid system. The multi-microgrid system layer compares the three microgrid systems in the form of electric load. The operating cost results of the active distribution network containing the multi-microgrid system are shown in Table 7, where the operating cost of the multi-microgrid system layer is the sum of the operating costs of each microgrid system, and the total operating cost is the sum of the operating cost of the multi-microgrid system layer and the operating cost of the active distribution network layer. The load characteristics of the multi-microgrid system demand response strategy are shown in Table 8.

[0184] Table 7 Operation cost of active distribution network including multi-microgrid system

[0185]

[0186] Table 8 Load characteristics of demand response strategy

[0187]

[0188] It should be emphasized that the embodiments described in the present invention are illustrative rather than restrictive, and therefore the present invention is not limited to the embodiments described in the specific implementation manners. Any other implementation manners derived by those skilled in the art based on the technical solutions of the present invention also fall within the scope of protection of the present invention.

Claims

1. An active distribution network energy hierarchical management optimization method for a multi-microgrid system. Features: The following steps are involved: Step 1, establish an active distribution network layer optimization model; Step 2, establishing a multi-microgrid system-level optimization model; Step 3: Introduce a multi-microgrid system demand response strategy; Step 4, using the improved sparrow search algorithm to solve the energy hierarchical management model; Step 5, displaying the optimization result of the improved sparrow search algorithm on the energy hierarchical management model; Furthermore, the specific implementation method of step 1 includes the following steps: Step 1.1, construct the objective function of the active distribution network layer; Step 1.2, establish the constraints of the active distribution network layer; The specific implementation method of step 1.1 is: As the upper model of energy hierarchical management, the active distribution network layer realizes effective decision-making and management of energy flow within the system, with the lowest total cost of the generator set as the objective function as shown in formula (1): minf=f 1 +f 2 +f 3 (1) Where f is the total cost of the generator set, f 1 is the operating cost of the motor group, f 2 is the electricity interaction cost, f 3 is the penalty fee for the active distribution network layer, T is the system operation cycle, which is set to 24h, and N G is the number of generating units, P G,q (t) is the output power of the qth unit at time t, a q , b q and c q is the operating parameter of the qth unit, P v,ADN (t), P w,ADN (t) are the energy shortage and waste of the active distribution network layer at time t, ξ is the penalty coefficient, N MG is the number of microgrid systems, C MMG and C G is the transaction fee between the active distribution network, the multi-microgrid system and the main grid, P buy,MG,n (t), P sell,MG,n (t) are the power purchased and sold by the nth microgrid system to the active distribution network at time t, c buy,ADN (t), c sell,ADN (t) are the unit price of electricity purchased and sold from the active distribution network at the multi-microgrid system layer at time t, c buy,G (t), c sell,G (t) are the unit price of electricity purchased and sold by the active distribution network to the main grid at time t, P buy,G (t), P sell,G (t) are the power purchased and sold by the active distribution network to the main grid at time t; The specific implementation method of step 1.2 is: The active distribution network satisfies the load balance constraint and the unit output constraint, and needs to consider the transmission capacity constraint of the tie line between the active distribution network and the main grid at the same time, as shown in equations (4), (5) and (6): Where N G is the number of generating units, N MG is the number of microgrid systems, P D (t) is the independent user load demand at the active distribution network layer at time t, P G,j (t) The active distribution network layer is the output of the jth generator set at time t, P buy,MG,n (t), P sell,MG,n (t) are the power purchased and sold by the nth microgrid system to the active distribution network at time t, P buy,G (t), P sell,G (t) are the power purchased and sold by the active distribution network to the main grid at time t, and are the minimum and maximum output of the jth generator set, respectively. and are the minimum and maximum electricity sales from the active distribution network to the main grid, and are the minimum and maximum power purchases from the active distribution network to the main grid, P G,j (t), P sell,G (t) and P buy,G (t) are the output of the jth generator set at time t, the power sold and purchased by the active distribution network from the main grid; Furthermore, the specific implementation method of step 2 includes the following steps: Step 2.1, construct the objective function of the multi-microgrid system layer; Step 2.2, establish the constraints of the multi-microgrid system layer; The specific implementation method of step 2.1 is: In the multi-microgrid system layer, each microgrid energy management system (EMS) sends the power interaction information of the lower layer to the upper layer active distribution network energy decision center (EDC). At the same time, in the multi-microgrid system layer, the sum of the operating costs of each microgrid system is used as the operating cost of the lower layer model, that is, the optimization objective function of the multi-microgrid system layer, as shown in formula (7): my F=my g 1 +my g 2 (7) Where F is the comprehensive objective function of the multi-microgrid system layer, g 1 and g 2 are the economic cost and environmental cost of each microgrid system objective function respectively; Furthermore, the economic cost objective function of each microgrid system is shown in formula (8): min g 1 =C F +C M +C ADN +C P (8) In the formula, C F is the natural gas consumption cost, C M is the initial investment cost, operation and maintenance cost of the equipment, C ADN is the energy interaction cost with the active distribution network layer, C P is the penalty fee, c gas is the unit price of natural gas, which is 2.05 yuan / m 3 , Q GT (t) is the heating power of the gas turbine at time t, Q GB (t) is the heat output of the gas boiler at time t, N D is the number of equipment types, r is the equipment discount rate, l is the equipment life cycle, is the initial investment cost of the kth type of equipment, is the operation and maintenance cost of the kth type of equipment, N k For the kth class of equipment, is the rated power of the kth type of equipment, P buy,MG (t), P sell,MG (t) are the power purchased from the active distribution network and the power sold to the active distribution network by the microgrid system at time t, c buy,ADN (t), c sell,ADN (t) are the unit price of electricity purchased from the active distribution network and the unit price of electricity sold to the active distribution network at the multi-microgrid system layer at time t, P v,MG (t), P w,MG (t) are the shortfall and waste of the microgrid system energy at time t, respectively. v,MG (t), Q w,MG (t) are the shortfall and waste of thermal energy in the microgrid system at time t, ξ is the penalty coefficient, and T is the operation cycle of the system, which is set to 24h; Furthermore, the environmental cost objective function of each microgrid system is shown in formula (10): Where k = 1, 2, 3, and K∈{CO 2 ,NO,SO 2 } is the type of pollutant, c k is the cost of treating each gram of type k pollutant by the microgrid system, χ k,GT , χ k,GB , χ k,EC and χ k,ADN are the emission coefficients of the kth type of pollutants from gas turbines, gas boilers, electric refrigerators, and electricity purchased from the active distribution network, P GT (t) is the power generation of the gas turbine at time t, Q GB (t) is the heat output of the gas boiler at time t, Q EC (t) is the cooling energy output by the electric refrigerator at time t, P buy,MG (t) is the power purchased by the microgrid system from the active distribution network at time t, T is the operation cycle of the system, which is set to 24h; The specific implementation method of step 2.2 is: The constraints in the multi-microgrid system layer include load balance constraints, energy storage system capacity constraints, equipment output constraints, equipment configuration quantity constraints, and transaction constraints with the active distribution network. At the same time, the energy storage system capacity and equipment configuration quantity are used as decision variables of the lower-level model. Furthermore, the equipment output in any time period must match the demand of cooling, heating and electricity loads to meet the load balance constraint, as shown in formula (11): Where P Load (t), Q Load,h (t) and Q Load,c (t) are the demands of electric load, heat load and cooling load of CCHP microgrid system at time t, P WT (t) is the output power of the wind power generation system at time t, P PV (t) is the output power of the photovoltaic power generation system at time t, P BIO (t) is the output power of the biogas power generation system at time t, P GT (t) is the output power of the wind power generation system at time t, P c (t), P d (t) are the charging and discharging power of the battery at time t, P buy,MG (t), P sell,MG (t) are the power purchased from the active distribution network and the power sold to the active distribution network by the microgrid system at time t, Q HE (t) is the heat energy output by the heat converter at time t, Q c (t), Q d (t) are the heat storage and heat release powers of the heat storage tank at time t, Q GB (t) is the heat output of the gas boiler at time t, Q EC (t) is the cooling energy output by the electric refrigerator at time t, Q AC (t) The cooling energy output by the absorption refrigerator at time t; Furthermore, the capacity constraints of the energy storage system include the capacity constraints of the battery and the heat storage tank, and the battery and the heat storage tank cannot be in the state of energy input and energy output at the same time. The constraint conditions are shown in equations (12) and (13) respectively: In the formula, and are the minimum and maximum energy storage capacity of the battery, and are the minimum and maximum charging power of the battery respectively, and are the minimum and maximum discharge power of the battery, E BAT (t), P c (t) and P d (t) are the energy storage capacity, charging power and discharging power of the battery at time t respectively; In the formula, and are the minimum and maximum energy storage capacity of the heat storage tank, and are the minimum and maximum heat storage power of the heat storage tank, and are the minimum and maximum heat release power of the heat storage tank, Q HST (t), Q c (t) and Q d (t) are the energy storage capacity, heat storage power and heat release power of the heat storage tank at time t respectively; Furthermore, the equipment output constraint condition is shown in formula (14): In the formula, and are the minimum outputs of wind power generation system, photovoltaic power generation system, biogas power generation system, gas turbine and gas boiler respectively. and are the maximum outputs of wind power generation system, photovoltaic power generation system, biogas power generation system, gas turbine and gas boiler, respectively. WT (t), P PV (t), P BIO (t), P GT (t) and Q GB (t) are the outputs of wind power generation system, photovoltaic power generation system, biogas power generation system, gas turbine and gas boiler at time t respectively; Furthermore, the equipment configuration quantity constraint is shown in formula (15): In the formula, and are the minimum number of wind turbines, photovoltaic cells, gas turbines, batteries, heat storage tanks and gas boilers. and are the maximum number of wind turbines, photovoltaic cells, gas turbines, batteries, heat storage tanks and gas boilers, respectively. WT 、N PV 、N GT 、N BAT 、N HST and N GB are the number of wind turbines, photovoltaic cells, gas turbines, batteries, heat storage tanks and gas boilers, respectively. BIO (t) is the intake volume of biogas at time t, and They are the minimum and maximum intake volumes of biogas in the biogas power generation system respectively; Furthermore, the transaction constraints with the active distribution network are shown in formula (16): In the formula, and are the minimum and maximum power purchase of the microgrid system, and are the minimum and maximum power sales of the microgrid system, P buy,MG (t) and P sell,MG (t) are the power purchase and power sales of the microgrid system at time t; Furthermore, the specific implementation method of step 3 includes the following steps: Step 3.1, determine the electricity price elasticity matrix and the time-of-use electricity price of each microgrid system; Step 3.2, analyzing the power load data in each time period; Step 3.3, based on the environmental data and the equipment parameters of each microgrid system, calculate the output of renewable energy in each time period; The electricity price elasticity matrix of step 3.1 is shown in formula (17): Where P p , P m and P y are the average load in each period after price-based demand response, P p,0 , P m,0 and P y,0 are the average load in each period before price-based demand response, Pc is the electricity price elasticity coefficient, p, m and y represent the peak, flat and valley periods in the time-of-use electricity price mechanism, Δc p , Δc m and Δc y They represent the change in electricity price in each period after demand response, c p,0 、c m,0 and c y,0 Indicates that the electricity price before the adoption of the time-of-use electricity price is regarded as the unified price; Furthermore, the specific implementation method of step 4 includes the following steps: Step 4.1, determine the maximum number of iterations, population size, search space range, dimension, and proportion of discoverers; Step 4.2, introduce nonlinear mapping to initialize the population position; Step 4.3, calculate the current fitness value and record the population position; Step 4.4, introduce the sine-cosine model and dynamic inertia weight factor to improve the discoverer position update formula; Step 4.5, update the position of the joiner and calculate the position and fitness value of the current individual; Step 4.6, determine and update the vigilant position and execute the Lévy flight strategy; Step 4.7, output the optimization result of the improved sparrow search algorithm; The specific implementation method of step 4.1 is: Assume an optimal search space, where discoverers account for 20% of the total number of sparrows, joiners account for 80% of the total number of sparrows, and vigilant ones account for 10% to 20% of the total population. Such sparrows will be randomly generated from individuals in the population. The initial position of the sparrows is shown in formula (18): In the formula, X is the matrix space, d represents the dimension of the variable to be optimized, and s is the number of sparrows; The specific implementation method of step 4.2 is: Improve the spatial distribution of sparrows and expand the search range of the global optimal solution, that is, expand the diversity of solutions to the energy stratification model and speed up the screening of individuals with small fitness values, and select nonlinear mapping to initialize the population, as shown in formula (19): Where w represents the current number of iterations of the nonlinear mapping, is the nonlinear value of the i-th sparrow in the j-th dimension at the w-th time during initialization, and p is the nonlinear mapping parameter, which is set to 0.4; The specific initialization steps are as follows: 1) Determine the nonlinear mapping parameter p and the maximum number of iterations; 2) Randomly generate initial values ​​of nonlinear mapping variables; 3) Substitute into formula (19) to iterate and update the number of iterations; 4) If the maximum number of iterations is met, go to 5), otherwise return to 3); 5) At the end of the iteration, the heterozygous sequence is obtained and remapped to the individual; The specific implementation method of step 4.4 is: The objective function is solved by using the oscillation changes of the sine and cosine model, that is, updating the position of the sparrow finder, strengthening the global optimization and local search capabilities of the energy stratification model, and reducing the fitness value to obtain the global optimal solution; The update formulas of the discoverer position before and after improvement in sparrow are shown in formula (20) and formula (21) respectively: Before improvement: In the formula, h represents the current iteration number of the algorithm, is the value of the i-th sparrow in the j-th dimension, α∈[0,1] is a random number, M max is the maximum number of iterations, Q represents a random value that follows a normal distribution, and R 2 ∈[0, 1] is the warning value, ST∈[0.5, 1] ​​is the safety value; After improvement: In the formula, represents the optimal position of the sparrow population in the hth iteration, that is, the fitness value of the current individual is the smallest, which is the optimal solution of the energy hierarchical model, r 1 ′ is the improved step search factor, where a is a constant, η is the adjustment coefficient, and η≥1, r 2 ∈[0, 2π], controls the moving distance of individual sparrows, r 3 ∈[0, 2], controls the update of the optimal position of the individual sparrow, represents the dynamic inertia weight factor, where and are weight parameters, set to 0.9 and 0.4 respectively; The specific implementation method of step 4.5 is: The position update formula of the joiner in the sparrow is shown in formula (23): In the formula, represents the worst position of the sparrow population under the hth iteration, is the other solution of the energy hierarchical model, d represents the dimension of the variable to be optimized, when i>s / 2, this part of the sparrows is in an extremely hungry state, with low energy and poor fitness value, and needs to change the foraging position to obtain higher energy; The specific implementation method of step 4.6 is: In the vigilance mechanism, the sparrows at the center of the population will attract the sparrows at the edge of the population and jump to the current optimal position, that is, to ensure that the energy hierarchical management model with high fitness values ​​gradually transitions to low fitness values, and other solutions move closer to the optimal solution. The introduction of the Lévy flight strategy will also make the energy hierarchical management model jump out of the local optimal solution and obtain the global optimal solution. Introducing the alert mechanism, the position update is shown in formula (24): In the formula, β represents the step size control parameter and is a random value that follows a normal distribution with a mean of 0 and a variance of 1. K∈[-1, 1] is a random value that is also used to control the moving direction of the sparrow. σ is a very small constant that is used to prevent the denominator from being 0 and is set to 10. -5 , f w Indicates the worst individual fitness value in the current population, f i represents the fitness value of the i-th sparrow; After the vigilant position is updated, the Lévy flight strategy is executed to update the individual position, as shown in formula (25): In the formula, is the dot multiplication operation, L is the step length control coefficient, L(λ) is the path function of Lévy flight, and its step length formula is shown in formula (26): step=u / |v| 1 / γ (26) In the formula, γ is a constant, set to 1.5, u and v are random values ​​that follow a normal distribution, and σ u and σ v is the square of u and v, Γ is the gamma function; The specific implementation method of step 4.7 is: After the update is completed, the best and worst individual positions and their corresponding fitness values ​​are selected to determine whether the maximum number of iterations is met. If the maximum number of iterations is met, the best population position and the corresponding fitness value are output, otherwise return to step 4.3; Furthermore, the specific implementation method of step 5 includes the following steps: With the help of MATLB software, the optimization results of the interaction and management between the active distribution network energy decision center (EDC) and the microgrid energy management system (EMS) in step 5 are displayed on the computer monitor.

2. According to the method for optimizing energy hierarchical management of active distribution network of a multi-microgrid system as claimed in claim 1, Features: The multi-microgrid system is a multi-microgrid system including a combined cooling, heating and power (CCHP) type.