Building power consumption scheduling method and device, computer equipment, readable storage medium and program product

By constructing scheduling subsidy functions for air conditioning and electric vehicles, and combining them with photovoltaic power generation, a building power dispatching scheme is generated to solve the problem of excessively high peak building power consumption, thereby reducing power consumption pressure and optimizing carbon emissions.

CN120931351APending Publication Date: 2025-11-11SHENZHEN POWER SUPPLY BUREAU
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511055108.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-30
Publication Date
2025-11-11

AI Technical Summary

Technical Problem

Excessive peak electricity load in buildings, especially during the high-temperature period in summer and when electric vehicles are charging haphazardly, can increase the load pressure on the power grid, potentially leading to overload of power distribution equipment and the need to call up expensive backup power supplies.

Method used

An air conditioning scheduling subsidy function and an electric vehicle charging and discharging scheduling subsidy function are constructed. Combined with photovoltaic power generation, a joint scheduling objective function is constructed to generate a building power consumption scheduling scheme, which controls the operating status of air conditioning and electric vehicles to reduce peak power consumption.

Benefits of technology

By constraining the electricity consumption and charging/discharging of air conditioners and electric vehicles, peak electricity consumption can be reduced, electricity pressure can be decreased, the utilization of new energy power generation can be optimized, and carbon emissions can be reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120931351A_ABST
    Figure CN120931351A_ABST
Patent Text Reader

Abstract

The invention relates to a building power consumption scheduling method and device, computer equipment, a computer readable storage medium and a computer program product. Comprising the steps of constructing an air conditioner dispatching subsidy function; constructing a charging scheduling subsidy function of the electric vehicle and a discharging scheduling subsidy function of the electric vehicle; based on the air conditioner dispatching subsidy function, the charging dispatching subsidy function of the electric vehicle, the discharging dispatching subsidy function of the electric vehicle, the total electricity utilization load and the unit electricity utilization price, a dispatching subsidy objective function is constructed; based on the scheduling subsidy objective function and the photovoltaic power generation power, constructing a joint scheduling objective function considering new energy power generation; acquiring air conditioner data and electric vehicle data in the building every other preset scheduling time period; and based on the joint scheduling objective function considering new energy power generation, generating a building power consumption scheduling scheme, and based on the building power consumption scheduling scheme, controlling the operation state of an air conditioner in a building and the charging and discharging state of an electric vehicle. By adopting the method, the building can be regulated and controlled.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of power technology, and in particular to a building power dispatching method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Technology

[0002] Three-quarters of the total energy consumption in the construction industry comes from building loads. Due to the significant proportion of building loads and their considerable adjustability, there is great potential for improving energy efficiency through building load regulation. Residential and commercial buildings constitute a large proportion of this, and their electricity loads are complex and diverse, making them a key focus of building energy management research in recent years. Research on building energy management strategies has become a hot topic in contemporary society. At the same time, my country's power system is experiencing rapid growth in electricity consumption, and some regions are facing power shortages during peak load periods. Developing load-side resource peak-shaving capabilities has become an urgent problem to be solved.

[0003] During the hot summer months, the large-scale use of air conditioners drives up peak electricity consumption. Coupled with the disorderly charging of electric vehicles (EVs) in buildings, this further exacerbates the load on the power grid, which may lead to overload of power distribution equipment or even force the use of expensive backup power. Summary of the Invention

[0004] Therefore, it is necessary to provide a building power dispatching method, device, computer equipment, computer-readable storage medium, and computer program product that can reduce the peak power consumption of buildings, in order to address the above-mentioned technical problems.

[0005] Firstly, this application provides a building power dispatching method, including:

[0006] Construct an air conditioning dispatch subsidy function; construct a charging dispatch subsidy function and a discharging dispatch subsidy function for electric vehicles; the subsidy refers to the preferential electricity price given to building users after they agree to participate in electricity dispatch.

[0007] Based on the subsidy function for air conditioning scheduling, the subsidy function for charging electric vehicles, the subsidy function for discharging electric vehicles, the total electricity load, and the unit electricity price, a scheduling subsidy objective function is constructed.

[0008] Based on the aforementioned scheduling subsidy objective function and photovoltaic power generation, a joint scheduling objective function considering new energy power generation is constructed.

[0009] Every preset scheduling time period, acquire air conditioning data and electric vehicle data in the building; based on the joint scheduling objective function considering new energy power generation, generate a building power consumption scheduling scheme; based on the building power consumption scheduling scheme, control the operating status of air conditioning and the charging and discharging status of electric vehicles in the building.

[0010] In one embodiment, constructing the air conditioning scheduling subsidy function includes:

[0011] An air conditioning scheduling subsidy function is constructed based on the number of preset scheduling time periods, the number of air conditioners, the electricity price discount rate, the state variables of the air conditioners, the power of the air conditioners, and the preset scheduling time periods. The air conditioning scheduling subsidy function is constrained by setting constraints on the shortest operating duration and the longest interruptible time of the air conditioners, based on the building's external ambient temperature, a preset lower temperature limit, a preset upper temperature limit, the air conditioner's energy efficiency ratio, the air conditioner's power, thermal conductivity, and heat dissipation coefficient. Finally, the air conditioner's on / off state constraints are set based on the air conditioner's state variables, the air conditioner's actions at the end of the time period, the number of preset scheduling time periods, and the shortest operating duration constraint.

[0012] In one embodiment, constructing the charging scheduling subsidy function and the discharging scheduling subsidy function of the electric vehicle includes:

[0013] Based on the number of preset scheduling time periods, the number of electric vehicles to be scheduled, the electricity price compensation rate, the unit electricity price, the charging status of electric vehicles, the maximum charging power of electric vehicles, the charging power of electric vehicles, and the preset scheduling time periods, a charging scheduling subsidy function for electric vehicles is constructed. Based on the price of electric vehicles and the number of charge-discharge cycles during the battery life of electric vehicles, the energy storage cost per unit of electricity is determined. Based on the energy storage cost per unit of electricity, the discharge status of electric vehicles, the discharge efficiency of electric vehicles, the discharge power of electric vehicles, and the preset scheduling time periods, a discharge scheduling subsidy function for electric vehicles is set. Based on the current electricity level of electric vehicles, the initial electricity level of electric vehicles, the charging efficiency of electric vehicles, the preset minimum electricity level of electric vehicles, and the maximum electricity level of electric vehicles, an electric vehicle electricity level constraint is set to constrain the charging scheduling subsidy function and the discharge scheduling subsidy function. Based on the charging status and the discharge status of electric vehicles, a charge-discharge status constraint is set to constrain the charging scheduling subsidy function and the discharge scheduling subsidy function.

[0014] In one embodiment, constructing a joint dispatch objective function considering new energy power generation based on the dispatch subsidy objective function and photovoltaic power generation includes:

[0015] Based on the photovoltaic power generation, the charging power of the electric vehicle, the discharging power of the electric vehicle, and the power of the air conditioner, a target function for new energy power generation scheduling is constructed; based on the scheduling subsidy target function and the new energy power generation scheduling target function, a joint scheduling target function considering new energy power generation is constructed.

[0016] In one embodiment, the method further includes:

[0017] Based on the first weighting coefficient, the second weighting coefficient, the marginal power coefficient, and the marginal capacity coefficient, the marginal unit power emission coefficient of electricity is determined; based on the number of preset scheduling time periods, the base power of the air conditioner, and the power of the air conditioner, the daily load reduction of the air conditioner is determined; based on the marginal unit power emission coefficient of electricity, the daily load reduction of the air conditioner, and the preset scheduling time periods, a carbon emission reduction function for air conditioner scheduling is constructed; based on the output power of solar photovoltaic panels, the marginal unit power emission coefficient of electricity, and the preset scheduling time periods, a carbon emission reduction function for electric vehicle charging and discharging scheduling is constructed.

[0018] In one embodiment, after controlling the operating status of the air conditioners and the charging / discharging status of the electric vehicles based on the building power dispatching scheme, the method further includes:

[0019] Based on building air conditioning and electric vehicle data, the air conditioning and electric vehicle power loads are simulated without using the building power dispatching scheme. These are used as the pre-dispatch air conditioning and electric vehicle power loads. Then, the air conditioning and electric vehicle power loads are obtained after controlling the building's air conditioning and electric vehicle charging / discharging states according to the building power dispatching scheme. These are used as the post-dispatch air conditioning and electric vehicle power loads. Based on the pre-dispatch air conditioning and electric vehicle power loads, the post-dispatch air conditioning and electric vehicle power loads, the carbon emission reduction function of the air conditioning dispatching, and the carbon emission reduction function of the electric vehicle charging / discharging dispatching, the carbon emission reduction after using the building power dispatching scheme is determined.

[0020] Secondly, this application also provides a building power dispatching device, comprising:

[0021] The first construction module is used to construct the air conditioning dispatch subsidy function; construct the electric vehicle charging dispatch subsidy function and the electric vehicle discharging dispatch subsidy function; the subsidy refers to the preferential electricity price given to the building user after the user agrees to participate in the electricity dispatch.

[0022] The second construction module is used to construct a scheduling subsidy target function based on the air conditioning scheduling subsidy function, the electric vehicle charging scheduling subsidy function, the electric vehicle discharging scheduling subsidy function, the total electricity load, and the unit electricity price.

[0023] The third construction module is used to construct a joint scheduling objective function that takes into account new energy power generation based on the scheduling subsidy objective function and photovoltaic power generation.

[0024] The power dispatch module is used to acquire air conditioning data and electric vehicle data in the building at preset dispatch time intervals; based on the joint dispatch objective function considering new energy power generation, it generates a building power dispatch scheme; and based on the building power dispatch scheme, it controls the operating status of air conditioning and the charging and discharging status of electric vehicles in the building.

[0025] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:

[0026] Construct an air conditioning dispatch subsidy function; construct a charging dispatch subsidy function and a discharging dispatch subsidy function for electric vehicles; the subsidy refers to the preferential electricity price given to building users after they agree to participate in electricity dispatch.

[0027] Based on the subsidy function for air conditioning scheduling, the subsidy function for charging electric vehicles, the subsidy function for discharging electric vehicles, the total electricity load, and the unit electricity price, a scheduling subsidy objective function is constructed.

[0028] Based on the aforementioned scheduling subsidy objective function and photovoltaic power generation, a joint scheduling objective function considering new energy power generation is constructed.

[0029] Every preset scheduling time period, acquire air conditioning data and electric vehicle data in the building; based on the joint scheduling objective function considering new energy power generation, generate a building power consumption scheduling scheme; based on the building power consumption scheduling scheme, control the operating status of air conditioning and the charging and discharging status of electric vehicles in the building.

[0030] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the following steps:

[0031] Construct an air conditioning dispatch subsidy function; construct a charging dispatch subsidy function and a discharging dispatch subsidy function for electric vehicles; the subsidy refers to the preferential electricity price given to building users after they agree to participate in electricity dispatch.

[0032] Based on the subsidy function for air conditioning scheduling, the subsidy function for charging electric vehicles, the subsidy function for discharging electric vehicles, the total electricity load, and the unit electricity price, a scheduling subsidy objective function is constructed.

[0033] Based on the aforementioned scheduling subsidy objective function and photovoltaic power generation, a joint scheduling objective function considering new energy power generation is constructed.

[0034] Every preset scheduling time period, acquire air conditioning data and electric vehicle data in the building; based on the joint scheduling objective function considering new energy power generation, generate a building power consumption scheduling scheme; based on the building power consumption scheduling scheme, control the operating status of air conditioning and the charging and discharging status of electric vehicles in the building.

[0035] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, performs the following steps:

[0036] Construct an air conditioning dispatch subsidy function; construct a charging dispatch subsidy function and a discharging dispatch subsidy function for electric vehicles; the subsidy refers to the preferential electricity price given to building users after they agree to participate in electricity dispatch.

[0037] Based on the subsidy function for air conditioning scheduling, the subsidy function for charging electric vehicles, the subsidy function for discharging electric vehicles, the total electricity load, and the unit electricity price, a scheduling subsidy objective function is constructed.

[0038] Based on the aforementioned scheduling subsidy objective function and photovoltaic power generation, a joint scheduling objective function considering new energy power generation is constructed.

[0039] Every preset scheduling time period, acquire air conditioning data and electric vehicle data in the building; based on the joint scheduling objective function considering new energy power generation, generate a building power consumption scheduling scheme; based on the building power consumption scheduling scheme, control the operating status of air conditioning and the charging and discharging status of electric vehicles in the building.

[0040] The aforementioned building power dispatching method, device, computer equipment, computer-readable storage medium, and computer program product construct an air conditioning dispatching subsidy function; construct electric vehicle charging dispatching subsidy functions and electric vehicle discharging dispatching subsidy functions; the subsidy refers to the preferential electricity price given to users after they agree to participate in power dispatching; based on the air conditioning dispatching subsidy function, the electric vehicle charging dispatching subsidy function, the electric vehicle discharging dispatching subsidy function, the total power load, and the unit electricity price, a dispatching subsidy objective function is constructed; based on the dispatching subsidy objective function and photovoltaic power generation, a joint dispatching objective function considering new energy power generation is constructed; air conditioning data and electric vehicle data in the building are acquired at preset dispatching time intervals; based on the joint dispatching objective function considering new energy power generation, a building power dispatching scheme is generated; based on the building power dispatching scheme, the operating status of air conditioning and the charging and discharging status of electric vehicles in the building are controlled. By constraining air conditioning power consumption and electric vehicle charging and discharging, peak power consumption can be reduced, and power pressure can be reduced. Attached Figure Description

[0041] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0042] Figure 1 This is a flowchart illustrating a building power dispatching method in one embodiment;

[0043] Figure 2 This is a detailed flowchart of a building power dispatching method in one embodiment;

[0044] Figure 3 This is a structural block diagram of a building power dispatching device in one embodiment;

[0045] Figure 4 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0046] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0047] In one embodiment, such as Figure 1 As shown, a building power dispatching method is provided. This embodiment illustrates the method applied to a terminal. It is understood that this method can also be applied to a server, and further to a system including both a terminal and a server, and is implemented through interaction between the terminal and the server. In this embodiment, the method includes the following steps:

[0048] Step 102: Construct the air conditioning dispatch subsidy function; construct the electric vehicle charging dispatch subsidy function and the electric vehicle discharging dispatch subsidy function; the subsidy refers to the preferential electricity price given to the building user after the user agrees to participate in the electricity dispatch.

[0049] The subsidies refer to the surge in electricity consumption caused by the heavy use of air conditioning in office buildings during hot weather, creating peak electricity demand. If electric vehicles in these buildings also charge during this time, it exacerbates the problem (adding fuel to the fire), putting immense pressure on the power grid. To encourage users to reduce electricity consumption during peak hours (peak shaving and valley filling), power grid companies need to provide subsidies or electricity price discounts.

[0050] Step 104: Based on the subsidy function for air conditioning scheduling, the subsidy function for charging electric vehicles, the subsidy function for discharging electric vehicles, the total electricity load, and the unit electricity price, construct the objective function for scheduling subsidies.

[0051] The total electricity load is the total power consumption of all air conditioners and electric vehicles. The objective function for the dispatch subsidy is:

[0052]

[0053] in, Subsidies for air conditioning dispatch, Subsidies for charging dispatch of electric vehicles, Subsidies for the discharge scheduling of electric vehicles, These are the weighting coefficients. Electricity price per unit of electricity consumption This represents the total electrical load.

[0054] Step 106: Based on the aforementioned scheduling subsidy objective function and photovoltaic power generation, construct a joint scheduling objective function that considers new energy power generation.

[0055] Among them, new energy power generation refers to generating electricity using solar photovoltaic panels.

[0056] Step 108: Acquire air conditioning data and electric vehicle data in the building at preset scheduling time intervals; generate a building power consumption scheduling scheme based on the joint scheduling objective function considering new energy power generation; and control the operating status of air conditioning and the charging and discharging status of electric vehicles in the building based on the building power consumption scheduling scheme.

[0057] Optionally, the acquired air conditioning data includes the number of dispatchable air conditioners and their rated power; the acquired electric vehicle data includes the number of dispatchable electric vehicles, electric vehicle capacity, charging efficiency, discharging efficiency, upper limit of electric vehicle capacity, lower limit of electric vehicle capacity, upper limit of charging power, upper limit of discharging power, and electric vehicle cost.

[0058] The aforementioned building power dispatching method, device, computer equipment, computer-readable storage medium, and computer program product construct an air conditioning dispatching subsidy function; construct electric vehicle charging dispatching subsidy functions and electric vehicle discharging dispatching subsidy functions; the subsidy refers to the preferential electricity price given to users after they agree to participate in power dispatching; based on the air conditioning dispatching subsidy function, the electric vehicle charging dispatching subsidy function, the electric vehicle discharging dispatching subsidy function, the total power load, and the unit electricity price, a dispatching subsidy objective function is constructed; based on the dispatching subsidy objective function and photovoltaic power generation, a joint dispatching objective function considering new energy power generation is constructed; air conditioning data and electric vehicle data in the building are acquired at preset dispatching time intervals; based on the joint dispatching objective function considering new energy power generation, a building power dispatching scheme is generated; based on the building power dispatching scheme, the operating status of air conditioning and the charging and discharging status of electric vehicles in the building are controlled. By constraining air conditioning power consumption and electric vehicle charging and discharging, peak power consumption can be reduced, and power pressure can be reduced.

[0059] In an exemplary embodiment, constructing the air conditioning scheduling subsidy function includes:

[0060] An air conditioning scheduling subsidy function is constructed based on the number of preset scheduling time periods, the number of air conditioners, the electricity price discount rate, the state variables of the air conditioners, the power of the air conditioners, and the preset scheduling time periods. The air conditioning scheduling subsidy function is constrained by setting constraints on the shortest operating duration and the longest interruptible time of the air conditioners, based on the building's external ambient temperature, a preset lower temperature limit, a preset upper temperature limit, the air conditioner's energy efficiency ratio, the air conditioner's power, thermal conductivity, and heat dissipation coefficient. Finally, the air conditioner's on / off state constraints are set based on the air conditioner's state variables, the air conditioner's actions at the end of the time period, the number of preset scheduling time periods, and the shortest operating duration constraint.

[0061] The number of preset scheduling time periods is calculated by dividing a day into preset scheduling time periods, thus obtaining the number of preset scheduling time periods contained in a day.

[0062] For example, the air conditioning dispatch subsidy function is as follows:

[0063]

[0064] in, The number of preset scheduling time periods, For the number of air conditioners, For electricity price discount rate, Let be the state variable of the air conditioner, representing the state variable of the j-th air conditioner in the i-th time period. 1 indicates that the air conditioner is turned on at the corresponding time, and 0 indicates that the air conditioner is interrupted by scheduling at the corresponding time. Let j be the power of the j-th air conditioner during the i-th time period. The preset scheduling time period is defined. The minimum operating duration constraint and the maximum interruptible time constraint for the air conditioner are as follows:

[0065]

[0066]

[0067] in, For the shortest running duration, This is the longest time that the air conditioner can be interrupted. The building's external ambient temperature. The lower limit of the temperature is set in advance. The preset upper temperature limit. The energy efficiency ratio of air conditioners. For the power of the air conditioner, For thermal conductivity, this application uses G=0.18. Let be the heat dissipation coefficient. The on / off state constraints for the air conditioner are:

[0068]

[0069]

[0070]

[0071]

[0072] in, Let m be the state variable of the air conditioner at time m, and let i be the action of the air conditioner at the end of the i-th time period, which is to turn it on or off. 1 represents turning it on and 0 represents turning it off.

[0073] In this embodiment, by constructing an air conditioning scheduling subsidy function and setting relevant constraints, peak electricity consumption can be reduced by scheduling air conditioning.

[0074] In an exemplary embodiment, constructing the charging scheduling subsidy function and the discharging scheduling subsidy function of the electric vehicle includes:

[0075] Based on the number of preset scheduling time periods, the number of electric vehicles to be scheduled, the electricity price compensation rate, the unit electricity price, the charging status of electric vehicles, the maximum charging power of electric vehicles, the charging power of electric vehicles, and the preset scheduling time periods, a charging scheduling subsidy function for electric vehicles is constructed. Based on the price of electric vehicles and the number of charge-discharge cycles during the battery life of electric vehicles, the energy storage cost per unit of electricity is determined. Based on the energy storage cost per unit of electricity, the discharge status of electric vehicles, the discharge efficiency of electric vehicles, the discharge power of electric vehicles, and the preset scheduling time periods, a discharge scheduling subsidy function for electric vehicles is set. Based on the current electricity level of electric vehicles, the initial electricity level of electric vehicles, the charging efficiency of electric vehicles, the preset minimum electricity level of electric vehicles, and the maximum electricity level of electric vehicles, an electric vehicle electricity level constraint is set to constrain the charging scheduling subsidy function and the discharge scheduling subsidy function. Based on the charging status and the discharge status of electric vehicles, a charge-discharge status constraint is set to constrain the charging scheduling subsidy function and the discharge scheduling subsidy function.

[0076] For example, the charging scheduling subsidy function for electric vehicles is:

[0077]

[0078] in, In order to manage the number of electric vehicles, For electricity price compensation rate, The charging status of electric vehicles is represented by , indicating the charging status of the j-th electric vehicle in the i-th time period. 1 indicates that the charging plan of the j-th electric vehicle is terminated due to scheduling in the i-th time period, and 0 indicates that the j-th electric vehicle continues to charge without being affected by scheduling in the i-th time period. The maximum charging power for electric vehicles, Let be the charging power of the electric vehicle, and let represent the actual charging power of the j-th electric vehicle in the i-th time period. The discharge scheduling subsidy function for the electric vehicle is:

[0079]

[0080] in, The energy storage cost per unit of electricity, This refers to the discharge state of the electric vehicle. This represents the discharge state of the j-th electric vehicle in time period i, where 1 indicates that the j-th electric vehicle starts discharging after being dispatched in time period i, and 0 indicates that the j-th electric vehicle does not discharge after being dispatched in time period i. For the discharge efficiency of electric vehicles. Let be the discharge power of the electric vehicle, and represent the discharge power of the j-th electric vehicle during time period i. The energy storage cost per unit of electricity. The calculation formula is:

[0081]

[0082] in, The price of an electric vehicle (RMB / kWh). This refers to the number of charge-discharge cycles during the battery's lifespan. The electric vehicle's energy limit is:

[0083]

[0084]

[0085] in, Let $\frac{i}{j}$ be the current battery level of the $j$-th electric vehicle at time $i$. η is the initial charge of the electric vehicle. ch For electric vehicle charging efficiency, This is the preset minimum battery level for electric vehicles, set to prevent deep discharge and consider user driving needs; in this paper, the value is set to 0.1. The maximum battery capacity of the electric vehicle is 0.9. To extend battery life, this paper uses a value of 0.9. The operating states of an electric vehicle are mutually exclusive; that is, an electric vehicle cannot be charging and discharging simultaneously. The charging and discharging state constraints of the electric vehicle are as follows:

[0086] .

[0087] In this embodiment, by constructing a charging schedule subsidy function and a discharging schedule subsidy function for electric vehicles and setting relevant constraints, the peak power consumption can be further reduced by scheduling the charging and discharging of electric vehicles.

[0088] In an exemplary embodiment, constructing a joint dispatch objective function considering new energy power generation based on the dispatch subsidy objective function and photovoltaic power generation includes:

[0089] Based on the photovoltaic power generation, the charging power of the electric vehicle, the discharging power of the electric vehicle, and the power of the air conditioner, a target function for new energy power generation scheduling is constructed; based on the scheduling subsidy target function and the new energy power generation scheduling target function, a joint scheduling target function considering new energy power generation is constructed.

[0090] For example, the objective function for dispatching new energy power generation is:

[0091] ,

[0092] The objective function for joint dispatch of renewable energy generation is as follows:

[0093] .

[0094] In this embodiment, by constructing a joint scheduling objective function that considers new energy power generation, it is possible to simultaneously optimize peak electricity consumption, electricity scheduling subsidy costs, and the effectiveness of new energy power generation.

[0095] In one exemplary embodiment, the method further includes:

[0096] Based on the first weighting coefficient, the second weighting coefficient, the marginal power coefficient, and the marginal capacity coefficient, the marginal unit power emission coefficient of electricity is determined; based on the number of preset scheduling time periods, the base power of the air conditioner, and the power of the air conditioner, the daily load reduction of the air conditioner is determined; based on the marginal unit power emission coefficient of electricity, the daily load reduction of the air conditioner, and the preset scheduling time periods, a carbon emission reduction function for air conditioner scheduling is constructed; based on the output power of solar photovoltaic panels, the marginal unit power emission coefficient of electricity, and the preset scheduling time periods, a carbon emission reduction function for electric vehicle charging and discharging scheduling is constructed.

[0097] While orderly charging of electric vehicles does not directly reduce carbon emissions and its effect cannot be quantified, it can achieve indirect ecological benefits through various means: ① By flexibly adjusting EV charging time and power, charging can be carried out during periods of high photovoltaic output, promoting the consumption of new energy and improving its utilization rate, thereby reducing building carbon emissions; ② During peak electricity consumption periods, EVs and air conditioning loads can be jointly controlled to reduce the frequency of air conditioning activation and to stop air conditioning operation in advance when temperature requirements are met, thereby improving the energy-saving effect of air conditioning and reducing energy waste; ③ Since electric vehicles have zero carbon dioxide emissions, they can reduce carbon emissions from the use of gasoline vehicles.

[0098] For example, the carbon emission reduction function of air conditioning scheduling can be expressed as:

[0099]

[0100]

[0101]

[0102] in, Carbon emission reductions from air conditioning scheduling This represents the daily reduction in air conditioning load, indicating the amount of reduction in electricity consumption for air conditioning. This represents the base power of the air conditioner during time period i. and These are the first and second weighting coefficients. This is the marginal energy coefficient. This represents the marginal capacity coefficient. The carbon emission reduction function for electric vehicle charging and discharging scheduling. for:

[0103]

[0104] in, This represents the output power of the photovoltaic system during time period i.

[0105] In this embodiment, by constructing the carbon emission reduction function for air conditioning scheduling and the carbon emission reduction function for electric vehicle charging and discharging scheduling, the carbon emission reduction after scheduling the air conditioning switch and the electric vehicle charging and discharging can be determined.

[0106] In one embodiment, after controlling the operating status of the air conditioners and the charging / discharging status of the electric vehicles based on the building power dispatching scheme, the method further includes:

[0107] Based on building air conditioning and electric vehicle data, the air conditioning and electric vehicle power loads are simulated without using the building power dispatching scheme. These are used as the pre-dispatch air conditioning and electric vehicle power loads. Then, the air conditioning and electric vehicle power loads are obtained after controlling the building's air conditioning and electric vehicle charging / discharging states according to the building power dispatching scheme. These are used as the post-dispatch air conditioning and electric vehicle power loads. Based on the pre-dispatch air conditioning and electric vehicle power loads, the post-dispatch air conditioning and electric vehicle power loads, the carbon emission reduction function of the air conditioning dispatching, and the carbon emission reduction function of the electric vehicle charging / discharging dispatching, the carbon emission reduction after using the building power dispatching scheme is determined.

[0108] For example, based on air conditioning data and electric vehicle data within the building, the Monte Carlo method is used to simulate the air conditioning power load and electric vehicle power load under the condition of not using the building power dispatching scheme, as the air conditioning power load and electric vehicle power load before dispatching; then, the air conditioning power load and electric vehicle power load after controlling the operating status of the air conditioners and the charging / discharging status of the electric vehicles in the building based on the building power dispatching scheme are obtained, as the air conditioning power load and electric vehicle power load after dispatching; based on the air conditioning power load before dispatching, the electric vehicle power load before dispatching, the air conditioning power load after dispatching, the electric vehicle power load after dispatching, the carbon emission reduction function of the air conditioning dispatching, and the carbon emission reduction function of the electric vehicle charging / discharging dispatching, the carbon emission reduction after using the building power dispatching scheme is determined.

[0109] In this embodiment, by determining the carbon emission reduction after using the building power dispatching method, the carbon emission reduction caused by the dispatching of air conditioners and electric vehicles, as well as the photovoltaic output, can be calculated.

[0110] In one exemplary embodiment, such as Figure 2 As shown, a building power dispatching method includes: constructing an air conditioning dispatching subsidy function; the air conditioning dispatching subsidy function is:

[0111]

[0112] in, The number of preset scheduling time periods, For the number of air conditioners, For electricity price discount rate, Let be the state variable of the air conditioner, representing the state variable of the j-th air conditioner in the i-th time period. 1 indicates that the air conditioner is turned on at the corresponding time, and 0 indicates that the air conditioner is interrupted by scheduling at the corresponding time. Let j be the power of the j-th air conditioner during the i-th time period. The preset scheduling time period is defined. The minimum operating duration constraint and the maximum interruptible time constraint for the air conditioner are as follows:

[0113]

[0114]

[0115] in, For the shortest running duration, This is the longest time that the air conditioner can be interrupted. The building's external ambient temperature. The lower limit of the temperature is set in advance. The preset upper temperature limit. The energy efficiency ratio of air conditioners. For the power of the air conditioner, For thermal conductivity, this application uses G=0.18. Let be the heat dissipation coefficient. The on / off state constraints for the air conditioner are:

[0116]

[0117]

[0118]

[0119]

[0120] in, Let be the state variable of the air conditioner at time m, and let represent the action of the air conditioner at the end of the i-th time period, which is either turning on or off, with 1 representing turning on and 0 representing turning off. Construct the charging schedule subsidy function and the discharging schedule subsidy function for electric vehicles; the charging schedule subsidy function for electric vehicles is:

[0121]

[0122] in, In order to manage the number of electric vehicles, For electricity price compensation rate, The charging status of electric vehicles is represented by , indicating the charging status of the j-th electric vehicle in the i-th time period. 1 indicates that the charging plan of the j-th electric vehicle is terminated due to scheduling in the i-th time period, and 0 indicates that the j-th electric vehicle continues to charge without being affected by scheduling in the i-th time period. The maximum charging power for electric vehicles, Let be the charging power of the electric vehicle, and let represent the actual charging power of the j-th electric vehicle in the i-th time period. The discharge scheduling subsidy function for the electric vehicle is:

[0123]

[0124] in, The energy storage cost per unit of electricity, This refers to the discharge state of the electric vehicle. This represents the discharge state of the j-th electric vehicle in time period i, where 1 indicates that the j-th electric vehicle starts discharging after being dispatched in time period i, and 0 indicates that the j-th electric vehicle does not discharge after being dispatched in time period i. For the discharge efficiency of electric vehicles. Let be the discharge power of the electric vehicle, and represent the discharge power of the j-th electric vehicle during time period i. The energy storage cost per unit of electricity. The calculation formula is:

[0125]

[0126] in, The price of an electric vehicle (RMB / kWh). This refers to the number of charge-discharge cycles during the battery's lifespan. The electric vehicle's energy limit is:

[0127]

[0128]

[0129] in, Let $\frac{i}{j}$ be the current battery level of the $j$-th electric vehicle at time $i$. η is the initial charge of the electric vehicle. ch For electric vehicle charging efficiency, This is the preset minimum battery level for electric vehicles, set to prevent deep discharge and consider user driving needs; in this paper, the value is set to 0.1. The maximum battery capacity of the electric vehicle is 0.9. To extend battery life, this paper uses a value of 0.9. The operating states of an electric vehicle are mutually exclusive; that is, an electric vehicle cannot be charging and discharging simultaneously. The charging and discharging state constraints of the electric vehicle are as follows:

[0130] .

[0131] The subsidy refers to the surge in electricity consumption caused by the heavy use of air conditioning in office buildings during hot weather, creating peak electricity demand. If electric vehicles in these buildings also charge during this period, it exacerbates the problem (adding fuel to the fire), placing significant pressure on the power grid. To encourage users to reduce electricity consumption during peak hours (peak shaving and valley filling), the power grid company needs to provide subsidies or electricity price discounts. Based on the subsidy function for air conditioning scheduling, the subsidy function for charging electric vehicles, the subsidy function for discharging electric vehicles, the total electricity load, and the unit electricity price, a scheduling subsidy objective function is constructed.

[0132] The total electricity load is the total power consumption of all air conditioners and electric vehicles. The objective function for the dispatch subsidy is:

[0133]

[0134] in, Subsidies for air conditioning dispatch, Subsidies for charging dispatch of electric vehicles, Subsidies for the discharge scheduling of electric vehicles, These are the weighting coefficients. Electricity price per unit of electricity consumption Let be the total electricity load. Based on the photovoltaic power generation, the charging power of the electric vehicle, the discharging power of the electric vehicle, and the power of the air conditioner, a target function for new energy power generation scheduling is constructed. The target function for new energy power generation scheduling is:

[0135] ,

[0136] Based on the aforementioned scheduling subsidy objective function and the aforementioned new energy power generation scheduling objective function, a joint scheduling objective function considering new energy power generation is constructed. The joint scheduling objective function considering new energy power generation is as follows:

[0137] .

[0138] Every preset scheduling time period, acquire air conditioning data and electric vehicle data in the building; based on the joint scheduling objective function considering new energy power generation, generate a building power consumption scheduling scheme; based on the building power consumption scheduling scheme, control the operating status of air conditioning and the charging and discharging status of electric vehicles in the building.

[0139] Construct carbon emission reduction functions for air conditioning scheduling and electric vehicle charging and discharging scheduling.

[0140] The carbon emission reduction function of air conditioning scheduling can be expressed as:

[0141]

[0142]

[0143]

[0144] in, Carbon emission reductions from air conditioning scheduling This represents the daily reduction in air conditioning load, indicating the amount of reduction in electricity consumption for air conditioning. This represents the base power of the air conditioner during time period i. and These are the first and second weighting coefficients. This is the marginal energy coefficient. This represents the marginal capacity coefficient. The carbon emission reduction function for electric vehicle charging and discharging scheduling. for:

[0145]

[0146] in, Let be the photovoltaic output power during time period i. Based on air conditioning and electric vehicle data within the building, the Monte Carlo method is used to simulate the air conditioning and electric vehicle power loads without using the building power dispatching scheme, serving as the air conditioning and electric vehicle power loads before dispatching. Then, the air conditioning and electric vehicle power loads are obtained after controlling the operating status of the air conditioners and the charging / discharging status of the electric vehicles according to the building power dispatching scheme, serving as the air conditioning and electric vehicle power loads after dispatching. Based on the air conditioning and electric vehicle power loads before and after dispatching, the carbon emission reduction function of the air conditioning dispatching, and the carbon emission reduction function of the electric vehicle charging / discharging dispatching, the carbon emission reduction after using the building power dispatching scheme is determined.

[0147] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages in other steps. It is understood that the steps in different embodiments can be freely combined as needed, and all non-contradictory solutions formed by such combinations are within the scope of protection of this application.

[0148] In one exemplary embodiment, such as Figure 3 As shown, a building power dispatching device is provided, comprising: a first building module 301, a second building module 302, a third building module 303, and a power dispatching module 304, wherein:

[0149] The first construction module is used to construct the air conditioning dispatch subsidy function; construct the electric vehicle charging dispatch subsidy function and the electric vehicle discharging dispatch subsidy function; the subsidy refers to the preferential electricity price given to the building user after the user agrees to participate in the electricity dispatch.

[0150] The second construction module is used to construct a scheduling subsidy target function based on the air conditioning scheduling subsidy function, the electric vehicle charging scheduling subsidy function, the electric vehicle discharging scheduling subsidy function, the total electricity load, and the unit electricity price.

[0151] The third construction module is used to construct a joint scheduling objective function that takes into account new energy power generation based on the scheduling subsidy objective function and photovoltaic power generation.

[0152] The power dispatch module is used to acquire air conditioning data and electric vehicle data in the building at preset dispatch time intervals; based on the joint dispatch objective function considering new energy power generation, it generates a building power dispatch scheme; and based on the building power dispatch scheme, it controls the operating status of air conditioning and the charging and discharging status of electric vehicles in the building.

[0153] In one embodiment, the first building module is further configured to:

[0154] An air conditioning scheduling subsidy function is constructed based on the number of preset scheduling time periods, the number of air conditioners, the electricity price discount rate, the state variables of the air conditioners, the power of the air conditioners, and the preset scheduling time periods. The air conditioning scheduling subsidy function is constrained by setting constraints on the shortest operating duration and the longest interruptible time of the air conditioners, based on the building's external ambient temperature, a preset lower temperature limit, a preset upper temperature limit, the air conditioner's energy efficiency ratio, the air conditioner's power, thermal conductivity, and heat dissipation coefficient. Finally, the air conditioner's on / off state constraints are set based on the air conditioner's state variables, the air conditioner's actions at the end of the time period, the number of preset scheduling time periods, and the shortest operating duration constraint.

[0155] In one embodiment, the first building module is further configured to:

[0156] Based on the number of preset scheduling time periods, the number of electric vehicles to be scheduled, the electricity price compensation rate, the unit electricity price, the charging status of electric vehicles, the maximum charging power of electric vehicles, the charging power of electric vehicles, and the preset scheduling time periods, a charging scheduling subsidy function for electric vehicles is constructed. Based on the price of electric vehicles and the number of charge-discharge cycles during the battery life of electric vehicles, the energy storage cost per unit of electricity is determined. Based on the energy storage cost per unit of electricity, the discharge status of electric vehicles, the discharge efficiency of electric vehicles, the discharge power of electric vehicles, and the preset scheduling time periods, a discharge scheduling subsidy function for electric vehicles is set. Based on the current electricity level of electric vehicles, the initial electricity level of electric vehicles, the charging efficiency of electric vehicles, the preset minimum electricity level of electric vehicles, and the maximum electricity level of electric vehicles, an electric vehicle electricity level constraint is set to constrain the charging scheduling subsidy function and the discharge scheduling subsidy function. Based on the charging status and the discharge status of electric vehicles, a charge-discharge status constraint is set to constrain the charging scheduling subsidy function and the discharge scheduling subsidy function.

[0157] In one embodiment, the third building module is further configured to:

[0158] Based on the photovoltaic power generation, the charging power of the electric vehicle, the discharging power of the electric vehicle, and the power of the air conditioner, a target function for new energy power generation scheduling is constructed; based on the scheduling subsidy target function and the new energy power generation scheduling target function, a joint scheduling target function considering new energy power generation is constructed.

[0159] In one embodiment, the apparatus further includes a carbon emission reduction calculation module, the carbon emission reduction calculation module being used for:

[0160] Based on the first weighting coefficient, the second weighting coefficient, the marginal power coefficient, and the marginal capacity coefficient, the marginal unit power emission coefficient of electricity is determined; based on the number of preset scheduling time periods, the base power of the air conditioner, and the power of the air conditioner, the daily load reduction of the air conditioner is determined; based on the marginal unit power emission coefficient of electricity, the daily load reduction of the air conditioner, and the preset scheduling time periods, a carbon emission reduction function for air conditioner scheduling is constructed; based on the output power of solar photovoltaic panels, the marginal unit power emission coefficient of electricity, and the preset scheduling time periods, a carbon emission reduction function for electric vehicle charging and discharging scheduling is constructed.

[0161] In one embodiment, the carbon emission reduction calculation module is further configured to:

[0162] Based on building air conditioning and electric vehicle data, the air conditioning and electric vehicle power loads are simulated without using the building power dispatching scheme. These are used as the pre-dispatch air conditioning and electric vehicle power loads. Then, the air conditioning and electric vehicle power loads are obtained after controlling the building's air conditioning and electric vehicle charging / discharging states according to the building power dispatching scheme. These are used as the post-dispatch air conditioning and electric vehicle power loads. Based on the pre-dispatch air conditioning and electric vehicle power loads, the post-dispatch air conditioning and electric vehicle power loads, the carbon emission reduction function of the air conditioning dispatching, and the carbon emission reduction function of the electric vehicle charging / discharging dispatching, the carbon emission reduction after using the building power dispatching scheme is determined.

[0163] Each module in the aforementioned building power dispatching device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the corresponding operations of each module.

[0164] In one exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 4As shown, this computer device includes a processor, memory, input / output (I / O) interfaces, and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database contains air conditioning data and electric vehicle data. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communication with external terminals via a network connection. When the computer program is executed by the processor, it implements a building power dispatching method.

[0165] Those skilled in the art will understand that Figure 4 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0166] In one exemplary embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:

[0167] Construct an air conditioning dispatch subsidy function; construct a charging dispatch subsidy function and a discharging dispatch subsidy function for electric vehicles; the subsidy refers to the preferential electricity price given to building users after they agree to participate in electricity dispatch.

[0168] Based on the subsidy function for air conditioning scheduling, the subsidy function for charging electric vehicles, the subsidy function for discharging electric vehicles, the total electricity load, and the unit electricity price, a scheduling subsidy objective function is constructed.

[0169] Based on the aforementioned scheduling subsidy objective function and photovoltaic power generation, a joint scheduling objective function considering new energy power generation is constructed.

[0170] Every preset scheduling time period, acquire air conditioning data and electric vehicle data in the building; based on the joint scheduling objective function considering new energy power generation, generate a building power consumption scheduling scheme; based on the building power consumption scheduling scheme, control the operating status of air conditioning and the charging and discharging status of electric vehicles in the building.

[0171] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0172] An air conditioning scheduling subsidy function is constructed based on the number of preset scheduling time periods, the number of air conditioners, the electricity price discount rate, the state variables of the air conditioners, the power of the air conditioners, and the preset scheduling time periods. The air conditioning scheduling subsidy function is constrained by setting constraints on the shortest operating duration and the longest interruptible time of the air conditioners, based on the building's external ambient temperature, a preset lower temperature limit, a preset upper temperature limit, the air conditioner's energy efficiency ratio, the air conditioner's power, thermal conductivity, and heat dissipation coefficient. Finally, the air conditioner's on / off state constraints are set based on the air conditioner's state variables, the air conditioner's actions at the end of the time period, the number of preset scheduling time periods, and the shortest operating duration constraint.

[0173] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0174] Based on the number of preset scheduling time periods, the number of electric vehicles to be scheduled, the electricity price compensation rate, the unit electricity price, the charging status of electric vehicles, the maximum charging power of electric vehicles, the charging power of electric vehicles, and the preset scheduling time periods, a charging scheduling subsidy function for electric vehicles is constructed. Based on the price of electric vehicles and the number of charge-discharge cycles during the battery life of electric vehicles, the energy storage cost per unit of electricity is determined. Based on the energy storage cost per unit of electricity, the discharge status of electric vehicles, the discharge efficiency of electric vehicles, the discharge power of electric vehicles, and the preset scheduling time periods, a discharge scheduling subsidy function for electric vehicles is set. Based on the current electricity level of electric vehicles, the initial electricity level of electric vehicles, the charging efficiency of electric vehicles, the preset minimum electricity level of electric vehicles, and the maximum electricity level of electric vehicles, an electric vehicle electricity level constraint is set to constrain the charging scheduling subsidy function and the discharge scheduling subsidy function. Based on the charging status and the discharge status of electric vehicles, a charge-discharge status constraint is set to constrain the charging scheduling subsidy function and the discharge scheduling subsidy function.

[0175] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0176] Based on the photovoltaic power generation, the charging power of the electric vehicle, the discharging power of the electric vehicle, and the power of the air conditioner, a target function for new energy power generation scheduling is constructed; based on the scheduling subsidy target function and the new energy power generation scheduling target function, a joint scheduling target function considering new energy power generation is constructed.

[0177] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0178] Based on the first weighting coefficient, the second weighting coefficient, the marginal power coefficient, and the marginal capacity coefficient, the marginal unit power emission coefficient of electricity is determined; based on the number of preset scheduling time periods, the base power of the air conditioner, and the power of the air conditioner, the daily load reduction of the air conditioner is determined; based on the marginal unit power emission coefficient of electricity, the daily load reduction of the air conditioner, and the preset scheduling time periods, a carbon emission reduction function for air conditioner scheduling is constructed; based on the output power of solar photovoltaic panels, the marginal unit power emission coefficient of electricity, and the preset scheduling time periods, a carbon emission reduction function for electric vehicle charging and discharging scheduling is constructed.

[0179] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0180] Based on building air conditioning and electric vehicle data, the air conditioning and electric vehicle power loads are simulated without using the building power dispatching scheme. These are used as the pre-dispatch air conditioning and electric vehicle power loads. Then, the air conditioning and electric vehicle power loads are obtained after controlling the building's air conditioning and electric vehicle charging / discharging states according to the building power dispatching scheme. These are used as the post-dispatch air conditioning and electric vehicle power loads. Based on the pre-dispatch air conditioning and electric vehicle power loads, the post-dispatch air conditioning and electric vehicle power loads, the carbon emission reduction function of the air conditioning dispatching, and the carbon emission reduction function of the electric vehicle charging / discharging dispatching, the carbon emission reduction after using the building power dispatching scheme is determined.

[0181] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:

[0182] Construct an air conditioning dispatch subsidy function; construct a charging dispatch subsidy function and a discharging dispatch subsidy function for electric vehicles; the subsidy refers to the preferential electricity price given to building users after they agree to participate in electricity dispatch.

[0183] Based on the subsidy function for air conditioning scheduling, the subsidy function for charging electric vehicles, the subsidy function for discharging electric vehicles, the total electricity load, and the unit electricity price, a scheduling subsidy objective function is constructed.

[0184] Based on the aforementioned scheduling subsidy objective function and photovoltaic power generation, a joint scheduling objective function considering new energy power generation is constructed.

[0185] Every preset scheduling time period, acquire air conditioning data and electric vehicle data in the building; based on the joint scheduling objective function considering new energy power generation, generate a building power consumption scheduling scheme; based on the building power consumption scheduling scheme, control the operating status of air conditioning and the charging and discharging status of electric vehicles in the building.

[0186] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0187] An air conditioning scheduling subsidy function is constructed based on the number of preset scheduling time periods, the number of air conditioners, the electricity price discount rate, the state variables of the air conditioners, the power of the air conditioners, and the preset scheduling time periods. The air conditioning scheduling subsidy function is constrained by setting constraints on the shortest operating duration and the longest interruptible time of the air conditioners, based on the building's external ambient temperature, a preset lower temperature limit, a preset upper temperature limit, the air conditioner's energy efficiency ratio, the air conditioner's power, thermal conductivity, and heat dissipation coefficient. Finally, the air conditioner's on / off state constraints are set based on the air conditioner's state variables, the air conditioner's actions at the end of the time period, the number of preset scheduling time periods, and the shortest operating duration constraint.

[0188] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0189] Based on the number of preset scheduling time periods, the number of electric vehicles to be scheduled, the electricity price compensation rate, the unit electricity price, the charging status of electric vehicles, the maximum charging power of electric vehicles, the charging power of electric vehicles, and the preset scheduling time periods, a charging scheduling subsidy function for electric vehicles is constructed. Based on the price of electric vehicles and the number of charge-discharge cycles during the battery life of electric vehicles, the energy storage cost per unit of electricity is determined. Based on the energy storage cost per unit of electricity, the discharge status of electric vehicles, the discharge efficiency of electric vehicles, the discharge power of electric vehicles, and the preset scheduling time periods, a discharge scheduling subsidy function for electric vehicles is set. Based on the current electricity level of electric vehicles, the initial electricity level of electric vehicles, the charging efficiency of electric vehicles, the preset minimum electricity level of electric vehicles, and the maximum electricity level of electric vehicles, an electric vehicle electricity level constraint is set to constrain the charging scheduling subsidy function and the discharge scheduling subsidy function. Based on the charging status and the discharge status of electric vehicles, a charge-discharge status constraint is set to constrain the charging scheduling subsidy function and the discharge scheduling subsidy function.

[0190] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0191] Based on the photovoltaic power generation, the charging power of the electric vehicle, the discharging power of the electric vehicle, and the power of the air conditioner, a target function for new energy power generation scheduling is constructed; based on the scheduling subsidy target function and the new energy power generation scheduling target function, a joint scheduling target function considering new energy power generation is constructed.

[0192] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0193] Based on the first weighting coefficient, the second weighting coefficient, the marginal power coefficient, and the marginal capacity coefficient, the marginal unit power emission coefficient of electricity is determined; based on the number of preset scheduling time periods, the base power of the air conditioner, and the power of the air conditioner, the daily load reduction of the air conditioner is determined; based on the marginal unit power emission coefficient of electricity, the daily load reduction of the air conditioner, and the preset scheduling time periods, a carbon emission reduction function for air conditioner scheduling is constructed; based on the output power of solar photovoltaic panels, the marginal unit power emission coefficient of electricity, and the preset scheduling time periods, a carbon emission reduction function for electric vehicle charging and discharging scheduling is constructed.

[0194] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0195] Based on building air conditioning and electric vehicle data, the air conditioning and electric vehicle power loads are simulated without using the building power dispatching scheme. These are used as the pre-dispatch air conditioning and electric vehicle power loads. Then, the air conditioning and electric vehicle power loads are obtained after controlling the building's air conditioning and electric vehicle charging / discharging states according to the building power dispatching scheme. These are used as the post-dispatch air conditioning and electric vehicle power loads. Based on the pre-dispatch air conditioning and electric vehicle power loads, the post-dispatch air conditioning and electric vehicle power loads, the carbon emission reduction function of the air conditioning dispatching, and the carbon emission reduction function of the electric vehicle charging / discharging dispatching, the carbon emission reduction after using the building power dispatching scheme is determined.

[0196] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps:

[0197] Construct an air conditioning dispatch subsidy function; construct a charging dispatch subsidy function and a discharging dispatch subsidy function for electric vehicles; the subsidy refers to the preferential electricity price given to building users after they agree to participate in electricity dispatch.

[0198] Based on the subsidy function for air conditioning scheduling, the subsidy function for charging electric vehicles, the subsidy function for discharging electric vehicles, the total electricity load, and the unit electricity price, a scheduling subsidy objective function is constructed.

[0199] Based on the aforementioned scheduling subsidy objective function and photovoltaic power generation, a joint scheduling objective function considering new energy power generation is constructed.

[0200] Every preset scheduling time period, acquire air conditioning data and electric vehicle data in the building; based on the joint scheduling objective function considering new energy power generation, generate a building power consumption scheduling scheme; based on the building power consumption scheduling scheme, control the operating status of air conditioning and the charging and discharging status of electric vehicles in the building.

[0201] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0202] An air conditioning scheduling subsidy function is constructed based on the number of preset scheduling time periods, the number of air conditioners, the electricity price discount rate, the state variables of the air conditioners, the power of the air conditioners, and the preset scheduling time periods. The air conditioning scheduling subsidy function is constrained by setting constraints on the shortest operating duration and the longest interruptible time of the air conditioners, based on the building's external ambient temperature, a preset lower temperature limit, a preset upper temperature limit, the air conditioner's energy efficiency ratio, the air conditioner's power, thermal conductivity, and heat dissipation coefficient. Finally, the air conditioner's on / off state constraints are set based on the air conditioner's state variables, the air conditioner's actions at the end of the time period, the number of preset scheduling time periods, and the shortest operating duration constraint.

[0203] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0204] Based on the number of preset scheduling time periods, the number of electric vehicles to be scheduled, the electricity price compensation rate, the unit electricity price, the charging status of electric vehicles, the maximum charging power of electric vehicles, the charging power of electric vehicles, and the preset scheduling time periods, a charging scheduling subsidy function for electric vehicles is constructed. Based on the price of electric vehicles and the number of charge-discharge cycles during the battery life of electric vehicles, the energy storage cost per unit of electricity is determined. Based on the energy storage cost per unit of electricity, the discharge status of electric vehicles, the discharge efficiency of electric vehicles, the discharge power of electric vehicles, and the preset scheduling time periods, a discharge scheduling subsidy function for electric vehicles is set. Based on the current electricity level of electric vehicles, the initial electricity level of electric vehicles, the charging efficiency of electric vehicles, the preset minimum electricity level of electric vehicles, and the maximum electricity level of electric vehicles, an electric vehicle electricity level constraint is set to constrain the charging scheduling subsidy function and the discharge scheduling subsidy function. Based on the charging status and the discharge status of electric vehicles, a charge-discharge status constraint is set to constrain the charging scheduling subsidy function and the discharge scheduling subsidy function.

[0205] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0206] Based on the photovoltaic power generation, the charging power of the electric vehicle, the discharging power of the electric vehicle, and the power of the air conditioner, a target function for new energy power generation scheduling is constructed; based on the scheduling subsidy target function and the new energy power generation scheduling target function, a joint scheduling target function considering new energy power generation is constructed.

[0207] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0208] Based on the first weighting coefficient, the second weighting coefficient, the marginal power coefficient, and the marginal capacity coefficient, the marginal unit power emission coefficient of electricity is determined; based on the number of preset scheduling time periods, the base power of the air conditioner, and the power of the air conditioner, the daily load reduction of the air conditioner is determined; based on the marginal unit power emission coefficient of electricity, the daily load reduction of the air conditioner, and the preset scheduling time periods, a carbon emission reduction function for air conditioner scheduling is constructed; based on the output power of solar photovoltaic panels, the marginal unit power emission coefficient of electricity, and the preset scheduling time periods, a carbon emission reduction function for electric vehicle charging and discharging scheduling is constructed.

[0209] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0210] Based on building air conditioning and electric vehicle data, the air conditioning and electric vehicle power loads are simulated without using the building power dispatching scheme. These are used as the pre-dispatch air conditioning and electric vehicle power loads. Then, the air conditioning and electric vehicle power loads are obtained after controlling the building's air conditioning and electric vehicle charging / discharging states according to the building power dispatching scheme. These are used as the post-dispatch air conditioning and electric vehicle power loads. Based on the pre-dispatch air conditioning and electric vehicle power loads, the post-dispatch air conditioning and electric vehicle power loads, the carbon emission reduction function of the air conditioning dispatching, and the carbon emission reduction function of the electric vehicle charging / discharging dispatching, the carbon emission reduction after using the building power dispatching scheme is determined.

[0211] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory 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), magnetic 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. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.

[0212] The technical features of the above embodiments can be combined in any way. For the sake of brevity, 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 application.

[0213] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A building power dispatching method, characterized in that, The method includes: Construct an air conditioning dispatch subsidy function; construct a charging dispatch subsidy function and a discharging dispatch subsidy function for electric vehicles; the subsidy refers to the preferential electricity price given to building users after they agree to participate in electricity dispatch. Based on the air conditioning dispatch subsidy function, the electric vehicle charging dispatch subsidy function, the electric vehicle discharging dispatch subsidy function, the total electricity load, and the unit electricity price, a dispatch subsidy objective function is constructed. Based on the aforementioned scheduling subsidy objective function and photovoltaic power generation, a joint scheduling objective function considering new energy power generation is constructed. Every preset scheduling time period, acquire air conditioning data and electric vehicle data in the building; based on the joint scheduling objective function considering new energy power generation, generate a building power consumption scheduling scheme; based on the building power consumption scheduling scheme, control the operating status of air conditioning and the charging and discharging status of electric vehicles in the building.

2. The method according to claim 1, characterized in that, The construction of the air conditioning scheduling subsidy function includes: Based on the number of preset scheduling time periods, the number of air conditioners, the electricity price discount rate, the state variables of the air conditioners, the power of the air conditioners, and the preset scheduling time periods, an air conditioner scheduling subsidy function is constructed. Based on the building's external ambient temperature, a pre-set lower temperature limit, a pre-set upper temperature limit, the air conditioning energy efficiency ratio, the air conditioning power, thermal conductivity, and heat dissipation coefficient, the air conditioning's shortest operating duration constraint and longest interruptible time constraint are set to constrain the air conditioning scheduling subsidy function. Based on the air conditioner's state variables, the air conditioner's actions at the end of a time period, the number of preset scheduling time periods, and the minimum operating duration constraint of the air conditioner, the air conditioner's on / off state constraint is set to constrain the air conditioner scheduling subsidy function.

3. The method according to claim 1, characterized in that, The construction of the charging scheduling subsidy function and the discharging scheduling subsidy function for electric vehicles includes: Based on the number of preset scheduling time periods, the number of electric vehicles to be scheduled, the electricity price compensation rate, the unit electricity price, the charging status of electric vehicles, the maximum charging power of electric vehicles, the charging power of electric vehicles, and the preset scheduling time periods, a charging scheduling subsidy function for electric vehicles is constructed. Based on the price of electric vehicles and the number of charge-discharge cycles during the battery life, the energy storage cost per unit of electricity is determined; based on the energy storage cost per unit of electricity, the discharge state of electric vehicles, the discharge efficiency of electric vehicles, the discharge power of electric vehicles, and the preset scheduling time period, a discharge scheduling subsidy function for electric vehicles is set. Based on the current battery level of the electric vehicle, the initial battery level of the electric vehicle, the charging efficiency of the electric vehicle, the preset minimum battery level and maximum battery level of the electric vehicle, the battery level constraint of the electric vehicle is set to constrain the charging scheduling subsidy function and the discharging scheduling subsidy function of the electric vehicle. Based on the charging state and discharging state of the electric vehicle, charging and discharging state constraints are set to constrain the charging scheduling subsidy function and the discharging scheduling subsidy function of the electric vehicle.

4. The method according to claim 1, characterized in that, The construction of a joint dispatch objective function considering new energy power generation based on the dispatch subsidy objective function and photovoltaic power generation includes: Based on the photovoltaic power generation, the charging power of the electric vehicle, the discharging power of the electric vehicle, and the power of the air conditioner, an objective function for new energy power generation scheduling is constructed. Based on the aforementioned scheduling subsidy objective function and the aforementioned new energy power generation scheduling objective function, a joint scheduling objective function considering new energy power generation is constructed.

5. The method according to claim 1, characterized in that, The method further includes: The marginal unit electricity emission coefficient is determined based on the first weighting coefficient, the second weighting coefficient, the marginal electricity coefficient, and the marginal capacity coefficient. The daily load reduction of the air conditioner is determined based on the number of preset scheduling time periods, the base power of the air conditioner, and the power of the air conditioner. Based on the marginal unit power emission coefficient, the daily load reduction of air conditioning, and the preset scheduling time period, a carbon emission reduction function for air conditioning scheduling is constructed. Based on the output power of solar photovoltaic panels, the marginal unit power emission coefficient, and the preset scheduling time period, a carbon emission reduction function for electric vehicle charging and discharging scheduling is constructed.

6. The method according to claim 5, characterized in that, The method of controlling the operating status of air conditioners and the charging / discharging status of electric vehicles in the building based on the building power dispatching scheme further includes: Based on the building's air conditioning and electric vehicle data, the air conditioning and electric vehicle power loads are simulated without using the building's power dispatching scheme, serving as the air conditioning and electric vehicle power loads before dispatching. Based on the building power dispatching scheme, obtain the air conditioning power load and electric vehicle power load after controlling the operation status of the air conditioner and the charging and discharging status of the electric vehicle in the building, and use them as the dispatched air conditioning power load and electric vehicle power load. Based on the air conditioning power load before scheduling, the electric vehicle power load before scheduling, the air conditioning power load after scheduling, the electric vehicle power load after scheduling, the carbon emission reduction function of the air conditioning scheduling, and the carbon emission reduction function of the electric vehicle charging and discharging scheduling, the carbon emission reduction after using the building power scheduling scheme is determined.

7. A building power dispatching device, characterized in that, The device includes: The first construction module is used to construct the air conditioning dispatch subsidy function; construct the electric vehicle charging dispatch subsidy function and the electric vehicle discharging dispatch subsidy function; the subsidy refers to the preferential electricity price given to the building user after the user agrees to participate in the electricity dispatch. The second construction module is used to construct a scheduling subsidy target function based on the air conditioning scheduling subsidy function, the electric vehicle charging scheduling subsidy function, the electric vehicle discharging scheduling subsidy function, the total electricity load, and the unit electricity price. The third construction module is used to construct a joint scheduling objective function that takes into account new energy power generation based on the scheduling subsidy objective function and photovoltaic power generation. The power dispatch module is used to acquire air conditioning data and electric vehicle data in the building at preset dispatch time intervals; based on the joint dispatch objective function considering new energy power generation, it generates a building power dispatch scheme; and based on the building power dispatch scheme, it controls the operating status of air conditioning and the charging and discharging status of electric vehicles in the building.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.

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 steps of the method according to any one of claims 1 to 6.

10. A computer program product, comprising a computer program, 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 6.