A method for optimizing the operation of a building cogeneration system to improve grid flexibility
The mixed integer linear programming method is used to integrate load tracking and heat load tracking strategies in the optimization model, which solves the problem of micro-cogeneration systems in improving grid flexibility and reducing greenhouse gas emissions, and optimizes the optimal capacity and operating mode of the system. Effective reductions in costs and emissions have been achieved.
Patent Information
- Application Number
- CN202010764405.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-02
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2040-08-02
AI Technical Summary
It is difficult for existing technology to integrate different operating strategies, constraints and objective functions in a single optimization model, resulting in micro-cogeneration systems having limitations in improving grid flexibility and reducing greenhouse gas emissions, and failing to effectively optimize building cogeneration. Optimum capacity and operating mode of the system.
The mixed integer linear programming (MILP) method is used, combined with the load tracking strategy and the thermal load tracking strategy, to solve the total annual investment cost and greenhouse gas emissions through the optimization model, and formulate logical constraints to determine the boiler, micro cogeneration unit and thermal storage tank Optimum sizing and operating strategies, taking into account DC/AC inverter efficiency and thermal storage charge and discharge losses.
Achieving a compromise between total annual costs and greenhouse gas emissions, optimizing the optimal capacity and operating mode of the micro-CHP system, reducing total costs and greenhouse gas emissions, improving grid operation flexibility and clean energy Absorption capacity.
Smart Images

Figure CN112116122B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of demand-side response control, and in particular relates to a method for optimizing the operation of a building cogeneration system for improving the flexibility of a power grid. Background Art
[0002] The concentrations of greenhouse gases such as carbon dioxide (CO2), methane (CH4) and nitrous oxide (N2O) have increased by 40%, 150% and 20% respectively since 1750, which is unprecedented in the past 800,000 years, leading to the problem of global warming. Faced with the challenging impact of global warming, the parties to the Paris Agreement agreed to limit the average temperature rise to below 2°C by 2100 relative to pre-industrial levels, but the global average temperature rise of more than 0.8°C so far means that achieving this goal is a great challenge. The competitive substitution and diffusion of key energy technologies have an important impact on the evolution of the energy structure, which in turn affects the mitigation of greenhouse gas emissions and the prevention of climate change. Distributed power generation is one of the effective ways to optimize energy utilization by reducing transmission and distribution losses. One of the ways to distribute power generation is to use cogeneration technology. These technologies will improve the efficiency of energy conversion by generating heat and electricity from fuel sources at the same time, thereby achieving many social and energy policy goals, such as reducing greenhouse gas emissions from energy supply and potentially reducing energy costs for consumers.
[0003] Considering the above benefits, buildings with higher energy consumption levels are one of the potential areas for using micro CHP technology. For example, in the UK, the total consumption of natural gas (61%) and electricity (35%) is the highest, accounting for 28.4% of final energy consumption in other regions, and 14.5% of greenhouse gas emissions. Although small-scale (<100kwe) and micro (<15kwe) CHP systems have been commercialized and are suitable for application in buildings [8] , but the use of these technologies in this sector is still not as widespread as it could be. In the UK, for example, only 0.6% of the total installed CHP capacity in 2017 was in the power range of less than 100 kW, and just this year, the total capacity of micro-CHP schemes developed for the feed-in tariff (FIT) was only 0.009% of the total installed capacity. There are several barriers to expanding the use of micro-CHP, including immature technology in the building sector, slow implementation and lack of awareness [8] However, in terms of economics, feedback from various test countries shows that incentive policies can have a significant impact on the development of CHP technologies. If investment costs are still high, these technologies are often eligible for a "FIT" that can help to obtain a return on investment. However, achieving low costs is one of the important goals to make the micro CHP market more attractive.
[0004] In the process of developing micro-CHP systems, mastering the optimal sizing of micro-CHP units, avoiding the adverse effects of underestimation and overestimation on the effectiveness and feasibility of the system, respectively, and the optimal operation strategy, a strategy for minimizing the cost of meeting the power and heat requirements and developing a rational scheme to determine the optimal operation strategy of the system, is very important for exploiting the high economic and energy-saving potential of micro-CHP systems and has become a research focus of interest to both manufacturers and customers. In addition, since micro-CHP units can be coupled with other CHP components to increase operational flexibility, such as energy storage units. Therefore, careful selection and advanced strategies should be used to address the higher capital cost expenditure and complexity of the system. Therefore, it is of great significance to develop an integrated approach to seek the optimal capacity size and operation objectives of micro-CHP systems, constraints, such as reducing total costs and reducing greenhouse gases, including CHP components and operation strategies.
[0005] Most of the research on variable optimization methods aims at cost minimization. Some studies adopt linear programming LP method for optimization. If long-term planning is carried out for investment, operation and maintenance, fuel and replacement costs, and reliability, it is assumed that the size of the CHP units is defined, and the sizing is performed in a discrete form to find the optimal number of these units, the annual cost and energy consumption of the system can be greatly reduced. However, some other studies also consider the goal of reducing greenhouse gases. In addition to the cost and greenhouse gas reduction goals, the objective function of water conservation is also considered, and the results provide a compromise solution between the goals.
[0006] Some references propose methods for the optimal size and operation of energy systems dominated by load-following operation strategies, such as genetic algorithms (GA) to study the optimal capacity of various energy technologies for multi-source energy systems with minimal primary energy consumption. Compared with single-objective optimization, one of the biggest advantages of multi-objective optimization is to improve waste heat recovery rate.
[0007] Although most studies are aimed at building energy management, few involve optimization at the scale of micro-CHP. Moreover, only one or two strategies have been mostly studied, in which case it is not possible to compare the operation strategies with each other and thoroughly evaluate their advantages. In all cases, the system optimization problem for both electric load following operation strategies and thermal load following operation strategies has its corresponding difficulties and limitations due to the presence of conflicting alternatives and discrete linear relationships in the formulation of these strategies. Another point is that, in some cases, the considered capacity is in the form of discrete or predetermined types of certain CHP components. Depending on their requirements, these studies consider different objective functions of the optimization models leading to significantly different results.
[0008] In most of these studies, cost optimization is the only objective function evaluated, and fewer studies consider multi-objective optimization objective functions. In all literature, boilers and heaters are mostly constant loads, but in some cases the flexibility of thermal storage is not considered. Different technologies are considered for combined heat and power units, some of which, such as internal combustion engines ICE, Stirling engines SE and gas turbines GT, are based on alternating current AC, while others, such as fuels, batteries FC, are based on direct current DC. Despite the fundamental differences between these two technologies, no general formula considering the efficiency of the DC / AC inverter is provided for DC-based technologies in the relevant studies.
[0009] In summary, two issues have not been properly addressed. First, the development of an integrated approach that can implement different operating strategies, constraints, and objective functions in a single optimization model has not been modeled and analyzed. Second, the use of mixed integer linear programming optimization to avoid the limitations of common solutions in implementing conflicting alternatives and the discrete relationship of specific operating strategies, such as load following strategies, has not been developed.
[0010] Although micro-CHP is one of the most popular distributed power generation methods, the research on improving grid flexibility through building CHP control optimization is not mature enough, and the optimization of the optimal capacity and operation mode of micro-CHP system is a key problem in the development of related technologies. Therefore, technicians in this field have been constantly innovating and developing. Summary of the invention
[0011] In view of the shortcomings of the above-mentioned prior art, the present invention provides a building cogeneration system operation optimization method for improving the flexibility of the power grid. The purpose is to propose a building cogeneration system operation optimization method for improving the flexibility of the power grid with high operating efficiency and strong robustness.
[0012] The technical solution adopted by the present invention to achieve the above-mentioned purpose is:
[0013] A method for optimizing the operation of a building cogeneration system for improving power grid flexibility includes quantifying building flexibility with different demands and measuring demand flexibility, wherein quantifying building flexibility with different demands includes the following steps:
[0014] Step 1. Acquisition and setting of external data;
[0015] Step 2. Optimize model solution;
[0016] Step 3. Optimize the amount of model data results.
[0017] Furthermore, the optimization model constraints include:
[0018] (1) General constraints for all strategies;
[0019] (2) General constraints on load following strategies;
[0020] (3) Specific constraints of load following strategy.
[0021] Furthermore, the objective function of the optimization model is to use the total annual cost (TAC) and the annual greenhouse gas production or the greenhouse gas production, two independent optimization formulas as the optimization model.
[0022] Furthermore, the objective function includes:
[0023] (1) Minimize the total annual investment cost;
[0024] (2) Minimize annual greenhouse gas emissions;
[0025] (3) Minimize both annual total investment cost and greenhouse gas emissions.
[0026] Furthermore, the annual total investment cost is TAC, which is the sum of the cost of imported natural gas and electricity each year; the related network and annual operation and maintenance O&M costs minus the annual revenue generated from exports and power generation, which is expressed as follows:
[0027] TAC=TAC O&M +TAC El,Im +TAC O&M -TAR Ex&Ge (1)
[0028] TAC is the total annual investment cost ($), El,Im is the total cost of imported electricity per year ($), TAC O&M is the total annual operation and maintenance cost ($), TAR Ex&Ge Annual revenue generated for electricity generation;
[0029] The total investment cost of the CHP components is amortized over the entire life cycle of the components and the investment cost of the CHP component P is annualized according to the following relationship:
[0030]
[0031] in, is the annual investment cost of component P, C P is the capital cost of component P (US$ / kW or US$ / L) LT P is the life of component P (years), i is the annual profit rate;
[0032] The annualized total investment cost in formula (3) is the sum of the annualized investment costs, and has been considered for the boiler in formula (4), the micro-CHP unit in formula (5) and the heat storage tank in formula (6). This cost is obtained through the following relationship:
[0033]
[0034]
[0035]
[0036]
[0037] Among them, TAC Invest is the total annual investment cost ($), is the annual investment cost of CHP unit (US$), is the annual investment cost of the gas boiler (US dollars), is the annual investment cost of the heat storage device (US dollars), C B is the capital cost of the gas boiler (US$ / kW), Sal μCHP μ is the ratio of the residual value of the CHP unit to the capital cost (%), μCHP is micro-CHP, Optimal capacity (size) for μCHP units (kWe) C HS is the capital cost of the thermal storage (US$ / L), CP W is the specific heat of water at constant pressure (kJ / (kg.K)), T max is the maximum temperature of the heat storage device (℃), H max is the maximum permissible storage energy in the thermal storage (kWh), is the annual investment cost of μCHP (US$ / kW);
[0038] Formulas (7)–(9) represent the operating costs of the micro-CHP system. The boiler and the micro-CHP unit are the only users of natural gas. Formula (7) represents the annual cost of imported natural gas, Formula (8) represents the cost of importing electricity from the public grid, and Formula (9) represents the operation and maintenance costs of the boiler and the micro-CHP unit. Formula (10) represents the operating income of the system from export and power generation, W i It is a weighted factor determined based on the results of the annual survey;
[0039]
[0040]
[0041]
[0042]
[0043] Among them, TAC NG is the total annual natural gas cost ($), TAC El,Im is the total cost of imported electricity per year ($), B is the boiler, i is the annual profit rate, η B is the thermal efficiency of the gas boiler (%), μCHP is micro combined heat and power, TAC is O&M TAC is the operation and maintenance cost of boilers and micro CHP units. EX&Ge is the operating income of the system export and power generation, C imp is the import electricity price ($ / kWh), C NG is the natural gas price (US$ / kWh), H B,i is the heat output of the gas boiler in the i-th hour, E μCHP,I is the electrical output in μCHP units in the i-th hour (kWh), E exp,I is the electricity exported to the grid (kWh), E imp,I is the amount of electricity imported from the grid (kWh), η μCHP,el The electrical efficiency in units (%), η μCHP,inv is the efficiency of the unit inverter (%), η μCHP Thermal efficiency (%), FIT Exp is the FITExp income ($ / kWh) of exported electricity, W i is the weighting factor representing the day (in hours), OM B is the operation and maintenance cost of the gas boiler ($ / kWh), OM μCHP is the operation and maintenance cost of the device ($ / kWh).
[0044] Furthermore, the annual greenhouse gas emissions objective function is:
[0045] Formula (11) is the annual greenhouse gas emissions, which is the sum of the annual greenhouse gas emissions caused by the consumption of imported natural gas and the annual grid-side greenhouse gas emissions caused by the generation of imported electricity from buildings minus the greenhouse gas emissions substitution caused by the annual export of electricity to the grid, expressed by formula (14);
[0046] Among them, formula (11) is the annual greenhouse gas generation, formula (12) is the annual greenhouse gas emissions, formula (13) is the electricity of the building, and formula (14) is the greenhouse gas emission replacement;
[0047] The relationship is as follows:
[0048] GHGG=GHGG NG +GHGG El,Im -GHGS El,Ex (11)
[0049]
[0050]
[0051]
[0052] Where GHGG is the amount of greenhouse gas produced (kg), GHGG NG Greenhouse gas produced by natural gas (kg), GHGG El,Im Greenhouse gas for grid electricity generation (kg), GHGS ElEx =GHG emissions displaced by exported electricity (kg), EF NG is the emission coefficient of natural gas (kg / kWh), W i is the weighting coefficient of the representative day (in hours), H B,I is the heat output of the gas boiler (i-th hour) (kWh), η B is the thermal efficiency of the gas boiler (%), E μCHP,I is the electrical output in μCHP units in the i-th hour (kWh) η μCHP,el The electrical efficiency (%) is in units of EF El is the grid electricity emission coefficient (kg / kWh), E imp,I is the amount of electricity imported from the grid (kWh);
[0053] The annual total cost and greenhouse gas emissions targets are expressed as follows:
[0054] Min TAC Z (15)
[0055] GHGG z ≤ε z (16)
[0056] In the formula, z = 1, 2, 3…m; m is the number of solution points assumed in the Pareto chart.
[0057] Furthermore, the optimization model constraints are implemented by the MILP mixed integer linear programming algorithm, which uses binary decision variables to reconstruct or convert propositional logic statements into linear constraint systems to form the required logical constraints. The key transformation of such transformation is expressed as follows:
[0058] If δ k ′=1, then ∑ j a kj x j -b k ≤0≡∑ j a kj x j -bk ≤U k (1-δ′ k ) (17)
[0059] If δ k ′=1, then ∑ j a kj x j -b k ≥0≡∑ j a kj x j -b k ≥L k (1-δ′ k ) (18)
[0060] If δ k ′=1, then
[0061] Among them, L k and U k They represent the upper and lower bounds of the kth linear constraint respectively:
[0062] L k ≤∑ j a kj x j -b k ≤U k (20)
[0063] Among them, δ′ k is the indicator variable, a kj is the constraint coefficient, x j is a continuous variable, b k is the adjustment amount;
[0064] The general constraints for all running strategies are set as:
[0065] Considering the minimum and maximum output of the boiler and the micro CHP unit at each time step, the corresponding limits of the boiler and the micro CHP unit are expressed in equations (21) and (22) respectively. The allowable range of energy storage is its maximum capacity H max With the maximum temperature T max Correlation, minimum value H min With the minimum temperature T min related; when selecting the temperature change, it is assumed that the water volume of the thermal storage tank is constant, the stored energy is proportional to its temperature, and its minimum value is equal to the allowable range of energy storage expressed by equation (23); the boiler is a fixed cogeneration component in all system structures, and the presence of the micro CHP unit and heat storage is determined by two binary variables Con μCHP ,Con HSAs determined by external data, a dual-purpose equation is formed; where "1" represents the existence and "0" represents the non-existence of the cogeneration component; in the parameters represented, the variable i represents the value of this parameter in the i-th time step, which is set to 1 hour:
[0066]
[0067]
[0068] Con HS ×T min / T max ×H max ≤H i ≤Con HS ×H max (twenty three)
[0069] Among them, Con μCHP is the storage condition of the unit (-); Con HS is the storage condition of the thermal storage device (-); Optimal capacity (size) of the unit (kWe); T max is the maximum temperature of the heat storage device (°C); T min is the minimum heat storage temperature (℃); B is the boiler, H min is the minimum permissible storage energy in the heat storage (kWh); H D,I is the heat demand in hours (kWh); H max is the optimal capacity (size) of heat storage (kWh); H B,I is the heat output of the gas boiler (i hour) (kWh); H i is the total heat stored up to the i-th hour (kWh);
[0070] The power demand of the system is met by the power generation, i.e., the sum of the AC output of the micro CHP unit and the power imported from the grid minus the output power, as expressed in Eq. (24), where μCHP,inv represents the efficiency of the inverter of the micro CHP unit; the thermal energy balance is established, as expressed in Eqs. (25)–(27); Eqs. (25) and (26) are another dual-purpose equation that defines the heat flow behavior with and without thermal storage; in the presence of thermal storage, Eq. (25) indicates that the heat demand can only be met by its associated discharge efficiency η HS,dch The thermal storage discharge is used to provide, otherwise, the thermal storage discharge heat H i is zero; in the case of heat storage, equation (26) represents the charging heat H in the heat storage tank i ) is the heat output of the micro CHP unit and boiler and its related efficiency η HS,chConsidering the charging and discharging efficiency, the output heat of the above cogeneration components meets the heat demand. Equation (27) specifies the energy balance in heat storage, where hs represents the percentage of energy storage lost in each time step, H i is the heat storage in the next time step. In the absence of heat storage, H is converted to i The limit is zero; the heat storage capacity in liters is calculated using formula (28), where CP W is the specific heat of water at constant pressure:
[0071] η μCHP,inv ×E μCHP,i +E Imp,i -E EXP,i =E D,i (twenty four)
[0072]
[0073]
[0074]
[0075]
[0076] Among them, H i is the total heat stored up to the i-th hour (kWh); is the i-th hour in thermal storage (kWh); is the heat released in the i-th hour (kWh); H min is the minimum permissible storage energy in thermal storage (kWh); Con HS is the existence condition of the heat storage device (-), H D,I is the heat demand in hours (kWh); η HS,CH is the charging efficiency of thermal storage (%); η HS,dCH is the heat removal efficiency of the heat storage device (%); η μCHP,el The electrical efficiency in units (%); η μCHP,inv is the efficiency of the unit inverter (%); η μCHP Thermal efficiency in units (%); E exp,I is the electricity exported to the grid (kWh); E imp,I is the amount of electricity imported from the grid (kWh); H Du,I The heat stored for the ith hour (kWh); CP W is the specific heat of water at constant pressure (kJ / (kg.K)), E D,i is the electricity demand in hours (kWh), T max is the maximum temperature of the heat storage device (℃);
[0077] The general constraints of the load tracking strategy, which apply to load tracking strategies, include:
[0078] Determine whether If so, then If not, determine whether If so, set H B,i = 0, and continue to determine whether If so, then If not, then
[0079] like If not, set H Du,i = 0, and continue to determine whether If so, then If not, then
[0080] in, is the surplus of heat generated by the micro CHP unit, It is the deficiency of heat produced by the unit at each time step after supplying the heat demand, taking into account the efficiency of charge and discharge; is the possible charge of the thermal storage tank, is the possible discharge of the thermal storage tank at each time step, H D,I is the heat demand in hours (kWh), H B,i is the heat output of the gas boiler in the i-th hour (kWh), r H:P is the thermoelectric conversion ratio of CHP, η HS,ch is the charging efficiency of thermal storage (%), η HS,dCH is the heat removal efficiency of the heat storage device (%);
[0081] Obtained by the following equation:
[0082]
[0083]
[0084]
[0085] Among them, η HS,dch is the heat removal efficiency of the heat storage device, % μCHP Thermal efficiency in units (%), α HS is the heat storage loss per hour (%), r H:P is the heat-to-electricity conversion ratio of CHP, μCHP is micro combined heat and power;
[0086] Specific constraints on the load following strategy include:
[0087] Determine whether the operation strategy is an electric load following operation strategy or a thermal load following operation strategy. If so, then E μCHP,i =E D,i / η μCHP,inv If not, then
[0088] For the heat load following strategy, determine whether If so, then E μCHP,i =H D,i / r H:P , if not, then
[0089] Furthermore, the optimization model data results determine the optimal size and operation of the boiler, micro-CHP and thermal storage tank, as well as the power exchange with the grid, including the input and output of electrical energy, the total annual cost and the emission of greenhouse gases.
[0090] Furthermore, the demand flexibility measurement system includes: a boiler, a micro combined heat and power unit and a heat storage tank, wherein: the micro combined heat and power unit generates electricity and heat energy, wherein the electricity is transmitted through a combined heat and power converter connected to a power interface and fed into a public power grid; the system is also connected to a public power grid or a microgrid through an electrical interface to exchange electric energy, and finally deliver electricity to power users; the generated heat energy is fed together with the heat energy generated by the boiler into a heat storage tank to jointly supply heat to heat energy users; based on the selected operating strategy, the functions of the above-mentioned combined heat and power components are determined by a central controller; the micro combined heat and power unit includes DC-based and AC-based technologies, which are implemented through a DC / AC inverter.
[0091] A computer storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of a method for optimizing the operation of a building cogeneration system for improving the flexibility of a power grid are implemented.
[0092] The present invention has the following beneficial effects and advantages:
[0093] The present invention comprehensively considers the advantages and disadvantages of various types of building cogeneration loads participating in demand-side response modeling invented by predecessors. The present invention aims to develop a comprehensive optimization method to determine the optimal scale and optimized operation of building micro-CHP systems, including boilers, micro-CHP units and thermal storage tanks, while considering different types of operation strategies, cogeneration components including and target functions and objective functions. To this end, the present invention adopts a mixed integer linear programming method and gives a specific logical constraint formula. The modeling of basic electrical components, such as inverter efficiency technical details of DC-based micro-CHP units, including charging, discharging, storage losses of thermal storage and sales revenue of excess energy in thermal storage are solved.
[0094] The present invention comprehensively considers different operation strategies, objective functions and constraints, and proposes a new residential building energy optimization method to optimize the optimal capacity and operation curve of the micro-CHP system. The optimization is achieved by using mixed integer linear programming based on physical prior knowledge formula constraints. The optimization comprehensively considers important technical indicators in the physical model, such as the inverter efficiency, charging, discharging and storage losses of the DC micro-thermal generator set, and the discharge of excess heat.
[0095] The present invention effectively solves the following problems: the optimal operating capacity of the micro-CHP and the boiler considering the minimization of the annual total cost, the optimal capacity of the micro-CHP and the boiler under different operating strategies considering the minimization of the annual total greenhouse gas emissions, the optimal operating strategy for reducing the total cost and annual greenhouse gas emissions at the same time, the optimal capacity of the boiler and the micro-CHP unit in the above strategy, whether the heat storage tank cooperates in further reducing the target function, and if so, the effect and optimal production capacity.
[0096] The present invention can be applied to residential buildings with different heat and electricity consumption modes. Compared with the operation of a thermal power system alone, it can reduce total costs and greenhouse gas emissions at the same time, and indirectly improve the flexibility of grid operation and clean energy absorption capacity. BRIEF DESCRIPTION OF THE DRAWINGS
[0097] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0098] Figure 1 A flow chart for quantifying the building flexibility of the present invention for different needs;
[0099] Figure 2 A relationship diagram between the flexibility metrics required by the present invention;
[0100] Figure 3 is a general constraint flow chart of the load following strategy of the present invention;
[0101] Figure 4 This is a specific constraint flow chart of the load following strategy of the present invention. DETAILED DESCRIPTION
[0102] In order to more clearly understand the above-mentioned objectives, features and advantages of the present invention, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0103] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.
[0104] Refer to the following Figure 1-Figure 4 The technical solutions of some embodiments of the present invention are described.
[0105] Example 1
[0106] The present invention is a building cogeneration system operation optimization method for improving power grid flexibility. A mixed integer linear solution integration method is proposed. Under the condition of considering operation strategy, constraint conditions and objective function, a planning optimization method considering operation logic constraint formula is proposed for the optimal capacity and operation planning of micro cogeneration system. The present invention includes two types: building flexibility quantification with different requirements and demand flexibility measurement.
[0107] like Figure 1 As shown, Figure 1 The present invention is a flow chart of quantifying building flexibility according to different requirements, and the quantification of building flexibility according to different requirements specifically includes the following steps:
[0108] Step 1. Acquisition and setting of external data. As the main component of the present invention, the optimization model can be expanded into mixed integer linear programming, and the data is divided into external data and internal data. External data, including building type, operation strategy type, cogeneration component type and objective function, are selective data that determine the performance of the optimization model. Internal data, including demand data, technical data, cost and environmental data, are determined data defined according to the research assumptions in the optimization model.
[0109] Step 2. Solve the optimization model. In order to determine the optimal capacity and operation of the micro-CHP system, the optimization model constraints are divided into the following three categories based on comprehensive consideration of the power load following operation strategy, the heat load following operation strategy and the optimization-based operation strategy:
[0110] (1) General constraints on all the above strategies;
[0111] (2) General constraints on load following strategies;
[0112] (3) Specific constraints of the load following strategy.
[0113] In the figure, HL is the heat load following operation strategy, OB is the optimization-based operation strategy, and EL is the power load following operation strategy.
[0114] Two independent optimization formulas, total annual cost TAC and annual greenhouse gas production or greenhouse gas production, are used as the objective function of the optimization model. The TAC is the annual total cost ($).
[0115] The present invention is based on the multi-objective mixed integer linear programming MILP problem and is implemented by using the MATLAB "linprog" function. The MILP is a mixed integer linear programming.
[0116] The present invention includes three objective functions:
[0117] The first objective is to minimize the total annual investment cost;
[0118] The second goal is to minimize annual greenhouse gas emissions;
[0119] The third objective is to minimize both total annual investment costs and greenhouse gas emissions.
[0120] The above objectives are defined as follows:
[0121] The total annual investment cost is the sum of the cost of TAC, annual imported natural gas and electricity, the associated network and annual operations and maintenance (O&M) costs less the annual revenue generated from exports and power generation, expressed as follows:
[0122] TAC=TAC O&M +TAC El,Im +TAC O&M -TAR Ex&Ge (1)
[0123] TAC is the total annual investment cost ($), El,Im is the total cost of imported electricity per year ($), TAC O&M is the total annual operation and maintenance cost ($), TAR Ex&Ge Annual income generated for electricity generation.
[0124] Annualized investment cost of CHP components Taking into account the cash flow discount rate, the total investment cost of CHP components is amortized over the entire life cycle of the components and the investment cost of CHP component P is annualized according to the following relationship:
[0125]
[0126] in, is the annual investment cost of component P, C P is the capital cost of component P (US$ / kW or US$ / L) LT P is the life of component P (years), and i is the annual profit rate.
[0127] Therefore, the annualized total investment cost in equation (3) is the sum of the annualized investment costs, taking into account the boiler, see equation (4), the micro-CHP unit, see equation (5) and the thermal storage tank, see equation (6). This cost is obtained through the following relationship:
[0128]
[0129]
[0130]
[0131]
[0132] Among them, TAC Invest is the total annual investment cost ($), is the annual investment cost of CHP unit (US$), is the annual investment cost of the gas boiler (US dollars), is the annual investment cost of the heat storage device (US dollars), C B is the capital cost of the gas boiler (US$ / kW), Sal μCHP μ is the ratio of the residual value of the CHP unit to the capital cost (%), μCHP is micro-CHP, Optimal capacity (size) for μCHP units (kWe) C HS is the capital cost of the thermal storage (US$ / L), CP W is the specific heat of water at constant pressure (kJ / (kg.K)), T max is the maximum temperature of the heat storage device (℃), H max is the maximum permissible storage energy in the thermal storage (kWh), is the annual investment cost of μCHP (US$ / kW);
[0133] The operating costs of the micro-CHP system are expressed in equations (7)–(9). The boiler and the micro-CHP unit are the only users of natural gas. Therefore, the annual cost of imported natural gas is calculated according to equation (7). The cost of importing electricity from the utility grid is also described in equation (8), and the operation and maintenance costs of the boiler and micro-CHP unit are described in equation (9). In addition, the operating income of the system from exports and power generation is expressed in equation (10). W i It is a weighted factor determined based on the results of the annual survey.
[0134]
[0135]
[0136]
[0137]
[0138] Among them, TAC NG is the total annual natural gas cost ($), TAC El,Im is the total cost of imported electricity per year ($), B is the boiler, i is the annual profit rate, η B is the thermal efficiency of the gas boiler (%), μCHP is micro combined heat and power, TAC is O&M TAC is the operation and maintenance cost of boilers and micro CHP units. EX&Ge is the operating income of the system export and power generation, C imp is the import electricity price ($ / kWh), C NG is the natural gas price (US$ / kWh), H B,i is the heat output of the gas boiler in the i-th hour, E μCHP,I is the electrical output in μCHP units in the i-th hour (kWh), E exp,I is the electricity exported to the grid (kWh), E imp,I is the amount of electricity imported from the grid (kWh), η μCHP,el The electrical efficiency in units (%), η μCHP,inv is the efficiency of the unit inverter (%), η μCHP Thermal efficiency (%), FIT Exp is the FITExp income ($ / kWh) of exported electricity, W i is the weighting factor representing the day (in hours), OM B is the operation and maintenance cost of the gas boiler ($ / kWh), OM μCHP is the operation and maintenance cost of the device ($ / kWh).
[0139] The annual greenhouse gas emissions objective function is:
[0140] The annual greenhouse gas emissions, see equation (11), are the sum of the annual greenhouse gas emissions caused by the consumption of imported natural gas and the annual grid-side greenhouse gas emissions caused by the generation of imported electricity from buildings minus the greenhouse gas emissions substitution caused by the annual export of electricity to the grid, see equation (14).
[0141] Among them, the annual greenhouse gas generation is shown in equation (11), the annual greenhouse gas emissions are shown in equation (12), the electricity of buildings is shown in equation (13), and the greenhouse gas emission replacement is shown in equation (14).
[0142] These relationships are described below:
[0143] GHGG=GHGG NG +GHGG El,Im -GHGSEl,Ex (11)
[0144]
[0145]
[0146]
[0147] Where GHGG is the amount of greenhouse gas produced (kg), GHGG NG Greenhouse gas produced by natural gas (kg), GHGG El,Im Greenhouse gas for grid electricity generation (kg), GHGS ElEx =GHG emissions displaced by exported electricity (kg), EF NG is the emission coefficient of natural gas (kg / kWh), W i is the weighting coefficient of the representative day (in hours), H B,I is the heat output of the gas boiler (i-th hour) (kWh), η B is the thermal efficiency of the gas boiler (%), E μCHP , I is the electrical output in μCHP units in the i-th hour (kWh) η μCHP,el The electrical efficiency (%) is in units of EF El is the grid electricity emission coefficient (kg / kWh), E imp,I is the amount of electricity imported from the grid (kWh).
[0148] The total annual cost and greenhouse gas emissions targets are:
[0149] In order to implement this multi-objective function, first, only one objective, TAC minimization objective function, is considered. The solution obtained gives an upper limit for GHG emissions. Then, in order to provide a lower limit for GHG emissions, an objective function is implemented to minimize GHG production. The solution obtained provides an upper limit for TAC. Through these two extreme solutions, the ε constraint method is then utilized. Thus, a set of Pareto optimal solutions considering TAC minimization under the higher constraint of GHG emissions is obtained. This process is expressed as follows:
[0150] Min TAC Z (15)
[0151] GHGG z ≤ε z (16)
[0152] In the formula, z = 1, 2, 3…m; m is the number of solution points assumed in the Pareto chart.
[0153] Example 2
[0154] The three types of optimization model constraints described in the present invention are a program design for implementing logical constraints in mixed integer linear systems, specifically:
[0155] The system action behavior for different operation strategies is realized with an integrated model, and the constraints of the problem are divided into three categories: general constraints for all operation strategies, general constraints for load following strategies, and specific constraints for load following strategies. Due to the conflicting solutions and the nature of discrete linear relations in the expressions of general and specific constraints for load following strategies, general linear constraints, such as those implemented in the previous expressions, cannot be applied to the implementation of these types of constraints. Common solutions to realize such relations are to use nonlinear methods or simulation-based methods. However, such methods have their specific conceptual problems and limitations, such as the dependence of the results on the selected initial solution, the uncertainty of the global minimization of the established solution, the long execution time of nonlinear methods, and the large number of discrete runs in addition to the long execution time of simulation-based methods.
[0156] Therefore, the present invention utilizes the MILP mixed integer linear programming algorithm to implement the above constraints, avoiding these problems and limitations. The main task of the method of the present invention is to reconstruct or convert the propositional logic statements into a linear constraint system using some binary decision variables to form the required logical constraints. The key transformation of such transformation can be expressed as follows:
[0157] If δ′ k =1, then ∑ j a kj x j -b k ≤0≡∑ j a kj x j -b k ≤U k (1-δ′ k ) (17)
[0158] If δ′ k =1, then ∑ j a kj x j -b k ≥0≡∑ j a kj x j -b k ≥L k (1-δ′ k ) (18)
[0159] If δ′ k =1, then
[0160] Among them, L k and U k They represent the upper and lower bounds of the kth linear constraint respectively:
[0161] L k ≤∑ j a kj x j -b k ≤U k (20)
[0162] Among them, δ′ k is the indicator variable, a kj is the constraint coefficient, x j is a continuous variable, b k is the adjustment amount.
[0163] The general constraints for all running strategies are set as:
[0164] Since the output power of these components cannot be negative nor exceed the rated power or capacity obtained through the optimization process, the minimum and maximum output of the boiler and the micro-CHP unit must be considered at each time step. The corresponding limits for the boiler and the micro-CHP unit are specified in Eqs. (21) and (22), respectively. The permissible range of energy storage is its maximum capacity H max With the maximum temperature T max Correlation, minimum value H min With the minimum temperature T min Since the energy stored in the thermal storage tank depends on its volume multiplied by the temperature, in order to maintain the linearity of the volume-temperature product formula, the water volume in the thermal storage tank is assumed to be constant when the temperature variation is selected. Therefore, the stored energy is only proportional to its temperature, and its minimum value is equal to the allowable range of energy storage as described in equation (23). It should be noted that the boiler is a fixed CHP component in all system structures, but the presence of the micro-CHP unit and the heat storage is determined by the two binary variables Con μCHP and Con HS As determined by external data, a dual-purpose equation is formed. Where "1" represents existence, and "0" represents the absence of the cogeneration component. In the parameters represented, the variable i represents the value of this parameter in the i-th time step, which is set to 1 hour in the present invention.
[0165]
[0166]
[0167] Con HS ×T min / T max ×H max≤H i ≤Con HS ×H max (twenty three)
[0168] Among them, Con μCHP is the storage condition of the unit (-); Con HS is the storage condition of the thermal storage device (-); Optimal capacity (size) of the unit (kWe); T max is the maximum temperature of the heat storage device (°C); T min is the minimum heat storage temperature (℃); B is the boiler, H min is the minimum permissible storage energy in the heat storage (kWh); H D,I is the heat demand in hours (kWh); H max is the optimal capacity (size) of heat storage (kWh); H B,I is the heat output of the gas boiler (i hour) (kWh); H i is the total heat stored up to the i-th hour (kWh);.
[0169] Since the electrical energy balance must be met, the power demand of the system must be met by the power generation, which is the sum of the AC output of the micro CHP unit and the power imported from the grid minus the power exported. This relationship is expressed in Equation (24). In the equation, μCHP,inv represents the efficiency of the inverter of the micro CHP unit. The thermal energy balance must also be established and is expressed in Equations (25)–(27). Equations (25) and (26) are another dual-purpose equation that defines the heat flow behavior with and without thermal storage. In the presence of thermal storage, Equation (25) indicates that the thermal demand can only be met by its associated discharge efficiency η HS,dch The thermal storage discharge is used to provide, otherwise, the thermal storage discharge heat H i In the presence of heat storage, equation (26) describes the charging heat H in the heat storage tank. i is the heat output of the micro CHP unit and boiler and its related efficiency η HS,ch In addition, considering the charging and discharging efficiency, the output heat of the above cogeneration components meets the heat demand. Equation (27) specifies the energy balance in heat storage, where hs represents the percentage of stored energy lost in each time step, (H i ) is the heat storage in the next time step. It should be noted that in the absence of heat storage, the heat storage is converted to the discharge heat H by equations (23), (25) and (27). i Since volume is a more common physical quantity than heat storage capacity, we use formula (28)
[24] Calculate the heat storage capacity in liters, where CP W is the specific heat of water at constant pressure.
[0170] η μCHP,inv ×E μCHP,i +E Imp,i -E EXP,i =E D,i (twenty four)
[0171]
[0172]
[0173]
[0174]
[0175] Among them, H i is the total heat stored up to the i-th hour (kWh); is the i-th hour in thermal storage (kWh); is the heat released in the i-th hour (kWh); H min is the minimum permissible storage energy in thermal storage (kWh); Con HS is the existence condition of the heat storage device (-), H D,I is the heat demand in hours (kWh); η HS , ch is the charging efficiency of thermal storage (%); η HS,dCH is the heat removal efficiency of the heat storage device (%); η μCHP,el The electrical efficiency in units (%); η μCHP,inv is the efficiency of the unit inverter (%); η μCHP Thermal efficiency in units (%); E exp,I is the electricity exported to the grid (kWh); E imp,I is the amount of electricity imported from the grid (kWh); H Du,I The heat stored for the ith hour (kWh); CP W is the specific heat of water at constant pressure (kJ / (kg.K)), E D,i is the electricity demand in hours (kWh), T max is the maximum temperature of the heat storage device (℃).
[0176] The general constraints of the load following strategy are as follows: Figure 3 As shown, Figure 3 This is a general constraint flow chart of the load following strategy of the present invention. This constraint is only applicable to the load following strategy, thereby determining the allocation of boilers and heat storage. The relationship between these constraints is as follows Figure 3 As shown in the flowchart;
[0177] First, determine whether If so, then If not, determine whether If so, set H B,i = 0, and continue to determine whether If so, then If not, then
[0178] like If not, set H Du,i = 0, and continue to determine whether If so, then If not, then
[0179] in, is the surplus of heat generated by the micro CHP unit, It is the deficiency of heat produced by the unit at each time step after supplying the heat demand, taking into account the efficiency of charge and discharge; is the possible charge of the thermal storage tank, is the possible discharge of the thermal storage tank at each time step, H D,I is the heat demand in hours (kWh), H B,i is the heat output of the gas boiler in the i-th hour (kWh), r H:P is the thermoelectric conversion ratio of CHP, η HS,ch is the charging efficiency of thermal storage (%), η HS,dCH is the heat removal efficiency of the heat storage device in %.
[0180] These parameters are obtained through the following equations:
[0181]
[0182]
[0183]
[0184] Among them, η HS,dch is the heat removal efficiency of the heat storage device, % μCHP Thermal efficiency in units (%), α HS is the heat storage loss per hour (%), r H:P is the heat-to-electricity conversion ratio of CHP, μCHP is micro combined heat and power;
[0185] The specific constraints of the load following strategy are as follows:
[0186] The operation strategies of the micro CHP unit under the following loads, namely, the electrical load following and thermal load following strategies, are specifically determined by this type of constraints. The relationship between these constraints is as follows: Figure 4 As shown, Figure 4This is a specific constraint flow chart of the load following strategy of the present invention.
[0187] First, determine whether the operation strategy is an electric load following operation strategy or a thermal load following operation strategy. If so, then E μCHP,i =E D,i / η μCHP,inv If not, then
[0188] For the heat load following strategy, determine whether If so, then E μCHP,i =H D,i / r H:P , if not, then
[0189] Step 3. Optimize the model data results; This model determines the optimal size and operation of the boiler, micro-CHP and thermal storage tank, as well as the power exchange with the grid, including the input and output of electrical energy, the total annual cost and greenhouse gas emissions.
[0190] Fuel cell based micro CHP systems have advantages over motor based systems such as higher efficiency, quieter operation, higher power to heat ratio, simple routine maintenance requirements and higher performance in partial load operation. In particular, proton exchange membrane fuel cell PEMFC is a promising technology because it has many other advantages such as high power density, fast start-up due to lower operating temperature and lower greenhouse gas emissions. Therefore, the present invention adopts proton exchange membrane fuel cell PEMFC as the adopted cogeneration technology and uses it as a general technology for the inverter of micro cogeneration unit.
[0191] The formula of the present invention is named as follows:
[0192] Formula naming table
[0193]
[0194]
[0195]
[0196] Example 3
[0197] Another embodiment of the present invention, as Figure 2 As shown, Figure 2 The diagram is a relationship diagram between the demand flexibility metrics of the present invention. In the diagram, the cogeneration system is responsible for providing the heat and electricity needs of the building.
[0198] As can be seen from the figure, the demand flexibility measurement system of the present invention consists of three main parts, including: boiler, micro cogeneration unit and thermal storage tank. The system is also connected to the public grid or microgrid through an electrical interface to exchange electrical energy.
[0199] The micro-CHP means that the system provides the heat and electricity needs of residential buildings. The demand flexibility measurement system includes: a boiler, a micro-CHP unit and a heat storage tank, wherein: the micro-CHP unit generates electricity and heat energy, wherein the electricity is transmitted to the power interface through the CHP converter and merged into the public power grid. The system is also connected to the public power grid or microgrid through the electrical interface to exchange electricity and finally deliver electricity to the power user. The generated heat energy is merged with the heat energy generated by the boiler into the heat storage tank to jointly supply heat to the heat energy user. Among them, there will be certain losses in electricity and heat energy.
[0200] In addition, based on the selected operation strategy, the functions of the above CHP components are determined by the central controller. The micro CHP unit is configured in the current general form, including DC-based and AC-based technologies. At the same time, these two technologies are implemented through DC / AC inverters. From the structure, it can be seen that the electrical and thermal efficiency of the micro CHP and the thermal efficiency of the boiler, the charging, discharging, and storage losses of the heat storage tank, and the discharge of the heat storage waste heat are all considered to be technical details that need to be paid attention to in the proposed system.
[0201] Example 4
[0202] Based on the same inventive concept, an embodiment of the present invention further provides a computer storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of a method for optimizing the operation of a building cogeneration system for improving the flexibility of a power grid as described in embodiments 1-3 are implemented.
[0203] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0204] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0205] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0206] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0207] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. A method for optimizing the operation of a building cogeneration system for improving the flexibility of a power grid, characterized by: The method includes quantifying building flexibility with different requirements and measuring the required flexibility, wherein the quantifying building flexibility with different requirements includes the following steps: Step 1. Acquisition and setting of external data; Step 2. Solving the optimization model; Step 3. Optimizing the amount of model data results; The optimization model constraints include: (1) general constraints for all strategies; (2) general constraints for load following strategies; (3) specific constraints for load following strategies; The objective function of the optimization model is to use the total annual cost TAC and the annual greenhouse gas production or greenhouse gas production, two independent optimization formulas as the optimization model; The objective function includes: (1) minimizing the annual total investment cost; (2) minimizing the annual greenhouse gas emissions; (3) minimizing the annual total investment cost and greenhouse gas emissions simultaneously; The total annual investment cost is TAC, which is the sum of the cost of natural gas and electricity imported each year; the associated network and annual operation and maintenance (O&M) costs less the annual revenue generated from exports and power generation, expressed as follows: TAC=TAC O&M +TAC El,Im +TAC O&M -Country Ex&Ge (1) TAC is the total annual investment cost ($), El,Im is the total cost of imported electricity per year ($), TAC O&M is the total annual operation and maintenance cost ($), TAR Ex&Ge Annual revenue generated for electricity generation; The total investment cost of the CHP components is amortized over the entire life cycle of the components and the investment cost of the CHP component P is annualized according to the following relationship: in, is the annual investment cost of component P, C P is the capital cost of component P (US$ / kW or US$ / L) LT P is the life of component P (years), i is the annual profit rate; The annualized total investment cost in formula (3) is the sum of the annualized investment costs, and has been considered for the boiler in formula (4), the micro-CHP unit in formula (5) and the heat storage tank in formula (6). This cost is obtained through the following relationship: Among them, TAC Invest is the total annual investment cost ($), is the annual investment cost of CHP unit (US$), is the annual investment cost of the gas boiler (US dollars), is the annual investment cost of the heat storage device (US dollars), C B is the capital cost of the gas boiler (US$ / kW), Sal μCHP μ is the ratio of the residual value of the CHP unit to the capital cost (%), μCHP is micro-CHP, Optimal capacity (size) for μCHP units (kW e) C HS is the capital cost of the thermal storage (US$ / L), CP W is the specific heat of water at constant pressure (kJ / (kg.K)), T max is the maximum temperature of the heat storage device (℃), H max is the maximum permissible storage energy in the thermal storage (kWh), is the annual investment cost of μCHP (US$ / kW); Formulas (7)-(9) represent the operating costs of the micro-CHP system. The boiler and the micro-CHP unit are the only users of natural gas. Formula (7) represents the annual cost of imported natural gas, Formula (8) represents the cost of importing electricity from the public grid, and Formula (9) represents the operation and maintenance costs of the boiler and the micro-CHP unit. Formula (10) represents the operating income of the system export and power generation, W i It is a weighted factor determined based on the results of the annual survey; Among them, TAC NG is the total annual natural gas cost ($), TAC El,Im is the total cost of imported electricity per year ($), B is the boiler, i is the annual profit rate, η B is the thermal efficiency of the gas boiler (%), μCHP is micro combined heat and power, TAC is O&M TAC is the operation and maintenance cost of boilers and micro CHP units. EX&Ge is the operating income of the system export and power generation, C imp is the import electricity price ($ / kWh), C NG is the natural gas price (US$ / kWh), H B,i is the heat output of the gas boiler in the i-th hour, E μCHP,I is the electrical output in μCHP units in the i-th hour (kWh), E exp,I is the electricity exported to the grid (kWh), E imp,I is the amount of electricity imported from the grid (kWh), η μCHP,el The electrical efficiency in units (%), η μCHP,inv is the efficiency of the unit inverter (%), η μCHP The unit of thermal efficiency (%), FIT Exp is the FITExp income ($ / kWh) of exported electricity, W i is the weighting factor representing the day (in hours), OM B is the operation and maintenance cost of the gas boiler ($ / kWh), OM μCHP is the operation and maintenance cost of the device ($ / kWh); The annual greenhouse gas emissions objective function is: Formula (11) is the annual greenhouse gas emissions, which is the sum of the annual greenhouse gas emissions caused by the consumption of imported natural gas and the annual grid-side greenhouse gas emissions caused by the generation of imported electricity from buildings minus the greenhouse gas emission substitution caused by the annual electricity output to the grid, expressed by formula (14); where formula (11) is the annual greenhouse gas generation, formula (12) is the annual greenhouse gas emissions, formula (13) is the electricity of buildings, and formula (14) is the greenhouse gas emission substitution; The relationship is as follows: <h2 style=";text-align:left;direction:ltr">GHGG=GHGG<h2 style=";text-align:left;direction:ltr"> NG <h2 style=";text-align:left;direction:ltr"> +GHGG<h2 style=";text-align:left;direction:ltr"> El,Im <h2 style=";text-align:left;direction:ltr"> -GHGS<h2 style=";text-align:left;direction:ltr"> El,Ex <h2 style=";text-align:left;direction:ltr"> (11) Where GHGG is the amount of greenhouse gas produced (kg), GHGG NG Greenhouse gas produced by natural gas (kg), GHGG El,Im Greenhouse gas for grid electricity generation (kg), GHGS ElEx =GHG emissions displaced by exported electricity (kg), EF NG is the emission coefficient of natural gas (kg / kWh), W i is the weighting coefficient of the representative day (in hours), H B,I is the heat output of the gas boiler (i-th hour) (kWh), η B is the thermal efficiency of the gas boiler (%), E μCHP,I is the electrical output in μCHP units in the i-th hour (kWh) η μCHP,el The electrical efficiency (%) is in units of EF El is the grid electricity emission coefficient (kg / kWh), E imp,I is the amount of electricity imported from the grid (kWh); the annual total cost and greenhouse gas emission target are expressed as follows: MinTAC Z (15) GHGG z ≤ε z (16) Where z = 1, 2, 3…m; m is the number of solution points assumed in the Pareto diagram; The optimization model constraints are implemented by the MILP mixed integer linear programming algorithm, which uses binary decision variables to reconstruct or convert propositional logic statements into linear constraint systems to form the required logical constraints. The key transformation of such transformation is expressed as follows: If δ′ k =1, then ∑ j a kj x j -b k ≤0≡∑ j a kj x j -b k ≤U k (1-δ′ k ) (17) If δ′ k =1, then ∑ j a kj x j -b k ≥0≡∑ j a kj x j -b k ≥L k (1-δ′ k ) (18) If δ′ k =1, then Among them, L k and U k They represent the upper and lower bounds of the kth linear constraint respectively: L k ≤∑ j a kj x j -b k ≤U k (20) Among them, δ′ k is the indicator variable, a kj is the constraint coefficient, x j is a continuous variable, b k is the adjustment amount; The general constraints for all operation strategies are set as follows: Considering the minimum and maximum output of the boiler and the micro-CHP unit at each time step, the corresponding limits of the boiler and the micro-CHP unit are expressed in Equations (21) and (22), respectively. The allowable range of energy storage is its maximum capacity H max With the maximum temperature T max Correlation, minimum value H min With the minimum temperature T min related; when selecting the temperature change, it is assumed that the water volume of the thermal storage tank is constant, the stored energy is proportional to its temperature, and its minimum value is equal to the allowable range of energy storage expressed by equation (23); the boiler is a fixed cogeneration component in all system structures, and the presence of the micro CHP unit and heat storage is determined by two binary variables Con μCHP ,Con HS As determined by external data, a dual-purpose equation is formed; where "1" represents the existence and "0" represents the absence of the cogeneration component; in the parameters represented, the variable i represents the value of this parameter in the i-th time step, set to 1 hour: Con HS ×T min / T max ×H max ≤H i ≤Con HS ×H max (23) Among them, Con μCHP is the storage condition of the unit (-); Con HS is the storage condition of the thermal storage device (-); Optimal capacity (size) of the unit (kWe); T max is the maximum temperature of the heat storage device (°C); T min is the minimum heat storage temperature (℃); B is the boiler, H min is the minimum permissible storage energy in the heat storage (kWh); H D,I is the heat demand in hours (kWh); H max is the optimal capacity (size) of heat storage (kWh); H B,I is the heat output of the gas boiler (i hour) (kWh); H i is the total heat stored up to the i-th hour (kWh); The power demand of the system is met by the power generation, i.e., the sum of the AC output of the micro CHP unit and the power imported from the grid minus the output power, as expressed by equation (24), where μCHP,inv represents the efficiency of the inverter of the micro CHP unit; the thermal energy balance is established, as expressed by equations (25)-(27); equations (25) and (26) are another dual-purpose equation that defines the heat flow behavior with and without thermal storage; in the presence of thermal storage, equation (25) indicates that the heat demand can only be met by its associated discharge efficiency η HS,dch The thermal storage discharge is used to provide, otherwise, the thermal storage discharge heat H i is zero; in the case of heat storage, equation (26) represents the charging heat H in the heat storage tank i ) is the heat output of the micro CHP unit and boiler and its related efficiency η HS,ch Considering the charging and discharging efficiency, the output heat of the above cogeneration components meets the heat demand. Equation (27) specifies the energy balance in heat storage, where hs represents the percentage of energy storage lost in each time step, H i is the heat storage in the next time step. In the absence of heat storage, H is converted to i The limit is zero; the heat storage capacity in liters is calculated using formula (28), where CP W is the specific heat of water at constant pressure: η μCHP,inv ×And μCHP,i +E Imp,i -AND EXP,i =And D,i (24) Among them, H i is the total heat stored up to the i-th hour (kWh); is the i-th hour in thermal storage (kWh); is the heat released in the i-th hour (kWh); H min is the minimum permissible storage energy in thermal storage (kWh); Con HS is the existence condition of the heat storage device (-), H D,I is the heat demand in hours (kWh); η HS,CH is the charging efficiency of thermal storage (%); η HS,dCH is the heat removal efficiency of the heat storage device (%); η μCHP,el The electrical efficiency in units (%); η μCHP,inv is the efficiency of the unit inverter (%); η μCHP Thermal efficiency in units (%); E exp,I is the electricity exported to the grid (kWh); E imp,I is the amount of electricity imported from the grid (kWh); H Du,I The heat stored for the ith hour (kWh); CP W is the specific heat of water at constant pressure (kJ / (kg.K)), E D,i is the electricity demand in hours (kWh), T max is the maximum temperature of the heat storage device (℃); The general constraints of the load following strategy, which apply to load following strategies, include: Determine whether If so, then If not, determine whether If so, set H B,i = 0, and continue to determine whether If so, then If not, then like If not, set H Du,i = 0, and continue to determine whether If so, then If not, then in, is the surplus of heat generated by the micro CHP unit, It is the deficiency of heat produced by the unit at each time step after supplying the heat demand, taking into account the efficiency of charge and discharge; is the possible charge of the thermal storage tank, is the possible discharge of the thermal storage tank at each time step, H D,I is the heat demand in hours (kWh), H B,i is the heat output of the gas boiler in the i-th hour (kWh), r H:P is the thermoelectric conversion ratio of CHP, η HS,ch is the charging efficiency of thermal storage (%), η HS,dCH is the heat removal efficiency of the heat storage device (%); Obtained by the following equation: Among them, η HS,dch is the heat removal efficiency of the heat storage device, % μCHP Thermal efficiency in units (%), α HS is the heat storage loss per hour (%), r H:P is the heat-to-electricity conversion ratio of CHP, μCHP is micro combined heat and power; Specific constraints on the load following strategy include: Determine whether the operation strategy is an electric load following operation strategy or a thermal load following operation strategy. If so, then E μCHP,i =E D,i / η μCHP,inv If not, then For the heat load following strategy, determine whether If so, then E μCHP,i =H D,i / r H:P , if not, then The optimization model data results determine the optimal size and operation of the boiler, micro-CHP and thermal storage tank, as well as the power exchange with the grid, including the input and output of electrical energy, the total annual cost and greenhouse gas emissions; The demand flexibility measurement system includes: a boiler, a micro combined heat and power unit and a heat storage tank, wherein: the micro combined heat and power unit generates electricity and heat energy during operation, wherein the electricity is transmitted through a combined heat and power converter connected to a power interface and fed into a public power grid; the system is also connected to a public power grid or a microgrid through an electrical interface to exchange electric energy, and finally delivers electricity to power users; the generated heat energy is fed together with the heat energy generated by the boiler into a heat storage tank to jointly supply heat to heat energy users; based on the selected operating strategy, the functions of the above-mentioned combined heat and power components are determined by a central controller; the micro combined heat and power unit includes DC-based and AC-based technologies, which are implemented through a DC / AC inverter.
2. A computer storage medium, characterized in that: The computer storage medium stores a computer program, which, when executed by a processor, implements the steps of a method for optimizing the operation of a building cogeneration system for improving grid flexibility as described in claim 1.
