An integrated energy system supply and demand collaborative decision-making method, device and storage medium

By constructing a carbon responsibility prediction model that integrates time-series feature extraction and gradient boosting regression, the problem of large computational load in carbon emission responsibility in supply and demand coordination optimization is solved, and real-time updates of carbon emission responsibility and coordination of economic efficiency and low-carbon practices between supply and demand sides are realized.

CN123159776APending Publication Date: 2026-11-24XI AN JIAOTONG UNIV +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611346092.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-01
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

In the process of supply and demand synergistic optimization of integrated energy systems, the calculation of carbon emission responsibility involves a large amount of computation due to complex physical modeling and iterative calculations, making it difficult to update in a timely manner during the iteration process. This limits the online application of carbon emission responsibility information in supply and demand synergistic optimization.

Method used

A carbon responsibility prediction model integrating time-series feature extraction and gradient boosting regression is constructed. The operational feature dataset and two-sided carbon emission responsibility samples are obtained through energy flow calculation and energy flow-carbon flow analysis. The carbon responsibility prediction model is trained and embedded into a two-layer supply and demand collaborative decision-making model, with real-time updates of carbon emission responsibility information as the interaction variable between the upper and lower layers.

Benefits of technology

It enables real-time updates and synchronous feedback of carbon emission responsibility information, reduces the burden of redundant calculations in supply and demand coordination optimization, and improves the rationality of cross-time period carbon emission responsibility calculation and the coordination of economy and low carbon efficiency between supply and demand.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123159776A_ABST
    Figure CN123159776A_ABST
Patent Text Reader

Abstract

This application discloses a method, device, and storage medium for coordinated supply and demand decision-making in integrated energy systems, relating to the field of low-carbon operation technology for integrated energy systems. The method includes: acquiring operational data and equipment parameters of the integrated energy system; performing energy flow calculations and current-carbon flow analysis based on the operational data and equipment parameters to obtain an operational feature dataset and two-sided carbon emission responsibility samples; constructing a carbon responsibility prediction model integrating time-series feature extraction and gradient boosting regression, training it with the operational feature dataset as input features and the two-sided carbon emission responsibility samples as output labels; constructing a two-layer coordinated supply and demand decision-making model embedded with a carbon responsibility allocation module, using the real-time output of the two-sided carbon emission responsibility from the carbon responsibility allocation module as the upper and lower layer information interaction variables; performing iterative solutions for upper and lower layer interaction to output a coordinated supply and demand optimization strategy. This helps reduce the burden of repetitive calculations of carbon emission responsibility during the iteration process and achieves synchronous updates of carbon emission responsibility information and coordinated supply and demand decision-making.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of low-carbon operation technology of integrated energy systems, and in particular to a method for coordinated supply and demand decision-making in integrated energy systems, electronic devices, and computer-readable storage media. Background Technology

[0002] Integrated energy systems can achieve multi-energy complementarity and energy cascade utilization. Their low-carbon operation depends on the reasonable division of carbon emission responsibility in the system: carbon emissions generated during the energy supply process are shared between the system side and the user side. The resulting carbon emission responsibility information can be used as a price signal or constraint to guide the system side to optimize equipment operation and the user side to adjust energy consumption behavior, thereby achieving coordinated emission reduction on both the supply and demand sides.

[0003] In the process of supply and demand synergistic optimization of integrated energy systems, the system-side operation strategy and the user-side response behavior require multiple rounds of interactive iterations to achieve synergy. During this iteration, equipment output, energy conversion relationships, and energy storage status continuously change with operating conditions, causing the distribution of carbon emission responsibility to change accordingly. Therefore, each iteration needs to obtain carbon emission responsibility that matches the current operating state. In related technologies, the calculation of carbon emission responsibility is usually based on physical modeling of energy flow, carbon flow, and carbon flow. This involves modeling and calculating the input-output relationships and loss characteristics of various energy conversion devices one by one to obtain the allocation result of carbon emission responsibility. This type of physical calculation process involves a large number of devices and complex coupling relationships, resulting in a long calculation time per cycle. When it is repeatedly executed in multiple iterations of supply and demand synergistic optimization, the overall computational load is large, making it difficult to update carbon emission responsibility in a timely manner during the iteration process, thus limiting the online application of carbon emission responsibility information in supply and demand synergistic optimization. Summary of the Invention

[0004] To this end, this application provides a method for integrated energy system supply and demand coordination decision-making, an electronic device, and a computer-readable storage medium, which helps to obtain the dual carbon emission responsibility that matches the operating status in a timely manner during the iterative process of supply and demand coordination optimization, and provides support for supply and demand dual-side coordination optimization driven by carbon emission responsibility information.

[0005] To achieve the above objectives, the technical solution adopted in this application is as follows: A method for coordinated supply and demand decision-making in an integrated energy system is provided, including: Acquire operational data and equipment parameters of the integrated energy system; Based on the aforementioned operating data and equipment parameters, energy flow calculation and efficiency-carbon flow analysis are performed to obtain an operating characteristic dataset and a two-sided carbon emission responsibility sample. The efficiency-carbon flow analysis distributes the input carbon emissions to each output energy flow according to the equipment efficiency and distributes the carbon emissions corresponding to the equipment efficiency loss to the corresponding equipment body. A carbon responsibility prediction model integrating time-series feature extraction and gradient boosting regression is constructed. The model is trained by using the running feature dataset as input features and the corresponding two-sided carbon emission responsibility samples as output labels. A two-layer supply and demand collaborative decision-making model is constructed, which is embedded with a carbon responsibility allocation module. The carbon responsibility allocation module is the carbon responsibility prediction model that has been trained. The upper layer of the two-layer supply and demand collaborative decision-making model optimizes the system operation strategy with the goal of maximizing the overall system benefits and minimizing the system-side carbon emissions. The lower layer of the two-layer supply and demand collaborative decision-making model optimizes the user-side energy consumption behavior with the goal of minimizing the user's operating costs. The carbon emission responsibilities of both sides are output in real time by the carbon responsibility allocation module as the information interaction variables between the upper and lower layers. The two-layer supply and demand collaborative decision-making model is solved iteratively by interaction between the upper and lower layers to output a supply and demand collaborative optimization strategy.

[0006] In some embodiments, the step of performing energy flow calculation and current-carbon flow analysis based on the operating data and equipment parameters to obtain an operating characteristic dataset and a two-sided carbon emission responsibility sample includes: Based on the aforementioned operational data and equipment parameters, an optimized scheduling model is constructed and solved to minimize system scheduling costs while satisfying multi-energy flow balance constraints and equipment operation constraints, thereby obtaining the equipment operating status and energy flow distribution for each time period. Based on the equipment operating status and energy flow distribution in each time period, a flow analysis is performed to obtain the flow values ​​of each equipment's input and output energy flow, equipment flow loss, and equipment flow efficiency. By combining the initial carbon emission intensity of each energy input, the input carbon emission is transferred along the energy conversion path. Based on the proportion of each output energy flow and the equipment efficiency, the input carbon emission is allocated to each output energy flow, and the carbon emission corresponding to the equipment loss is allocated to the corresponding equipment body, so as to obtain the load carbon emission intensity, system-side carbon emission responsibility and user-side carbon emission responsibility of each load node. The operating status of the equipment, energy flow distribution, equipment efficiency, equipment loss, load demand and environmental parameters for each time period are used to form an operating characteristic dataset, and the corresponding load carbon emission intensity, system-side carbon emission responsibility and user-side carbon emission responsibility are used to form a two-sided carbon emission responsibility sample.

[0007] In some embodiments, in the step of transferring input carbon emissions along the energy conversion path, for energy storage devices, during charging, the product of charging power and charging carbon emission intensity is accumulated to obtain the carbon content of the energy storage device, and during discharging, the discharging carbon emission intensity is determined according to the carbon charge rate, wherein the carbon charge rate is the ratio of the cumulative carbon content to the cumulative electricity in the energy storage device.

[0008] In some embodiments, the step of constructing a carbon responsibility prediction model that integrates time-series feature extraction and gradient boosting regression, and training it using the running feature dataset as input features and the corresponding two-sided carbon emission responsibility samples as output labels, to obtain the trained carbon responsibility prediction model includes: The temporal input features in the running feature dataset are embedded and mapped and superimposed with time position encoding. The temporal correlation features between different times are extracted through a multi-head self-attention mechanism to obtain a temporal feature vector. The time-series feature vector is fused with the physical features in the runtime feature dataset to obtain a comprehensive feature vector; The comprehensive feature vector is input into the gradient boosting regression model, and the two-sided carbon emission responsibility samples are used as output labels for training. The mapping relationship between the comprehensive feature vector and the two-sided carbon emission responsibility is established, and the trained carbon responsibility prediction model is obtained.

[0009] In some embodiments, the input features in the operating feature dataset include device operating status, device input and output energy flow, device efficiency, device losses, load demand, and environmental parameters. The dual-side carbon emission responsibility sample includes load carbon emission intensity, system-side carbon emission responsibility, and user-side carbon emission responsibility.

[0010] In some embodiments, the upper layer of the two-layer supply and demand collaborative decision-making model optimizes the system operation strategy with the goal of maximizing the overall system benefits and minimizing system-side carbon emissions. The overall system benefits are energy sales revenue minus energy purchase costs and operating costs. The system operation strategy includes the hourly output of each device.

[0011] In some embodiments, when the lower layer optimizes user-side energy consumption behavior with the goal of minimizing user operating costs, the user operating costs include demand response costs, carbon trading costs, and green certificate trading revenue. The lower layer combines a tiered carbon trading mechanism, a green certificate-carbon joint trading mechanism that converts green certificates into carbon allowances, and a comprehensive demand response that includes load reduction, load transfer, and load substitution to optimize user-side energy consumption behavior.

[0012] In some embodiments, the step of performing iterative solving of the two-layer supply and demand collaborative decision-making model to output a supply and demand collaborative optimization strategy includes: The upper layer of the two-layer supply and demand collaborative decision-making model is solved using a multi-objective evolutionary algorithm to obtain multiple candidate solutions; Input the equipment operating status, energy flow distribution, energy analysis data and load information corresponding to each candidate solution into the carbon responsibility allocation module to obtain the load carbon emission intensity corresponding to each candidate solution; The current optimal solution is selected from the multiple candidate solutions using a multi-attribute decision-making method, and the load carbon emission intensity corresponding to the current optimal solution is input as a known parameter into the lower layer of the two-layer supply and demand collaborative decision-making model. Solve the lower layer to obtain the user-side demand response strategy and feed it back to the upper layer. After updating the load constraints and objective function of the upper layer, proceed to the next iteration. The iteration terminates when the convergence condition is met or the maximum number of iterations is reached, and the supply and demand collaborative optimization strategy is output.

[0013] This application also provides an electronic device, comprising: a memory having a computer program stored thereon; and a processor for executing the computer program in the memory to implement the steps of the method as described above.

[0014] This application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method as described above.

[0015] In summary, the beneficial effects of this application are as follows: 1. By constructing a carbon responsibility prediction model that integrates time-series feature extraction and gradient boosting regression, the model is trained using operational feature datasets obtained from energy flow calculation and efflux-carbon flow analysis, along with samples of both sides of carbon emission responsibility. The trained carbon responsibility prediction model is then embedded as a carbon responsibility allocation module into a two-layer supply-demand collaborative decision-making model. This allows the two-side carbon emission responsibility corresponding to each candidate solution to be directly output by model inference during the iterative solution process, without the need to repeatedly perform physical calculations of energy flow, efflux, and carbon flow. Thus, the two-side carbon emission responsibility is updated in real time as an information interaction variable between the upper and lower layers during the iteration process, reducing the redundant calculation burden of carbon emission responsibility calculation in supply-demand collaborative optimization and helping to achieve synchronous updates of carbon emission responsibility information and supply-demand collaborative decision-making.

[0016] 2. For energy storage devices with cross-time period energy transfer characteristics, the carbon content of the energy storage device is calculated by multiplying the charging power and the charging carbon emission intensity during charging, and the carbon emission intensity during discharging is determined based on the carbon charge rate. This allows the carbon emissions carried by the energy storage device during the charge-discharge cycle to be continuously transferred between adjacent time periods. This avoids the deviation in responsibility allocation caused by treating energy storage discharge as a zero-carbon power source or including charging carbon emissions all at once, and helps to improve the rationality of carbon emission responsibility calculation under cross-time period operating conditions.

[0017] 3. Using the real-time output of the carbon responsibility prediction model after training as the interaction variable between the upper and lower layers, the changes in the system's operating status can be reflected in the carbon trading costs on the user side, and the adjustment of the load by the user's demand response can be fed back into the optimization process on the system side. Thus, while taking into account the overall benefits of the system and the user's operating costs, it promotes the coordinated improvement of the economic efficiency and low carbon emissions of both the supply and demand sides. Attached Figure Description

[0018] The accompanying drawings, which form part of this application, are used to provide a further understanding of this application. The illustrative embodiments and descriptions of this application are used to explain this application and do not constitute an undue limitation of this application. In the drawings: Figure 1 This is a first flowchart illustrating the integrated energy system supply and demand collaborative decision-making method according to one embodiment of this application; Figure 2 This is a second flowchart illustrating the integrated energy system supply and demand collaborative decision-making method according to one embodiment of this application; Figure 3 This is a schematic diagram of the Transformer-XGBoost model framework for a comprehensive energy system supply and demand collaborative decision-making method provided in one embodiment of this application; Figure 4 This is a schematic diagram of the third process of the integrated energy system supply and demand collaborative decision-making method according to one embodiment of this application; Figure 5 This is a schematic diagram of the framework of a two-layer supply and demand collaborative decision-making model provided in one embodiment of this application; Figure 6 This is a flowchart illustrating the solution process of a two-layer supply and demand collaborative decision-making model provided in one embodiment of this application; Figure 7 This is a schematic diagram of the fourth process of the integrated energy system supply and demand collaborative decision-making method according to one embodiment of this application. Detailed Implementation

[0019] To enable those skilled in the art to better understand the technical solutions of this application, the technical solutions of this application will be further described below in conjunction with the accompanying drawings and embodiments.

[0020] The integrated energy system supply and demand coordination decision-making method provided in this application embodiment is applied to integrated energy systems containing multiple energy forms such as electricity, heat, and cooling, such as park-level integrated energy systems. This integrated energy system covers the entire process of energy input, energy production, energy conversion, energy storage, and end-user consumption, including: Energy input links: Purchased electricity, natural gas, and renewable energy sources such as wind power and photovoltaics; Energy production processes: energy production equipment such as wind turbines, photovoltaic systems, and gas turbines; Energy conversion stage: energy conversion equipment such as electric refrigeration / heat pumps and absorption chillers; Energy storage: various types of energy storage equipment, including electrical energy storage, thermal energy storage, and cold energy storage; End-user consumption segment: electricity load, heat load, and cooling load of end users.

[0021] In this application environment, the system side (integrated energy system operator) is responsible for optimizing the output of each device, while the user side (load aggregator) is responsible for adjusting user energy consumption behavior based on carbon emission information and price signals. The method in this application can be deployed in the computing equipment of the system-side energy management platform or dispatch center: this computing equipment acquires the operating data and equipment parameters of the integrated energy system, performs offline energy flow calculations, energy flow-carbon flow analysis, and trains a carbon responsibility prediction model; in the online decision-making stage, the trained carbon responsibility prediction model is embedded as a carbon responsibility allocation module into a two-layer supply-demand collaborative decision-making model, and through iterative interaction between the upper and lower layers, it outputs a supply-demand collaborative optimization strategy to guide the system-side device output and user-side energy consumption behavior.

[0022] Reference Figure 1 One embodiment provides a method for coordinated supply and demand decision-making in an integrated energy system, the method comprising the following steps S1 to S5.

[0023] S1: Obtain operational data and equipment parameters of the integrated energy system.

[0024] S2: Based on operational data and equipment parameters, energy flow calculations and efficiency-carbon flow analysis are performed to obtain an operational characteristic dataset and a two-sided carbon emission responsibility sample. Specifically, the efficiency-carbon flow analysis allocates input carbon emissions to each output energy flow based on equipment efficiency, and allocates carbon emissions corresponding to equipment efficiency losses to the corresponding equipment itself.

[0025] S3: Construct a carbon responsibility prediction model that integrates time-series feature extraction and gradient boosting regression. The model is trained by using the running feature dataset as input features and the corresponding two-sided carbon emission responsibility samples as output labels.

[0026] S4: Construct a two-layer supply and demand collaborative decision-making model with an embedded carbon responsibility allocation module, which is a trained carbon responsibility prediction model. The upper layer of the two-layer supply and demand collaborative decision-making model optimizes system operation strategies with the objectives of maximizing overall system benefits and minimizing system-side carbon emissions. The lower layer optimizes user-side energy consumption behavior with the objective of minimizing user operating costs. The carbon emission responsibilities output in real-time by the carbon responsibility allocation module are used as the information interaction variables between the upper and lower layers.

[0027] S5: Perform interactive iterative solutions between the upper and lower layers of the two-layer supply and demand collaborative decision-making model to output a supply and demand collaborative optimization strategy.

[0028] In this embodiment, firstly, offline carbon emission responsibility samples, taking into account energy quality differences and conversion losses, are obtained through energy flow calculation and carbon flow-energy flow analysis. Then, a carbon responsibility prediction model is trained using these samples. The trained carbon responsibility prediction model is then embedded as a carbon responsibility allocation module into a two-layer supply-demand collaborative decision-making model. This allows the two-sided carbon emission responsibility to be updated in real time during the iterative process between the upper and lower layers and to serve as an information interaction variable. Thus, in the supply-demand collaborative optimization, the impact of system-side operating status and user-side response on the distribution of carbon emission responsibility is reflected simultaneously. The specific implementation of each step is described in detail below.

[0029] In one embodiment, taking a certain park's integrated energy system as an example, the operational data obtained in step S1 includes annual wind and solar power output data, load time series data, meteorological forecast data, and energy price data; the equipment parameters include the capacity and operational characteristic parameters of energy production equipment, energy conversion equipment, and energy storage equipment.

[0030] Specifically, operational data may include: hourly load data for electricity, heat, and cooling; wind power and solar power output data; weather forecast data; and price data such as time-of-use electricity prices, gas prices, grid connection electricity prices, and heat prices. Equipment parameters may include: capacity and efficiency parameters of equipment such as gas turbines, absorption chillers, and electric refrigeration / heat pumps; and capacity and charge / discharge parameters of electric, heat, and cooling energy storage equipment. The sampling interval for wind and solar power output data and load data can be 1 hour, and one scheduling cycle can be 24 hours.

[0031] Annual data from different sources are subjected to time scale unification, outlier detection, missing value correction, and normalization to form a time-series dataset that meets the requirements of subsequent optimization and scheduling, serving as the basic dataset for the integrated energy system.

[0032] It should be noted that the equipment composition, data sampling interval and scheduling cycle of the above-mentioned integrated energy system in the park are only examples. Those skilled in the art can select other equipment combinations and data granularities according to actual application scenarios, as long as the acquired data can support subsequent energy flow calculation, carbon flow analysis and model training.

[0033] In one embodiment, step S2 may include steps S201 to S204, referring to... Figure 2 .

[0034] S201: Based on the aforementioned operational data and equipment parameters, construct and solve an optimized scheduling model that aims to minimize system scheduling costs while satisfying multi-energy flow balance constraints and equipment operation constraints, thereby obtaining the equipment operating status and energy flow distribution for each time period. Details are as follows: Based on preprocessed operational data and equipment parameters, an optimal scheduling model is constructed with the objective of minimizing system scheduling cost while satisfying multi-energy flow balance constraints and equipment operation constraints. The objective function of the optimal scheduling model is:

[0035] In the formula, C ope The dispatch cost of the integrated energy system is [amount in yuan]. C fuel , C main These are the system energy purchase cost and operating cost, respectively, in yuan.

[0036] Equipment operation constraints include equipment start-up and shutdown constraints, equipment input-output constraints, and energy storage operation constraints. Among these, the equipment characteristic models involved in the input-output constraints of equipment such as gas turbines, absorption chillers, and electric refrigeration / heat pumps are as follows:

[0037]

[0038]

[0039]

[0040] In the formula, P GT,t The power output of the gas turbine is expressed in kW. F GT,t The amount of natural gas consumed by the gas turbine, in m³; q gas The calorific value of natural gas is expressed in kWh / m³. or e,GT,t The power generation efficiency of the gas turbine; Q GT,t For the high-temperature flue gas waste heat of the gas turbine, kW; or h,GT,t This refers to the waste heat efficiency of the gas turbine. Q AC / H,t For absorption chillers, the cooling / heating capacity is kW; or AC / H,t The refrigeration / heating efficiency of the absorption chiller; Q EC / H,t For the cooling / heating capacity of electric refrigeration / heat pumps, kW; P EC / H,t The power consumption of electric refrigeration / heat pumps; or EC / H,t This refers to the cooling / heating efficiency of electric refrigeration / heat pumps.

[0041] Energy storage operation constraints include energy storage state of charge constraints and charge / discharge constraints, and the energy storage operation model involved is as follows:

[0042] In the formula, PES,t The energy state of energy storage is expressed in kWh. P ES,cha,t Charging / heat storage power, kW; P ES,dis,t The discharge / heat release power is expressed in kW. or ES,cha For charging / heat storage efficiency; or ES,dis For discharge / heat release efficiency; P ES,0 The initial energy state, in kWh; or ES,loss This refers to the natural loss rate of the equipment. st For charging / discharging status indication; Δ t The duration is 1 hour in this embodiment.

[0043] Multi-energy flow balance constraints include electrical power balance constraints and thermal / cold power balance constraints:

[0044]

[0045] In the formula, P WT,t The power output of the wind turbine is expressed in kW. P PV,t Photovoltaic power generation, in kW; P buy,t , P sell,t These represent the power purchased from and sold to the grid by the integrated energy system operator, respectively, in kW; P EES,cha,t The charging power of the battery, in kW; P EES,dis,t The discharge power of the battery is expressed in kW. Q TES,cha,t The thermal storage capacity of the heat storage tank is expressed in kW. Q TES,dis,t The heat release power of the heat storage tank is expressed in kW. P e,t , Q h / c,t These represent the electrical load and heating / cooling load on the user side, respectively, in kW.

[0046] An optimization solver is used to solve the above-mentioned optimization scheduling model to obtain the equipment operating status, equipment output, and system energy flow distribution for each time period. The optimization solver can be a commercial solver such as Gurobi, or any other solver capable of solving this type of optimization model.

[0047] S202: Based on the equipment operating status and energy flow distribution at each time period, perform energy flow analysis to obtain the energy flow values ​​of each device's input and output, equipment energy loss, and equipment energy efficiency. Specifically: Based on the equipment operating status and energy flow distribution obtained in step S201, efflux analysis is performed to calculate the efflux values ​​corresponding to the input and output energy flows of each device, as well as the efflux losses during the energy conversion process, thereby obtaining the efflux transfer relationships between different devices and different energy flows within the integrated energy system. The efflux value of each energy flow is determined by the energy of the energy flow and the corresponding energy level coefficient, with the energy level coefficient characterizing the energy level differences between different grades of energy.

[0048] The backflow model of a gas turbine is:

[0049]

[0050]

[0051]

[0052] In the formula, Ex in,GT,t , Ex e,GT,t , Ex h,GT,t , Ex loss,GT,t These are the input power (kW), output electrical power (kW), output heat power (kW), and loss power (kW) of the gas turbine. l gas , l e , l h,GT These are the energy level coefficients for natural gas, gas turbine power generation, and gas turbine waste heat, respectively.

[0053] The backflow model of the absorption turbine unit is:

[0054]

[0055]

[0056] In the formula, Ex in,AC / H,t , Ex h,AC / H,t , Ex loss,AC / H,t These are the input kW, output kW, and loss kW of the absorption turbine unit. l h,AC / H,t This is the energy level coefficient for heat generation in absorption chillers.

[0057] The backflow model for electric refrigeration / heat pumps is:

[0058]

[0059]

[0060] In the formula, Ex in,EC / H,t , Ex h,EC / H,t , Ex loss,EC / H,t These are the input (kW), output (kW), and loss (kW) of the electric refrigeration / heat pump. l h,EC / H,t The energy level coefficient for heat / cold generation by electric refrigeration / heat pump.

[0061] Based on the above flow model, the flow efficiency and loss rate of each device are obtained.

[0062] The power generation efficiency, heat generation efficiency, and energy loss rate of a gas turbine are:

[0063]

[0064]

[0065] In the formula, f e,GT,t , f h,GT,t , f loss,GT,t These are the efficiency and loss rate of the gas turbine for generating electricity and heat, respectively.

[0066] The heat generation efficiency and heat loss rate of the absorption chiller are:

[0067]

[0068] In the formula, f h,AC / H,t , f loss,AC / H,t These represent the heat generation efficiency and heat loss rate of the absorption chiller, respectively.

[0069] The heat generation efficiency and heat loss rate of electric refrigeration / heat pumps are:

[0070]

[0071] In the formula, fh,EC / H,t , f loss,EC / H,t These represent the heat generation efficiency and heat loss rate of electric refrigeration / heat pumps, respectively.

[0072] S203: Combining the initial carbon emission intensity of each energy input, the input carbon emissions are transferred along the energy conversion path. Based on the percentage of negative values ​​in each output energy flow and the equipment's negative efficiency, the input carbon emissions are allocated to each output energy flow. Furthermore, the carbon emissions corresponding to equipment negative losses are allocated to the corresponding equipment itself, thus obtaining the load carbon emission intensity, system-side carbon emission responsibility, and user-side carbon emission responsibility for each load node. Details are as follows: Based on the initial carbon emission intensity corresponding to each energy input, the system input carbon emissions are transferred along the energy conversion path. For the effective energy output of the equipment, the input carbon emissions are allocated to each output energy flow according to the proportion of the energy loss of each output energy flow and the equipment energy efficiency. For the energy loss generated during equipment operation, the carbon emissions corresponding to the energy loss are allocated to the equipment itself that caused the loss, realizing the carbon emission responsibility allocation that takes into account energy quality differences and conversion losses, and obtaining the carbon emission responsibility of each equipment, each energy flow node, and each load node.

[0073] The proportions of carbon emission responsibility allocated to the gas turbine itself, including the electricity and heat output from the gas turbine, are as follows:

[0074]

[0075]

[0076] In the formula, k e,GT,t , k h,GT,t , k GT,t These represent the proportions of electricity and heat output from the gas turbine, and the proportion of carbon emission responsibility allocated to the turbine itself.

[0077] The ratio of heat output from the absorption chiller to the carbon emission liability allocated to the absorption chiller itself is:

[0078]

[0079] In the formula, k h,AC / H,t , k AC / H,t These are the heat output of the absorption chiller and the proportion of carbon emission responsibility allocated to itself, respectively.

[0080] The ratio of the heat output from the electric refrigeration / heat pump to the carbon emission responsibility allocated to the electric refrigeration / heat pump itself is as follows:

[0081]

[0082] In the formula, k h,EC / H,t , k EC / H,t These are the proportions of heat output from electric refrigeration / heat pumps and the proportion of carbon emission responsibility allocated to the user.

[0083] Renewable energy equipment (wind turbines, photovoltaics) does not generate direct carbon emissions during operation and is treated as zero-carbon emission equipment.

[0084] Based on the aforementioned carbon emission responsibility ratios, carbon emission flow models for each piece of equipment are established. The carbon emission flow model for the gas turbine and the results of allocating carbon emission responsibility for its output electricity, output heat, and its own emissions are as follows:

[0085]

[0086]

[0087]

[0088] In the formula, E in,GT,t , E e,GT,t , E h,GT,t , E GT,t These are the gas turbine's input and output electricity, output heat, and carbon emissions allocated to the turbine itself, in kg; r gas The carbon emission intensity of natural gas is expressed as kgCO2 / kWh.

[0089] The carbon emission flow model of the absorption turbine unit and the results of the carbon emission responsibility allocation based on the output heat are as follows:

[0090]

[0091]

[0092] In the formula, E in,AC / H,t , E h,AC / H,t , E AC / H,t These represent the input and output heat / cooling of the absorption chiller and its carbon emissions allocated to itself, respectively, in kg.

[0093] The carbon emission flow model and the results of the carbon emission responsibility allocation for the output heat and its own carbon emissions of the electric refrigeration / heat pump are as follows:

[0094]

[0095]

[0096] In the formula, E in,EC / H,t , E h,EC / H,t , E EC / H,t These are the input and output heat / cold of the electric refrigeration / heat pump, and the carbon emissions allocated to the pump itself, respectively, in kg; r in,EC / H,t The carbon emission intensity of electricity consumed by electric refrigeration / heat pumps is consistent with the carbon emission intensity of electricity corresponding to the user-side electrical load, in kgCO2 / kWh.

[0097] Furthermore, considering the charge-discharge cycle and inter-time energy transfer characteristics of energy storage devices, a carbon emission flow calculation model for energy storage devices is established. Taking a battery as an example, during charging, the battery acts as a special load absorbing carbon emissions. The product of the charging power and the carbon emission intensity during charging is accumulated as the carbon content of the energy storage device.

[0098] In the formula, E EES,cha,t for t Carbon emissions from time-lapse charging and storage, in kg; P EES,cha,t for t Charging power during the time period, kW; r EES,cha,t for t The carbon emission intensity of charging during a specific time period is consistent with the carbon emission intensity value of electricity corresponding to the user-side electrical load, in kgCO2 / kWh.

[0099] During discharge, energy storage devices, acting as special power sources, generate carbon emissions. The carbon emission intensity during discharge is determined based on the carbon charge rate, which is the ratio of the cumulative carbon content within the energy storage device to the cumulative electrical energy.

[0100] In the formula, E EES,dis,t for t Carbon emissions corresponding to the discharge period, in kg; P EES,dis,t for t Discharge power per period, kW; r EES,dis,t fort Carbon emission intensity corresponding to the discharge period, kgCO2 / kWh. Considering the discharge losses of energy storage components, P EES,dis,t / or EES,dis The power released for actual energy storage needs, in kW. r EES,t-1 for t The carbon charge rate at the end of the -1 period represents the ratio of the cumulative carbon content inside the battery to the cumulative charge, expressed as kgCO2 / kWh.

[0101] The carbon content of the battery at time t can be expressed as:

[0102] The carbon emission flow calculation model for other types of energy storage devices, such as thermal storage tanks, is similar to that for batteries. Those skilled in the art can obtain it based on the modeling method for batteries described above, so it will not be elaborated here.

[0103] After obtaining the carbon emission responsibilities of each device and energy flow node, the carbon emission responsibilities on both the system side and the user side are statistically analyzed. The hourly carbon emission responsibility on the integrated energy system side is as follows:

[0104] In the formula, E IES,t The carbon emissions allocated to the integrated energy system side are in kg.

[0105] The carbon emission intensity of the user-side electrical load and heating / cooling load is:

[0106]

[0107] In the formula, r e,user,t , r h / c,user,t Carbon emission intensity, kgCO2 / kWh, represents the carbon emission intensity of electrical load and heat / cooling load allocated to the user side, respectively. r TES,dis,t The carbon emission intensity of the heat storage tank when releasing heat is expressed as kgCO2 / kWh; P buy,t , P sell,t These represent the power purchased from and sold to the grid by the integrated energy system operator, respectively, in kW; r buy Carbon intensity of purchasing electricity from the grid, kgCO2 / kWh; P e,t , Q h / c,tThese represent the electrical load and heating / cooling load on the user side, respectively, in kW.

[0108] The hourly carbon emission responsibility on the user side is:

[0109] In the formula, E user,t To allocate carbon emission responsibility to users, kg.

[0110] S204: The operating status of the equipment, energy flow distribution, equipment efficiency, equipment losses, load demand, and environmental parameters for each time period are used to construct an operating characteristic dataset, and the corresponding load carbon emission intensity, system-side carbon emission responsibility, and user-side carbon emission responsibility are used to construct a two-sided carbon emission responsibility sample. Specifically: The operational feature dataset is constructed by combining equipment operating status, energy flow distribution, equipment efficiency, equipment losses, load demand, and environmental parameters for each time period. A two-sided carbon emission responsibility sample is then created, consisting of the corresponding load carbon emission intensity, system-side carbon emission responsibility, and user-side carbon emission responsibility. Each feature in the operational feature dataset carries physical mechanism information obtained from energy flow, energy flow, and carbon flow analysis. The two-sided carbon emission responsibility sample serves as the output label for subsequent carbon responsibility prediction model training, thus constructing a dataset containing both physical mechanism features and carbon responsibility labels.

[0111] In this embodiment, by using carbon flow-carbon flow analysis, the input carbon emissions are allocated to each output energy flow according to the carbon value ratio and carbon efficiency, and the carbon emissions corresponding to carbon loss are allocated to the equipment body. Furthermore, a cross-time carbon transfer model based on carbon load rate is established for energy storage equipment, so that the allocation of carbon emission responsibility takes into account the energy level differences of different grades of energy such as electricity, heat, and cold, as well as the loss characteristics in the energy conversion process, thereby improving the accuracy of the calculation of carbon emission responsibility on both sides.

[0112] In one embodiment, step S3 is provided as follows: While physical mechanism calculations yield high accuracy in determining bilateral carbon emission responsibility, they rely on complex physical modeling and iterative calculations. During supply-demand co-optimization, the system's operating state is continuously adjusted. If energy flow, carbon flow, and energy transfer are recalculated in each iteration, the computational load is high and inefficient, making it difficult to support real-time updates and online invocation of carbon emission responsibility. Therefore, this step constructs a carbon responsibility prediction model that integrates temporal feature extraction and gradient boosting regression. The physical calculation results from step S2 are used as training samples for offline training, enabling rapid calculation of dynamic bilateral carbon emission responsibility.

[0113] Figure 3 This is a schematic diagram illustrating the framework of the carbon liability prediction model provided in the embodiments of this application. Figure 3As shown, in one embodiment, the carbon responsibility prediction model can adopt the Transformer-XGBoost dynamic carbon responsibility allocation model, where the Transformer network serves as the temporal feature extraction network and the XGBoost model serves as the gradient boosting regression model. It should be noted that the temporal feature extraction network can also employ other network structures capable of extracting temporal correlation features, and the gradient boosting regression model can also employ other regression models based on gradient boosting decision trees; this embodiment does not impose any limitations on these aspects.

[0114] Reference Figure 4 The construction and training of the carbon responsibility prediction model may include steps S301 to S303.

[0115] S301: Embedding and mapping the temporal input features in the runtime feature dataset and superimposing time position encoding are performed. A multi-head self-attention mechanism is used to extract temporal correlation features between different time points, resulting in a temporal feature vector. Specifically: A training dataset is constructed using the operational feature dataset obtained in step S2 and the two-sided carbon emission responsibility samples. The input features include equipment operating status, equipment input and output energy flow, equipment efficiency, equipment losses, load demand, and environmental parameters; the output labels include load carbon emission intensity, system-side carbon emission responsibility, and user-side carbon emission responsibility. t The input features at each time step are represented as follows:

[0116] The temporal input features in the runtime feature dataset are embedded and mapped, and then time position encoding is superimposed. Specifically, the multidimensional runtime features are mapped to a unified feature space through an input embedding layer, and then time position encoding is superimposed.

[0117] In the formula, W e The feature mapping matrix, PE t It is a time-location encoding used to preserve the dynamic changes in the operating status of the integrated energy system at different time scales.

[0118] Subsequently, a multi-head self-attention mechanism is used to extract temporal correlation features between different time points. Specifically, the multi-head self-attention mechanism in Transformer is used to extract the correlation relationships between different time points and different physical features:

[0119] In the formula, Q , K , V These represent the query matrix, key matrix, and value matrix, respectively.d k Indicates the feature dimension.

[0120] Temporal correlation features in different subspaces are obtained through a multi-head attention mechanism, resulting in a temporal feature vector:

[0121] In the formula, H The high-dimensional feature vector output by the Transformer. m To focus on the number of heads, W o It is a linear projection matrix.

[0122] S302: The time-series feature vector is fused with the physical features in the runtime feature dataset to obtain a comprehensive feature vector. Specifically: Time series feature vectors H Compared with the physical features in the running feature dataset (original physical feature vector) X The features are then fused to obtain a comprehensive feature vector. Z :

[0123] Among them, the original physical features are used to preserve the equipment's operating mechanism and energy flow characteristics, while the time-series feature vector is used to characterize the dynamic evolution of the system. Together, they constitute the input of the carbon responsibility prediction model.

[0124] S303: Input the comprehensive feature vector into the gradient boosting regression model, use the two-sided carbon emission responsibility samples as output labels for training, establish the mapping relationship between the comprehensive feature vector and the two-sided carbon emission responsibility, and obtain the trained carbon responsibility prediction model. Specifically as follows: Combined feature vectors Z Input the XGBoost model and train it using bilateral carbon emission responsibility samples as output labels to establish a mapping relationship between the comprehensive feature vector and bilateral carbon emission responsibility:

[0125] In the formula, This represents the output vector of the XGBoost model.

[0126] XGBoost continuously integrates multiple regression trees through a gradient boosting strategy to improve the model's ability to fit complex nonlinear relationships. Its prediction model is expressed as:

[0127] In the formula, K Indicates the number of decision trees. f k Indicates the firstk A tree of return, F This represents the function space formed by all regression trees.

[0128] During model training, prediction error and model complexity together constitute the optimization objective:

[0129] In the formula, the first term represents the error between the prediction result and the actual carbon responsibility, and the second term represents the model complexity constraint, which is used to improve the model's generalization ability. L To optimize the objective function, l For loss function, Y i For the first i The actual carbon emission responsibility label for each sample, Ω( f k ) is the first k The complexity of a regression tree.

[0130] Furthermore, in another embodiment, the specific process of model training and validation is as follows: the training samples are divided into a training set and a test set in a 7:3 ratio. The parameters of the Transformer network and the XGBoost model are trained using the training set, and the model's prediction accuracy is evaluated using the test set. Model evaluation metrics include mean absolute error (MAE), root mean square error (RMSE), mean absolute percentage error (MAPE), and coefficient of determination (R²). 2 Once the error or accuracy of each evaluation indicator meets the requirements, the constructed carbon responsibility prediction model is considered to have high prediction accuracy and generalization ability. It can be used to quickly calculate the carbon emission responsibility of the system side and the user side based on real-time operating data, and can be embedded in a two-layer supply and demand collaborative decision-making model.

[0131] In this embodiment, the physical features obtained from energy flow, carbon flow and carbon flow analysis are fused with the temporal correlation features extracted by temporal attention and then input into the gradient boosting regression model. This enables the carbon responsibility prediction model to combine the accuracy under physical mechanism constraints with the computational speed of a data-driven model, achieving rapid calculation and real-time updates of bilateral carbon emission responsibility under complex operating conditions. This reduces the burden of repetitive calculations on the physical model during long-term, multi-condition optimization.

[0132] In one embodiment, one implementation of step S4 is provided: Figure 5 This is a schematic diagram illustrating the framework of the two-layer supply and demand collaborative decision-making model provided in an embodiment of this application. For example... Figure 5As shown, the trained carbon responsibility prediction model is used as the carbon responsibility allocation module of the two-layer supply and demand collaborative decision-making model. In each iteration of the supply and demand collaborative decision-making process, the carbon responsibility allocation module calculates and updates the system-side carbon emission responsibility, user-side carbon emission responsibility, and load carbon emission intensity in real time based on equipment operating status, energy flow distribution, and load information. The carbon emission responsibilities on both sides are used as information interaction variables between the upper and lower layers of the model to achieve synchronous updates of the carbon emission responsibilities on both sides and the supply and demand collaborative decision-making.

[0133] Upper-level model: The upper-level decision-making body is the integrated energy system operator, optimizing system operation strategies with the goals of maximizing overall system benefits and minimizing system-side carbon emissions. These strategies include the hourly output of each device. The overall system benefit is defined as energy sales revenue minus energy purchase costs and operating costs. The upper-level objective function is expressed as:

[0134] In the formula, C IES For the comprehensive benefits of an integrated energy system operator, yuan; C user , C fuel , C main These represent the energy sales revenue, energy purchase cost, and operating cost of the integrated energy system operator, respectively, in yuan.

[0135] The formulas for calculating energy sales revenue, energy purchase cost, and operating cost are as follows:

[0136] In the formula, c e,t , c h / c These are the electricity sales price and heating / cooling price offered by the integrated energy system operator to users, respectively, in yuan / kWh; c grid,t , c gas These are the electricity and gas purchase prices from the power grid and gas grid, respectively, for integrated energy system operators, in yuan / kWh; c main,i For the first i The unit maintenance cost of this type of equipment is RMB / kWh; P i,t For the first i The output of this type of equipment is measured in kW. P gas,t The amount of gas purchased by the integrated energy system operator from the gas network, in kW.

[0137] Lower-level model: The lower layer, with load aggregators as the decision-making entities, optimizes user-side energy consumption behavior with the goal of minimizing user operating costs. User operating costs include demand response costs, carbon trading costs, and green certificate trading revenue. The lower-level objective function is expressed as:

[0138] In the formula, C LA The operating costs of the load aggregator are in yuan. C DR , C CET , C GCT These represent the demand response costs of load aggregators, carbon trading costs, and green certificate trading revenues, respectively, in yuan.

[0139] The lower layer combines a tiered carbon trading mechanism, a green certificate-carbon joint trading mechanism that converts green certificates into carbon allowances, and a comprehensive demand response mechanism that includes load reduction, load transfer, and load substitution to optimize user-side energy consumption behavior. The constraints at this lower layer include: load reduction, transfer, and substitution constraints in demand response; constraints from the tiered carbon trading mechanism; constraints from the green certificate trading mechanism; and constraints from the green certificate-carbon joint mechanism.

[0140] The electricity load demand response model is as follows:

[0141] In the formula, P e,DR,t For the electrical load after demand response, kW; Δ P e,cut,t Δ P e,inc,t Δ P e,dec,t and Δ P e,alter,t These represent the amount of electrical load that can be reduced, the amount of electrical load transferred in, the amount of electrical load transferred out, and the amount of electrical load that can be replaced, in kW; Δ P e,cut,max Δ P e,inc,max Δ P e,dec,max and Δ P e,alter,max These are the upper limits for power regulation in kW for load reduction, load transfer, load transfer, and load replacement, respectively. x alter The electrothermal conversion coefficient is given.

[0142] The heat / cooling load demand response model is as follows:

[0143] In the formula, Qc / h,DR,t The heat / cooling load after demand response, in kW; Δ Q c / h,cut,t Δ Q c / h,inc,t Δ Q c / h,dec,t Δ Q c / h,alter,t These represent the amount of heat / cooling load that can be reduced, the amount of heat / cooling load transferred in, the amount of heat / cooling load transferred out, and the amount of heat / cooling load that can be replaced, in kW; Δ Q c / h,cut,max Δ Q c / h,inc,max Δ Q c / h,dec,max Δ Q c / h,alter,max These are the upper limits for power regulation, in kW, for reducing heat / cooling load, transferring heat / cooling load in, transferring heat / cooling load out, and replacing heat / cooling load.

[0144] The demand response cost is:

[0145] In the formula, c cut , c trans , c alter The unit compensation costs for load reduction, transfer, and replacement are respectively expressed in yuan / kW.

[0146] The tiered carbon trading mechanism model is as follows:

[0147]

[0148]

[0149]

[0150] In the formula, C CET The initial carbon trading cost is in yuan. c CET The base price for carbon trading is yuan / kg; E CET The initial carbon emissions trading volume is expressed in kg. l The interval length of the carbon trading ladder, in kg; c and e These are the reward coefficient and the penalty coefficient, respectively. E ate and E qThese represent the system's actual carbon emissions and carbon allowance, respectively, in kg; f grid and f gas These are the carbon quota factors for purchasing electricity and gas, respectively.

[0151] The green certificate trading mechanism model is as follows:

[0152]

[0153]

[0154] In the formula, N n , N h These represent the demand for green certificates and the actual number of green certificates held, in units; k n , k h These are the green certificate quota coefficient and the green certificate conversion coefficient, respectively. c GCT The price for green certificates is RMB per certificate.

[0155] Under the green certificate-carbon joint trading mechanism, surplus green certificates can be converted into carbon allowances through a conversion factor, and the conversion relationship is as follows:

[0156] In the formula, E GC Carbon allowances converted from surplus green certificates, kg; x GC The conversion factor is kg / piece; N GC The number of green certificates for converting carbon allowances.

[0157] After the introduction of the green certificate-carbon joint trading mechanism, the actual tradable carbon emissions of load aggregators are revised to the total emissions minus the sum of the initial allowances and the converted allowances:

[0158] Green certificates converted into carbon allowances must be removed from the total amount of tradable green certificates. The revised green certificate trading revenue is as follows:

[0159] In this embodiment, the upper layer optimizes the system operation strategy, and the lower layer optimizes the user-side energy consumption behavior. The carbon responsibility allocation module outputs the dual carbon emission responsibility in real time as an information interaction variable between the upper and lower layers, so that the calculation of carbon emission responsibility and supply and demand collaborative optimization are no longer independent of each other: changes in the system-side operating status can be reflected in the user-side carbon trading costs through the carbon responsibility allocation module, and the adjustment of load by the user-side demand response behavior can be fed back to the system side, realizing carbon responsibility information-driven supply and demand dual-side collaborative optimization.

[0160] In one embodiment, a specific implementation of step S5 is provided as follows: Figure 6 This is a schematic diagram illustrating the solution process of the two-layer supply and demand collaborative decision-making model provided in an embodiment of this application. Figure 6 As shown, in one embodiment, when performing iterative solving of the two-layer supply-demand collaborative decision-making model, a multi-objective evolutionary algorithm is used to solve the upper-layer model, a multi-attribute decision-making method is used to select the current optimal solution, and a solver is used to solve the lower-layer model. Supply and demand are balanced through iterative information interaction between the upper and lower layers. The multi-objective evolutionary algorithm can be the NSGA-II algorithm or other evolutionary algorithms capable of solving multi-objective optimization problems; the multi-attribute decision-making method can be the entropy-weighted TOPSIS method or other multi-attribute decision-making methods; and the lower-layer model can be solved using a Gurobi solver to solve a mixed-integer linear programming model.

[0161] Before the iterative solution begins, the algorithm is initialized and parameters are set: the convergence accuracy threshold and parameters such as the population size and number of generations of the multi-objective evolutionary algorithm are set, basic data such as equipment parameters (e.g., equipment efficiency curve), energy prices, load and meteorological data are input, the trained carbon responsibility allocation module is loaded, the upper-level decision variables are initialized, and the evolutionary generation counter I=1 is set.

[0162] Reference Figure 7 The interactive iterative solution of the two-layer supply and demand collaborative decision-making model can include steps S501 to S505.

[0163] S501: Solve the upper layer of the two-layer supply and demand collaborative decision-making model using a multi-objective evolutionary algorithm to obtain multiple candidate solutions.

[0164] Specifically, taking the NSGA-II algorithm as an example, for each individual in the parent population of generation I, the two target values ​​of the overall system benefit and the system-side carbon emission are calculated by substituting them into the upper objective function. Individuals are selected by tournament selection, and crossover and mutation operations are performed to generate the offspring population. After merging the parent and offspring populations, fast non-dominated sorting and crowding calculation are performed. The top Np individuals are selected to form the generation I population. Each individual in the population is a candidate solution, and each candidate solution corresponds to a set of system operation strategies, including the hourly output of each device and the corresponding analysis data.

[0165] S502: Input the equipment operating status, energy flow distribution, energy analysis data and load information corresponding to each candidate solution into the carbon responsibility allocation module to obtain the load carbon emission intensity corresponding to each candidate solution.

[0166] Specifically, the load carbon emission intensity includes the carbon emission intensity of user-side electrical load and heat / cooling load; the output of the carbon responsibility allocation module also includes the system-side carbon emission responsibility and user-side carbon emission responsibility corresponding to each candidate solution, providing dynamic carbon responsibility information for upper and lower layer collaborative optimization. In this step, energy flow calculation and sludge analysis are performed based on the equipment operating status corresponding to each candidate solution to obtain input and output energy flow, equipment sludge efficiency, and equipment sludge loss, which are then input into the carbon responsibility allocation module. Since the carbon responsibility allocation module is a carbon responsibility prediction model trained offline with sludge features as one of the inputs, it can obtain the dual-side carbon emission responsibility corresponding to each candidate solution in real time without re-performing the physical calculations for carbon flow tracking and allocation.

[0167] S503: Select the current optimal solution from the multiple candidate solutions using a multi-attribute decision-making method, and input the load carbon emission intensity corresponding to the current optimal solution as a known parameter into the lower layer of the two-layer supply and demand collaborative decision-making model.

[0168] Specifically, taking the entropy weight-TOPSIS method as an example, the first-level non-dominated frontier of the I-generation population is extracted, the objective weight of each objective is calculated by the entropy weight method, the relative proximity of each non-dominated solution is calculated by the TOPSIS method, the solution with the largest relative proximity is selected as the current optimal solution, and the equipment output and load carbon emission intensity corresponding to the current optimal solution are extracted.

[0169] Step S504: Solve the lower layer to obtain the user-side demand response strategy and feed it back to the upper layer. Update the load constraints and objective function of the upper layer and then proceed to the next iteration.

[0170] Specifically, with the goal of minimizing user operating costs, considering the tiered carbon trading mechanism, the green certificate-carbon joint trading mechanism, and the comprehensive demand response, the lower-level mixed-integer linear programming model is solved using the Gurobi solver to obtain the I-generation user-side time-by-time optimal demand response strategy. The user-side demand response strategy output from the lower level is fed back to the upper level, which updates the load constraints and objective function accordingly, increments the evolutionary generation counter by 1 (I=I+1), and returns to step S501 to enter the next generation evolutionary process.

[0171] Step S505: Terminate the iteration when the convergence condition is met or the maximum number of iterations is reached, and output the supply and demand collaborative optimization strategy.

[0172] Specifically, the convergence condition can be that the change in the objective function value of the upper and lower layers of two consecutive generations is less than the set convergence threshold; the supply and demand coordinated optimization strategy includes the hourly output plan of equipment, the detailed allocation of carbon emission responsibility for the whole system, the user-side demand response plan and the comprehensive performance index of the system.

[0173] In this embodiment, each candidate solution generated by the upper-level multi-objective optimization is used to calculate the carbon emission responsibility on both sides in real time by the carbon responsibility allocation module. Then, the current optimal solution is selected by the multi-attribute decision method and the load carbon emission intensity is passed down to the lower layer. The demand response strategy obtained by the lower layer is fed back to the upper layer to form a closed-loop iteration, and finally a collaborative optimization strategy that takes into account the economic efficiency and low carbon emissions of both supply and demand sides is obtained.

[0174] In one embodiment, an electronic device is also provided, comprising: a memory storing a computer program thereon; and a processor for executing the computer program in the memory to implement the steps of the integrated energy system supply and demand collaborative decision-making method described in any of the above embodiments. The electronic device may be a server, computer, or other computing device deployed on an integrated energy system energy management platform or dispatch center; the memory may include volatile memory and / or non-volatile memory for storing the computer program and running data, model parameters, etc., during the method execution process; and the processor may include a central processing unit (CPU), a graphics processing unit (GPU), etc., for executing the computer program to implement the above method.

[0175] In one embodiment, a computer-readable storage medium is also provided, on which a computer program is stored. When executed by a processor, the computer program implements the steps of the integrated energy system supply and demand coordination decision-making method described in any of the above embodiments. The computer-readable storage medium can be a read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk, or other media capable of storing program code.

[0176] The foregoing has shown and described the basic principles, main features, and advantages of this application. Those skilled in the art should understand that this application is not limited to the above embodiments. The embodiments and descriptions in the specification are merely illustrative of the principles of this application. Various changes and modifications can be made to this application without departing from the spirit and scope thereof, and all such changes and modifications fall within the scope of this application as claimed. The scope of protection of this application is defined by the appended claims and their equivalents.

Claims

1. A method for coordinated supply and demand decision-making in an integrated energy system, characterized in that, include: Acquire operational data and equipment parameters of the integrated energy system; Based on the aforementioned operating data and equipment parameters, energy flow calculation and efficiency-carbon flow analysis are performed to obtain an operating characteristic dataset and a two-sided carbon emission responsibility sample. The efficiency-carbon flow analysis distributes the input carbon emissions to each output energy flow according to the equipment efficiency and distributes the carbon emissions corresponding to the equipment efficiency loss to the corresponding equipment body. A carbon responsibility prediction model integrating time-series feature extraction and gradient boosting regression is constructed. The model is trained by using the running feature dataset as input features and the corresponding two-sided carbon emission responsibility samples as output labels. A two-layer supply and demand collaborative decision-making model is constructed, which is embedded with a carbon responsibility allocation module. The carbon responsibility allocation module is the carbon responsibility prediction model that has been trained. The upper layer of the two-layer supply and demand collaborative decision-making model optimizes the system operation strategy with the goal of maximizing the overall system benefits and minimizing the system-side carbon emissions. The lower layer of the two-layer supply and demand collaborative decision-making model optimizes the user-side energy consumption behavior with the goal of minimizing the user's operating costs. The carbon emission responsibilities of both sides are output in real time by the carbon responsibility allocation module as the information interaction variables between the upper and lower layers. The two-layer supply and demand collaborative decision-making model is solved iteratively by interaction between the upper and lower layers to output a supply and demand collaborative optimization strategy.

2. The integrated energy system supply and demand coordination decision-making method according to claim 1, characterized in that, The steps of performing energy flow calculations and current-carbon flow analysis based on the operational data and equipment parameters to obtain the operational characteristic dataset and the two-sided carbon emission responsibility sample include: Based on the aforementioned operational data and equipment parameters, an optimized scheduling model is constructed and solved to minimize system scheduling costs while satisfying multi-energy flow balance constraints and equipment operation constraints, thereby obtaining the equipment operating status and energy flow distribution for each time period. Based on the equipment operating status and energy flow distribution in each time period, a flow analysis is performed to obtain the flow values ​​of each equipment's input and output energy flow, equipment flow loss, and equipment flow efficiency. By combining the initial carbon emission intensity of each energy input, the input carbon emission is transferred along the energy conversion path. Based on the proportion of each output energy flow and the equipment efficiency, the input carbon emission is allocated to each output energy flow, and the carbon emission corresponding to the equipment loss is allocated to the corresponding equipment body, so as to obtain the load carbon emission intensity, system-side carbon emission responsibility and user-side carbon emission responsibility of each load node. The operating status of the equipment, energy flow distribution, equipment efficiency, equipment loss, load demand and environmental parameters for each time period are used to form an operating characteristic dataset, and the corresponding load carbon emission intensity, system-side carbon emission responsibility and user-side carbon emission responsibility are used to form a two-sided carbon emission responsibility sample.

3. The integrated energy system supply and demand coordinated decision-making method according to claim 2, characterized in that, In the step of transferring input carbon emissions along the energy conversion path, for energy storage devices, during charging, the product of charging power and charging carbon emission intensity is accumulated to obtain the carbon content of the energy storage device, and during discharging, the discharging carbon emission intensity is determined according to the carbon charge rate, wherein the carbon charge rate is the ratio of the cumulative carbon content in the energy storage device to the cumulative electricity.

4. The integrated energy system supply and demand coordinated decision-making method according to claim 1, characterized in that, The steps for constructing a carbon responsibility prediction model that integrates time-series feature extraction and gradient boosting regression, using the running feature dataset as input features and the corresponding two-sided carbon emission responsibility samples as output labels for training, to obtain the trained carbon responsibility prediction model include: The temporal input features in the running feature dataset are embedded and mapped and superimposed with time position encoding. The temporal correlation features between different times are extracted through a multi-head self-attention mechanism to obtain a temporal feature vector. The time-series feature vector is fused with the physical features in the runtime feature dataset to obtain a comprehensive feature vector; The comprehensive feature vector is input into the gradient boosting regression model, and the two-sided carbon emission responsibility samples are used as output labels for training. The mapping relationship between the comprehensive feature vector and the two-sided carbon emission responsibility is established, and the trained carbon responsibility prediction model is obtained.

5. The integrated energy system supply and demand coordination decision-making method according to claim 4, characterized in that, The input features in the operational feature dataset include equipment operating status, equipment input and output energy flow, equipment efficiency, equipment losses, load demand, and environmental parameters. The dual-side carbon emission responsibility sample includes load carbon emission intensity, system-side carbon emission responsibility, and user-side carbon emission responsibility.

6. The integrated energy system supply and demand coordination decision-making method according to claim 1, characterized in that, In the upper layer of the dual-layer supply and demand collaborative decision-making model, the system operation strategy is optimized with the goal of maximizing the overall system benefits and minimizing the system-side carbon emissions. The overall system benefits are the energy sales revenue minus the energy purchase cost and operating cost. The system operation strategy includes the hourly output of each device.

7. The integrated energy system supply and demand coordinated decision-making method according to claim 1, characterized in that, The lower layer optimizes user-side energy consumption behavior with the goal of minimizing user operating costs, which include demand response costs, carbon trading costs, and green certificate trading revenue. The lower layer combines a tiered carbon trading mechanism, a green certificate-carbon joint trading mechanism that converts green certificates into carbon allowances, and a comprehensive demand response that includes load reduction, load transfer, and load substitution to optimize user-side energy consumption behavior.

8. The integrated energy system supply and demand coordination decision-making method according to claim 1, characterized in that, The steps of performing interactive iterative solution on the two-layer supply and demand collaborative decision-making model to output a supply and demand collaborative optimization strategy include: The upper layer of the two-layer supply and demand collaborative decision-making model is solved using a multi-objective evolutionary algorithm to obtain multiple candidate solutions; Input the equipment operating status, energy flow distribution, energy analysis data and load information corresponding to each candidate solution into the carbon responsibility allocation module to obtain the load carbon emission intensity corresponding to each candidate solution; The current optimal solution is selected from the multiple candidate solutions using a multi-attribute decision-making method, and the load carbon emission intensity corresponding to the current optimal solution is input as a known parameter into the lower layer of the two-layer supply and demand collaborative decision-making model. Solve the lower layer to obtain the user-side demand response strategy and feed it back to the upper layer. After updating the load constraints and objective function of the upper layer, proceed to the next iteration. The iteration terminates when the convergence condition is met or the maximum number of iterations is reached, and the supply and demand collaborative optimization strategy is output.

9. An electronic device, characterized in that, include: A memory on which computer programs are stored; A processor for executing the computer program in the memory to implement the steps of the method according to any one of claims 1 to 8.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 8.