Independent micro-grid capacity optimal configuration method and device

By improving the Gray Wolf algorithm, combining chaotic mapping, nonlinear convergence factor and gold sine operator, the high cost and local convergence problems in independent microgrid capacity configuration are solved, and economical and environmentally friendly capacity configuration is achieved.

CN118983793AInactive Publication Date: 2024-11-19SHANGHAI DIANJI UNIV
View PDF 0 Cites 4 Cited by

Patent Information

Application Number
CN202411100992.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2024-11-19
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In independent microgrids, traditional methods are difficult to effectively configure capacity, resulting in high costs and lack of "peak-cutting and valley filling" strategy. The original gray wolf algorithm has problems of local convergence and precocious maturity.

Method used

By improving the Gray Wolf algorithm, chaotic mapping, nonlinear convergence factor and gold sine operator are introduced to build an objective function and capacity configuration model that minimizes comprehensive economic costs and optimize capacity configuration.

Benefits of technology

It realizes the reduction of the capacity configuration cost of microgrid, improves the global search performance and accuracy of the algorithm, and ensures economical and environmental friendliness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118983793A_ABST
    Figure CN118983793A_ABST
Patent Text Reader

Abstract

The invention discloses an independent micro-grid capacity optimal configuration method and device, and relates to the technical field of micro-grids. The method comprises the following steps: acquiring basic parameters of capacity configuration; constructing a target function about the minimization of the comprehensive economic cost and a capacity configuration model based on a preset constraint condition; based on the objective function and the capacity configuration model, a grey wolf algorithm is improved by using chaotic mapping, a nonlinear convergence factor and a golden sine operator, and an improved grey wolf optimization algorithm is obtained; and obtaining an optimal solution of the target function by using the improved grey wolf optimization algorithm and based on the capacity configuration basic parameters, and obtaining target capacity configuration based on the optimal solution. Therefore, through the improved grey wolf optimization algorithm, the capacity configuration cost of the micro-grid can be effectively reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of microgrid technology, and in particular to a method and device for optimizing the capacity configuration of an independent microgrid. Background Art

[0002] More and more new green energy sources such as wind power and photovoltaics are being deployed in power production environments. In islands and remote inland areas, making full use of renewable clean energy such as wind and light energy for power generation can bring good economic value, and at the same time, compared with thermal power generation and diesel power generation, it is less damaging to the environment. Therefore, independent microgrids with renewable clean energy such as wind power and photovoltaics as the core are usually established in the above-mentioned areas. Compared with traditional large power grids, their construction costs are lower and the use of distributed power sources is more flexible.

[0003] When building an independent microgrid, configuring the power capacity of the independent microgrid is an important part of the design of the microgrid. However, due to the large variety of distributed power sources in the microgrid and the large differences in the output properties of different power sources, the capacity configuration work is very complicated. It is difficult to obtain a better configuration result by using traditional methods to solve such problems. In recent years, some researchers have chosen to use meta-heuristic algorithms such as the gray wolf algorithm to solve the optimal configuration of the capacity of independent microgrids, but the original gray wolf algorithm has problems such as local convergence and premature maturity. And usually these algorithms do not consider the demand response strategy and do not have the "peak shaving and valley filling" function. Summary of the invention

[0004] The main purpose of this application is to provide an independent microgrid capacity optimization configuration method and device, which effectively reduces the cost of microgrid capacity configuration through an improved grey wolf algorithm.

[0005] To achieve the above objectives, the present application provides a method for optimizing the capacity of an independent microgrid, comprising:

[0006] Get basic capacity configuration parameters;

[0007] Construct an objective function for minimizing comprehensive economic costs and a capacity allocation model based on preset constraints;

[0008] Based on the objective function and the capacity configuration model, the gray wolf algorithm is improved by using chaos mapping, nonlinear convergence factor and golden sine operator to obtain an improved gray wolf optimization algorithm;

[0009] By using the improved grey wolf optimization algorithm and based on the basic parameters of the capacity configuration, an optimal solution of the objective function is obtained, and a target capacity configuration is obtained based on the optimal solution.

[0010] Optionally, the construction of an objective function for minimizing the comprehensive economic cost and a capacity configuration model based on preset constraints includes: constructing the objective function based on average annual initial investment costs, average annual maintenance costs, average annual equipment purchase and renewal costs, fuel costs, environmental protection conversion costs, and residual value coefficients; constructing the capacity configuration model based on preset power constraints, preset battery constraints, multiple pre-constructed output models, and the objective function.

[0011] Optionally, the objective function is:

[0012] C 总 =C avg,year +C em,year +C ch,year +M fuel +M pollute -sC avg,year

[0013] Among them, C 总 is the total cost, C avg,year is the average annual initial investment cost, C em,year represents the average annual maintenance cost, C ch,year represents the average annual equipment purchase and update cost, M fuel Indicates the required fuel cost, M pollute represents the environmental protection conversion fee, and s is the residual value coefficient.

[0014] Optionally, the preset power constraint condition is:

[0015] P WT (t)+P PV (t)+P BESS (t)+P DE (t)≥P LD (t)

[0016] The preset battery constraint condition is:

[0017] SOC min ≤SOC(t)≤SOC max

[0018] Among them, P WT (t) is the actual output power of the wind power generation equipment, P PV (t) is the actual output power of the photovoltaic power generation equipment, P BESS (t) is the actual output power of the battery equipment, P DE (t) is the actual output power of the diesel generator equipment, P LD (t) is the actual required power on the load side, SOC min SOC is the minimum value of the charge and discharge threshold under the state of charge of the battery device. maxis the maximum value of the charge and discharge threshold value under the state of charge of the battery device, and SOC(t) is the current charge and discharge amount of the battery device.

[0019] Optionally, the output model includes a wind power generation output model, a photovoltaic power generation output model, a battery output model and a diesel generator output model;

[0020] The wind power generation output model is:

[0021]

[0022] The photovoltaic power generation output model is:

[0023]

[0024] The battery output model is:

[0025]

[0026] The diesel generator output model is:

[0027] F=aP DE (t)+bP DEO

[0028] Among them, P WT (t) is the actual output power of the wind power generation equipment, P WT,N is the rated power of the wind power generation equipment under standard conditions; ν in is the minimum wind speed for wind power generation equipment to generate electricity; ν is the current actual wind speed; ν r is the wind speed at which the wind turbine operates at rated power; out The maximum wind speed at which the wind turbine stops generating electricity;

[0029] P PV (t) is the actual output power of the photovoltaic power generation equipment, P PV,N is the photovoltaic power of photovoltaic power generation equipment under standard conditions, G W is the current actual light intensity, G N is the light intensity under preparation conditions, δ is the power illumination coefficient, T W is the real-time temperature of the photovoltaic power generation equipment panel, T N It is the standard test temperature for cells in photovoltaic power generation equipment;

[0030] α is the self-consumption rate of the battery in the battery equipment without external connection, P ch (t), P ess (t), η c , η dIt is divided into the charging power and discharging power of the battery equipment at time t, as well as the charging efficiency and discharging efficiency of energy loss, E ssn is the maximum capacity of the battery equipment under rated standard conditions, Δt is the length of the time period t;

[0031] F is the fuel consumption value required for heat conversion of diesel generator equipment per hour, unit: L / h; a and b are the intercept coefficients representing the no-load fuel consumption value and the slope representing the fuel consumption value with increasing load respectively; P DEO It is the stable output power of the diesel generator equipment under standard conditions; P DE (t) is the actual operating power of the diesel generator equipment at time t.

[0032] Optionally, the method of using the improved gray wolf optimization algorithm and configuring the basic parameters of the capacity to obtain the optimal solution of the objective function includes: inputting the basic parameters of the capacity configuration into the improved gray wolf optimization algorithm, and setting the gray wolf population-related parameters in the improved gray wolf optimization algorithm; initializing the gray wolf population using chaotic mapping, and determining the current fitness value of each gray wolf individual, wherein the fitness value is the value of the objective function; determining a nonlinear convergence factor, and using a golden sine operator to iteratively update the position of each gray wolf individual according to the nonlinear convergence factor and the current fitness value of each gray wolf individual, until the maximum number of iterations is reached to obtain the optimal solution of the objective function.

[0033] Optionally, the using of the golden sine operator to iteratively update the position of each gray wolf individual according to the nonlinear convergence factor and the current fitness value of each gray wolf individual includes: updating the position of each gray wolf individual according to the nonlinear convergence factor and the current fitness value of each gray wolf individual to obtain the first position of each gray wolf individual; determining the second position of each gray wolf individual using the golden sine operator; and for any gray wolf individual, determining the updated position of the gray wolf individual according to the first position, the second position and the current position of the gray wolf individual.

[0034] Optionally, the basic parameters of capacity configuration include at least wind speed data, light intensity, load data, photovoltaic panel surface temperature, equipment parameters, cost recovery factor and operating years; wherein, the load data is obtained by processing actual load data using price-based demand response or incentive-based demand response.

[0035] Optionally, the chaotic map is:

[0036]

[0037] The nonlinear convergence factor is determined by the following formula:

[0038]

[0039] The golden sine operator is:

[0040] X iG (t+1)=X i (t)|sinr4|+r5sinr4|x1X i,best (t)-x2X i (t)|

[0041] In the formula, r represents the chaos coefficient, and its value range is [0,1]; a init is the starting value of the nonlinear convergence factor; t is the current iteration number; T max is the maximum number of iterations; r4 and r5 are random numbers in [0,2π] and [0,π] respectively; X i,best (t) is the position with the best fitness value of the i-th gray wolf in the t-th iteration; x1 and x2 are the golden section coefficients.

[0042] The present application also provides an independent microgrid capacity optimization configuration device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, an independent microgrid capacity optimization configuration method as described in any one of the above is implemented.

[0043] The independent microgrid capacity optimization configuration device of the present application constructs an objective function about minimizing the comprehensive economic cost and a capacity configuration model based on preset constraints; then based on the objective function and the capacity configuration model, the gray wolf algorithm is improved by using chaos mapping, nonlinear convergence factor, and golden sine operator to obtain an improved gray wolf optimization algorithm; finally, the improved gray wolf optimization algorithm is used and based on the basic parameters of capacity configuration, the optimal solution of the objective function is obtained, and the target capacity configuration is obtained based on the optimal solution; the initial value of the gray wolf position can be uniformed by chaos mapping, the use of nonlinear convergence factor can expand the scope of searching for the optimal solution in the early stage and speed up the search for the optimal solution in the later stage, and the use of golden sine operator can effectively improve the accuracy of searching for the optimal solution, and the objective function is determined by minimizing the economic cost, so that the cost of the target capacity configuration finally obtained is minimized, thereby effectively reducing the cost of microgrid capacity configuration. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 It is one of the flow charts of the independent microgrid capacity optimization configuration method according to the embodiment of the present application;

[0045] Figure 2 This is the second flowchart of the independent microgrid capacity optimization configuration method according to the embodiment of the present application;

[0046] Figure 3This is the third flow chart of the independent microgrid capacity optimization configuration method according to the embodiment of the present application;

[0047] Figure 4 This is the fourth flow chart of the independent microgrid capacity optimization configuration method according to the embodiment of the present application;

[0048] Figure 5 An example of a physical structure diagram of an independent microgrid capacity optimization configuration device is provided;

[0049] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0050] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0051] Figure 1 FIG. 1 is one of the flow charts of the independent microgrid capacity optimization configuration method according to the embodiment of the present application. Figure 1 As shown, the independent microgrid capacity optimization configuration method may include the following steps:

[0052] Step 110: Obtain basic capacity configuration parameters.

[0053] It should be noted that the embodiments of the present application are mainly used in scenarios where independent microgrids are configured, especially in scenarios where independent microgrids are configured on islands or remote inland areas; currently commonly used power generation equipment includes wind power generation, photovoltaic power generation, diesel power generation, battery power generation, etc. The purpose of the embodiments of the present application is to configure the above-mentioned power generation equipment, that is, the number of power generation equipment set.

[0054] In addition, the basic parameters of capacity configuration refer to data that can reflect the output capacity, economic cost and electricity consumption of each power generation equipment, so that capacity configuration can be carried out with reference to the above data.

[0055] In some embodiments, the basic parameters of capacity configuration include at least wind speed data, light intensity, load data, photovoltaic panel surface temperature, equipment parameters, cost recovery factor and operating years; wherein the load data is obtained by processing the actual load data using price-based demand response or incentive-based demand response.

[0056] Specifically, after determining the area where an independent microgrid configuration is required (for example, an industrial park, a community, etc.), the wind speed in the area throughout the year can be obtained in advance as wind speed data, or the average wind speed throughout the year can be taken as wind speed data. Obtaining wind speed data can provide relevant reference for subsequent wind power generation output conditions; similarly, the light intensity and photovoltaic panel surface temperature of the area throughout the year can be obtained in advance, or the average light intensity of the area can be obtained. The average light intensity and photovoltaic panel surface temperature of the area can provide relevant reference for subsequent photovoltaic power generation output conditions; further, the equipment parameters of the above-mentioned power generation equipment can also be obtained, such as the output power, cost price, maintenance cost, equipment replacement cost, etc. of each power generation equipment. Any data related to each power generation equipment can be used as equipment parameters, and the range of equipment parameters is not specifically limited here.

[0057] In addition, the cost recovery coefficient is a data used to measure the relationship between the future income and present value of the investment. In this embodiment, the cost recovery coefficient measures the value of the future income of each power generation equipment in the form of present value. The operating life can include the effective service life of each power generation equipment, the service life of the microgrid, etc.

[0058] In this embodiment, load data mainly refers to the converted load data obtained by processing the actual load data using price-based demand response or incentive-based demand response. It is understandable that since the user's electricity consumption data directly collected is not flat and is not combined with the electricity price, it may not be used directly in the process of running the model. Therefore, it is necessary to convert the actual electricity consumption of the user (i.e., the actual load data) collected; secondly, the actual electricity consumption obtained does not take into account the demand response strategy. Based on this, new load data can be obtained using price-based demand response or incentive-based demand response, and the specific demand response method to be adopted can be determined according to actual needs.

[0059] Specifically, when the load data is determined using the price-based demand response method, the substitution elasticity coefficient can be first calculated using the substitution elasticity coefficient calculation formula. The substitution elasticity coefficient can characterize the maximum elasticity between peaks and valleys in the user's electricity consumption. After obtaining the substitution elasticity coefficient, the substitution elasticity coefficient is substituted into the formula of the load reduction ratio and the load increase ratio during the valley period to obtain the load reduction ratio and the load increase ratio during the valley period; further, the load reduction ratio and the load increase ratio during the valley period are substituted into the calculation formula of the pre-set load data to obtain the final load data.

[0060] The calculation formula of substitution elasticity coefficient can be specifically:

[0061]

[0062] In the formula, s u,k is the substitution elasticity coefficient; Qu and Qt are the actual load data of period u and period t respectively, in kWh; P u , P t They are the electricity prices during time periods u and t respectively, in yuan / kWh.

[0063] Furthermore, the formulas for the load reduction ratio and the load increase ratio during the valley period may specifically be:

[0064]

[0065] In the formula, se p,v C is the substitution elasticity coefficient of the peak period relative to the valley period; p and C v They are the proportions of peak-time electricity charges and off-peak-time electricity charges in the total electricity charges for the day; It is the electricity price before price-based demand response, that is, the current actual electricity price.

[0066] Furthermore, the calculation formula of the preset load data may specifically be:

[0067]

[0068] Where, L DR (t) is the load data of the period t after the price-based demand response, in kW; L(t) is the actual load data of the period t before the price-based demand response, in kW; T p and T v The peak hours and the valley hours are respectively. Therefore, based on the above formula, the required load data can be obtained through the price-based demand response method.

[0069] In addition, the incentive-based demand response method is generally negotiated by operators and users through the signing of an agreement, so that the operator has a portion of the control over the load that can be reduced; price compensation is usually provided after exceeding a certain load threshold. Therefore, the incentive-based demand response method does not require a specific formula to calculate the load data.

[0070] Step 120: Construct an objective function for minimizing the comprehensive economic cost and a capacity configuration model based on preset constraints.

[0071] Specifically, an objective function for minimizing the comprehensive economic cost and a capacity configuration model based on preset constraints can be pre-constructed. The objective function is used to characterize the economic cost required to establish an independent microgrid. The present application configures capacity with the goal of minimizing the economic cost required to establish an independent microgrid. Therefore, the objective function of the present application is determined by the cost required to establish an independent microgrid.

[0072] In this embodiment, the preset constraints mainly include power constraints and battery constraints. Among them, the power constraints mainly focus on the power balance between each power source (such as renewable energy generation, diesel generators, etc.) and the load in the independent microgrid, ensuring that the independent microgrid can meet the requirements of power supply and demand balance under various operating conditions. Power constraints generally include: (1) power generation constraints, that is, limiting the maximum and minimum power generation of each power source to ensure that the power source operates within a safe range; (2) load demand constraints, that is, ensuring that the total power generation can meet the load demand while leaving a certain margin to deal with emergencies; (3) renewable energy penetration constraints, that is, limiting the proportion of renewable energy in the total power generation to ensure the stability and reliability of the system; (4) power balance constraints, that is, ensuring that at any given time point, the total power generation in the independent microgrid is equal to the total load demand plus the charging and discharging power of the energy storage system.

[0073] The battery constraints mainly focus on the management and optimization of the battery system in the independent microgrid to ensure the effective utilization of the battery system and the reliability of long-term operation. Through the above constraints, the independent microgrid capacity configuration model can ensure that the system can effectively allocate and utilize resources under various operating conditions, meet the power demand, and maintain the stability and economy of the system.

[0074] It should be noted here that the capacity configuration model is composed of an objective function, preset constraints and various output models.

[0075] Figure 2 This is the second flowchart of the independent microgrid capacity optimization configuration method of the embodiment of the present application.

[0076] like Figure 2 As shown, in some embodiments, step 120 constructs an objective function for minimizing the comprehensive economic cost and a capacity configuration model based on preset constraints, which may include the following steps:

[0077] Step 210: Construct an objective function based on the average annual initial investment cost, the average annual maintenance cost, the average annual equipment purchase and renewal cost, the fuel cost, the environmental protection conversion cost and the residual value coefficient.

[0078] Step 220: construct a capacity configuration model based on preset power constraints, preset battery constraints, multiple pre-constructed output models, and an objective function.

[0079] It should be noted that the average annual initial investment cost refers to the cost required to purchase micro-source equipment (i.e. the above-mentioned power generation equipment), the average annual maintenance cost refers to the cost required for annual maintenance of each micro-source equipment, the average annual equipment procurement and renewal cost refers to the replacement cost of micro-source equipment, the fuel cost is mainly the cost of using diesel for diesel generators, the environmental protection conversion cost mainly refers to the cost of treating pollutants emitted by diesel generators, and the residual value coefficient refers to the cost coefficient related to the residual value of the system, which is used to measure the impact of the residual value of the system at the end of its life cycle.

[0080] Among them, the objective function can be specifically expressed as:

[0081] C 总 =C avg,year +C em,year +C ch,year +M fuel +M pollute -sC avg,year

[0082] Among them, C 总 is the total cost, C avg,year is the average annual initial investment cost, C em,year represents the average annual maintenance cost, C ch,year represents the average annual equipment purchase and update cost, M fuel Indicates the required fuel cost, M pollute represents the environmental protection conversion fee, and s is the residual value coefficient.

[0083] The preset power constraint condition can be specifically expressed as:

[0084] P WT (t)+P PV (t)+P BESS (t)+P DE (t)≥P LD (t)

[0085] The preset battery constraint condition can be specifically expressed as:

[0086] SOC min ≤SOC(t)≤SOC max

[0087] Among them, P WT (t) is the actual output power of the wind power generation equipment, P PV (t) is the actual output power of the photovoltaic power generation equipment, P BESS (t) is the actual output power of the battery equipment, P DE (t) is the actual output power of the diesel generator equipment, P LD (t) is the actual required power on the load side, SOC minSOC is the minimum value of the charge and discharge threshold under the state of charge of the battery device. max It is the maximum value of the charge and discharge threshold value under the state of charge of the battery device, and SOC(t) is the current charge and discharge amount of the battery device.

[0088] In this embodiment, it can be seen from the expression based on the preset power constraint condition that the wind power generation power, photovoltaic power generation power, battery power generation power and diesel power generation power need to be greater than or equal to the power actually required by the user. The optimal situation is that the above-mentioned power generation power is equal to the power actually required by the user.

[0089] It should be noted that among the above four power generation methods, wind power generation equipment and photovoltaic power generation equipment can be controlled to generate electricity first. If the power generated by wind power generation equipment and photovoltaic power generation equipment cannot meet the user's needs, the battery equipment and diesel generator will be controlled to generate electricity in turn. In addition, when the sum of wind power generation power and photovoltaic power generation power exceeds the actual power required by the user, the excess electric energy can be stored in the battery equipment.

[0090] As an example, at night, photovoltaic power generation equipment cannot generate electricity. At this time, if the power generation power of wind power generation equipment and / or battery equipment can meet the user's needs, there is no need to use the diesel generator to generate electricity. If it does not meet the user's needs, the diesel generator still needs to generate electricity.

[0091] In this embodiment, it can be seen from the expression based on the preset battery constraint conditions that when using the battery to generate electricity, the output power of the battery equipment needs to be within a range, so as to ensure the service life, safety, power generation efficiency and stability of the battery equipment, thereby ensuring that the battery equipment operates in a safe and efficient state, while protecting the battery from damage and extending its service life.

[0092] In some embodiments, the output model includes a wind power generation output model, a photovoltaic power generation output model, a battery output model, and a diesel generator output model;

[0093] The wind power output model can be:

[0094]

[0095] The photovoltaic power generation output model can be:

[0096]

[0097] The battery output model can be:

[0098]

[0099] The diesel generator output model can be:

[0100] F=aP DE (t)+bP DEO

[0101] Among them, P WT (t) is the actual output power of the wind power generation equipment, P WT,N is the rated power of the wind power generation equipment under standard conditions; ν in is the minimum wind speed for wind power generation equipment to generate electricity; ν is the current actual wind speed; ν r is the wind speed at which the wind turbine operates at rated power; out The maximum wind speed at which the wind power generation equipment stops generating electricity; P PV (t) is the actual output power of the photovoltaic power generation equipment, P PV,N is the photovoltaic power of photovoltaic power generation equipment under standard conditions, G W is the current actual light intensity, G N is the light intensity under preparation conditions, δ is the power illumination coefficient, T W is the real-time temperature of the photovoltaic power generation equipment panel, T N is the standard test temperature of the battery in the photovoltaic power generation equipment; α is the self-consumption energy rate of the battery in the battery equipment without external connection, P ch (t), P ess (t), η c , η d It is divided into the charging power and discharging power of the battery equipment at time t, as well as the charging efficiency and discharging efficiency of energy loss, E ssn is the maximum capacity of the battery equipment under the rated standard state, Δt is the length of the time period t; F is the fuel consumption value required for the heat conversion of the diesel generator equipment per hour, unit: L / h; a and b are the intercept coefficients representing the no-load fuel consumption value and the slope representing the fuel consumption value with increasing load respectively; P DEO It is the stable output power of the diesel generator equipment under standard conditions; P DE (t) is the actual operating power of the diesel generator equipment at time t.

[0102] In this embodiment, the output value of each power generation equipment can be obtained by inputting the basic parameters of the partial capacity configuration obtained above into the corresponding output model. After obtaining the output value of each power generation equipment, the capacity configuration strategy of the independent microgrid can be formulated based on the objective function, the output value of each power generation equipment and the above two preset constraints. In addition, the output value of each power generation equipment can also be used for load management. By understanding the output of the power generation equipment, the load can be better managed to ensure the balance of power supply and demand and avoid overload or power shortage. It can also be used for economic dispatching to minimize operating costs or fuel consumption by adjusting the output of different power generation equipment.

[0103] Step 130: Based on the objective function and the capacity configuration model, the Grey Wolf Algorithm is improved by using chaos mapping, nonlinear convergence factor, and golden sine operator to obtain an improved Grey Wolf optimization algorithm.

[0104] Usually in the microgrid capacity configuration scenario, the improved gray wolf optimization algorithm is directly determined based on the objective function and the capacity configuration model, but the original gray wolf algorithm has problems such as local convergence and premature convergence. Therefore, in this embodiment, the gray wolf algorithm is improved by using chaotic mapping, nonlinear convergence factor, and golden sine operator to solve the above problems.

[0105] In the present embodiment, the chaotic mapping can adopt the Tent-Logistic-Cosine chaotic mapping, and the chaotic mapping is mainly used in the process of initializing the gray wolf population. The chaotic mapping optimization gray wolf algorithm is to enhance the exploration ability and global optimization performance of the original gray wolf algorithm by introducing the chaotic mapping mechanism in the chaos theory. Specifically, the chaotic mapping can enhance the exploration ability, and the chaotic sequence generated by the chaotic mapping has good randomness and ergodicity, which can help the algorithm jump out of the local optimal solution and improve the global search ability. The chaotic mapping can also increase the diversity of the gray wolf population, which helps the algorithm to explore more widely in the search space. The chaotic mapping can also improve the balance, which helps to find a better balance between exploration and exploitation, which is particularly important for optimization problems.

[0106] The convergence factor of the original gray wolf algorithm is a linearly decreasing variable, which gradually decreases from the maximum value to the minimum value, which controls the transition of the search process from global search to local search. However, this linear reduction method may not be optimal, because it may cause the algorithm to converge prematurely or the convergence speed is not fast enough in some cases. Based on this, the present embodiment adopts a nonlinear convergence factor, and the use of a nonlinear convergence factor can avoid premature convergence, that is, the nonlinear convergence factor can better control the balance between the exploration and development of the algorithm, thereby reducing the risk of falling into a local optimum. The use of a nonlinear convergence factor can also improve the convergence speed, that is, through a nonlinear adjustment strategy, the algorithm can maintain a strong exploration ability in the early stage, and quickly converge to the vicinity of the global optimal solution in the later stage.

[0107] The golden sine operator is used to ensure that when updating the individual positions of the gray wolves, further updates are made based on the current optimal positions. This not only speeds up the acquisition of the global optimal solution, but also ensures the accuracy of the global optimal solution.

[0108] In some implementations, the chaotic map may be:

[0109]

[0110] The nonlinear convergence factor can be determined by the following formula:

[0111]

[0112] The golden sine operator can be:

[0113] X iG (t+1)=X i (t)|sinr4|+r5sinr4|x1X i,best (t)-x2X i (t)|

[0114] In the formula, r represents the chaos coefficient, and its value range is [0,1]; a init is the starting value of the nonlinear convergence factor; t is the current iteration number; T max is the maximum number of iterations; r4 and r5 are random numbers in [0,2π] and [0,π] respectively; X i,best (t) is the position with the best fitness value of the i-th gray wolf in the t-th iteration; x1 and x2 are the golden section coefficients.

[0115] Step 140: Utilize the improved Grey Wolf Optimization Algorithm and configure basic parameters based on capacity to obtain an optimal solution of the objective function, and obtain the target capacity configuration based on the optimal solution.

[0116] After the improved Gray Wolf optimization algorithm is determined, the basic parameters of the capacity configuration obtained above can be input into the improved Gray Wolf optimization algorithm. The improved Gray Wolf optimization algorithm uses the solution of the objective function as output; when the improved Gray Wolf optimization algorithm outputs the optimal solution of the objective function, the corresponding Gray Wolf position data is the optimal configuration quantity (target capacity configuration) of each power generation equipment. In other words, the Gray Wolf position data corresponding to the optimal solution of the objective function is the optimal quantity of wind power generation equipment, photovoltaic power generation equipment, battery equipment, and diesel generator equipment.

[0117] Figure 3 This is the third flowchart of the independent microgrid capacity optimization configuration method of the embodiment of the present application.

[0118] like Figure 3 As shown, in some implementations, step 140 uses the improved grey wolf optimization algorithm and based on the capacity configuration basic parameters to obtain the optimal solution of the objective function, and obtains the target capacity configuration based on the optimal solution, which may include the following steps:

[0119] Step 310: Input the basic parameters of capacity configuration into the improved gray wolf optimization algorithm, and set the gray wolf population related parameters in the improved gray wolf optimization algorithm.

[0120] Step 320: Initialize the gray wolf population using chaotic mapping, and determine the current fitness value of each gray wolf individual, where the fitness value is the value of the objective function.

[0121] Step 330: Determine the nonlinear convergence factor, and use the golden sine operator to iteratively update the position of each gray wolf individual according to the nonlinear convergence factor and the current fitness value of each gray wolf individual, until the maximum number of iterations is reached to obtain the optimal solution of the objective function.

[0122] Specifically, the wind speed data, light intensity, load data, photovoltaic panel surface temperature, equipment parameters, cost recovery coefficient and operating years are first input into the improved gray wolf optimization algorithm, and then the gray wolf population related parameters are set. In this embodiment, the gray wolf population related parameters may include the population size N, the maximum number of iterations T max Parameters such as the minimum and maximum capacity components are determined, and the initial number of iterations is set to 1.

[0123] Furthermore, the gray wolf population is initialized using chaotic mapping, and each gray wolf individual represents a set of possible capacity configuration schemes; each gray wolf individual in the gray wolf population corresponds to a solution vector, which contains the capacity values ​​of all power generation equipment to be optimized. Then, the current fitness value of each gray wolf individual is determined based on the solution vector corresponding to the gray wolf individual, and the fitness value of the gray wolf individual is the solution of the objective function. Specifically, the capacity value of the power generation equipment can be directly substituted into the above objective function to obtain the current fitness value of the gray wolf individual.

[0124] After obtaining the fitness value of each individual gray wolf, evaluate the objective function value of each individual gray wolf (i.e., each capacity configuration scheme) to determine which gray wolf individuals perform better. Furthermore, the gray wolf individuals are ranked by fitness, and the top three gray wolf individuals with the highest fitness are selected and labeled as Alpha (α), Beta (β), and Delta (δ) wolves, i.e., the three individuals with the best performance in the gray wolf population. The Alpha individual represents the current optimal solution.

[0125] The nonlinear convergence factor is calculated by using the calculation formula of the nonlinear convergence factor, and the position of each individual gray wolf is iteratively updated using the golden sine operator according to the nonlinear convergence factor and the current fitness value of each individual gray wolf until the maximum number of iterations is reached to obtain the optimal solution of the objective function. Specifically, the position of each individual gray wolf is updated using the nonlinear convergence factor and the current fitness value of each individual gray wolf. After each iteration, the three individuals with the best performance in the gray wolf population are reselected, and the position is updated again using the nonlinear convergence factor and the current fitness value of each individual gray wolf. Thus, the iterative update process is continuously repeated. When the maximum number of iterations has been reached, the corresponding optimal individual gray wolf position and fitness value are output, thereby achieving the search, encirclement and pursuit of prey, where the prey refers to the target capacity configuration.

[0126] Figure 4 This is the fourth flowchart of the independent microgrid capacity optimization configuration method of an embodiment of the present application.

[0127] like Figure 4 As shown, in some implementations, step 330 uses the golden sine operator to iteratively update the position of each individual gray wolf according to the nonlinear convergence factor and the current fitness value of each individual gray wolf, which may specifically include the following steps:

[0128] Step 410: According to the nonlinear convergence factor and the current fitness value of each individual gray wolf, the position of each individual gray wolf is updated to obtain the first position of each individual gray wolf.

[0129] Step 420: Determine the second position of each individual gray wolf using the golden sine operator.

[0130] Step 430: For any individual gray wolf, determine the updated position of the individual gray wolf based on the first position, the second position, and the current position of the individual gray wolf.

[0131] Specifically, the solution vector and position of each individual gray wolf are updated using the nonlinear convergence factor to obtain the first position of each individual gray wolf, which is obtained only by the original gray wolf algorithm; the second position of each individual gray wolf is obtained using the golden sine operator; further, the fitness value corresponding to the first position and the fitness value corresponding to the second position are compared, and the position with the best fitness value is selected, and then the fitness value corresponding to the first position is compared with the fitness value corresponding to the current position of the individual gray wolf, and the position with the best fitness value is selected as the updated position of the individual gray wolf. It should be noted that the current position of the individual gray wolf is the position of the individual gray wolf before this update.

[0132] As an example, compare the fitness value corresponding to the first position and the fitness value corresponding to the second position. If the fitness value corresponding to the first position is better than the fitness value corresponding to the second position, compare the fitness value corresponding to the first position with the fitness value corresponding to the current position of the gray wolf individual. If the fitness value corresponding to the first position is still better, use the first position as the updated position of the gray wolf individual.

[0133] Therefore, instead of considering the position obtained by the gray wolf algorithm alone, the position obtained by the gray wolf algorithm is compared with the position obtained by the golden sine operator and the current position of the gray wolf individual to obtain the optimal and updated position of the three, thereby ensuring that each update is further updated based on the optimal position, thereby speeding up the acquisition of the global optimal solution and ensuring the accuracy of the global optimal solution.

[0134] The independent microgrid capacity optimization configuration method of the embodiment of the present application improves the original gray wolf algorithm by introducing three strategies: chaos mapping, nonlinear convergence factor, and golden sine operator, and establishes an objective function that minimizes the average annual system comprehensive economic cost and an independent microgrid capacity optimization configuration model constrained by the total system power and battery, and solves to obtain the optimal system capacity configuration plan. The embodiment of the present application comprehensively considers the system economy and environmental performance, and can fully utilize wind and photovoltaic output under the condition of meeting the load, reduce the use time of diesel generators, reduce the average annual comprehensive cost of the system, and reduce the pollution of harmful gases caused by diesel generators to the environment, which has good economy.

[0135] The improved grey wolf optimization algorithm of the embodiment of the present application effectively improves the uniformity of the initialized population by introducing three strategies, avoids local convergence and premature phenomena caused by the lack of population diversity in the later stage of the algorithm, and improves the global search performance of the algorithm. In addition, the objective function of minimizing the average annual system comprehensive economic cost and the independent microgrid capacity optimization configuration model based on the total system power and battery constraints proposed in the embodiment of the present application comprehensively consider the wind, photovoltaic, battery, diesel output and system power and battery constraints, and at the same time gives a specific operating formula for the above-mentioned distributed power output, which meets the actual power generation needs and has strong practicality.

[0136] Based on the above embodiments, Figure 5 The schematic diagram of the physical structure of an independent microgrid capacity optimization configuration device is shown as an example. Figure 5As shown, the independent microgrid capacity optimization configuration device may include: a processor 510, a communication interface 520, a memory 530 and a communication bus 540, wherein the processor 510, the communication interface 520 and the memory 530 complete mutual communication through the communication bus 540. The processor 510 may call the logic instructions in the memory 530 to execute the independent microgrid capacity optimization configuration method, which includes: obtaining basic parameters of capacity configuration; constructing an objective function for minimizing the comprehensive economic cost and a capacity configuration model based on preset constraints; based on the objective function and the capacity configuration model, and using chaos mapping, nonlinear convergence factor, and golden sine operator to improve the gray wolf algorithm, obtain an improved gray wolf optimization algorithm; using the improved gray wolf optimization algorithm and based on the basic parameters of capacity configuration, obtain the optimal solution of the objective function, and obtain the target capacity configuration based on the optimal solution.

[0137] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0138] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A method for optimizing the capacity of an independent microgrid, characterized in that: include: Get basic capacity configuration parameters; Construct an objective function for minimizing comprehensive economic costs and a capacity allocation model based on preset constraints; Based on the objective function and the capacity configuration model, the gray wolf algorithm is improved by using chaos mapping, nonlinear convergence factor and golden sine operator to obtain an improved gray wolf optimization algorithm; By using the improved grey wolf optimization algorithm and based on the basic parameters of the capacity configuration, an optimal solution of the objective function is obtained, and a target capacity configuration is obtained based on the optimal solution.

2. The independent microgrid capacity optimization configuration method according to claim 1 is characterized in that: The objective function of minimizing the comprehensive economic cost and the capacity configuration model based on the preset constraints are constructed, including: The objective function is constructed based on the average annual initial investment cost, the average annual maintenance cost, the average annual equipment purchase and update cost, the fuel cost, the environmental protection conversion cost and the residual value coefficient; The capacity configuration model is constructed based on preset power constraints, preset battery constraints, a plurality of pre-constructed output models and the objective function.

3. The independent microgrid capacity optimization configuration method according to claim 2 is characterized in that: The objective function is: C 总 =C avg,year +C em,year +C ch,year +M fuel +M pollute -sC avg,year Among them, C 总 is the total cost, C avg,year is the average annual initial investment cost, C em,year represents the average annual maintenance cost, C ch,year represents the average annual equipment purchase and update cost, M fuel Indicates the required fuel cost, M pollute represents the environmental protection conversion fee, and s is the residual value coefficient.

4. The independent microgrid capacity optimization configuration method according to claim 2 is characterized in that: The preset power constraint condition is: P WT (t)+P PV (t)+P BESS (t)+P DE (t)≥P LD (t) The preset battery constraint condition is: SOC min ≤SOC(t)≤SOC max Among them, P WT (t) is the actual output power of the wind power generation equipment, P PV (t) is the actual output power of the photovoltaic power generation equipment, P BESS (t) is the actual output power of the battery equipment, P DE (t) is the actual output power of the diesel generator equipment, P LD (t) is the actual required power on the load side, SOC min SOC is the minimum value of the charge and discharge threshold under the state of charge of the battery device. max is the maximum value of the charge and discharge threshold value under the state of charge of the battery device, and SOC(t) is the current charge and discharge amount of the battery device.

5. The independent microgrid capacity optimization configuration method according to claim 2 is characterized in that: The output model includes a wind power generation output model, a photovoltaic power generation output model, a battery output model and a diesel generator output model; The wind power generation output model is: The photovoltaic power generation output model is: The battery output model is: The diesel generator output model is: F=aP DE (t)+bP DEO Among them, P WT (t) is the actual output power of the wind power generation equipment, P WT,N is the rated power of the wind power generation equipment under standard conditions; ν in is the minimum wind speed for wind power generation equipment to generate electricity; ν is the current actual wind speed; ν r is the wind speed at which the wind turbine operates at rated power; out The maximum wind speed at which the wind turbine stops generating electricity; P PV (t) is the actual output power of the photovoltaic power generation equipment, P PV,N is the photovoltaic power of photovoltaic power generation equipment under standard conditions, G W is the current actual light intensity, G N is the light intensity under preparation conditions, δ is the power illumination coefficient, T W is the real-time temperature of the photovoltaic power generation equipment panel, T N It is the standard test temperature for cells in photovoltaic power generation equipment; α is the self-consumption rate of the battery in the battery equipment without external connection, P ch (t), P ess (t), η c , η d It is divided into the charging power and discharging power of the battery equipment at time t, as well as the charging efficiency and discharging efficiency of energy loss, E ssn is the maximum capacity of the battery equipment under rated standard conditions, Δt is the length of the time period t; F is the fuel consumption value required for heat conversion of diesel generator equipment per hour, unit: L / h; a and b are the intercept coefficients representing the no-load fuel consumption value and the slope representing the fuel consumption value with increasing load respectively; P DEO It is the stable output power of the diesel generator equipment under standard conditions; P DE (t) is the actual operating power of the diesel generator equipment at time t.

6. The independent microgrid capacity optimization configuration method according to claim 2 is characterized in that: The method of using the improved grey wolf optimization algorithm and configuring basic parameters of the capacity to obtain the optimal solution of the objective function includes: Inputting the capacity configuration basic parameters into the improved gray wolf optimization algorithm, and setting gray wolf population related parameters in the improved gray wolf optimization algorithm; Initializing the gray wolf population by using chaotic mapping, and determining the current fitness value of each gray wolf individual, wherein the fitness value is the value of the objective function; A nonlinear convergence factor is determined, and the position of each gray wolf individual is iteratively updated using a golden sine operator according to the nonlinear convergence factor and the current fitness value of each gray wolf individual until the maximum number of iterations is reached to obtain an optimal solution to the objective function.

7. The independent microgrid capacity optimization configuration method according to claim 6 is characterized in that: The method of iteratively updating the position of each of the gray wolf individuals by using the golden sine operator according to the nonlinear convergence factor and the current fitness value of each of the gray wolf individuals comprises: According to the nonlinear convergence factor and the current fitness value of each gray wolf individual, the position of each gray wolf individual is updated to obtain the first position of each gray wolf individual; Determining the second position of each of the gray wolf individuals using a golden sine operator; For any gray wolf individual, an updated position of the gray wolf individual is determined according to the first position, the second position and the current position of the gray wolf individual.

8. The independent microgrid capacity optimization configuration method according to claim 1, characterized in that: The basic parameters of capacity configuration include at least wind speed data, light intensity, load data, photovoltaic panel surface temperature, equipment parameters, cost recovery factor and operating years; The load data is obtained by processing actual load data using price-based demand response or incentive-based demand response.

9. The independent microgrid capacity optimization configuration method according to claim 1, characterized in that: The chaotic map is: The nonlinear convergence factor is determined by the following formula: The golden sine operator is: X iG (t+1)=X i (t)|sinr4|+r5sinr4|x1X i,best (t)-x2X i (t)| In the formula, r represents the chaos coefficient, and its value range is [0,1]; a init is the starting value of the nonlinear convergence factor; t is the current iteration number; T max is the maximum number of iterations; r4 and r5 are random numbers in [0,2π] and [0,π] respectively; X i,best (t) is the position with the best fitness value of the i-th gray wolf in the t-th iteration; x1 and x2 are the golden section coefficients.

10. An independent microgrid capacity optimization configuration device, comprising a memory and a processor, wherein a computer program is stored in the memory, characterized in that: When the processor executes the program, the independent microgrid capacity optimization configuration method according to any one of claims 1 to 9 is implemented.

Citation Information

Cited By

  • Variable frequency drilling machine hybrid energy storage capacity configuration method based on adaptive grey wolf algorithm

    CN119990598A

  • Variable frequency drilling rig hybrid energy storage capacity configuration method based on adaptive grey wolf algorithm

    CN119990598B

  • Wind and light storage micro-grid capacity optimization configuration method based on PGWO algorithm

    CN120875450A

  • Wind storage combined frequency control method giving consideration to voltage stability under weak power grid

    CN121906509A