A microgrid integrated flexible planning method and system adapting to multiple scenarios
By obtaining data in the target planning area, selecting the microgrid type and composition, constructing capacity and grid planning objective functions, and using mixed integer and particle swarm optimization algorithms, the problems of lack of economy, reliability and environmental protection in microgrid planning are solved. , realizing the overall unified optimization of the microgrid.
Patent Information
- Application Number
- CN202111369923.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-18
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2041-11-18
AI Technical Summary
Existing microgrid planning methods lack comprehensive analysis of economy, reliability and environmental protection, and capacity planning is disconnected from grid planning, unable to adapt to the reliability needs of different regions, and lacks overall planning and optimization.
Provide a microgrid integrated flexible planning method that adapts to multiple scenarios. By obtaining data in the target planning area, selecting the microgrid type and composition, constructing capacity planning and grid planning objective functions, using mixed integer optimization algorithm and particle swarm optimization algorithm , comprehensively considering economy, reliability and environmental protection, optimizing capacity and grid structure.
It achieves the overall unification of microgrid planning, achieves economic goals, comprehensively considers reliability and environmental protection, flexibly meets different reliability needs, and optimizes capacity and grid structure by introducing environmental costs and user power outage losses.
Smart Images

Figure CN114091748B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of microgrid technology, and in particular to a microgrid integrated flexible planning method and system adaptable to multiple scenarios. Background Art
[0002] Energy crisis and environmental problems are becoming increasingly serious. The local development and distributed utilization of new energy have become an important way for governments to save energy, reduce emissions and develop green energy. However, the inherent distribution, intermittency and randomness of new energy will have an impact on the dispatch and operation of the power grid. Microgrids, as one of the effective forms of distributed utilization of renewable energy, are considered to be an important networking form for achieving efficient and clean conversion of electric energy and coordinated allocation of resources. Scientifically and reasonably planning the flexible resource allocation of microgrids, while taking into account the full absorption of renewable energy and ensuring the economic and reliable operation of microgrids, is a frontier hot topic that is currently the focus of academic and industrial circles.
[0003] At present, the research on microgrid planning is mainly divided into two aspects: capacity planning and grid planning, starting from independent microgrids or grid-connected microgrids. The current research includes: 1) Considering the regional wind and solar energy resources, the microgrid planning research is carried out from the perspective of economy, sensitivity and environmental protection; 2) Proposing a distributed blue bar optimization method based on Kullback-Leibler divergence to evaluate the maximum grid-connected capacity of distributed photovoltaics in the distribution network; 3) Taking the lowest annual value of energy storage investment replacement cost and operating cost as the objective function, taking into account the battery life, a two-layer optimization configuration model for multi-energy microgrid energy storage capacity is established, the upper layer optimizes the energy storage capacity, and the lower layer optimizes the system operation strategy; 4) The power supply points and load points of the distribution network are regarded as vertices, and the possible lines between each vertex are set up. The corridors are taken as edges, and the sum of the construction cost and operation cost of the lines is taken as the weight of each edge. The basic minimum spanning tree algorithm is used to obtain a preliminary planning scheme, and the weight of each edge is dynamically adjusted and iterated repeatedly to obtain the optimization planning result with the minimum total cost; 5) Based on the sorting idea, the Dijkstra algorithm is improved and used for microgrid grid expansion planning; 6) A two-dimensional Gaussian mixture model is used to model the joint probability distribution of sources and loads, and a typical scenario set is constructed by the acceptance-rejection sampling method. A multi-objective two-layer optimization model is established, and a multi-objective particle swarm algorithm and a depth-first search-based all spanning tree algorithm are used to coordinately optimize the photovoltaic access capacity and grid structure.
[0004] However, the existing microgrid capacity planning lacks a comprehensive analysis of economy, reliability and environmental protection; the reliability analysis is mostly deterministic analysis and modeling considering the uncertainty of wind, solar and load, which may not be able to adapt to the different reliability requirements of different regions; the grid planning lacks analysis of the reliability of power supply for loads of different importance. In addition, most of the current research is aimed at the planning of a certain power source or a certain link in the microgrid, and the capacity planning is disconnected from the grid planning, lacking the overall optimization of microgrid planning. Summary of the invention
[0005] In order to overcome the defects of the separation of capacity planning and grid planning in the existing microgrid planning methods and the lack and insufficiency of consideration for the reliability and environmental protection of the microgrid, the present invention provides a microgrid integrated flexible planning method and system that is adaptable to multiple scenarios.
[0006] A first aspect of the present invention provides a microgrid integrated flexible planning method adapting to multiple scenarios, comprising:
[0007] Obtain relevant data of the target planning area; wherein the relevant data includes: geographical location information, scenery condition information, site condition information and load demand data;
[0008] Selecting the type and composition of the microgrid according to the relevant data through a preset expert system;
[0009] According to the relevant data, the type of microgrid and the composition of the microgrid, a capacity planning objective function is constructed, and capacity planning constraints are determined;
[0010] Obtaining a unit capacity planning result according to the capacity planning objective function and the planning constraints by using a mixed integer optimization algorithm;
[0011] Determine the rationality of the unit capacity planning results;
[0012] If the unit capacity planning result is reasonable, then according to the relevant data, the microgrid type, the microgrid composition and the unit capacity planning result, a grid planning objective function is constructed, and grid planning constraints are determined;
[0013] By using a particle swarm optimization algorithm, an optimal grid structure is obtained according to the grid planning objective function and the grid planning constraint conditions.
[0014] Furthermore, after judging the rationality of the unit capacity planning result, the method further includes:
[0015] If the unit capacity planning result is unreasonable, the microgrid type and microgrid composition are reselected based on the relevant data.
[0016] Furthermore, the capacity planning objective function is expressed by the following formula:
[0017] min C=C DG +C DGY +C DGF +C CN +C CNY +C HJ -C HB +C PCC ;
[0018] Where C is the total capacity planning cost, C DG is the annual investment cost of DG, C DGY is the annual operation and maintenance cost of DG, C DGF is the annual fuel cost of DG, C CN is the annual investment cost of energy storage, C CNY is the annual operation and maintenance cost of energy storage, C HJ is the annual environmental cost of DG, C HB For environmental protection subsidies, C PCC Cost of purchasing electricity for the network.
[0019] Furthermore, the capacity planning constraint is expressed by the following formula:
[0020] G WT(min) ≤G WT ≤G WT(max) ;
[0021] G PV(min) ≤G PV ≤G PV(max) ;
[0022] G MT(min) ≤G MT ≤G MT(max) ;
[0023] Among them, G WT(min) is the lower limit of the installed capacity of the wind turbine, G WT is the actual installed capacity of the wind turbine, G WT(max) is the upper limit of wind turbine installed capacity, G PV(min) is the lower limit of photovoltaic installed capacity, G PV is the actual installed capacity of photovoltaic power generation, G PV(max) is the upper limit of photovoltaic installed capacity, G MT(min) is the lower limit of diesel engine installed capacity, G MT is the actual installed capacity of the diesel engine, G MT(max) It is the upper limit of diesel engine installed capacity.
[0024] Furthermore, the grid planning objective function is expressed by the following formula:
[0025] min C=C line +C L +k∑ l∈M C l,com ;
[0026] Among them, C is the total cost of grid planning, C line is the equivalent annual value of line investment cost, C L is the annual cost of network loss, k is a parameter to measure the importance of power outage to users, C l,com is the power outage loss cost for users who do not select the line, l is the user, and M is the total number of users;
[0027] The grid planning constraint condition is expressed by the following formula:
[0028]
[0029]
[0030] Among them, i and j are nodes, L is a node set, P i,t is the active power input from node i to the microgrid in time t, S(j) is the set of all lines connected to node i, P i,j,t is the active power transmitted from node i to node j in time t, Q i,t is the reactive power input from node i to the microgrid during time t, Q i,j,t is the reactive power transmitted from node i to node j during time t.
[0031] A second aspect of the present invention provides a microgrid integrated flexible planning system adapting to multiple scenarios, comprising:
[0032] A data acquisition module is used to acquire relevant data of the target planning area; wherein the relevant data includes: geographical location information, scenery condition information, site condition information and load demand data;
[0033] A microgrid type and composition determination module, used to select the microgrid type and microgrid composition according to the relevant data through a preset expert system;
[0034] A capacity planning objective function and constraint condition determination module, used to construct a capacity planning objective function and determine capacity planning constraints according to the relevant data, the microgrid type and the microgrid composition;
[0035] A unit capacity planning result determination module, used to obtain the unit capacity planning result according to the capacity planning objective function and the planning constraint conditions through a mixed integer optimization algorithm;
[0036] A rationality judgment module, used to judge the rationality of the unit capacity planning result;
[0037] A grid planning objective function and constraint condition determination module, for constructing a grid planning objective function and determining grid planning constraints according to the relevant data, the microgrid type, the microgrid composition and the unit capacity planning result if the unit capacity planning result is reasonable;
[0038] The optimal grid structure calculation module is used to obtain the optimal grid structure according to the grid planning objective function and the grid planning constraint conditions through a particle swarm optimization algorithm.
[0039] Furthermore, after judging the rationality of the unit capacity planning result, the method further includes: a microgrid type and composition secondary determination module, which is used to:
[0040] If the unit capacity planning result is unreasonable, the microgrid type and microgrid composition are reselected based on the relevant data.
[0041] Furthermore, the capacity planning objective function is expressed by the following formula:
[0042] min C=C DG +C DGY +C DGF +C CN +C CNY +C HJ -C HB +C PCC ;
[0043] Where C is the total capacity planning cost, C DG is the annual investment cost of DG, C DGY is the annual operation and maintenance cost of DG, C DGF is the annual fuel cost of DG, C CN is the annual investment cost of energy storage, C CNY is the annual operation and maintenance cost of energy storage, C HJ is the annual environmental cost of DG, C HB For environmental protection subsidies, C PCC Cost of purchasing electricity for the network.
[0044] Furthermore, the capacity planning constraint is expressed by the following formula:
[0045] G WT(min) ≤G WT ≤G WT(max) ;
[0046] G PV(min) ≤G PV ≤G PV(max) ;
[0047] G MT(min) ≤GMT ≤G MT(max) ;
[0048] Among them, G WT(min) is the lower limit of the installed capacity of the wind turbine, G WT is the actual installed capacity of the wind turbine, G WT(max) is the upper limit of wind turbine installed capacity, G PV(min) is the lower limit of photovoltaic installed capacity, G PV is the actual installed capacity of photovoltaic power generation, G PV(max) is the upper limit of photovoltaic installed capacity, G MT(min) is the lower limit of diesel engine installed capacity, G MT is the actual installed capacity of the diesel engine, G MT(max) It is the upper limit of diesel engine installed capacity.
[0049] Furthermore, the grid planning objective function is expressed by the following formula:
[0050] min C=C line +C L +k∑ l∈M C l,com ;
[0051] Among them, C is the total cost of grid planning, C line is the equivalent annual value of line investment cost, C L is the annual cost of network loss, k is a parameter to measure the importance of power outage to users, C l,com is the power outage loss cost for users who do not select the line, l is the user, and M is the total number of users;
[0052] The grid planning constraint condition is expressed by the following formula:
[0053]
[0054]
[0055] Among them, i and j are nodes, L is a node set, P i,t is the active power input from node i to the microgrid in time t, S(j) is the set of all lines connected to node i, P i,j,t is the active power transmitted from node i to node j in time t, Q i,t is the reactive power input from node i to the microgrid during time t, Q i,j,t is the reactive power transmitted from node i to node j during time t.
[0056] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0057] The present invention provides a microgrid integrated flexible planning method and system adaptable to multiple scenarios, wherein the method comprises: obtaining relevant data of a target planning area; wherein the relevant data comprises: geographical location information, wind and light condition information, site condition information and load demand data; selecting a microgrid type and a microgrid composition according to the relevant data through a preset expert system; constructing a capacity planning objective function according to the relevant data, the microgrid type and the microgrid composition, and determining capacity planning constraints; obtaining a unit capacity planning result according to the capacity planning objective function and the planning constraints through a mixed integer optimization algorithm; judging the rationality of the unit capacity planning result; if the unit capacity planning result is reasonable, constructing a grid planning objective function according to the relevant data, the microgrid type, the microgrid composition and the unit capacity planning result, and determining grid planning constraints; obtaining an optimal grid structure according to the grid planning objective function and the grid planning constraints through a particle swarm optimization algorithm. First, the present invention takes economy as the goal, comprehensively considers the capacity planning model of reliability and economy, introduces environmental costs in the objective function, and takes into account the advantages of renewable energy in environmental protection; introduces electricity trading constraints, sustainable power supply constraints and load loss probability constraints in the constraints, and can flexibly select limits to meet different degrees of reliability requirements. Second, the present invention takes reliability into account in the grid planning model, and introduces the power outage loss costs for users without built lines into the objective function, which can meet different reliability needs according to different k values. Third, the planning of each part of the integrated planning system provided by the present invention is carried out independently in sequence, and the input and output of different parts are closely linked, realizing the overall unification of microgrid planning. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] In order to more clearly illustrate the technical solution of the present invention, the drawings required for use in the implementation mode will be briefly introduced below. Obviously, the drawings described below are only some implementation modes of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0059] Figure 1 It is a flow chart of a microgrid integrated flexible planning method adapted to multiple scenarios provided by a certain embodiment of the present invention;
[0060] Figure 2 is a flow chart of a microgrid integrated flexible planning method adapting to multiple scenarios provided by another embodiment of the present invention;
[0061] Figure 3 This is a device diagram of a microgrid integrated flexible planning system that is adaptable to multiple scenarios provided by a certain embodiment of the present invention;
[0062] Figure 4 It is a structural diagram of an electronic device provided by a certain embodiment of the present invention. DETAILED DESCRIPTION
[0063] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0064] It should be understood that the step numbers used in this document are only for convenience of description and are not intended to limit the order in which the steps are executed.
[0065] It should be understood that the terms used in the present specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0066] The terms “include” and “comprising” indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0067] The term "and / or" means and includes any and all possible combinations of one or more of the associated listed items.
[0068] The first aspect.
[0069] See also Figure 1 An embodiment of the present invention provides a microgrid integrated flexible planning method that is adaptable to multiple scenarios, including:
[0070] S10, obtaining relevant data of the target planning area, wherein the relevant data includes: geographical location information, scenery condition information, site condition information and load demand data.
[0071] S20. Select the type and composition of the microgrid according to the relevant data through a preset expert system.
[0072] S30. Construct a capacity planning objective function according to the relevant data, the microgrid type and the microgrid composition, and determine capacity planning constraints.
[0073] Preferably, the capacity planning objective function is expressed by the following formula:
[0074] min C=C DG +C DGY +C DGF +C CN +C CNY +C HJ -C HB +C PCC ;
[0075] Where C is the total capacity planning cost, C DG is the annual investment cost of DG, C DGY is the annual operation and maintenance cost of DG, C DGF is the annual fuel cost of DG, C CN is the annual investment cost of energy storage, C CNY is the annual operation and maintenance cost of energy storage, C HJ is the annual environmental cost of DG, C HB For environmental protection subsidies, C PCC Cost of purchasing electricity for the network.
[0076] The capacity planning constraint is expressed by the following formula:
[0077] G WT(min) ≤G WT ≤G WT(max) ;
[0078] G PV(min) ≤G PV ≤G PV(max) ;
[0079] G MT(min) ≤G MT ≤G MT(max) ;
[0080] Among them, G WT(min) is the lower limit of the installed capacity of the wind turbine, G WT is the actual installed capacity of the wind turbine, G WT(max) is the upper limit of wind turbine installed capacity, G PV(min) is the lower limit of photovoltaic installed capacity, G PV is the actual installed capacity of photovoltaic power generation, G PV(max) is the upper limit of photovoltaic installed capacity, G MT(min) is the lower limit of diesel engine installed capacity, G MT is the actual installed capacity of the diesel engine, G MT(max) It is the upper limit of diesel engine installed capacity.
[0081] S40. Obtaining a unit capacity planning result according to the capacity planning objective function and the planning constraints through a mixed integer optimization algorithm.
[0082] S50: Determine the rationality of the unit capacity planning result.
[0083] S60: If the unit capacity planning result is reasonable, a grid planning objective function is constructed according to the relevant data, the microgrid type, the microgrid composition and the unit capacity planning result, and grid planning constraints are determined.
[0084] Preferably, the grid planning objective function is expressed by the following formula:
[0085] min C=C line +C L +k∑ l∈M C l,com ;
[0086] Among them, C is the total cost of grid planning, C line is the equivalent annual value of line investment cost, C L is the annual cost of network loss, k is a parameter to measure the importance of power outage to users, C l,com is the power outage loss cost for users who do not select the line, l is the user, and M is the total number of users.
[0087] The grid planning constraint condition is expressed by the following formula:
[0088]
[0089]
[0090] Among them, i and j are nodes, L is a node set, P i,t is the active power input from node i to the microgrid in time t, S(j) is the set of all lines connected to node i, P i,j,t is the active power transmitted from node i to node j in time t, Q i,t is the reactive power input from node i to the microgrid during time t, Q i,j,t is the reactive power transmitted from node i to node j during time t.
[0091] S70, obtaining an optimal grid structure according to the grid planning objective function and the grid planning constraints through a particle swarm optimization algorithm.
[0092] In a specific implementation of the embodiment of the present invention, after judging the rationality of the unit capacity planning result, the method further includes:
[0093] If the unit capacity planning result is unreasonable, the microgrid type and microgrid composition are reselected based on the relevant data.
[0094] First, the present invention takes economy as the goal, comprehensively considers the capacity planning model of reliability and economy, introduces environmental costs in the objective function, and takes into account the advantages of renewable energy in environmental protection; introduces electricity trading constraints, sustainable power supply constraints and load loss probability constraints in the constraints, and can flexibly select limits to meet different degrees of reliability requirements. Second, the present invention takes reliability into account in the grid planning model, and introduces the power outage loss costs for users without built lines into the objective function, which can meet different reliability needs according to different k values. Third, the planning of each part of the integrated planning system provided by the present invention is carried out independently in sequence, and the input and output of different parts are closely linked, realizing the overall unification of microgrid planning.
[0095] See also Figure 2 In a specific embodiment of the present invention, the present invention provides a microgrid integrated flexible planning method that adapts to multiple scenarios, which is divided into the following three parts: microgrid type and composition judgment, capacity planning, and grid planning.
[0096] Part 1: Determine the type and composition of the microgrid. The distributed power source in the microgrid is composed of one or more of wind turbines, photovoltaics, gas turbines, and diesel engines, and can be built in two types of grid-connected or independent types. Conduct research and data acquisition on the wind and solar conditions and site conditions in the planning area, select the type and composition of the microgrid network through an expert system, and determine the construction location and capacity limit of the distributed power source and energy storage.
[0097] The second part is capacity planning. The capacity planning of microgrid is mainly divided into the following two parts: (1) establishing the capacity planning model and (2) solving it using the mixed integer optimization algorithm.
[0098] (1) Establish a capacity planning model:
[0099] A microgrid capacity planning model is established by comprehensively considering the microgrid's requirements for economy, reliability, and environmental protection.
[0100] In terms of the objective function, the goal is to optimize the economy, taking into account the requirements of reliability and environmental protection. The optimization goal is to minimize the annual total cost, as follows:
[0101] min C=C DG +C DGY +C DGF +C CN +C CNY +C HJ -C HB +C PCC ;
[0102] Among them, C DG is the annual investment cost of DG, C DGY is the annual operation and maintenance cost of DG, CDGF is the annual fuel cost of DG, C CN is the annual investment cost of energy storage, C CNY is the annual operation and maintenance cost of energy storage, C HJ is the annual environmental cost of DG, C HB For environmental protection subsidies, C PCC Cost of purchasing electricity for the network.
[0103] In terms of constraints, in addition to conventional constraints, there are also unique reliability constraints, as follows:
[0104] 1.1) Electricity trading constraints:
[0105] For grid-connected microgrids, in order to ensure the relatively independent operation of the microgrid, the annual electricity transaction volume between the microgrid and the upper grid is required not to exceed 50% of the annual electricity consumption of the microgrid, that is:
[0106]
[0107] Among them, E pcc,t is the actual power on the interconnection line between the microgrid and the upper grid during period t, n is the total number of data periods, P(t) is the average load value during period t, and Δt is the length of each period t;
[0108] 1.2) Sustainable power supply constraints:
[0109] For a grid-connected microgrid, it is required that when the microgrid is disconnected from the upper grid at any time, the important loads in the microgrid can be guaranteed to continue to be powered for a period of time, taking 2 hours as an example, that is:
[0110] P WT (t)+P WT (t+1)+P PV (t)+P PV (t+1)+P MT (t);
[0111] P MT (t+1)+W CN (t)≥P(t)+P(t+1)t=0, 1,..., n-1;
[0112] Among them, P WT (t) is the power of the fan during period t, P PV (t) is the photovoltaic power in period t, P MT (t) is the power of the gas turbine or diesel engine during period t, W CN (t) is the remaining energy at time t; the power supply duration requirement can be adjusted according to actual needs.
[0113] 1.3) Load loss probability constraint:
[0114] The load loss probability is defined as the probability that all DG power generation cannot meet the load demand. In order to meet the load power demand as much as possible, the load loss probability is required to be less than a given value, that is:
[0115] LPSP≤LPSP max
[0116] Among them, LPSP is the load loss probability, LPSP max is the maximum value allowed for the probability of load loss.
[0117] (2) Mixed integer optimization algorithm solution:
[0118] Different types of power sources and energy storage have different constraints, and the constraints must be converted into conditions that are suitable for mixed integer optimization algorithms:
[0119] Photovoltaic and wind turbines should determine the unit type and output curve under the predicted corresponding environment according to the calculation and analysis of environmental parameters. At this time, the capacity planning of photovoltaic and wind turbines is converted into the number planning of photovoltaic arrays and wind turbines, and the capacity upper limit of photovoltaic and wind turbines is converted into the upper limit of the number of photovoltaic arrays and wind turbines.
[0120] Energy storage should update the state of charge according to the charging and discharging conditions of the previous period, and consider the upper and lower limits of energy storage and the energy storage ramp rate to determine the charging and discharging power range allowed in the next period;
[0121] The planning of microgrids of different types and compositions can be achieved through appropriate adjustment of objective functions and constraints.
[0122] Matlab is used to call Gurobi to solve the mixed integer optimization problem. If the planning result is unreasonable, the expert system should be returned to reselect the type and composition of the microgrid.
[0123] The third part is grid planning. The grid planning of microgrid is mainly divided into the following two parts: (1) establishing grid planning model and (2) solving it by particle swarm optimization algorithm.
[0124] (1) Establishing a grid planning model:
[0125] Taking into account the requirements of economy and reliability, the objective function is given by adding the economic cost and reliability cost in proportion, and the particle swarm algorithm is used to solve it. The optimization goal is to minimize the total cost. The objective function is expressed as follows:
[0126]
[0127] Among them, C line is the equivalent annual value of line investment cost; C L is the annual cost of network loss, k is a parameter to measure the importance of power outage to users, Cl,com is the power outage loss cost for users of unselected lines, l is the user, and M is the total number of users. It should be noted that the power outage loss cost for users of unselected lines is only a virtual cost considering the reliability of user power supply, not the actual cost. Its physical meaning and calculation method are as follows:
[0128] In practical applications, it is required that loads with large quantity and high load importance are connected to relatively more lines to ensure reliable power supply to important loads. If equivalent to lines, it is hoped that lines connecting nodes with large load quantity and high load importance will be preferred, that is, the reliability target is to maximize the power outage loss costs for users of the built lines. The total number of lines that can be selected in the planning area is certain, and the reliability target is converted into minimizing the power outage loss costs for users without built lines. The calculation formula is:
[0129]
[0130] in, is the power outage loss cost of the user unit with importance i, is the total power outage electricity of users with importance i connected to line l.
[0131] (2) Particle swarm optimization algorithm solution:
[0132] The particle swarm optimization algorithm solution steps are as follows:
[0133] 2.1) Initialize the particle population.
[0134] 2.2) Update the velocity of each particle.
[0135] The particle velocity update formula is as follows:
[0136] v i =w*v i-1 +c1*rand*(pbest i -pre i )+c2*rand*(gbest-pre i );
[0137] Among them, w is the inertia weight; c1 is the self-learning factor; rand is a random number between 0 and 1; pbest i is the historical optimal position of particle i; pre i is the current position of particle i; c2 is the group learning factor; gbest is the historical optimal position of the population; when the updated particle speed exceeds the allowable range, the particle speed should be limited to the boundary value, that is:
[0138]
[0139] Among them, v maxis the maximum allowed velocity of the particle, v min is the minimum allowed particle speed.
[0140] Update the particle position. The particle position update formula is as follows:
[0141] pre i+1 =pre i +v i ;
[0142] 2.3) Perform power flow calculation.
[0143] For particles that meet the connectivity constraints, the power flow calculation is performed to solve the network loss cost. For particles that do not meet the connectivity constraints, go directly to step 2.4.
[0144] 2.4) Determine whether all particles meet the constraints.
[0145] The fitness of particles that meet the constraints at that position is calculated, and the fitness of particles that do not meet the constraints is infinite.
[0146] 2.5) Update the historical best position and historical best fitness of particles and populations.
[0147] 2.6) Determine whether the upper limit of the number of iterations has been reached. If not, go to step 2; if satisfied, the best historical position of the population at this time is the optimal grid structure.
[0148] The advantages of the present invention are as follows:
[0149] (1) A capacity planning model that takes economy as the goal and comprehensively considers reliability and economy. Environmental costs are introduced into the objective function, taking into account the environmental advantages of renewable energy; power trading constraints, sustainable power supply constraints, and load loss probability constraints are introduced into the constraints, and the limit values can be flexibly selected to meet different levels of reliability requirements.
[0150] (2) A grid planning model that takes economy as the goal and takes reliability into consideration. The power outage loss costs for users whose lines are not yet built are introduced into the objective function, and different reliability requirements can be met according to different k values.
[0151] (3) The planning of each part of the integrated planning system is carried out independently and sequentially, and the input and output of different parts are closely linked, achieving the overall unification of microgrid planning.
[0152] The second aspect.
[0153] See also Figure 3 An embodiment of the present invention provides a microgrid integrated flexible planning system adapting to multiple scenarios, including:
[0154] The data acquisition module 10 is used to acquire relevant data of the target planning area, wherein the relevant data includes: geographical location information, scenery condition information, site condition information and load demand data.
[0155] The microgrid type and composition determination module 20 is used to select the microgrid type and microgrid composition according to the relevant data through a preset expert system.
[0156] The capacity planning objective function and constraint condition determination module 30 is used to construct a capacity planning objective function and determine capacity planning constraint conditions according to the relevant data, the microgrid type and the microgrid composition.
[0157] Preferably, the capacity planning objective function is expressed by the following formula:
[0158] min C=C DG +C DGY +C DGF +C CN +C CNY +C HJ -C HB +C PCC ;
[0159] Where C is the total capacity planning cost, C DG is the annual investment cost of DG, C DGY is the annual operation and maintenance cost of DG, C DGF is the annual fuel cost of DG, C CN is the annual investment cost of energy storage, C CNY is the annual operation and maintenance cost of energy storage, C HJ is the annual environmental cost of DG, C HB For environmental protection subsidies, C PCC Cost of purchasing electricity for the network.
[0160] The capacity planning constraint is expressed by the following formula:
[0161] G WT(min) ≤G WT ≤G WT(max) ;
[0162] G PV(min) ≤G PV ≤G PV(max) ;
[0163] G MT(min) ≤G MT ≤G MT(max) ;
[0164] Among them, G WT(min) is the lower limit of the installed capacity of the wind turbine, G WT is the actual installed capacity of the wind turbine, GWT(max) is the upper limit of wind turbine installed capacity, G PV(min) is the lower limit of photovoltaic installed capacity, G PV is the actual installed capacity of photovoltaic power generation, G PV(max) is the upper limit of photovoltaic installed capacity, G MT(min) is the lower limit of diesel engine installed capacity, G MT is the actual installed capacity of the diesel engine, G MT(max) It is the upper limit of diesel engine installed capacity.
[0165] The unit capacity planning result determination module 40 is used to obtain the unit capacity planning result according to the capacity planning objective function and the planning constraint conditions through a mixed integer optimization algorithm.
[0166] The rationality judgment module 50 is used to judge the rationality of the unit capacity planning result.
[0167] The grid planning objective function and constraint condition determination module 60 is used to construct a grid planning objective function and determine grid planning constraints based on the relevant data, the microgrid type, the microgrid composition and the unit capacity planning results if the unit capacity planning results are reasonable.
[0168] Preferably, the grid planning objective function is expressed by the following formula:
[0169] min C=C line +C L +k∑ l∈M C l,com ;
[0170] Among them, C is the total cost of grid planning, C line is the equivalent annual value of line investment cost, C L is the annual cost of network loss, k is a parameter to measure the importance of power outage to users, C l,com is the power outage loss cost for users who do not select the line, l is the user, and M is the total number of users.
[0171] The grid planning constraint condition is expressed by the following formula:
[0172]
[0173]
[0174] Among them, i and j are nodes, L is a node set, P i,t is the active power input from node i to the microgrid in time t, S(j) is the set of all lines connected to node i, P i,j,t is the active power transmitted from node i to node j in time t, Q i,tis the reactive power input from node i to the microgrid during time t, Q i,j,t is the reactive power transmitted from node i to node j during time t.
[0175] The optimal grid structure calculation module 70 is used to obtain the optimal grid structure according to the grid planning objective function and the grid planning constraint conditions through a particle swarm optimization algorithm.
[0176] In a specific implementation of the embodiment of the present invention, it also includes:
[0177] The microgrid type and composition secondary determination module is used to:
[0178] If the unit capacity planning result is unreasonable, the microgrid type and microgrid composition are reselected based on the relevant data.
[0179] First, the present invention takes economy as the goal, comprehensively considers the capacity planning model of reliability and economy, introduces environmental costs in the objective function, and takes into account the advantages of renewable energy in environmental protection; introduces electricity trading constraints, sustainable power supply constraints and load loss probability constraints in the constraints, and can flexibly select limits to meet different degrees of reliability requirements. Second, the present invention takes reliability into account in the grid planning model, and introduces the power outage loss costs for users without built lines into the objective function, which can meet different reliability needs according to different k values. Third, the planning of each part of the integrated planning system provided by the present invention is carried out independently in sequence, and the input and output of different parts are closely linked, realizing the overall unification of microgrid planning.
[0180] The third aspect.
[0181] The present invention provides an electronic device, the electronic device comprising:
[0182] processor, memory, and bus;
[0183] The bus is used to connect the processor and the memory;
[0184] The memory is used to store operation instructions;
[0185] The processor is used to call the operation instruction, and the executable instruction enables the processor to perform operations corresponding to a microgrid integrated flexible planning method that is adaptable to multiple scenarios as shown in the first aspect of the present application.
[0186] In an alternative embodiment, an electronic device is provided, such as Figure 4 As shown, Figure 4The electronic device 5000 shown includes: a processor 5001 and a memory 5003. The processor 5001 and the memory 5003 are connected, such as through a bus 5002. Optionally, the electronic device 5000 may also include a transceiver 5004. It should be noted that in actual applications, the transceiver 5004 is not limited to one, and the structure of the electronic device 5000 does not constitute a limitation on the embodiments of the present application.
[0187] Processor 5001 may be a CPU, a general-purpose processor, a DSP, an ASIC, an FPGA or other programmable logic device, a transistor logic device, a hardware component or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. Processor 5001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0188] The bus 5002 may include a path to transmit information between the above components. The bus 5002 may be a PCI bus or an EISA bus, etc. The bus 5002 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0189] The memory 5003 may be a ROM or other type of static storage device that can store static information and instructions, a RAM or other type of dynamic storage device that can store information and instructions, or an EEPROM, a CD-ROM or other optical disk storage, an optical disk storage (including a compressed optical disk, a laser disk, an optical disk, a digital versatile disk, a Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to these.
[0190] The memory 5003 is used to store application code for executing the solution of the present application, and the execution is controlled by the processor 5001. The processor 5001 is used to execute the application code stored in the memory 5003 to implement the content shown in any of the above method embodiments.
[0191] Among them, electronic devices include but are not limited to: mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc.
[0192] The fourth aspect.
[0193] The present invention provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the method for flexible integrated planning of microgrids that is adaptable to multiple scenarios as shown in the first aspect of the present application is implemented.
[0194] Another embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer-readable storage medium is run on a computer, the computer can execute the corresponding content in the aforementioned method embodiment.
Claims
1. A microgrid integrated flexible planning method adapting to multiple scenarios, characterized in that: include: Obtain relevant data of the target planning area; wherein the relevant data includes: geographical location information, scenery condition information, site condition information and load demand data; Selecting the type and composition of the microgrid according to the relevant data through a preset expert system; According to the relevant data, the type of microgrid and the composition of the microgrid, a capacity planning objective function is constructed, and capacity planning constraints are determined; Obtaining a unit capacity planning result according to the capacity planning objective function and the planning constraints by using a mixed integer optimization algorithm; Determine the rationality of the unit capacity planning results; If the unit capacity planning result is reasonable, then according to the relevant data, the microgrid type, the microgrid composition and the unit capacity planning result, a grid planning objective function is constructed, and grid planning constraints are determined; By using a particle swarm optimization algorithm, an optimal grid structure is obtained according to the grid planning objective function and the grid planning constraint conditions; After determining the rationality of the unit capacity planning result, the method further includes: If the unit capacity planning result is unreasonable, reselect the microgrid type and microgrid composition according to the relevant data; The capacity planning objective function is expressed by the following formula: ; in, Total cost for capacity planning, for DG Annual investment cost, for DG Annual operation and maintenance costs, for DG Annual fuel cost, is the annual investment cost of energy storage, is the annual operation and maintenance cost of energy storage, for DG Annual environmental cost, Subsidy for environmental protection, the cost of purchasing electricity for the network; The capacity planning constraint is expressed by the following formula: ; ; ; in, is the lower limit of the installed capacity of the wind turbine, is the actual installed capacity of the wind turbine, is the upper limit of the installed capacity of the wind turbine, is the lower limit of photovoltaic installed capacity, is the actual installed capacity of photovoltaic power generation, is the upper limit of photovoltaic installed capacity, is the lower limit of diesel engine installed capacity, is the actual installed capacity of the diesel engine, The upper limit of the installed capacity of diesel engines; The grid planning objective function is expressed by the following formula: ; in, Planning the total cost for the grid, is the equivalent annual value of line investment cost, is the annual cost of network loss, A parameter to measure the importance of power outages to users. Power outage loss costs for users who did not select the line, For users, is the total number of users; The grid planning constraint condition is expressed by the following formula: ; ; in, and All are nodes, is a node set, For in time Internal slave node The active power input to the microgrid, For The set of all lines connecting the node, For in time Internal slave node To Node The transmitted active power, For in time Internal slave node The reactive power input to the microgrid, For in time Internal slave node To Node The reactive power transmitted.
2. A microgrid integrated flexible planning system adapting to multiple scenarios, characterized in that: include: A data acquisition module is used to acquire relevant data of the target planning area; wherein the relevant data includes: geographical location information, scenery condition information, site condition information and load demand data; A microgrid type and composition determination module, used to select the microgrid type and microgrid composition according to the relevant data through a preset expert system; A capacity planning objective function and constraint condition determination module, used to construct a capacity planning objective function and determine capacity planning constraints according to the relevant data, the microgrid type and the microgrid composition; A unit capacity planning result determination module, used to obtain the unit capacity planning result according to the capacity planning objective function and the planning constraint conditions through a mixed integer optimization algorithm; A rationality judgment module, used to judge the rationality of the unit capacity planning result; A grid planning objective function and constraint condition determination module, for constructing a grid planning objective function and determining grid planning constraints according to the relevant data, the microgrid type, the microgrid composition and the unit capacity planning result if the unit capacity planning result is reasonable; An optimal grid structure calculation module is used to obtain the optimal grid structure according to the grid planning objective function and the grid planning constraint conditions through a particle swarm optimization algorithm; After judging the rationality of the unit capacity planning result, the method further includes: a microgrid type and composition secondary determination module, which is used to: If the unit capacity planning result is unreasonable, reselect the microgrid type and microgrid composition according to the relevant data; The capacity planning objective function is expressed by the following formula: ; in, Total cost for capacity planning, for DG Annual investment cost, for DG Annual operation and maintenance costs, for DG Annual fuel cost, is the annual investment cost of energy storage, is the annual operation and maintenance cost of energy storage, for DG Annual environmental cost, Subsidy for environmental protection, the cost of purchasing electricity for the network; The capacity planning constraint is expressed by the following formula: ; ; ; in, is the lower limit of the installed capacity of the wind turbine, is the actual installed capacity of the wind turbine, is the upper limit of the installed capacity of the wind turbine, is the lower limit of photovoltaic installed capacity, is the actual installed capacity of photovoltaic power generation, is the upper limit of photovoltaic installed capacity, is the lower limit of diesel engine installed capacity, is the actual installed capacity of the diesel engine, The upper limit of the installed capacity of diesel engines; The grid planning objective function is expressed by the following formula: ; in, Planning the total cost for the grid, is the equivalent annual value of line investment cost, is the annual cost of network loss, A parameter to measure the importance of power outages to users. Power outage loss costs for users who did not select the line, For users, is the total number of users; The grid planning constraint condition is expressed by the following formula: ; ; in, and All are nodes, is a node set, For in time Internal slave node The active power input to the microgrid, For The set of all lines connecting the node, For in time Internal slave node To Node The transmitted active power, For in time Internal slave node The reactive power input to the microgrid, For in time Internal slave node To Node The reactive power transmitted.
