Intelligent building electric energy transaction optimization scheduling method and device, medium and product
By establishing a carbon emission optimization dispatching model and an electric energy trading game model in smart buildings, and using Nash negotiation theory and ADMM algorithm, the impact of photovoltaic output and electric vehicle charging and discharging on smart building dispatching is solved, and more efficient electric energy trading and carbon emissions are achieved. Emission management improves the sustainability and autonomy of the system.
Patent Information
- Application Number
- CN202410594908.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-14
- Publication Date
- 2024-08-23
AI Technical Summary
The volatility of photovoltaic output in smart buildings and the irregular charging and discharging of electric vehicles have an impact on day-ahead optimal dispatch, leading to increased uncertainty and affecting the autonomy of buildings and the sustainability of connected urban energy systems.
Establish an optimal dispatching model for smart buildings with minimizing daily operating carbon emissions as the objective function. Use Nash negotiation theory and ADMM algorithm to build a peer-to-peer power trading cooperative game model to obtain day-ahead forecast values of renewable energy output and load demand to optimize dispatch. The decision-making quantities include equipment output, load demand, electric vehicle charging and discharging power and electric energy trading parameters.
It effectively avoids the impact of the uncertainty of photovoltaic output and the irregular charging and discharging of electric vehicles on the operation and scheduling of smart building systems, optimizes carbon emissions and power trading efficiency, and improves the autonomy of buildings and the sustainability of urban energy systems.
Smart Images

Figure CN118536743A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of smart building electric energy trading, and in particular to a smart building electric energy trading optimization scheduling method, device, medium and product. Background Art
[0002] Smart buildings are buildings that use advanced information technology and intelligent systems to improve the efficiency, safety, sustainability and comfort of buildings. This type of building uses technologies such as sensors, automated control systems, network connectivity and data analysis to achieve smarter and more flexible building energy system management and operation.
[0003] Due to the different internal load demands and renewable energy penetration rates of different buildings, different buildings belong to different interest groups. Point-to-point energy transactions can be realized between different buildings in the region by building interconnected power grids. However, due to the volatility of photovoltaic output and the randomness of charging and discharging of electric vehicles connected to buildings, the day-ahead optimization scheduling of smart buildings will be affected. Therefore, how to reduce the impact of uncertainty on point-to-point transactions in smart buildings, achieve more autonomy and interconnection of buildings, and build a more intelligent and sustainable urban energy system is a key technical issue. Summary of the invention
[0004] The purpose of the present invention is to provide a method, device, medium and product for optimizing the scheduling of electric energy trading in a smart building, so as to avoid the influence of uncertainty in photovoltaic output and irregular charging and discharging of electric vehicles on the operation and scheduling of the smart building system.
[0005] To achieve the above object, the present invention provides the following solutions:
[0006] A smart building electric energy trading optimization scheduling method, comprising:
[0007] Initialize the equipment parameters of each smart building participating in peer-to-peer power trading, and obtain the day-ahead forecast values of renewable energy output and various load demands;
[0008] Establish a smart building optimization scheduling model with minimization of daily operating carbon emissions as the objective function and cogeneration unit constraints, gas boiler equipment constraints, central air conditioning operation constraints, electric vehicle purchase / sale power constraints, renewable energy equipment output constraints, system power balance constraints and power trading constraints as constraints;
[0009] According to the smart building optimization scheduling model, the Nash negotiation theory is used to establish a smart building point-to-point electricity trading cooperative game model;
[0010] Based on the renewable energy output and the day-ahead forecast values of various load demands, the ADMM algorithm is used to solve the cooperative game model of the smart building point-to-point electricity trading, and the electricity trading optimization scheduling decision quantity of the smart building is obtained, so as to optimize the electricity trading scheduling of the smart buildings participating in the point-to-point electricity trading; the electricity trading optimization scheduling decision quantity includes the optimized output value of the internal equipment of each smart building, various load demand values, the actual output value of renewable energy, the charging and discharging power of electric vehicles, the electricity trading power between smart buildings, the electricity trading coefficient and the electricity trading carbon emission coefficient.
[0011] Optionally, the objective function is:
[0012] minC i IB =C i trade +C i buy +C i equ +C i ev ;
[0013]
[0014]
[0015]
[0016]
[0017] in, represents the total carbon emissions of the cooperative operation of the ith smart building in a typical day; represents the carbon emissions of the i-th smart building point-to-point electricity trading; represents the carbon emission coefficient of electricity trading of the i-th smart building and the j-th smart building at time t; represents the electric energy trading power of the i-th smart building and the j-th smart building at time t; represents the carbon emissions of purchased energy of the i-th smart building; α gas Indicates the carbon emission coefficient of gas purchased per unit power; represents the carbon emission coefficient of the unit power purchased by the i-th smart building; represents the carbon emission coefficient of the electricity sold per unit power of the i-th smart building; represents the gas purchasing power of the i-th smart building at time t; represents the power purchased by the i-th smart building at time t; represents the electricity sales power of the i-th smart building at time t; represents the carbon emissions of the equipment in the i-th smart building energy system; Indicates the carbon emission coefficient of electricity generated by the cogeneration unit; Represents the carbon emission coefficient of heat generated by the cogeneration unit; α GB Indicates the carbon emission coefficient of gas boiler operation; α HVAC represents the carbon emissions from the operation of the central air-conditioning unit; α PV Indicates the carbon emission coefficient of photovoltaic equipment; represents the electric power output by the i-th smart building cogeneration unit at time t; represents the thermal power output by the i-th smart building cogeneration unit at time t; represents the thermal power output of the i-th smart building gas boiler at time t; represents the thermal power output by the central air-conditioning unit of the i-th smart building at time t; represents the electric power output by the ith smart building photovoltaic unit at time t; represents the carbon emissions of electric vehicles; represents the charging power of the electric vehicle at time t; represents the discharge power of the electric vehicle at time t; η evc Represents the charging efficiency of electric vehicles; η evd Indicates the discharge efficiency of electric vehicles; Indicates the carbon emission coefficient of charging and discharging at time t; U evc Represents the unit utility of charging at time t.
[0018] Optionally, the cogeneration unit is constrained as follows:
[0019]
[0020]
[0021] in, represents the electric power output of the cogeneration unit of the i-th smart building at time t; represents the thermal power output of the cogeneration unit of the i-th smart building at time t; H GHV Indicates the calorific value of natural gas; represents the amount of natural gas consumed by the cogeneration unit of the i-th smart building at time t; It represents the electrical efficiency of the combined heat and power unit; It represents the thermal efficiency of the combined heat and power unit;
[0022] The gas boiler equipment constraints are:
[0023]
[0024] in, represents the thermal power output of the gas boiler of the i-th smart building at time t; represents the natural gas consumption of the gas boiler of the i-th smart building at time t; Indicates the thermal efficiency of the gas boiler;
[0025] The central air conditioning operation constraints are:
[0026]
[0027] in, represents the thermal power output of the central air conditioner of the i-th smart building at time t; Indicates the heating energy efficiency ratio of central air conditioning; represents the electric power consumed by the central air conditioner of the i-th smart building at time t;
[0028] The electric vehicle purchase / sale constraints are:
[0029]
[0030]
[0031]
[0032] in, represents the charging power of the electric vehicle at time t; represents the discharge power of the electric vehicle at time t; Indicates the rated charging power of the electric vehicle; Indicates the rated discharge power of the electric vehicle; Indicates the parking status of the electric vehicle; represents the battery capacity of the electric vehicle at time t; represents the battery capacity of the electric vehicle at time t+1; η evc Represents the charging efficiency of electric vehicles; η evd Indicates the discharge efficiency of electric vehicles; represents the charging power of the electric vehicle at time t+1; Represents the discharge power of the electric vehicle at time t+1;
[0033] The output constraints of renewable energy equipment are:
[0034]
[0035]
[0036] in, is the marginal distribution; is the joint probability distribution; represents the empirical distribution of PV output; represents the real distribution of photovoltaic output; ε represents the fuzzy radius; ξ represents the error vector; ρ represents the uncertainty confidence level;
[0037] The system power balance constraint includes a system electric power balance constraint and a system thermal power balance constraint;
[0038] The system power balance constraint is:
[0039]
[0040] in, It represents the electric power output of the i-th smart building cogeneration unit at time t; represents the power purchased by the i-th smart building at time t; represents the electricity sales power of the i-th smart building at time t; It represents the system electric load demand power at time t; represents the power transaction between the i-th smart building and the j-th smart building at time t;
[0041] The system thermal power balance constraint is:
[0042]
[0043]
[0044] in, represents the thermal power output by the central air-conditioning unit of the i-th smart building at time t; represents the thermal power output by the i-th smart building cogeneration unit at time t; represents the thermal power output of the i-th smart building gas boiler at time t; represents the heat load power demand of the building at time t; γ is the relationship coefficient between the boiler heat supply and the supply / return water temperature of the heating network; T i,g,t is the water supply temperature of the heating network at time t; T i,h,t is the return water temperature of the heating network at time t;
[0045] The energy trading constraints are:
[0046]
[0047] in, represents the upper limit of the power trading between the i-th smart building and the j-th smart building; represents the lower limit of electricity trading between the i-th smart building and the j-th smart building; N represents the number of smart buildings participating in electricity trading.
[0048] Optionally, based on the renewable energy output and the day-ahead forecast values of various load demands, the ADMM algorithm is used to solve the smart building peer-to-peer power trading cooperative game model to obtain the power trading optimization scheduling decision quantity of the smart building, which specifically includes:
[0049] Decomposing the smart building peer-to-peer power trading cooperative game model into a power trading sub-problem and a carbon emission coefficient sub-problem;
[0050] Based on the renewable energy output and the day-ahead forecast values of various load demands, the ADMM algorithm is used to solve the power subproblem of electric energy trading, and the optimal solution for the carbon emissions of the purchased energy of the i-th smart building, the optimal solution for the carbon emissions of the equipment running in the energy system of the i-th smart building, and the optimal solution for the carbon emissions of electric vehicles are obtained;
[0051] According to the renewable energy output, the multiple day-ahead forecast values of the load demands, the optimal solution for the carbon emissions from energy purchases of the i-th smart building, the optimal solution for the carbon emissions from equipment operation in the i-th smart building energy system, and the optimal solution for the carbon emissions from electric vehicles, the ADMM algorithm is used to solve the carbon emission coefficient sub-problem of electricity trading to obtain the decision quantity for optimizing the scheduling of electricity trading.
[0052] Optionally, the smart building peer-to-peer power trading cooperative game model is:
[0053]
[0054] in, It represents the operating cost of a smart building when it is optimized independently; represents the total carbon emissions of the cooperative operation of the ith smart building in a typical day; N represents the number of smart buildings participating in electricity trading.
[0055] Optionally, the electric energy trading power sub-problem is:
[0056]
[0057] in, represents the carbon emissions of purchased energy of the i-th smart building; represents the carbon emissions of the equipment in the i-th smart building energy system; represents the carbon emissions of electric vehicles; N represents the number of smart buildings participating in electricity trading.
[0058] Optionally, the carbon emission coefficient sub-problem of electricity trading is:
[0059]
[0060] in, It represents the operating cost of a smart building when it is optimized independently; is the optimal solution for the carbon emissions of purchased energy for the i-th smart building; The optimal solution for carbon emissions from equipment operation in the i-th smart building energy system; Optimal solution for carbon emissions of electric vehicles; represents the carbon emissions of the i-th smart building’s point-to-point electricity trading; N represents the number of smart buildings participating in the electricity trading.
[0061] A computer device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the above-mentioned smart building electricity trading optimization and scheduling method.
[0062] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the above-mentioned smart building electricity trading optimization scheduling method.
[0063] A computer program product includes a computer program, which, when executed by a processor, implements the above-mentioned smart building electricity trading optimization scheduling method.
[0064] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:
[0065] The present invention provides a method, device, medium and product for optimizing and scheduling electric energy trading in smart buildings, initializes equipment parameters of each smart building participating in point-to-point electric energy trading, and obtains the day-ahead forecast values of renewable energy output and multiple load demands; establishes an optimization scheduling model for smart buildings with the objective function of minimizing daily operating carbon emissions, and with cogeneration unit constraints, gas boiler equipment constraints, central air conditioning operation constraints, electric vehicle purchase / sale power constraints, renewable energy equipment output constraints, system power balance constraints and electric energy trading constraints as constraints; according to the optimization scheduling model for smart buildings, a point-to-point electric energy trading cooperative game model for smart buildings is established using Nash negotiation theory; based on the day-ahead forecast values of renewable energy output and multiple load demands, the ADMM algorithm is used to solve the point-to-point electric energy trading cooperative game model for smart buildings, and the decision quantity for optimizing and scheduling electric energy trading for the smart buildings participating in point-to-point electric energy trading is obtained, so as to optimize and schedule electric energy trading for the smart buildings participating in point-to-point electric energy trading. The present invention avoids the influence of uncertainty in photovoltaic output and irregular charging and discharging of electric vehicles on the operation and scheduling of smart building systems. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0067] Figure 1 A schematic diagram of a flow chart of a smart building power trading optimization and scheduling method provided in Example 1 of the present invention;
[0068] Figure 2 The application architecture diagram of the point-to-point electricity trading method between smart buildings;
[0069] Figure 3 This is a schematic diagram of the power results of electric energy trading;
[0070] Figure 4 This is a schematic diagram of the carbon emission coefficient results of electricity trading;
[0071] Figure 5 This is the architecture diagram of the smart building-to-building power trading system;
[0072] Figure 6 This is a diagram of the internal structure of a computer device. DETAILED DESCRIPTION
[0073] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0074] The purpose of the present invention is to provide a method, device, medium and product for optimizing the scheduling of electric energy trading in a smart building, so as to avoid the influence of uncertainty in photovoltaic output and irregular charging and discharging of electric vehicles on the operation and scheduling of the smart building system.
[0075] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0076] Example 1
[0077] Reference Figure 2 The present invention provides an application architecture of a point-to-point electric energy trading method between smart buildings, and provides a game method for electric energy trading in smart buildings (an optimized scheduling method for electric energy trading in smart buildings) under multiple uncertain fluctuations. Figure 1As shown, the smart building power trading optimization scheduling method in this embodiment includes:
[0078] S1: Initialize the equipment parameters of each smart building participating in peer-to-peer electricity trading, and obtain the day-ahead forecast values of renewable energy output and various load demands.
[0079] In actual applications, the equipment parameters of each smart building participating in the point-to-point power trading are initialized, and the output of renewable energy and the forecast values of multiple load demands are input to determine the optimal scheduling decision-making quantity of the smart building power trading. The optimal scheduling decision-making quantity of the smart building power trading includes: the optimized output value of the internal equipment of each smart building, the multiple load demand values, the actual output value of renewable energy, the charging and discharging power of electric vehicles, and the power and power trading coefficient of the power between smart buildings.
[0080] S2: Establish a smart building optimization scheduling model with minimization of daily operating carbon emissions as the objective function and cogeneration unit constraints, gas boiler equipment constraints, central air-conditioning operation constraints, electric vehicle purchase / sales constraints, renewable energy equipment output constraints, system power balance constraints and electricity trading constraints as constraints.
[0081] In practical applications, the optimization scheduling objective function is to minimize the daily carbon emissions and establish a smart building optimization operation model. The objective function is expressed as follows:
[0082]
[0083]
[0084]
[0085]
[0086]
[0087] in, represents the total carbon emissions of the cooperative operation of the ith smart building in a typical day; represents the carbon emissions of the i-th smart building point-to-point electricity trading; represents the carbon emission coefficient of electricity trading of the i-th smart building and the j-th smart building at time t; represents the electric energy trading power of the i-th smart building and the j-th smart building at time t; represents the carbon emissions of purchased energy of the i-th smart building; α gas Indicates the carbon emission coefficient of gas purchased per unit power; represents the carbon emission coefficient of the unit power purchased by the i-th smart building; represents the carbon emission coefficient of the electricity sold per unit power of the i-th smart building; represents the gas purchasing power of the i-th smart building at time t; represents the power purchased by the i-th smart building at time t; represents the electricity sales power of the i-th smart building at time t; represents the carbon emissions of the equipment in the i-th smart building energy system; Indicates the carbon emission coefficient of electricity generated by the cogeneration unit; Represents the carbon emission coefficient of heat generated by the cogeneration unit; α GB Indicates the carbon emission coefficient of gas boiler operation; α HVAC represents the carbon emissions from the operation of the central air-conditioning unit; α PV Indicates the carbon emission coefficient of photovoltaic equipment; represents the electric power output by the i-th smart building cogeneration unit at time t; represents the thermal power output by the i-th smart building cogeneration unit at time t; represents the thermal power output of the i-th smart building gas boiler at time t; represents the thermal power output by the central air-conditioning unit of the i-th smart building at time t; represents the electric power output by the ith smart building photovoltaic unit at time t; represents the carbon emissions of electric vehicles; represents the charging power of the electric vehicle at time t; represents the discharge power of the electric vehicle at time t; η evc Represents the charging efficiency of electric vehicles; η evd Indicates the discharge efficiency of electric vehicles; Indicates the carbon emission coefficient of charging and discharging at time t; U evc Represents the unit utility of charging at time t.
[0088] The constraints are imposed on the smart building optimization scheduling model. They are expressed as follows:
[0089] The cogeneration unit constraints are:
[0090]
[0091]
[0092] in, represents the electric power output of the cogeneration unit of the i-th smart building at time t; represents the thermal power output of the cogeneration unit of the i-th smart building at time t; H GHV Indicates the calorific value of natural gas; represents the amount of natural gas consumed by the cogeneration unit of the i-th smart building at time t; It represents the electrical efficiency of the combined heat and power unit; It represents the thermal efficiency of the combined heat and power unit.
[0093] The gas boiler equipment constraints are:
[0094]
[0095] in, represents the thermal power output of the gas boiler of the i-th smart building at time t; represents the natural gas consumption of the gas boiler of the i-th smart building at time t; Indicates the thermal efficiency of the gas boiler.
[0096] The central air conditioning operation constraints are:
[0097]
[0098] in, represents the thermal power output of the central air conditioner of the i-th smart building at time t; Indicates the heating energy efficiency ratio of central air conditioning; Represents the electric power consumed by the central air conditioner of the i-th smart building at time t.
[0099] Constraints for connecting electric vehicles to buildings:
[0100] As the two parties in the purchase and sale of electricity, there is essentially a master-slave game between electric vehicles and smart buildings, with smart buildings as the dominant force.
[0101] The electric vehicle purchase / sale constraints are:
[0102]
[0103]
[0104]
[0105] in, represents the charging power of the electric vehicle at time t; represents the discharge power of the electric vehicle at time t; Indicates the rated charging power of the electric vehicle; Indicates the rated discharge power of the electric vehicle; Indicates the parking status of the electric vehicle; represents the battery capacity of the electric vehicle at time t; represents the battery capacity of the electric vehicle at time t+1; η evc Represents the charging efficiency of electric vehicles; ηevd Indicates the discharge efficiency of electric vehicles; represents the charging power of the electric vehicle at time t+1; Represents the discharge power of the electric vehicle at time t+1.
[0106] Renewable energy equipment output model and constraints:
[0107] In order to solve the uncertainty of photovoltaic power generation in the smart building system, opportunity constraints are imposed in the form of distributed blue bars, which are expressed as follows:
[0108]
[0109]
[0110] in, is the marginal distribution; is the joint probability distribution; represents the empirical distribution of PV output; represents the real distribution of photovoltaic output; ε represents the fuzzy radius; ξ represents the error vector; ρ represents the uncertainty confidence level.
[0111] The system power balance constraint includes a system electrical power balance constraint and a system thermal power balance constraint.
[0112] The system power balance constraint is:
[0113]
[0114] in, It represents the electric power output of the i-th smart building cogeneration unit at time t; represents the power purchased by the i-th smart building at time t; represents the electricity sales power of the i-th smart building at time t; It represents the system electric load demand power at time t; Represents the electric energy transaction power between the i-th smart building and the j-th smart building at time t.
[0115] Different from the balance constraint characteristics of the power system in the building, the heating system has a certain thermal inertia. Therefore, the relationship between the heating network temperature and the indoor and outdoor temperatures at time t can be described by the autoregressive moving average time series model as follows:
[0116]
[0117]
[0118] Among them, T i,g,t , T i,h,t, T i,n,t and T i,w,t They represent the heating network water supply temperature, heating network return water temperature, building indoor temperature and building outdoor temperature at time t respectively; i,n,t-j is the indoor temperature of the building at time tj; T i,g,t-j is the water supply temperature of the heating network at time tj; T i,w,t-j is the outdoor temperature of the building at time tj; T i,n,t-1 is the indoor temperature of the building at time t-1; T i,g,t-1 is the water supply temperature of the heating network at time t-1; T i,w,t-1 is the outdoor temperature of the building at time t-1; J is the thermal inertia order; α j , β j , γ j ,θ1, and ω1 are the corresponding parameters of the thermal inertia of the heating system, and their values can be obtained through specific measurements.
[0119] At the same time, since people's perception of the indoor thermal environment is somewhat vague, it can be expressed by predicting the average evaluation index:
[0120]
[0121] -σ≤λ PMV ≤σ.
[0122] In the formula, λ PMV represents the average evaluation index of thermal comfort prediction; M and W represent the energy metabolism rate and corresponding mechanical work of indoor personnel respectively; P a Indicates the partial pressure of water vapor in the air near the body of indoor personnel; f cl It indicates the ratio of the indoor clothing coverage area to the exposed area; h c represents the surface heat transfer coefficient; t a ,t r and t cl They represent indoor air temperature, radiation temperature and clothing surface temperature respectively; σ represents the average index range of thermal comfort prediction.
[0123] The system thermal power balance constraint is:
[0124]
[0125]
[0126] in, represents the thermal power output by the central air-conditioning unit of the i-th smart building at time t; represents the thermal power output by the i-th smart building cogeneration unit at time t; represents the thermal power output of the i-th smart building gas boiler at time t; It represents the heat load demand power of the building at time t; γ is the relationship coefficient between the boiler heat supply and the supply / return water temperature of the heating network, and its size depends on the flow rate of the heating network.
[0127] The energy trading constraints are:
[0128]
[0129] in, represents the upper limit of the power trading between the i-th smart building and the j-th smart building; represents the lower limit of electricity trading between the i-th smart building and the j-th smart building; N represents the number of smart buildings participating in electricity trading.
[0130] S3: Based on the smart building optimization scheduling model, the Nash negotiation theory is used to establish a smart building point-to-point electricity trading cooperative game model.
[0131] S4: Based on the renewable energy output and the day-ahead forecast values of various load demands, the ADMM algorithm is used to solve the cooperative game model of the smart building point-to-point electricity trading to obtain the optimized scheduling decision quantity of the smart building's electricity trading, so as to optimize the electricity trading scheduling of the smart buildings participating in the point-to-point electricity trading; the electricity trading optimized scheduling decision quantity includes the optimized output value of the internal equipment of each smart building, various load demand values, the actual output value of renewable energy, the charging and discharging power of electric vehicles, the electricity trading power between smart buildings, the electricity trading coefficient and the electricity trading carbon emission coefficient.
[0132] As an optional implementation method, based on the renewable energy output and the day-ahead forecast values of various load demands, the ADMM algorithm is used to solve the smart building point-to-point power trading cooperative game model to obtain the power trading optimization scheduling decision quantity of the smart building, which specifically includes:
[0133] The smart building peer-to-peer electricity trading cooperative game model is decomposed into an electricity trading power sub-problem and an electricity trading carbon emission coefficient sub-problem.
[0134] Based on the day-ahead forecast values of the renewable energy output and various load demands, the ADMM algorithm is used to solve the power sub-problem of electric energy trading, and the optimal solution for the carbon emissions of purchased energy for the i-th smart building, the optimal solution for the carbon emissions of the equipment operating in the energy system of the i-th smart building, and the optimal solution for the carbon emissions of electric vehicles are obtained.
[0135] According to the renewable energy output, the multiple day-ahead forecast values of the load demands, the optimal solution for the carbon emissions from energy purchases of the i-th smart building, the optimal solution for the carbon emissions from equipment operation in the i-th smart building energy system, and the optimal solution for the carbon emissions from electric vehicles, the ADMM algorithm is used to solve the carbon emission coefficient sub-problem of electricity trading to obtain the decision quantity for optimizing the scheduling of electricity trading.
[0136] In practical applications, based on the optimization model of a single smart building, a point-to-point electricity trading cooperative game model for smart buildings is established based on the Nash negotiation theory, and it is decomposed into the electricity trading power sub-problem and the electricity trading carbon emission coefficient sub-problem for solution.
[0137] The cooperative game model of the smart building peer-to-peer power trading is:
[0138]
[0139] in, It represents the operating cost of the smart building when it is optimized independently; N represents the number of smart buildings participating in electricity trading.
[0140] The above Nash negotiation model (smart building peer-to-peer power trading cooperative game model) is transformed into the power sub-problem of power trading and the carbon emission coefficient sub-problem of power trading, which can be expressed as follows:
[0141] The objective function of the power sub-problem of electric energy trading is:
[0142]
[0143] The objective function of the carbon emission coefficient sub-problem of electricity trading is:
[0144]
[0145] in, is the optimal solution for the carbon emissions of purchased energy for the i-th smart building; The optimal solution for carbon emissions from equipment operation in the i-th smart building energy system; The optimal solution for carbon emissions of electric vehicles.
[0146] In the electric energy trading power solving unit and the electric energy trading price solving unit, the ADMM algorithm is used to solve the two sub-problems in step 3 through the Mosek commercial solver, which is specifically implemented by the following formula:
[0147] Solution to the power sub-problem of electric energy trading:
[0148] Based on the principle of ADMM algorithm, the augmented Lagrangian function of the power sub-problem of electric energy trading is constructed as follows:
[0149]
[0150] in, The augmented Lagrangian function for the power subproblem of electric energy trading; Lagrange multipliers for the power subproblem of electric energy trading; Penalty parameter for the power subproblem of energy trading.
[0151] a. Each smart building calculates its own power trading strategy and exchanges information with other smart buildings. Iterate through the following steps:
[0152]
[0153] Where k is the number of iterations.
[0154] Smart building i solves its strategy through the above iterations Smart Building Reception Strategy Update its strategy by
[0155]
[0156] Repeat the calculation of the above two formulas to ensure that each smart building updates its trading strategy in this iteration.
[0157] b. Update the Lagrange multiplier after one round of iteration:
[0158]
[0159] c. Update the number of iterations: k=k+1.
[0160] d. Determine whether the algorithm converges:
[0161]
[0162] If the above equation is satisfied, the iteration is terminated, otherwise it returns to step a and iterates until the convergence condition is met or the maximum number of iterations is reached. The final solution is as follows: Figure 3 shown.
[0163] After solving the electric energy trading power, the data is transmitted to the electric energy trading carbon emission coefficient solving unit for the final electric energy trading carbon emission coefficient solution. Based on the ADMM algorithm principle, the augmented Lagrangian function of the electric energy trading carbon emission coefficient sub-problem is constructed as:
[0164]
[0165] in, is the augmented Lagrangian function of the carbon emission coefficient subproblem of electricity trading; * represents the final result obtained from the trading power subproblem; Lagrange multipliers for the carbon emission coefficient subproblem of electricity trading; Penalty parameter for the carbon emission coefficient sub-problem of electricity trading.
[0166] A. Each smart building calculates its own power trading strategy and exchanges information with other smart buildings. Iterate through the following steps:
[0167]
[0168] Smart building i solves its strategy through the above iterations Smart Building Reception Strategy Update its strategy by
[0169]
[0170] Repeat the calculation of the two formulas in step a to ensure that each smart building updates its trading strategy in this iteration.
[0171] B. Update the Lagrange multiplier after one round of iteration:
[0172]
[0173] C. Update number of iterations: k = k + 1
[0174] D. Determine algorithm convergence:
[0175]
[0176] If the above equation is satisfied, the iteration is terminated, otherwise return to step A to update the iteration until the convergence condition is met or the maximum number of iterations is reached. The solution is as follows Figure 4 shown.
[0177] The present invention also provides a smart building power trading system considering multiple uncertain fluctuations, such as Figure 5As shown in FIG. 1 , the system mainly includes a parameter initialization and numerical input unit, an optimization scheduling model establishment and constraint unit, an energy trading power determination unit, and an energy trading electricity price determination unit. The parameter initialization and numerical input unit initializes the equipment parameters in the smart building, and inputs the photovoltaic output, the day-ahead forecast value of various load demands, and the energy market price to determine the optimization scheduling decision quantity of the smart building energy trading; the optimization scheduling model establishment and constraint unit processes the uncertainty of renewable energy output and electric vehicle charging and discharging in any smart building by applying the distributed blue stick optimization method and the master-slave game method, and on this basis establishes a cooperative optimization operation cost model for any smart building, and further establishes a smart building cooperative game model based on the Nash negotiation theory, and decomposes it into the energy trading power sub-problem and the energy trading carbon emission coefficient sub-problem; the energy trading power determination unit is used to solve the energy trading power of any smart building participating in the point-to-point energy trading; the energy trading carbon emission coefficient determination unit is used to solve the energy trading carbon emission coefficient of any smart building participating in the point-to-point energy trading.
[0178] The present invention proposes a smart building power trading game method and system that takes into account multiple uncertain fluctuations. Compared with the prior art, the present invention can effectively avoid the impact of the uncertainty of photovoltaic output and the irregular charging and discharging of electric vehicles on the operation and scheduling of the smart building system.
[0179] Example 2
[0180] A computer device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the smart building electricity trading optimization and scheduling method in Example 1.
[0181] Example 3
[0182] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the smart building electricity trading optimization scheduling method in Example 1.
[0183] Example 4
[0184] A computer program product includes a computer program, which, when executed by a processor, implements the smart building electricity trading optimization scheduling method in Example 1.
[0185] Example 5
[0186] A computer device, which may be a database, may have an internal structure as shown in Figure 6As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store pending transactions. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, it implements the smart building power trading optimization scheduling method in Example 1.
[0187] It should be noted that the object information (including but not limited to object device information, object personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in the present invention are all information and data authorized by the object or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0188] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided by the present invention can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided by the present invention may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited thereto. The processor involved in each embodiment provided by the present invention may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited thereto.
[0189] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0190] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of the present invention. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A smart building power trading optimization scheduling method, characterized in that: include: Initialize the equipment parameters of each smart building participating in peer-to-peer power trading, and obtain the day-ahead forecast values of renewable energy output and various load demands; Establish a smart building optimization scheduling model with minimization of daily operating carbon emissions as the objective function and cogeneration unit constraints, gas boiler equipment constraints, central air conditioning operation constraints, electric vehicle purchase / sale power constraints, renewable energy equipment output constraints, system power balance constraints and power trading constraints as constraints; According to the smart building optimization scheduling model, the Nash negotiation theory is used to establish a smart building point-to-point electricity trading cooperative game model; Based on the renewable energy output and the day-ahead forecast values of various load demands, the ADMM algorithm is used to solve the cooperative game model of the smart building point-to-point electricity trading, and the electricity trading optimization scheduling decision quantity of the smart building is obtained, so as to optimize the electricity trading scheduling of the smart buildings participating in the point-to-point electricity trading; the electricity trading optimization scheduling decision quantity includes the optimized output value of the internal equipment of each smart building, various load demand values, the actual output value of renewable energy, the charging and discharging power of electric vehicles, the electricity trading power between smart buildings, the electricity trading coefficient and the electricity trading carbon emission coefficient.
2. The smart building power trading optimization scheduling method according to claim 1 is characterized in that: The objective function is: in, represents the total carbon emissions of the cooperative operation of the ith smart building in a typical day; represents the carbon emissions of the i-th smart building point-to-point electricity trading; represents the carbon emission coefficient of electricity trading of the i-th smart building and the j-th smart building at time t; represents the electric energy trading power of the i-th smart building and the j-th smart building at time t; represents the carbon emissions of purchased energy of the i-th smart building; α gas Indicates the carbon emission coefficient of gas purchased per unit power; represents the carbon emission coefficient of the unit power purchased by the i-th smart building; represents the carbon emission coefficient of the electricity sold per unit power of the i-th smart building; represents the gas purchasing power of the i-th smart building at time t; represents the power purchased by the i-th smart building at time t; represents the electricity sales power of the i-th smart building at time t; represents the carbon emissions of the equipment in the i-th smart building energy system; Indicates the carbon emission coefficient of electricity generated by the cogeneration unit; Represents the carbon emission coefficient of heat generated by the cogeneration unit; α GB Indicates the carbon emission coefficient of gas boiler operation; α HVAC represents the carbon emissions from the operation of the central air-conditioning unit; α PV Indicates the carbon emission coefficient of photovoltaic equipment; represents the electric power output by the i-th smart building cogeneration unit at time t; represents the thermal power output by the i-th smart building cogeneration unit at time t; represents the thermal power output of the i-th smart building gas boiler at time t; represents the thermal power output by the central air-conditioning unit of the i-th smart building at time t; represents the electric power output by the ith smart building photovoltaic unit at time t; represents the carbon emissions of electric vehicles; represents the charging power of the electric vehicle at time t; represents the discharge power of the electric vehicle at time t; η evc Represents the charging efficiency of electric vehicles; η evd Indicates the discharge efficiency of electric vehicles; Indicates the carbon emission coefficient of charging and discharging at time t; U evc Represents the unit utility of charging at time t.
3. The smart building power trading optimization scheduling method according to claim 1 is characterized in that: The cogeneration unit constraints are: in, represents the electric power output of the cogeneration unit of the i-th smart building at time t; represents the thermal power output of the cogeneration unit of the i-th smart building at time t; H GHV Indicates the calorific value of natural gas; represents the amount of natural gas consumed by the cogeneration unit of the i-th smart building at time t; It represents the electrical efficiency of the combined heat and power unit; It represents the thermal efficiency of the combined heat and power unit; The gas boiler equipment constraints are: in, represents the thermal power output of the gas boiler of the i-th smart building at time t; represents the natural gas consumption of the gas boiler of the i-th smart building at time t; Indicates the thermal efficiency of the gas boiler; The central air conditioning operation constraints are: in, represents the thermal power output of the central air conditioner of the i-th smart building at time t; Indicates the heating energy efficiency ratio of central air conditioning; represents the electric power consumed by the central air conditioner of the i-th smart building at time t; The electric vehicle purchase / sale constraints are: in, represents the charging power of the electric vehicle at time t; represents the discharge power of the electric vehicle at time t; Indicates the rated charging power of the electric vehicle; Indicates the rated discharge power of the electric vehicle; Indicates the parking status of the electric vehicle; represents the battery capacity of the electric vehicle at time t; represents the battery capacity of the electric vehicle at time t+1; η evc Represents the charging efficiency of electric vehicles; η evd Indicates the discharge efficiency of electric vehicles; represents the charging power of the electric vehicle at time t+1; Represents the discharge power of the electric vehicle at time t+1; The output constraints of renewable energy equipment are: in, is the marginal distribution; is the joint probability distribution; represents the empirical distribution of PV output; represents the real distribution of photovoltaic output; ε represents the fuzzy radius; ξ represents the error vector; ρ represents the uncertainty confidence level; The system power balance constraint includes a system electric power balance constraint and a system thermal power balance constraint; The system power balance constraint is: in, It represents the electric power output of the i-th smart building cogeneration unit at time t; represents the power purchased by the i-th smart building at time t; represents the electricity sales power of the i-th smart building at time t; P represents the system load demand power at time t; t i,j represents the power transaction between the i-th smart building and the j-th smart building at time t; The system thermal power balance constraint is: in, represents the thermal power output by the central air-conditioning unit of the i-th smart building at time t; represents the thermal power output by the i-th smart building cogeneration unit at time t; represents the thermal power output of the i-th smart building gas boiler at time t; represents the heat load power demand of the building at time t; γ is the relationship coefficient between the boiler heat supply and the supply / return water temperature of the heating network, and its size depends on the flow rate of the heating network; T i,g,t is the water supply temperature of the heating network at time t; T i,h,t is the return water temperature of the heating network at time t; The energy trading constraints are: in, represents the upper limit of the power trading between the i-th smart building and the j-th smart building; represents the lower limit of electricity trading between the i-th smart building and the j-th smart building; N represents the number of smart buildings participating in electricity trading.
4. The smart building power trading optimization scheduling method according to claim 1 is characterized in that: Based on the day-ahead forecast values of the renewable energy output and various load demands, the ADMM algorithm is used to solve the cooperative game model of the smart building point-to-point power trading to obtain the optimal scheduling decision quantity of the power trading of the smart building, which specifically includes: Decomposing the smart building peer-to-peer power trading cooperative game model into a power trading sub-problem and a carbon emission coefficient sub-problem; Based on the renewable energy output and the day-ahead forecast values of various load demands, the ADMM algorithm is used to solve the power subproblem of electric energy trading, and the optimal solution for the carbon emissions of the purchased energy of the i-th smart building, the optimal solution for the carbon emissions of the equipment running in the energy system of the i-th smart building, and the optimal solution for the carbon emissions of electric vehicles are obtained; According to the renewable energy output, the multiple day-ahead forecast values of the load demands, the optimal solution for the carbon emissions from energy purchases of the i-th smart building, the optimal solution for the carbon emissions from equipment operation in the i-th smart building energy system, and the optimal solution for the carbon emissions from electric vehicles, the ADMM algorithm is used to solve the carbon emission coefficient sub-problem of electricity trading to obtain the decision quantity for optimizing the scheduling of electricity trading.
5. The method for optimizing and scheduling electric energy trading in smart buildings according to claim 4 is characterized in that: The cooperative game model of the smart building peer-to-peer power trading is: in, It represents the operating cost of a smart building when it is optimized independently; represents the total carbon emissions of the cooperative operation of the ith smart building in a typical day; N represents the number of smart buildings participating in electricity trading.
6. The smart building power trading optimization scheduling method according to claim 4 is characterized in that: The power sub-problem of electric energy trading is: in, represents the carbon emissions of purchased energy of the i-th smart building; represents the carbon emissions of the equipment in the i-th smart building energy system; represents the carbon emissions of electric vehicles; N represents the number of smart buildings participating in electricity trading.
7. The smart building power trading optimization scheduling method according to claim 4 is characterized in that: The carbon emission coefficient sub-problem of electricity trading is: in, It represents the operating cost of a smart building when it is optimized independently; is the optimal solution for the carbon emissions of purchased energy for the i-th smart building; The optimal solution for carbon emissions from equipment operation in the i-th smart building energy system; Optimal solution for carbon emissions of electric vehicles; represents the carbon emissions of the i-th smart building’s point-to-point electricity trading; N represents the number of smart buildings participating in the electricity trading.
8. A computer device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the smart building electricity trading optimization and scheduling method as described in any one of claims 1-7.
9. 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 smart building electricity trading optimization scheduling method described in any one of claims 1-7.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, it implements the smart building electricity trading optimization scheduling method described in any one of claims 1-7.
