Multi-energy coupling type micro-grid capacity planning method and device based on particle swarm optimization

Through the double-layer planning method of particle swarm optimization, combined with the optimization of the upper and lower layers, the problem of not considering seasonal effects in the capacity planning of multi-energy coupled microgrids is solved, and the accuracy of planning and the economy and reliability of the system are improved.

CN118627780APending Publication Date: 2024-09-10TAIZHOU HONGYUAN ELECTRIC POWER DESIGN INST CO LTD +1
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410535275.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-30
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

Existing multi-energy coupling microgrid capacity planning methods do not consider seasonal and periodic factors, resulting in low accuracy of planning solutions.

Method used

A two-layer planning method based on particle swarm optimization is used to construct an upper-layer multi-objective planning model and a lower-layer optimization dispatch model for a multi-energy coupled microgrid. Taking into account the operating characteristics of different seasons, the particle swarm algorithm is used to simulate the group behavior of particles and optimize the unit capacity. Configuration, to determine the daily optimal operation strategy, and perform iterative optimization based on the upper and lower models to generate the optimal capacity configuration plan.

Benefits of technology

It significantly improves the accuracy of multi-energy coupling microgrid equipment capacity planning, improves energy utilization efficiency, reduces operating costs, improves system reliability and stability, and achieves an effective combination of long-term planning and short-term dispatching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118627780A
    Figure CN118627780A
Patent Text Reader

Abstract

The invention discloses a multi-energy coupling type micro-grid capacity planning method and device based on a particle swarm optimization algorithm, and belongs to the technical field of power grid planning, and the method comprises the steps: constructing an upper-layer multi-target planning model and a lower-layer optimization scheduling model of a multi-energy coupling type micro-grid, and setting a seasonal scene day; determining the speed and position of an upper-layer particle by using a particle swarm algorithm, and calculating an optimal operation strategy of each scene day by using the speed and position as constraints of a lower-layer optimization scheduling model; inputting the daily optimal operation strategy into the upper layer model to obtain an annual optimal operation strategy, and updating the speed and the position of the particle; and iteratively updating the speed and the position of the upper-layer particles until a termination condition is reached, and obtaining an optimal capacity configuration scheme of the multi-energy coupling type micro-grid. According to the scheme, the daily optimal operation strategy and the annual optimal operation strategy are determined by considering different seasonal scene days, effective combination of long-term planning and short-term scheduling is realized, and the accuracy of capacity planning of the multi-energy coupling type micro-grid equipment is remarkably improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of power grid planning, and in particular to a method and device for capacity planning of a multi-energy coupled microgrid based on a particle swarm algorithm. Background Art

[0002] Multi-energy coupling microgrids can be divided into cross-regional level, regional level and user level. Regional multi-energy coupling microgrids are mainly composed of intelligent distribution systems, medium and low voltage natural gas systems, heating / cooling / water and other functional networks, to achieve energy transmission, distribution, conversion, balance, etc. Reasonable planning of equipment capacity in multi-energy coupling microgrid systems is an important guarantee for the efficient and stable operation of the system. However, the coupling of multiple energy forms makes the planning and optimization scheduling of the system more complicated. The energy storage system has the disadvantages of small energy storage capacity and high economic cost, and it is difficult to effectively store energy on a large scale and for a long time. Therefore, the capacity planning of energy storage systems has become one of the current research hotspots. The existing technology mostly plans energy storage equipment in multi-energy coupling microgrids, ignoring other equipment that needs to be planned in the system. Reasonable planning of gas boilers and gas turbines in the system will reduce environmental pollution and system costs. Therefore, considering the capacity planning of gas boilers and gas turbines in multi-energy coupling microgrid systems will improve the economy and rationality of the system.

[0003] Chinese patent, publication number: CN113469430B, publication date: October 1, 2021, discloses a multi-energy complementary capacity configuration method for a comprehensive energy park, including: establishing an output model of distributed wind power, distributed photovoltaic, cold-heat-electric trigeneration system and electric heating and electric refrigeration equipment in the comprehensive energy supply; analyzing the typical energy usage scenarios and loads of the comprehensive energy park, including the electric load, heat load and cold load in the heating season, cooling season and transition season; taking the lowest total system operating cost as the optimization goal, taking the power balance constraint of the power supply system, the constraint of natural gas cold-heat-electric unit, the purchased power constraint, the wind power photovoltaic output constraint, the heating system output constraint, the start-stop time constraint, the transmission channel capacity constraint and the spare capacity constraint as the constraint conditions, establishing a multi-energy complementary capacity configuration optimization model for the comprehensive energy park, and using a genetic algorithm to solve the model. The present invention can optimize the multi-energy complementary capacity configuration of the comprehensive energy park, realize the integration of multiple energy sources, and improve the economy and reliability of the park system. This solution has the following problems: the load demand and energy supply of the microgrid during operation are affected by factors such as seasonality and time period. The capacity requirements of equipment are different in different seasons and time periods. When this solution uses genetic algorithms to plan and solve the multi-energy complementary capacity configuration optimization model, it does not take into account the seasonal and time-period differences in capacity requirements of different equipment, resulting in poor reliability of the final capacity planning solution. Summary of the invention

[0004] The purpose of the present invention is to solve the problem that the capacity planning method of a multi-energy coupled microgrid in the prior art does not consider the influencing factors of seasonality and time period, resulting in low accuracy of the planning scheme, and provide a multi-energy coupled microgrid capacity planning method and device based on a particle swarm algorithm. By constructing a double-layer solution mechanism of an upper multi-objective planning model and a lower optimization scheduling model of a multi-energy coupled microgrid, and considering different seasonal scenario days, the daily optimal operation strategy is determined, and the annual optimal operation strategy is further determined through the upper multi-objective planning model according to the daily optimal operation strategy, thereby realizing an effective combination of long-term planning and short-term scheduling, and can significantly improve the accuracy of capacity planning of multi-energy coupled microgrid equipment.

[0005] In order to achieve the above object, the present invention adopts the following technical solutions: In a first aspect, the present invention provides a method for capacity planning of a multi-energy coupled microgrid based on a particle swarm algorithm, comprising the following steps: S1, constructing an upper-layer multi-objective planning model and a lower-layer optimization scheduling model corresponding to the multi-energy coupled microgrid, and setting parameters for the upper-layer multi-objective planning model; S2, set the seasonal scenario day corresponding to the multi-energy coupling microgrid, randomly generate the unit capacity of the planned unit as the initial output value of the upper multi-objective planning model, and determine the speed and position of the upper particles based on the particle swarm algorithm; S3, using the speed and position of the upper-layer particles as the capacity constraints of the lower-layer optimization scheduling model to calculate the daily optimal operation strategy corresponding to each scenario day; S4, inputting the daily optimal operation strategy into the upper multi-objective programming model to obtain the annual optimal operation strategy, and updating the speed and position of the upper particles; S5. Iteratively run S3-S4 to update the speed and position of the upper particles until the termination condition is reached to obtain the optimal capacity configuration plan of the multi-energy coupled microgrid.

[0006] In the above technical solution, the two-layer planning method can comprehensively consider the multi-energy coupling characteristics of the microgrid and the operating characteristics of different seasons, optimize the capacity configuration of the unit, help improve the energy utilization efficiency of the microgrid, reduce operating costs, and improve the reliability and stability of the entire system; the particle swarm algorithm simulates the group behavior of particles to find the optimal solution, which can search the solution space of the problem more quickly and improve the solution efficiency; by setting seasonal scenario days, the impact of different seasons on the operation of the microgrid is considered, which helps to more accurately evaluate the performance of the microgrid and carry out capacity planning based on the characteristics of different seasons to adapt to the challenges brought by seasonal changes; The lower-level optimization scheduling model calculates the daily optimal operation strategy for each scenario day according to the capacity configuration of the upper-level particles, which can improve the operating efficiency and economic benefits of the microgrid; the capacity constraints are imposed on the lower-level optimization scheduling model through the speed and position of the particles corresponding to the upper-level multi-objective optimization model to determine the daily optimal operation strategy, and then the daily optimal operation strategy is input into the upper-level multi-objective planning model to obtain the annual optimal operation strategy to further determine the optimal capacity configuration plan, realizing the combination of the daily optimal operation strategy and the annual optimal operation strategy, which can achieve the optimal economy of the microgrid while meeting the long-term operation needs, and significantly improve the operating efficiency and long-term planning capabilities of the microgrid.

[0007] Preferably, S1 comprises the following steps: S11, establishing an upper-level multi-objective planning model with the goal of maximizing the unit capacity of the planned unit; S12, establish a lower-level optimization scheduling model with the goal of minimizing daily operating costs; S13. Setting the upper limit of the unit capacity and the preset convergence times of the upper-level multi-objective programming model.

[0008] In the above technical scheme, by establishing a two-layer planning model with the goals of maximizing unit capacity and minimizing daily operating costs, it is possible to minimize operating costs while ensuring the power supply capacity of the microgrid, thereby improving the economy and efficiency of the microgrid; by setting the upper limit of unit capacity and the preset number of convergences, it can be ensured that the optimization results are within the practical range and have high accuracy and reliability; the two-layer planning model can comprehensively consider the needs of long-term planning and short-term scheduling, so that the microgrid can flexibly adjust its operating strategy when facing changes in different seasons, different load demands, etc., thereby improving adaptability and flexibility.

[0009] Preferably, S2 comprises the following steps: S21. Considering load demand and energy supply, the multi-energy coupling microgrid is divided into scenarios to obtain corresponding seasonal scenario days; S22. The unit capacity of the planned unit is generated by a random algorithm as the initial output value of the upper multi-objective planning model; S23. Calculate the speed and position of each upper-layer particle using a particle swarm algorithm based on the initial output value.

[0010] In the above technical solution, by considering load demand and energy supply for scenario division, the performance requirements of the microgrid in different seasons and scenarios can be evaluated more accurately, thereby improving the accuracy of capacity planning; by randomly generating initial output values ​​and calculating speed and position based on the particle swarm algorithm, it is helpful to find the optimal solution in a wider solution space; the particle swarm algorithm can quickly converge to the vicinity of the optimal solution, thereby improving the solution efficiency.

[0011] Preferably, the seasonal scene days include three seasonal scene days: spring, autumn, summer and winter.

[0012] In the above technical solution, by dividing the seasonal scenario days into three specific periods of spring, autumn, summer and winter, the operation of microgrids in different seasons can be simulated more finely, so as to more accurately evaluate the unit capacity configuration and scheduling strategy, which not only improves the accuracy of capacity planning, but also helps to formulate more refined scheduling strategies and enhance the flexibility and adaptability of decision-making.

[0013] Preferably, S3 comprises the following steps: S31, determining the capacity constraint condition of the lower layer optimization scheduling model based on the speed and position of the upper layer particles; S32, calling the cplex solver based on the capacity constraint condition, optimizing the scheduling of the lower multi-energy coupled microgrid through the cplex solver, and calculating the optimal operation mode and load distribution of the energy equipment; S33. Determine the optimal daily operation strategy based on the optimal operation mode and load distribution.

[0014] In the above technical scheme, the configuration of the unit capacity is reflected by the speed and position of the upper-layer particles, and it is used as the capacity constraint condition of the lower-layer optimization scheduling model to ensure the consistency of the lower-layer scheduling strategy with the upper-layer planning goals, thereby improving the accuracy and reliability of the entire planning process; by calling the cplex solver to optimize the scheduling of the lower-layer multi-energy coupled microgrid, the cplex solver can handle complex optimization problems and give the optimal solution, and can quickly and accurately calculate the optimal operation mode and load distribution of energy equipment, thereby realizing the refined scheduling of various energy equipment in the microgrid, improving energy utilization efficiency, and reducing operating costs; based on the optimal operation mode and load distribution, the daily optimal operation strategy is determined, taking into account the load demand and energy supply in different scenarios, and improving the overall operation efficiency and benefits.

[0015] Preferably, S4 comprises the following steps: S41, passing the daily optimal operation strategy as a model input to the upper multi-objective programming model; S42, updating the annual operation strategy of the upper layer through the upper layer multi-objective programming model; S43, comparing the updated annual operation strategy with the historical optimal strategy to determine the annual optimal operation strategy; S44. Update the speed and position of the upper particles according to the annual optimal operation strategy.

[0016] In the above technical solution, by taking the daily optimal operation strategy as the input of the upper multi-objective planning model to update the upper annual operation strategy, the adjustment of unit capacity and optimization of energy distribution can be achieved, and multiple objectives and constraints can be comprehensively considered to obtain a more reasonable and efficient annual operation strategy, which is helpful to improve the overall operation efficiency and economic benefits of the microgrid; comparing the updated annual operation strategy with the historical optimal strategy to determine the annual optimal operation strategy is helpful to identify the differences between the advantages and disadvantages of different strategies, so as to select the optimal operation strategy.

[0017] Preferably, S5 comprises the following steps: S51, iteratively run S3-S4 to gradually update the speed and position of the particles in the upper multi-objective programming model; S52, checking the number of convergences of the upper multi-objective programming model after each iteration; S53, judging whether the number of convergences reaches the preset number of convergences, if so, stopping the iteration and executing S44; if not, continuing to iterate and running S3-S4 until the preset number of convergences is reached; S54. Generate an optimal capacity configuration plan for the multi-energy coupled microgrid according to the position and speed of the particles.

[0018] In the above technical scheme, by iteratively running the optimization process of the operation strategy, the optimal capacity configuration scheme is gradually approached, which can make full use of the interactive information between the upper and lower models to achieve the coordinated optimization of capacity configuration and scheduling strategies; by judging whether the number of convergence times reaches the preset value, the algorithm can be prevented from stopping prematurely or falling into an infinite loop; the optimal capacity configuration scheme of the multi-energy coupled microgrid is generated according to the position and speed of the particles, which comprehensively considers the economy, reliability and sustainability of the microgrid, and helps to achieve efficient and stable operation of the microgrid.

[0019] Preferably, before executing S52, the following steps are also included: Adjust the model parameters of the upper-level multi-objective programming model according to the results of each iteration, including inertia parameters and acceleration coefficients; Set a new preset convergence number based on the adjusted inertia parameters and acceleration factors.

[0020] In the above technical scheme, the model parameters of the upper-level multi-objective planning model are adjusted according to the results of each iteration, and new preset convergence times are set according to the adjusted parameters, thereby realizing adaptive adjustment of the algorithm parameters and improving the convergence speed and stability of the algorithm. By dynamically adjusting the parameters and adjusting the preset convergence times according to the real-time solution status, it is ensured that the algorithm can stop iterating at the appropriate time, avoiding overfitting or premature convergence to the local optimal solution, which helps to improve the efficiency and performance of the two-layer capacity planning method of the multi-energy coupled microgrid, making it more adaptable to different problem scenarios and solution requirements.

[0021] In a second aspect, the present invention provides a multi-energy coupled microgrid capacity planning device based on a particle swarm algorithm, the device comprising a model building module, a particle generation module, a planning result module and a configuration scheme generation module; the model building module is used to construct an upper-level multi-objective planning model and a lower-level optimization scheduling model; the particle generation module is used for upper-level particles corresponding to the multi-objective planning model and lower-level particles corresponding to the lower-level optimization scheduling model; the planning result module is used to receive the output of the lower-level optimization scheduling module and pass it to the upper-level multi-objective planning module; the configuration scheme generation module is used to generate the optimal capacity configuration scheme of the multi-energy coupled microgrid according to the particle swarm algorithm optimization result.

[0022] In the above technical scheme, the upper multi-objective planning model and the lower optimization scheduling model are constructed through the model construction module, which can comprehensively consider multiple objectives such as the economy, reliability, and sustainability of the microgrid, as well as the mutual influence between the unit capacity configuration and the scheduling strategy. The two-layer planning framework makes the planning results more in line with the actual operation requirements of the microgrid, and improves the accuracy and effectiveness of the planning; the particle generation module generates upper and lower particles representing different unit capacity configuration schemes and scheduling strategies, and through the iterative optimization of the particle swarm algorithm, it can gradually approach the optimal solution, thereby finding the optimal unit capacity configuration and scheduling strategy; the planning result module receives the output of the lower optimization scheduling module and passes it to the upper multi-objective planning module, ensuring the close coupling between the upper and lower models, so that the unit capacity configuration and the scheduling strategy can be coordinated and optimized with each other, which is helpful to improve the overall operation efficiency and economic benefits of the microgrid; the configuration scheme generation module generates the optimal capacity configuration scheme of the multi-energy coupling microgrid according to the optimization results of the particle swarm algorithm, comprehensively considering multiple objectives and constraints of the microgrid, which can guide the construction and operation of the microgrid and improve the performance and competitiveness of the microgrid.

[0023] The beneficial effects of the present invention are as follows: by optimizing the capacity configuration and operation strategy of the multi-energy coupling microgrid through the double-layer planning method, a balance can be found between long-term planning and short-term scheduling, ensuring the economy, reliability and sustainability of the microgrid; the double-layer planning not only takes into account the multi-energy coupling characteristics of the microgrid and the operating characteristics of different seasons, but also simulates the group behavior of particles through the particle swarm algorithm, quickly searches for the optimal solution space, can more accurately evaluate the performance of the microgrid, and carry out capacity planning according to the characteristics of different seasons to adapt to the challenges brought by seasonal changes. At the same time, the introduction of the lower-level optimization scheduling model realizes the refined scheduling of the microgrid, and improves the operation efficiency and economic benefits of the microgrid by calculating the daily optimal operation strategy of each scenario day; the upper-level multi-objective optimization model comprehensively considers the needs of long-term planning and short-term scheduling, so that the microgrid can flexibly adjust the operation strategy when facing different load demands; the double-layer planning method also ensures the stability and reliability of the algorithm through iterative operation and the judgment of the number of convergences, and the optimal capacity configuration scheme finally generated not only meets the power supply demand of the microgrid, but also minimizes the operation cost, and improves the economy and efficiency of the microgrid.

[0024] The above invention content is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Other features, objects and advantages of the present invention will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings. The drawings are only for the purpose of illustrating preferred embodiments and are not to be considered as limiting the present invention. Also, the same reference symbols are used throughout the drawings to represent the same parts.

[0026] Figure 1 This is a flow chart of a multi-energy coupling microgrid capacity planning method based on a particle swarm algorithm according to Embodiment 1 of the present invention; Figure 2 Detailed flow chart of the multi-objective double-layer optimization method of a multi-energy coupling microgrid according to Embodiment 1 of the present invention; Figure 3 This is a schematic diagram of the architecture of a multi-energy coupling microgrid system according to Embodiment 1 of the present invention; Figure 4 This is a schematic diagram of the convergence process of the multi-objective double-layer optimization algorithm of the multi-energy coupling microgrid in Example 1 of the present invention; Figure 5 This is a schematic diagram of a multi-energy coupling microgrid capacity planning device based on a particle swarm algorithm according to Embodiment 2 of the present invention. DETAILED DESCRIPTION

[0027] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific implementation method described herein is only an optimal embodiment of the present invention, which is only used to explain the present invention and does not limit the scope of protection of the present invention. All other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0028] Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow charts describe the operations (or steps) as sequential processes, many of the operations (or steps) therein can be implemented in parallel, concurrently, or simultaneously. In addition, the order of the operations can be rearranged. A process can be terminated when its operations are completed, but can also have additional steps not included in the accompanying drawings; a process can correspond to a method, function, procedure, subroutine, subprogram, etc.

[0029] Embodiment 1: like Figure 1 As shown, the multi-energy coupling type microgrid capacity planning method based on particle swarm algorithm provided in this embodiment includes the following steps: S1. Construct an upper-level multi-objective planning model and a lower-level optimization scheduling model corresponding to the multi-energy coupling microgrid, and set parameters for the upper-level multi-objective planning model.

[0030] Specifically, Figure 2 The detailed flow chart of the multi-objective two-layer optimization method for a multi-energy coupled microgrid is shown in S1, which includes the following steps: S11, establishing an upper-level multi-objective planning model with the goal of maximizing the unit capacity of the planned unit; S12, establish a lower-level optimization scheduling model with the goal of minimizing daily operating costs; S13. Setting the upper limit of the unit capacity and the preset convergence times of the upper-level multi-objective programming model.

[0031] Specifically, Figure 3The schematic diagram of the multi-energy coupling microgrid system architecture of this embodiment is shown. The various parts of the system transfer energy through electric energy flow, gas energy flow and thermal energy flow. The multi-energy coupling microgrid system architecture includes an energy input side, an energy output side, a CHP system (cogeneration system), wind power, photovoltaics, heat pumps, power storage devices, gas boilers and heat storage devices. Energy is transmitted through electric energy flow, thermal energy flow and gas energy flow. The energy input side includes a power grid and a gas grid, and the energy output side includes outputting electric load and thermal load according to the output response. The CHP system (cogeneration unit) includes a low-temperature waste heat power generation device, a micro gas turbine and a waste heat boiler. The multi-energy coupling microgrid system realizes the coupling and coordination of multiple energies such as electricity, heat and gas by integrating multiple energy input and output methods. On the energy input side, the system receives external electric energy and gas through the power grid and the gas grid. The power grid provides a stable power supply, while the gas grid supplies gas to provide fuel for the gas equipment in the system. Wind power and photovoltaic systems use renewable energy to generate electricity and provide a clean source of electricity for the system. The heat pump uses an external heat source or cold source to convert heat energy to meet the heat load demand of the system. Through the power storage device and heat storage device equipped by the system, energy is stored and released when energy demand and supply are unbalanced. The power storage device can store electric energy when the power supply is in excess, release electric energy when the power demand is peak, and smooth the power load fluctuation. The heat storage device stores heat energy and provides heat load when needed. On the energy output side, the system outputs electric load and heat load according to the output response. The output power can be supplied to the power equipment inside the microgrid, or it can be sold to the large power grid. The output heat energy can be used for heating, cooling and other purposes. This embodiment identifies key units such as gas boilers and gas turbines in the microgrid, takes the maximization of unit capacity as the objective function, and considers multiple indicators such as operating costs and emissions as constraints to construct a multi-objective planning model. With the goal of minimizing daily operating costs, a lower-level optimization scheduling model is constructed. According to the planning requirements of the microgrid, the upper limit of the unit capacity is set to prevent over-planning. A reasonable preset number of convergences is set as the condition for stopping the iteration.

[0032] In this embodiment, by establishing a two-layer planning model with the goal of maximizing unit capacity and minimizing daily operating costs, the operating costs can be minimized while ensuring the power supply capacity of the microgrid, thereby improving the economy and efficiency of the microgrid; by setting the upper limit of unit capacity and the preset number of convergences, the optimization results can be ensured to be within the practical range and have high accuracy and reliability; the two-layer planning model can comprehensively consider the needs of long-term planning and short-term scheduling, so that the microgrid can flexibly adjust its operating strategy in the face of changes such as different seasons and different load demands, and improve its adaptability and flexibility. The multi-energy coupling microgrid realizes the complementarity and optimal utilization of multiple energy sources through the transmission and coordination of electrical energy flow, thermal energy flow and gas energy flow, which not only improves energy utilization efficiency and reduces energy costs, but also helps to reduce greenhouse gas emissions and promote sustainable development.

[0033] S2. Set the seasonal scenario day corresponding to the multi-energy coupled microgrid, randomly generate the unit capacity of the planned unit as the initial output value of the upper multi-objective planning model, and determine the speed and position of the upper particles based on the particle swarm algorithm.

[0034] Specifically, S2 includes the following steps: S21. Considering load demand and energy supply, the multi-energy coupling microgrid is divided into scenarios to obtain corresponding seasonal scenario days; S22. The unit capacity of the planned unit is generated by a random algorithm as the initial output value of the upper multi-objective planning model; S23. Calculate the speed and position of each upper particle through the particle swarm algorithm based on the initial output value.

[0035] In this embodiment, by considering load demand and energy supply for scenario division, the performance requirements of the microgrid in different seasons and scenarios can be more accurately evaluated, thereby improving the accuracy of capacity planning; by randomly generating initial output values ​​and calculating speed and position based on the particle swarm algorithm, it is helpful to find the optimal solution in a wider solution space; the particle swarm algorithm can quickly converge to the vicinity of the optimal solution, thereby improving the solution efficiency.

[0036] Specifically, the seasonal scene days include three seasonal scene days: spring, autumn, summer and winter.

[0037] Specifically, the historical load data and energy supply data of the multi-energy coupling microgrid are analyzed. According to the analysis of factors such as seasonal changes and load peak and valley periods, it can be seen that the load usage and energy supply in summer and winter are obviously different from those in spring and autumn, so three seasonal scene days including spring and autumn, summer and winter are divided. In the natural year cycle, March 1st to May 31st is spring, June 1st to August 31st is summer, September 1st to November 30th is autumn, and December 1st to February 28th is summer. Therefore, when the seasonal scene day is spring and autumn, the corresponding time period is March 1st to May 31st and September 1st to November 30th; when the seasonal scene day is summer, the corresponding time period is June 1st to August 31st; when the seasonal scene day is winter, the corresponding time period is December 1st to February 28th.

[0038] In this embodiment, by dividing the seasonal scenario days into three specific periods of spring, autumn, summer and winter, the operation of the microgrid in different seasons can be simulated more finely, so as to more accurately evaluate the unit capacity configuration and scheduling strategy, which not only improves the accuracy of capacity planning, but also helps to formulate more refined scheduling strategies and enhance the flexibility and adaptability of decision-making.

[0039] S3. Use the speed and position of the upper-layer particles as the capacity constraints of the lower-layer optimization scheduling model to calculate the optimal daily operation strategy corresponding to each scenario day.

[0040] Specifically, S3 includes the following steps: S31, determining the capacity constraint condition of the lower layer optimization scheduling model based on the speed and position of the upper layer particles; S32, calling the cplex solver based on the capacity constraint condition, optimizing the scheduling of the lower-layer multi-energy coupled microgrid through the cplex solver, and calculating the optimal operation mode and load distribution of the energy equipment; S33. Determine the optimal daily operation strategy based on the optimal operation mode and load distribution.

[0041] Specifically, the speed and position information of the upper particles obtained from the particle swarm algorithm represent possible configuration schemes of different unit capacities. According to the position information of the upper particles (i.e., the unit capacity configuration), the capacity constraint of the lower optimization scheduling model is determined. For example, if the capacity configuration of gas boiler A is x MW, the output upper limit of boiler A in the lower scheduling model is set to x MW. The capacity constraint is input into the cplex solver to optimize the scheduling of the lower multi-energy coupling microgrid. The cplex solver analyzes the input and outputs the optimal solution of the cplex solver to understand the optimal operation mode and load distribution of each energy device. According to the optimal operation mode and load distribution, the daily optimal operation strategy of the microgrid is determined, including determining the equipment output plan, load distribution strategy, and possible charging and discharging plan of energy storage equipment in each period. Considering factors such as the reliability and economy of the microgrid, the daily optimal operation strategy is evaluated and optimized. For example, check whether there is excess or insufficient equipment output, and make corresponding adjustments. Finally, the daily optimal operation strategy is output, including the output plan and load distribution results of each device.

[0042] In this embodiment, the speed and position of the upper-layer particles reflect the configuration of the unit capacity, and taking them as the capacity constraint conditions of the lower-layer optimization scheduling model can ensure the consistency of the lower-layer scheduling strategy with the upper-layer planning goals, thereby improving the accuracy and reliability of the entire planning process; by calling the cplex solver to solve the lower-layer optimization scheduling model, the cplex solver can handle complex optimization problems and give the optimal solution, and can quickly and accurately calculate the optimal operation mode and load distribution of energy equipment, thereby realizing the refined scheduling of various energy equipment in the microgrid, improving energy utilization efficiency, and reducing operating costs; based on the optimal operation mode and load distribution, the daily optimal operation strategy is determined, taking into account the load demand and energy supply in different scenarios, and improving the overall operation efficiency and benefits.

[0043] S4. Input the daily optimal operation strategy into the upper multi-objective planning model to obtain the annual optimal operation strategy, and update the speed and position of the upper particles.

[0044] Specifically, S4 includes the following steps: S41, passing the daily optimal operation strategy as model input to the upper multi-objective planning model; S42, updating the annual operation strategy of the upper layer through the upper layer multi-objective planning model; S43, comparing the updated annual operation strategy with the historical optimal strategy to determine the annual optimal operation strategy; S44. Update the speed and position of the upper particles according to the annual optimal operation strategy.

[0045] Specifically, after completing the lower-level optimization scheduling and determining the daily optimal operation strategy, the equipment output plan, load distribution, etc. are passed as input to the upper-level multi-objective planning model. The upper-level multi-objective planning model optimizes the annual operation strategy based on the received daily optimal operation strategy in combination with other planning objectives and constraints. By adjusting the capacity configuration and operation mode of the planned units, and optimizing the load distribution and energy utilization within the year, the annual operation strategy can achieve the optimal or near-optimal state while meeting various objectives and constraints. The annual operation strategy updated by the upper-level multi-objective planning model is compared with the historical optimal strategy, which is the optimal strategy record retained in the previous iteration process. Including comparative analysis of annual total cost, energy utilization efficiency, and system reliability, to determine whether the updated annual operation strategy is better than the historical optimal strategy. If the updated annual operation strategy is better, it is set as the new historical optimal strategy; otherwise, the original historical optimal strategy is retained. According to the determined annual optimal operation strategy, the speed and position of the upper-level particles are updated through the update rules in the particle swarm algorithm. The updated upper-layer particles carry the new unit capacity configuration information and annual operation strategy, which are used for lower-layer optimization scheduling and strategy update in the next round of iterative optimization.

[0046] In this embodiment, by using the daily optimal operation strategy as the input of the upper multi-objective planning model to update the upper-level annual operation strategy, the adjustment of unit capacity and optimization of energy distribution can be achieved, and multiple objectives and constraints can be comprehensively considered to obtain a more reasonable and efficient annual operation strategy, which is helpful to improve the overall operating efficiency and economic benefits of the microgrid; comparing the updated annual operation strategy with the historical optimal strategy to determine the annual optimal operation strategy helps to identify the differences in advantages and disadvantages between different strategies, thereby selecting the optimal operation strategy.

[0047] S5. Iteratively run S3-S4 to update the speed and position of the upper particles until the termination condition is reached to obtain the optimal capacity configuration plan of the multi-energy coupled microgrid.

[0048] Specifically, S5 includes the following steps: S51, iteratively run S3-S4 to gradually update the speed and position of the particles in the upper multi-objective programming model; S52, checking the number of convergences of the upper multi-objective programming model after each iteration; S53, judging whether the number of convergences reaches the preset number of convergences, if so, stopping the iteration and executing S44; if not, continuing to iterate and running S3-S4 until the preset number of convergences is reached; S54. Generate an optimal capacity configuration plan for the multi-energy coupled microgrid according to the position and speed of the particles.

[0049] Specifically, Figure 4 The figure shows the convergence process of the multi-objective double-layer optimization algorithm of the multi-energy coupling microgrid in this embodiment. After each iteration is completed, the value of the iteration counter is checked and updated to determine whether the current iteration number reaches the preset convergence number. If the convergence number has not been reached, the next iteration is continued; if the convergence number has been reached or exceeded, the iteration process is stopped, and the capacity configuration of each unit in the microgrid is determined according to the final position and speed information of the particles in the upper multi-objective planning model. According to the optimal capacity configuration plan, a detailed equipment procurement list, installation plan, and operation scheduling strategy are further generated.

[0050] In this embodiment, by iteratively running the optimization process of the operation strategy, the optimal capacity configuration plan is gradually approached, and the interactive information between the upper and lower layer models can be fully utilized to achieve the coordinated optimization of the capacity configuration and the scheduling strategy; by judging whether the number of convergences reaches the preset value, the algorithm can be prevented from stopping prematurely or falling into an infinite loop; the optimal capacity configuration plan of the multi-energy coupled microgrid is generated according to the position and speed of the particles, which comprehensively considers the economy, reliability and sustainability of the microgrid, and helps to achieve efficient and stable operation of the microgrid.

[0051] Specifically, before executing S52, the following steps are also included: Adjust the model parameters of the upper-level multi-objective programming model according to the results of each iteration, including inertia parameters and acceleration coefficients; Set a new preset convergence number based on the adjusted inertia parameters and acceleration factors.

[0052] In this embodiment, the model parameters of the upper-level multi-objective programming model are adjusted according to the results of each iteration, and new preset convergence times are set according to the adjusted parameters, thereby realizing adaptive adjustment of the algorithm parameters and improving the convergence speed and stability of the algorithm. By dynamically adjusting the parameters and adjusting the preset convergence times according to the real-time solution status, it is ensured that the algorithm can stop iterating at the appropriate time, avoiding overfitting or premature convergence to the local optimal solution, which helps to improve the efficiency and performance of the two-layer capacity planning method of the multi-energy coupled microgrid, making it more adaptable to different problem scenarios and solution requirements.

[0053] Beneficial effects of this embodiment: Through the application of the two-layer planning method, accurate capacity configuration and efficient operation strategy for multi-energy coupled microgrids are realized. The two-layer planning not only takes into account the long-term economy and reliability of the microgrid, but also takes into account the flexibility and efficiency in short-term operation. Through the iterative optimization of the particle swarm algorithm, the optimal solution can be found in a wider solution space, which improves the accuracy and efficiency of the solution. At the same time, the operation of microgrids in different seasons can be simulated more accurately by dividing the seasonal scene day, so as to formulate a more practical capacity configuration and scheduling strategy. Through the introduction of the lower-level optimization scheduling model, the optimal operation mode and load distribution of energy equipment can be quickly calculated according to the goals and constraints of the upper-level planning, and the refined scheduling of the microgrid is realized. The application of the upper-level multi-objective planning model takes into account the comprehensive consideration of multiple goals and constraints when formulating the annual operation strategy, ensuring the rationality and efficiency of the strategy. By iterative operation merging, the iteration is stopped when the preset number of convergences is reached, which ensures the stability and reliability of the algorithm and avoids premature stopping or falling into an infinite loop. The optimal capacity configuration scheme generated based on the position and speed of the particles is not only economical and efficient, but also highly reliable and sustainable, providing strong support for the efficient and stable operation of the microgrid. By rationally planning the capacity of equipment such as gas boilers and gas turbines, the system can be more balanced in terms of energy supply and demand, thereby reducing the operating cost of the system and improving the efficiency of the system; it can effectively reduce the environmental pollution of the system, and by optimizing combustion efficiency and reducing unnecessary emissions, it can reduce the adverse impact on the environment and improve the environmental friendliness of the system; it can effectively control the cost of the system, avoid excessive or insufficient equipment capacity, and reduce investment and operating costs, thereby improving the economy and competitiveness of the system.

[0054] Embodiment 2: like Figure 5 As shown, this embodiment provides a multi-energy coupling microgrid capacity planning device based on a particle swarm algorithm, the device comprising a model building module 101, a particle generation module 102, a planning result module 103 and a configuration scheme generation module 104; the model building module is used to construct an upper-level multi-objective planning model and a lower-level optimization scheduling model; the particle generation module is used for upper-level particles corresponding to the multi-objective planning model and lower-level particles corresponding to the lower-level optimization scheduling model; the planning result module is used to receive the output of the lower-level optimization scheduling module and pass it to the upper-level multi-objective planning module; the configuration scheme generation module is used to generate an optimal capacity configuration scheme for the multi-energy coupling microgrid according to the optimization result of the particle swarm algorithm.

[0055] In this embodiment, the upper multi-objective planning model and the lower optimization scheduling model are constructed by the model construction module, which can comprehensively consider multiple objectives such as the economy, reliability, and sustainability of the microgrid, as well as the mutual influence between the unit capacity configuration and the scheduling strategy. The two-layer planning framework makes the planning results more in line with the actual operation requirements of the microgrid, and improves the accuracy and effectiveness of the planning; the particle generation module generates upper particles and lower particles representing different unit capacity configuration schemes and scheduling strategies, and through the iterative optimization of the particle swarm algorithm, it can gradually approach the optimal solution, thereby finding the optimal unit capacity configuration and scheduling strategy; the output of the lower optimization scheduling module is received by the planning result module, and it is passed to the upper multi-objective planning module, ensuring the close coupling between the upper and lower models, so that the unit capacity configuration and the scheduling strategy can be coordinated and optimized with each other, which is conducive to improving the overall operation efficiency and economic benefits of the microgrid; the configuration scheme generation module generates the optimal capacity configuration scheme of the multi-energy coupling microgrid according to the optimization results of the particle swarm algorithm, comprehensively considering multiple objectives and constraints of the microgrid, which can guide the construction and operation of the microgrid and improve the performance and competitiveness of the microgrid.

[0056] The above specific implementation is a preferred implementation of the multi-energy coupled microgrid capacity planning method and device based on particle swarm algorithm of the present invention, and is not intended to limit the specific implementation scope of the present invention. The scope of the present invention includes but is not limited to this specific implementation. All equivalent changes made in accordance with the shape and structure of the present invention are within the protection scope of the present invention.

Claims

1. A multi-energy coupling microgrid capacity planning method based on particle swarm optimization is characterized by: The steps include: S1. Construct an upper-layer multi-objective planning model and a lower-layer optimization scheduling model corresponding to the multi-energy coupling microgrid, and set parameters for the upper-layer multi-objective planning model; S2. Set the seasonal scenario day corresponding to the multi-energy coupling microgrid, randomly generate the unit capacity of the planned unit as the initial output value of the upper multi-objective planning model, and determine the speed and position of the upper particles based on the particle swarm algorithm; S3. Calculate the optimal daily operation strategy for each scenario day by using the speed and position of the upper-layer particles as the capacity constraints of the lower-layer optimization scheduling model; S4. Input the daily optimal operation strategy into the upper-level multi-objective programming model to obtain the annual optimal operation strategy, and update the speed and position of the upper-level particles; S5. Iteratively run S3-S4 to update the speed and position of the upper particles until the termination condition is reached to obtain the optimal capacity configuration plan of the multi-energy coupling microgrid.

2. The multi-energy coupling microgrid capacity planning method based on particle swarm optimization according to claim 1 is characterized in that: The S1 comprises the following steps: S11. Establishing an upper-level multi-objective planning model with the goal of maximizing the unit capacity of the planned unit; S12. Establish a lower-level optimization scheduling model with the goal of minimizing daily operating costs; S13. Setting the upper limit of the unit capacity and the preset convergence times of the upper-level multi-objective programming model.

3. The multi-energy coupling microgrid capacity planning method based on particle swarm optimization according to claim 1 is characterized in that: The S2 comprises the following steps: S21. Considering load demand and energy supply, the multi-energy coupling microgrid is divided into scenarios to obtain corresponding seasonal scenario days; S22, generating the unit capacity of the planned unit by a random algorithm as the initial output value of the upper multi-objective planning model; S23. Calculate the speed and position of each upper-layer particle using a particle swarm algorithm based on the initial output value.

4. The multi-energy coupling microgrid capacity planning method based on particle swarm optimization according to claim 3 is characterized in that: The seasonal scene days include three seasonal scene days: spring and autumn, summer and winter.

5. The multi-energy coupling microgrid capacity planning method based on particle swarm optimization according to claim 1 is characterized in that: The S3 comprises the following steps: S31. Determine the capacity constraint of the lower-layer optimization scheduling model based on the speed and position of the upper-layer particles; S32. Based on the capacity constraint, a CPLEX solver is called to optimize the scheduling of the lower-layer multi-energy coupled microgrid by the CPLEX solver to calculate the optimal operation mode and load distribution of the energy equipment. S33. Determine a daily optimal operation strategy based on the optimal operation mode and load distribution.

6. The multi-energy coupling microgrid capacity planning method based on particle swarm optimization according to claim 1 is characterized in that: The S4 comprises the following steps: S41, passing the daily optimal operation strategy as a model input to the upper multi-objective programming model; S42, updating the upper-level annual operation strategy through the upper-level multi-objective programming model; S43. Compare the updated annual operation strategy with the historical optimal strategy to determine the optimal annual operation strategy; S44. Update the speed and position of the upper particles according to the annual optimal operation strategy.

7. The multi-energy coupling microgrid capacity planning method based on particle swarm optimization according to claim 1 is characterized in that: The S5 comprises the following steps: S51, iteratively run S3-S4 to gradually update the speed and position of the particles in the upper multi-objective programming model; S52, checking the number of convergences of the upper multi-objective programming model after each iteration; S53, determining whether the number of convergences reaches a preset number of convergences. If so, stopping the iteration and executing S44; if not, continuing to iterate S3-S4 until the preset number of convergences is reached; S54. Generate an optimal capacity configuration plan for the multi-energy coupling microgrid based on the position and velocity of the particles.

8. The multi-energy coupling microgrid capacity planning method based on particle swarm optimization according to claim 7 is characterized in that: Before executing S52, the following steps are also included: Adjust the model parameters of the upper-level multi-objective programming model according to the results of each iteration, including inertia parameters and acceleration coefficients; Set a new preset convergence number based on the adjusted inertia parameters and acceleration coefficients.

9. A multi-energy coupled microgrid capacity planning device based on a particle swarm algorithm, applicable to the multi-energy coupled microgrid capacity planning method based on a particle swarm algorithm according to any one of claims 1 to 8, characterized in that: The device includes a model construction module, a particle generation module, a planning result module and a configuration scheme generation module; the model construction module is used to construct an upper-level multi-objective planning model and a lower-level optimization scheduling model; the particle generation module is used to generate upper-level particles corresponding to the multi-objective planning model and lower-level particles corresponding to the lower-level optimization scheduling model; The planning result module is used to receive the output of the lower-level optimization scheduling module and pass it to the upper-level multi-objective planning module; the configuration scheme generation module is used to generate the optimal capacity configuration scheme of the multi-energy coupling microgrid based on the particle swarm algorithm optimization results.

Citation Information

Cited By

  • Online deployment method and system based on household optical storage all-in-one machine cluster

    CN119401462A

  • An online dispatching method and system based on residential photovoltaic and energy storage integrated machine clusters

    CN119401462B

  • Micro-grid planning method and system for multi-micro-grid coupling

    CN120410284A