A micro energy grid optimization operation method based on improved particle swarm algorithm
By introducing linearly decreasing weights and partial compression factors into the particle swarm algorithm, the problem of low convergence in micro-energy network optimization operations is solved, faster and more efficient optimal configurations are achieved, operating costs are reduced and energy utilization is improved. .
Patent Information
- Application Number
- CN202210767712.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-01
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2042-07-01
AI Technical Summary
The existing particle swarm algorithm has the problem of low convergence in the optimization operation of micro-energy networks and is prone to falling into local optimal solutions, making it difficult to effectively optimize the economic configuration and operation of micro-energy networks.
An improved particle swarm algorithm based on linearly decreasing weights and partial compression factors is used to improve the iteration speed and convergence performance of the algorithm by adjusting the inertial weights and compression factors to ensure a better solution in a smaller number of iterations.
The improved algorithm significantly improves the utilization rate of various energy sources in the micro-energy network, realizes cascade utilization of energy, reduces daily operating costs, improves comprehensive energy utilization rate, significantly reduces the number of iterations, and improves the convergence speed of the algorithm. and convergence ability.
Smart Images

Figure CN115275978B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of micro energy network optimization operation, and in particular to a micro energy network optimization operation method based on an improved particle swarm algorithm. Background Art
[0002] As global energy shortages and environmental problems intensify, micro-energy networks, as one of the important manifestations of the energy Internet, contain multiple energy sources and cold, hot, and electric loads. They can couple multiple energy sources and are a multi-energy complementary and multi-coordinated consumption platform. They are part of the energy Internet and can achieve cascade utilization of energy, thereby improving the degree of new energy consumption and the comprehensive utilization rate of energy. They are an important part of the new multi-energy complementary power system and have become a hot spot and inevitable trend in today's development. The optimal configuration of micro-energy networks is crucial to the operation of micro-energy networks, and the selection of algorithm tools and how to solve the optimal solution are crucial.
[0003] Optimization algorithms can be divided into classical optimization algorithms and heuristic optimization algorithms. Classical optimization algorithms generally use local information, which cannot avoid local minima. Algorithms inspired by the laws of nature are called heuristic algorithms, such as genetic algorithms, simulated annealing algorithms, artificial neural networks, and taboo search. Evolutionary algorithms, ant colony algorithms, anthropomorphic algorithms, and quantum algorithms have emerged one after another and become research hotspots and trends. Heuristic algorithms are simple and effective, have a certain intelligence, and have good results in solving power system optimization operation problems.
[0004] The existing intelligent algorithms for optimizing the operation of micro-energy grids include ant colony algorithm, artificial neural network and particle swarm algorithm. The existing particle swarm algorithm has the disadvantage of low convergence and is prone to falling into local optimal solutions. Summary of the invention
[0005] In view of the defects of the existing technology and in combination with the economic optimization configuration scenario of the micro-energy network, this application proposes an improved particle swarm algorithm based on linear decreasing weights and partial compression factors for the economic optimization operation of the micro-energy network. The algorithm has a fast convergence speed, improves the utilization rate of various energy sources in the micro-energy network, realizes the tiered utilization of energy, and improves the overall energy utilization rate.
[0006] In order to achieve the above purpose, the technical solution adopted by the present invention is:
[0007] A micro energy grid optimization operation method based on an improved particle swarm algorithm comprises the following steps:
[0008] S1: Establish a micro energy grid system model;
[0009] S2: Establishing the optimization objective function of micro energy network;
[0010] S3: Establish micro energy network optimization constraints;
[0011] S4: Using improved particle swarm algorithm to solve the micro energy grid optimization scheduling model;
[0012] The improved particle swarm algorithm in step S4 is based on the linearly decreasing inertia weight and the partial compression factor, and the iteration formula is as follows:
[0013]
[0014]
[0015]
[0016]
[0017] c1≠c2,c2=c1+2 (5)
[0018]
[0019] In the formula, k represents the kth iteration, d represents the dth dimension of the particle, and i represents the i-th particle. represents the flight speed of the dth dimension of the kth iteration of the i-th particle, ω represents the inertia weight, ω max represents the initial inertia weight, ω min Represents the final inertia weight, iter max represents the maximum number of iterations, c1 represents the self-learning factor, c2 represents the group learning factor, and p id represents the optimal position searched by a single particle, p gd represents the optimal position searched by the particle swarm, r1 and r2 represent random numbers between (0,1), represents the position of the dth dimension of the i-th particle in the k-th iteration, and γ1 and γ2 represent the compression factors.
[0020] Furthermore, where c1 is 3.25, ω max The value is 0.8, ω min The value is 0.2.
[0021] Furthermore, the micro-energy network optimization objective function described in step S1 is constructed with the goal of minimizing the daily operating cost of the micro-energy network; the micro-energy network optimization constraint conditions described in step S2 include the cold, heat and electric energy balance constraints in the micro-energy network and the output power range constraints of each device in the micro-energy network.
[0022] Furthermore, the objective function expression is:
[0023] F1(t)=C e (t)+C gas(t)+C OM (t)+C DP (t) (7)
[0024] In the formula, F1(t) represents the operating cost, C e (t) represents the electricity purchase cost, C gas (t) represents the gas purchase cost, C OM (t) represents the depreciation cost, C DP (t) represents the operation and maintenance cost, t is the time variable;
[0025] The expression of electricity purchase cost is as follows:
[0026]
[0027] In the formula, C grid (t) and P grid (t) represent the electricity purchase price and power purchased respectively;
[0028] The gas purchase cost expression is as follows:
[0029] C gas (t) = C NG (t)·V MT (t) (9)
[0030] In the formula, C NG (t) represents the natural gas price, V MT (t) represents the natural gas capacity consumed, and the natural gas capacity consumed is as follows:
[0031]
[0032] Where P mt,e (t) represents the electric power output of the micro gas turbine at time t, η mt,e (t) represents the power generation efficiency, R LHVT is the low calorific value constant of the micro gas turbine, Δt is the operating time of the micro gas turbine;
[0033] The depreciation cost expression is as follows:
[0034]
[0035] In the formula, K OMi,t , P i (t) represent the depreciation cost coefficient and output power of micro energy device j respectively;
[0036] The operation and maintenance cost expression is as follows:
[0037]
[0038] In the formula, Caz,j 、n j , K j They represent the installation cost per unit capacity, investment payback period and capacity factor (%) of micro energy device j, r represents the annual interest rate, and 8760 is the number of hours in a year;
[0039] The balance constraints of cold, hot and electric energy in the micro energy grid include:
[0040]
[0041] Where P grid (t), P gt (t), P mt,e (t), P es,c (t) represents the output power of the power grid, photovoltaic, gas turbine and energy storage device, respectively, P ec (t), P eb (t) represents the electric power consumed by electric boiler and electric refrigeration equipment respectively; L e (t) represents the electrical load; Q eb,h (t), Q mt,left (t) represent the thermal power output by the electric boiler and the waste heat power output by the micro gas turbine; L h (t) represents heat load; Q ec,c (t) represents the cooling power output by the electric refrigerator; L c (t) represents cooling load.
[0042] The output power range constraints of each device in the micro energy network include:
[0043]
[0044] Where P mt,e represents the output power of the micro gas turbine, Q eb,h Indicates the thermal power output of the electric boiler, Q ec,c Indicates the cooling power output of the electric refrigeration equipment, P es,c It represents the output power of the energy storage device, SOC represents the state of charge of the energy storage device, and the subscripts max and min represent the maximum and minimum values respectively.
[0045] The micro-energy network optimization operation method based on the improved particle swarm algorithm described in the present invention has the following beneficial effects:
[0046] 1. The improved particle swarm algorithm based on linearly decreasing inertia weight and partial compression factor proposed in the present invention can achieve better results with a smaller number of iterations compared to the basic particle swarm algorithm, thereby improving the convergence performance of the algorithm.
[0047] 2. The improved particle swarm algorithm proposed in the present invention is applied to the optimization operation of micro energy grid. The solution process is faster and more efficient, and has a good effect on the economic optimization configuration, operation and coordinated control of micro energy grid. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] The present invention has the following accompanying drawings:
[0049] Figure 1 The improved particle swarm algorithm flow chart of the present invention;
[0050] Figure 2 Micro energy network architecture diagram of the present invention;
[0051] Figure 3 Typical summer day cooling, heating and electricity load curves and photovoltaic day power prediction curves of the present invention;
[0052] Figure 4 Comparison chart of the number of iterations and fitness values of the basic particle swarm algorithm and the improved particle swarm algorithm;
[0053] Figure 5 Comparison of hourly operating costs after optimization of basic particle swarm algorithm and improved particle swarm algorithm. DETAILED DESCRIPTION
[0054] The present invention is further described in detail below in conjunction with the accompanying drawings.
[0055] The economic optimization configuration of micro-energy grid can be regarded as an optimization solution process for nonlinear models involving multiple variables and multiple constraints. In this solution process, the choice of algorithm tools is crucial to solving multivariate and multi-dimensional models and determines whether the final result is the optimal one in this process.
[0056] The present invention uses a particle swarm algorithm to solve the optimization operation of the micro-energy network. The particle swarm algorithm is an algorithm that simulates the foraging behavior of bird flocks. It is based on group iteration and tracks the optimal particles in the solution space for search. Compared with the ant colony algorithm, which has complex parameter settings and individuals can only perceive local information and cannot use global information, the particle swarm algorithm has simple parameter settings and easy code implementation. It not only has individual optimal information, but also retains and uses group optimal information. Compared with the simulated annealing algorithm, the whale optimization algorithm and the fish school algorithm, which are prone to fall into local optimal solutions, the particle swarm algorithm searches the global solution each time, and the result is the global optimal value. In summary, the particle swarm algorithm is an effective optimization tool for nonlinear continuous optimization and combinatorial optimization problems, and is widely used in fields such as function optimization and system control.
[0057] However, the basic particle swarm algorithm has the problem of slow convergence speed. To solve this problem, the present invention improves the basic particle swarm algorithm by adding linearly decreasing inertia weight and partial compression factor. A large inertia weight is conducive to the particle swarm to perform global search, and a small inertia weight is conducive to the particle swarm to perform local search. In the early stage of calculation, a larger weight is set so that the particles in the particle swarm can maintain diversity and a larger global search range. In the later stage of iteration, a smaller weight is set to enhance the local optimization ability of the particle swarm. In order to enable the particle swarm algorithm to maintain a larger global search ability in the early stage and to reach the global optimal value faster in the later stage, the present invention proposes to set the inertia weight to a linearly decreasing value, and the convergence speed of the algorithm can be adjusted according to the different iteration times, and the search range can be adjusted dynamically. The optimization problem of the particle swarm algorithm is a nonlinear process. Linearizing the nonlinear problem and setting the inertia weight to a linearly decreasing value can simplify the problem and better control the trajectory and iteration process of the particle swarm. The compression factor can improve the convergence degree of the algorithm. Adding the compression factor to the speed update formula can effectively improve the convergence degree of the algorithm, and setting different compression factors in the local optimization part and the global optimization part, namely the partial compression factor, makes the improved particle swarm algorithm have better iteration speed and convergence performance.
[0058] The iterative formula of the improved particle swarm algorithm based on linearly decreasing inertia weight and partial compression factor adopted in the present invention is as follows:
[0059]
[0060]
[0061]
[0062]
[0063] c1≠c2,c2=c1+2 (5)
[0064]
[0065] In the formula, k represents the kth iteration, d represents the dth dimension of the particle, and i represents the i-th particle. represents the flight speed of the dth dimension of the kth iteration of the i-th particle, ω represents the inertia weight, ω max represents the initial inertia weight, ω min Represents the final inertia weight, iter max represents the maximum number of iterations, c1 represents the self-learning factor, c2 represents the group learning factor, and p id represents the optimal position searched by a single particle, p gdrepresents the optimal position searched by the particle swarm, r1 and r2 represent random numbers between (0,1), represents the position of the dth dimension of the i-th particle at the k-th iteration, and γ1 and γ2 represent the compression factors.
[0066] The inertia weight ω plays a role in weighing the local optimal ability and the global optimal ability. In the early stage of iteration, the setting of ω is large, which can make the algorithm maintain a strong global search ability, and in the later stage of iteration, ω gradually decreases, which is conducive to enhancing the algorithm's ability to weigh the local optimal. The present invention sets l to 8.5, the value of the shrinkage factor γ1 is 0.610, and the value of γ2 is 0.467, that is, the speed v obtained by the particle after the kth iteration in the speed update formula in the basic particle swarm algorithm id The compression factor γ1 is multiplied in the two items of the particle self-optimization process, and the compression factor γ2 is multiplied in the particle global optimization part. In the basic particle swarm algorithm, c1 and c2 are generally set equal. In the present invention, considering the different proportions of self-optimization and global optimization, c1 and c2 are set unequally. When l is 8.5, c1 is 3.25 and c2 is 5.25, that is, 0.610×3.25=1.9825 is multiplied in the particle self-optimization part, and 0.467×5.25=2.452 is multiplied in the global optimization part, and then multiplied by r1 and r2 respectively, r1 and r2 are both random numbers between 0 and 1. The reason why the present invention sets different compression factors before the local optimum and the global optimum is that when applied to the optimization operation of the micro-energy network, it is hoped that the global optimum value, that is, the value with better economic performance, can be quickly found with a small number of iterations. Therefore, the present invention sets the global optimum compression factor higher, so that the improved particle swarm algorithm has a better convergence effect.
[0067] The improved particle swarm algorithm is applied to micro-energy to optimize the configuration of various devices in the micro-energy network. Different inertia weights and partial compression factor setting methods are adopted for different operating scenarios in the micro-energy network to improve the global search ability and convergence speed of the algorithm in different micro-energy network operating scenarios, and obtain the optimal daily operating cost in different scenarios.
[0068] The following is a specific example of the application of the above algorithm in conjunction with the specific scenario of micro-energy network optimization. The specific equipment conditions of the micro-energy network should not be used as a limitation of the present invention. That is to say, the micro-energy network described in the present invention is not limited to the conditions described in the embodiment. The implementer can apply the optimization algorithm described in the present invention to micro-energy networks with different architectures based on the concept of the present invention and common knowledge. For example, the photovoltaic power generation system in this embodiment can also be replaced by other renewable energy systems such as wind power generation systems, hydropower generation systems, geothermal power generation systems, etc., and only the corresponding power generation output power model and cost model need to be constructed.
[0069] This embodiment optimizes the cooling, heating and electricity load characteristic curve of a micro energy grid on a typical summer day. The architecture diagram of the micro energy grid is as follows: Figure 2 As shown, the micro energy network equipment includes a micro gas turbine, an electric boiler, an electric refrigerator, a photovoltaic power generation system, an energy storage device and a grid connection, wherein the micro gas turbine consumes gas to output electric power and waste heat power, the electric boiler consumes electric energy to output thermal energy, the electric refrigerant consumes electric energy to output cooling power, the photovoltaic power generation system provides electric energy input, the energy storage device can absorb and release electric energy, and the grid provides power input.
[0070] In combination with the above-mentioned micro energy grid architecture, this embodiment constructs an objective function with the goal of minimizing the daily operating cost of the micro energy grid, and takes the balance constraints of cold, hot and electric energy in the micro energy grid and the output power range constraints of each device in the micro energy grid as constraints, which are as follows:
[0071] 1. The objective function expression is:
[0072] F1(t)=C e (t)+C gas (t)+C OM (t)+C DP (t) (7)
[0073] In the formula, F1(t) represents the operating cost, C e (t) represents the electricity purchase cost, C gas (t) represents the gas purchase cost, C OM (t) represents the depreciation cost, C DP (t) represents the operation and maintenance cost, t is the time variable;
[0074] The expression of electricity purchase cost is as follows:
[0075]
[0076] In the formula, C grid (t) and P grid (t) represent the electricity purchase price and power purchased respectively;
[0077] The gas purchase cost expression is as follows:
[0078] C gas (t) = C NG (t)·V MT (t) (9)
[0079] In the formula, C NG (t) represents the natural gas price, V MT (t) represents the natural gas capacity consumed, and the natural gas capacity consumed is as follows:
[0080]
[0081] Where P mt,e (t) represents the electric power output of the micro gas turbine at time t, η mt,e (t) represents the power generation efficiency, R LHVT is the low calorific value constant of the micro gas turbine, Δt is the operating time of the micro gas turbine;
[0082] The depreciation cost expression is as follows:
[0083]
[0084] In the formula, K OMi,t , P i (t) represent the depreciation cost coefficient and output power of micro energy device j respectively;
[0085] The operation and maintenance cost expression is as follows:
[0086]
[0087] In the formula, C az,j 、n j , K j They represent the installation cost per unit capacity, investment payback period and capacity factor (%) of micro energy device j, r represents the annual interest rate, and 8760 is the number of hours in a year;
[0088] 2. The balance constraints of cold, hot and electric energy in the micro energy grid include:
[0089]
[0090] Where P grid (t), P gt (t), P mt,e (t), P es,c (t) represents the output power of the power grid, photovoltaic, gas turbine and energy storage device, respectively, P ec (t), P eb (t) represents the electric power consumed by electric boiler and electric refrigeration equipment respectively; L e (t) represents the electrical load; Q eb,h (t), Q mt,left (t) represent the thermal power output by the electric boiler and the waste heat power output by the micro gas turbine; L h (t) represents heat load; Q ec,c (t) represents the cooling power output by the electric refrigerator; L c (t) represents cooling load.
[0091] 3. The output power range constraints of each device in the micro energy network include:
[0092]
[0093] Where P mt,e represents the output power of the micro gas turbine, Q eb,h Indicates the thermal power output of the electric boiler, Q ec,c Indicates the cooling power output of the electric refrigeration equipment, P es,c It represents the output power of the energy storage device, SOC represents the state of charge of the energy storage device, and the subscripts max and min represent the maximum and minimum values respectively.
[0094] The energy conversion formulas of each micro-energy grid device used in the above constraints are as follows:
[0095] 1. The waste heat power output by the micro gas turbine is:
[0096]
[0097] Where P mt,e (t) represents the output power of the micro gas turbine, η mt,e (t) represents the power generation efficiency of the micro gas turbine, η L It represents the heat dissipation loss efficiency of the micro gas turbine;
[0098] 2. The energy conversion formula of electric boiler is:
[0099] Q eb.h (t) = η eb ·P eb (t) (16)
[0100] In the formula, Q eb,h (t) is the heating power of the electric boiler; η eb and P eb (t) are the thermal efficiency and electrical power of the electric boiler respectively.
[0101] 3. The energy conversion formula of electric refrigerator is:
[0102] Q ec,c (t) = C cop,ec P ec (t) (17)
[0103] In the formula, Q ec,c (t), P ec (t) are the cooling power output of the electric refrigerator during period t and the electric power required for refrigeration, respectively. COP,ec is the rated performance coefficient.
[0104] 4. The output power of the energy storage system is:
[0105] Q es,c =P es,c ηes,c Δt (18)
[0106] In the formula, Q es,c is the charging and discharging energy of the energy storage device; P es,c and η es,c are the charging and discharging power and efficiency of the energy storage device respectively.
[0107] like Figure 1 As shown, the process of the algorithm in this embodiment is as follows:
[0108] 1. Initialize the parameters in the micro energy grid: The rated parameters of various equipment are shown in Table 1, the data of electricity, heat and cooling loads on a typical day and the predicted data of photovoltaic power generation are shown in Table 1. Figure 3 The time-of-use electricity price and natural gas price of the power grid are shown in Table 2. The basic parameters of the algorithm are as follows: the number of particles is 100, the number of iterations is 800, the c1 value is 3.25, and the initial inertia weight ω max The value is 0.8, and the final inertia weight ω min A value of 0.2 randomly selects the position and velocity of a particle.
[0109] 2. According to the initial data in step 1, calculate the fitness value of all initially selected particles, that is, the minimized objective function value of the solution to this problem, let it be D i (0) .
[0110] 3. Use the minimum function to select the minimum value, which is the global optimal value p g (0) .
[0111] 4. The above is the initial calculation process when k=0. Let k=k+1. According to the speed formula and position formula of the improved particle swarm algorithm, for the different parts of self-optimization and global optimization, multiply the partial compression factor to update the particle speed v i (k) and position z i (k) .
[0112] 5. Calculate the fitness value of each particle and let it be D i (k) , take the minimum value, and update the local optimal value p id (k) and the global optimal value p gd (k) .
[0113] 6. Iteration end condition: If the difference between the kth iteration and the k-1th iteration divided by the value of the kth iteration is less than the threshold set by the initial data, or the number of iterations is greater than or equal to the initial set number of iterations, the result can be output and the entire calculation process ends.
[0114] Table 1 Micro energy network equipment parameters
[0115]
[0116] Table 2 Time-of-use electricity prices and natural gas prices
[0117]
[0118] The accuracy of the algorithm is evaluated by using the fitness value and the number of iterations to reach the optimal value. The application effect of the present invention is illustrated by comparing the daily operating costs obtained by the two methods. The comparison results are shown in Figure 2. Figure 4 shown.
[0119] Taking the first hour of optimization operation of the micro energy network as an example, Figure 4 It can be seen that the basic particle swarm algorithm obtains the optimal solution when the number of iterations is 355, and the optimal solution is 131.6 yuan; while the improved particle swarm algorithm proposed in this paper obtains the optimal solution when the number of iterations is 273, and the optimal solution is 131.8 yuan. This shows that under the condition that the optimal solution values obtained by the two algorithms are basically the same, the improved particle swarm algorithm proposed in this paper can significantly reduce the number of iterations of the solution and improve the convergence speed and convergence ability of the algorithm.
[0120] The results of the algorithm optimizing the output of each device in the micro energy grid are shown in Table 3-5. For electric power, photovoltaics have a higher output during the day, and electric boilers have a higher output at night; for thermal power, gas turbines have an output during the day, and electric boilers have a higher output at night; for cold power, only electric refrigerators provide cooling for the cold load. It is stipulated that the output power is positive and the absorption power is negative, and the positive and negative values of the three powers are opposite to each other, indicating that the input and output of cold, hot, and electric power in the micro energy grid are balanced, that is, the energy flow balance in the micro energy grid.
[0121] Table 3 Electric power optimization results
[0122]
[0123]
[0124]
[0125] Table 4 Thermal power optimization results
[0126]
[0127]
[0128] Table 5 Cooling power optimization results
[0129]
[0130]
[0131] The basic particle swarm algorithm and the improved particle swarm algorithm are used for economic optimization of micro energy grid respectively. The hourly operation cost comparison chart is as follows: Figure 5 As shown by Figure 5 It can be seen that the hourly economic operating cost calculated by the improved particle swarm algorithm is about 25 yuan less than that of the basic particle swarm algorithm on average. The daily operating cost solved by the basic particle swarm algorithm is 4960.58 yuan, and the daily operating cost solved by the improved algorithm is 4398.64 yuan. Compared with the basic one, the improved one is reduced by 561.94 yuan, that is, the daily operating cost is reduced by 11.33%, which has significant economic benefits, reduces the economic operating cost, and improves the comprehensive utilization rate of energy.
[0132] The operating cost of the micro-energy network is lower than that of the basic particle swarm algorithm, which reflects the superiority of the improved particle swarm algorithm in the global optimization process. It is applied to the optimized operation scenario of the multi-energy complementary micro-energy network, has good economy, and improves the comprehensive utilization rate of energy.
[0133] The contents not described in detail in this specification belong to the prior art known to professional and technical personnel in this field.
Claims
1. A micro-energy network optimization operation method based on improved particle swarm algorithm, characterized in that: The steps include: S1. Establish a micro energy grid system model; S2. Establishing the optimization objective function of micro energy network; S3, establish micro energy network optimization constraints; S4, using improved particle swarm algorithm to solve the micro energy grid optimization scheduling model; The improved particle swarm algorithm in step S4 is based on the linearly decreasing inertia weight and the partial compression factor, and the iteration formula is as follows: c1≠c2,c2=c1+2 (5) In the formula, k represents the kth iteration, d represents the dth dimension of the particle, and i represents the i-th particle. represents the flight speed of the dth dimension of the kth iteration of the i-th particle, ω represents the inertia weight, ω max represents the initial inertia weight, ω min Represents the final inertia weight, iter max represents the maximum number of iterations, c1 represents the self-learning factor, c2 represents the group learning factor, and p id represents the optimal position searched by a single particle, p gd represents the optimal position searched by the particle swarm, r1 and r2 represent random numbers between (0,1), represents the position of the dth dimension of the i-th particle at the k-th iteration, γ1 and γ2 represent the compression factors; The objective function expression is: F1(t)=C e (t)+C gas (t)+C OM (t)+C DP (t) (7) In the formula, F1(t) represents the operating cost, C e (t) represents the electricity purchase cost, C gas (t) represents the gas purchase cost, C OM (t) represents the depreciation cost, C DP (t) represents the operation and maintenance cost, t is the time variable; The expression of electricity purchase cost is as follows: In the formula, C grid (t) and P grid (t) represent the electricity purchase price and power purchased respectively; The gas purchase cost expression is as follows: C gas (t)=C NG (t)·V MT (t) (9) In the formula, C NG (t) represents the natural gas price, V MT (t) represents the natural gas capacity consumed, and the natural gas capacity consumed is as follows: Where P mt,e (t) represents the electric power output of the micro gas turbine at time t, η mt,e (t) represents the power generation efficiency, R LHVT is the low calorific value constant of the micro gas turbine, Δt is the operating time of the micro gas turbine; The depreciation cost expression is as follows: In the formula, K OMj,t , P j (t) represent the depreciation cost coefficient and output power of micro energy device j respectively; The operation and maintenance cost expression is as follows: In the formula, C az,j 、n j , K j They represent the installation cost per unit capacity, investment payback period and capacity factor (%) of micro energy device j, r represents the annual interest rate, and 8760 is the number of hours in a year; The balance constraints of cold, hot and electric energy in the micro energy grid include: Where P grid (t), P gt (t), P mt,e (t), P es,c (t) represents the output power of the power grid, photovoltaic, gas turbine and energy storage device, respectively, P ec (t), P eb (t) represents the electric power consumed by electric boiler and electric refrigeration equipment respectively; L e (t) represents the electrical load; Q eb,h (t), Q mt,left (t) represent the thermal power output by the electric boiler and the waste heat power output by the micro gas turbine; L h (t) represents heat load; Q ec,c (t) represents the cooling power output by the electric refrigerator; L c (t) represents cooling load; The output power range constraints of each device in the micro energy network include: Where P mt,e represents the output power of the micro gas turbine, Q eb,h Indicates the thermal power output of the electric boiler, Q ec,c Indicates the cooling power output of the electric refrigeration equipment, P es,c It represents the output power of the energy storage device, SOC represents the state of charge of the energy storage device, and the subscripts max and min represent the maximum and minimum values respectively.
2. The micro-energy network optimization operation method based on improved particle swarm algorithm according to claim 1, characterized in that: The c1 value is 3.25, ω max The value is 0.8, ω min The value is 0.2.
