Equipment scheduling decision-making method and system of energy management system, medium and equipment

By applying the Markov decision-making model of reinforcement learning in the energy management system, the automation and flexibility problems of demand response systems in residential and small commercial buildings are solved, and the automation and efficiency improvement of energy dispatching are achieved.

CN118735294APending Publication Date: 2024-10-01GUANGXI POWER GRID CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410729929.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-06
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

In the field of residential and small commercial buildings, it is difficult to effectively deploy demand response systems with existing technologies, especially due to the lack of automated energy management systems, insufficient incentives for user participation, insufficient data support, and difficulty in ensuring regulatory compliance, resulting in energy dispatch decisions. Complex and inflexible.

Method used

Using the Markov decision-making model based on reinforcement learning, by obtaining power grid signals, user requests and equipment management data, defining the cost function and user dissatisfaction function, building an MDP model, calculating equipment scheduling decisions to minimize costs, and realizing an automated energy management system .

Benefits of technology

It achieves automated energy management without explicit modeling of user dissatisfaction, reduces computational complexity, promotes the application and development of demand response technology, and improves the flexibility of user requests and energy utilization efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118735294A_ABST
    Figure CN118735294A_ABST
Patent Text Reader

Abstract

The invention provides an equipment scheduling decision-making method and system of an energy management system, a medium and equipment. The method comprises the following steps: acquiring power grid signal data, user request data and equipment management data from the energy management system; defining a cost function by using the power grid signal data, the user request data and the equipment management data; and an MDP Markov decision model based on reinforcement learning is constructed, and the MDP Markov decision model is used to calculate an equipment scheduling decision with a minimized cost function. According to the method and the device, the rescheduling problem of the fully-automatic EMS is expressed as a reinforcement learning problem, and the problem is solved by approximately decomposing the equipment cluster, so that explicitly modeling for dissatisfaction of users for rescheduling the operation is not needed, the EMS can automatically start the operation, and the user is allowed to initiate a more flexible request. The calculation complexity and the number of the device clusters are in a linear relation, the calculation complexity is reduced, and application and development of the demand response technology in the fields are promoted.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of integrated energy system operation optimization, and in particular to an equipment scheduling decision method and system, medium and equipment of an energy management system. Background Art

[0002] Demand response (DR) systems dynamically adjust energy demand in response to changing electricity prices or other grid signals. By appropriately adjusting energy prices, loads can be shifted from peak energy consumption periods to other times. This can improve operational efficiency, reduce operating costs, improve capital efficiency, and reduce harmful emissions and the risk of power outages. In the field of integrated energy systems (IES), the industry has conducted in-depth discussions on operational optimization issues, aiming to improve the operational flexibility of the system load side and enhance the absorption capacity of new energy. Demand response (DR) for residential and small commercial buildings is estimated to reach 65% of the total energy saving potential of DR. However, DR in the residential and small commercial building sectors faces several challenges. Technical challenges include deploying infrastructure in a useful way to provide real-time pricing information to energy consumers, ensuring security, and implementing advanced metering and network equipment. In addition to these technical challenges, another critical challenge for the success of DR in the residential and small commercial building sectors is the need for a fully automated energy management system (EMS). This is because in price-driven DR, consumers face a continuous sequence of decisions to either use a specific device now and consume energy at the current (known) price, or postpone the use of the device until a later unknown price. Each decision requires the consumer to weigh the cost difference against the dissatisfaction that would result from rearranging equipment usage. This is particularly burdensome when the consumer must also estimate future energy prices. Furthermore, many of these decisions have limited financial impact on the consumer, so many rational consumers in the residential and small commercial building sectors may not have sufficient incentives to make these decisions in the long run. The disadvantages are as follows:

[0003] Technical disadvantages: Implementing demand response in residential and small commercial buildings may involve technical updates and modifications of equipment and systems to adapt to the regulation and management needs of energy consumption. User participation challenges: Encouraging residents and small commercial building owners to actively participate in demand response may face certain difficulties, and effective incentive mechanisms and educational publicity work need to be established.

[0004] Data and information shortcomings: The implementation of demand response requires a lot of data support and information exchange, including real-time energy prices, electricity consumption data, etc. Therefore, it is crucial to establish an effective data collection and sharing mechanism.

[0005] Regulatory and policy issues: Demand response involves many factors such as energy markets, policies and regulations, and requires close cooperation with regulators and government departments to ensure compliance and sustainability.

[0006] Although there are many models in the industry that analyze the operation optimization of IES in different scenarios, these models often ignore the interaction between the integrated energy system and the user side. Summary of the invention

[0007] To this end, the present invention provides an equipment scheduling decision method and system, medium, and equipment for an energy management system, aiming to solve the technical problem of equipment scheduling in the prior art that has not yet considered the user-side satisfaction level.

[0008] To achieve the above objectives, the present invention adopts the following technical solutions:

[0009] According to a first aspect of the present invention, the present invention provides a device scheduling decision method for an energy management system, the method comprising:

[0010] Obtain grid signal data, user request data, and equipment management data related to the energy management system;

[0011] defining a cost function using the grid signal data, the user request data, and the device management data;

[0012] An MDP Markov decision model based on reinforcement learning is constructed, and the MDP Markov decision model is used to calculate the equipment scheduling decision that minimizes the cost function.

[0013] Optionally, the grid signal data includes at least one of real-time energy prices, future energy prices, real-time temperature and weather conditions;

[0014] The user request data includes power request / cancellation data initiated by the user to the energy management system for power consumption of the first target device within the first target time period, and the formula is expressed as J=(n,τr,τg,g); wherein n is the first target device; τr is the request time; τg is the working time; g is the priority of the request; τr≤τg≤τr+Wn; Wn is a time window;

[0015] The device management data includes power supply decision data for the energy management system to supply power to the second target device within the second target time period based on the user request data.

[0016] Optionally, the defining a cost function using the power grid signal data, the user request data, and the device management data includes:

[0017] A user dissatisfaction function is defined based on the user request data and the device management data, and the formula is as follows:

[0018]

[0019] in, The power request / cancellation data and power supply decision data of the target device n before time t; H is the user's dissatisfaction with the target device n at time t; t For the target device;

[0020] A cost function is defined based on the user dissatisfaction function and the power grid signal data, and the formula is as follows:

[0021]

[0022] Where D(t) = {device performing work at time t}; P t is the electricity price at time t; γ ≥ 0 represents the trade-off parameter between electricity payment and consumer dissatisfaction with redispatch; ∑n∈D(t)Cn is the total electric energy consumed at time t; P t Cn∑n∈D(t) is the electricity fee paid at time t.

[0023] Optionally, the constructing of the MDP Markov decision model based on reinforcement learning includes:

[0024] The electrical devices are divided into different device clusters based on the device type; each of the device clusters is represented as

[0025] The functional form of the dissatisfaction function is defined as follows:

[0026]

[0027] Among them, g t is the priority of the current request; S t is the elapsed time of time t, and the formula is as follows:

[0028]

[0029] The state function at time t is defined as:

[0030] x t =[P t ,s t ,g t ] T ∈S

[0031] Where S is the state space; the cardinality of S is |P| is the cardinality of P, For another time window;

[0032] The MDP Markov decision model makes decisions on the equipment scheduling strategy based on the dissatisfaction function and the state function, and the formula is expressed as:

[0033] μ * (x t )∈argmax a∈A Q * (x t ,a)

[0034] Among them, μ * Q * The optimal decision when available; a is the discount factor; A is the action space.

[0035] Optionally, the calculating the equipment scheduling decision for minimizing the cost function by using the MDP Markov decision model includes:

[0036] Obtain the discount factor a, the trade-off parameter γ, and the dissatisfaction function The energy consumption rate Cn of the device n in each of the clusters, the power grid signal data, and the user request data for the devices in the device cluster are used to make decisions on the device scheduling strategy using the MDP Markov decision model;

[0037] A performance indicator function is defined, and the cost function of the current decision is calculated using the performance indicator function to obtain a device scheduling strategy that minimizes the cost function.

[0038] Optionally, the defining a performance indicator function and using the performance indicator function to calculate the minimum cost function of the device scheduling decision includes:

[0039] For the equipment scheduling strategy μ of the MDP Markov decision model, using V μ Denotes the expected indefinite discounted cost, and the cost-minimizing equipment scheduling strategy μ is obtained * ;

[0040] Define the maximum expected cost reduction that can be achieved by the equipment scheduling strategy μ, as follows:

[0041]

[0042] Where DRP is the maximum expected cost reduction; RDRP is the relative maximum expected cost reduction; μ base is the benchmark strategy;

[0043] Computing the expected indefinite discounted cost using RL algorithms Then the standardized expected cost reduces RI, and the formula is as follows:

[0044]

[0045] The device scheduling strategy μ with the largest RI is taken as the device scheduling strategy μ that minimizes the cost function. * .

[0046] Optionally, the method further comprises:

[0047] The device decision strategy is optimized using an auxiliary aggregation decision algorithm based on Q-learning to obtain a target device scheduling decision.

[0048] According to a second aspect of the present invention, the present invention provides an equipment scheduling decision system for an energy management system, the system comprising:

[0049] A data acquisition module, used to acquire power grid signal data, user request data and equipment management data from the energy management system;

[0050] A function definition module, used to define a cost function using the power grid signal data, the user request data and the device management data;

[0051] The decision calculation module is used to construct an MDP Markov decision model based on reinforcement learning, and use the MDP Markov decision model to calculate the equipment scheduling decision that minimizes the cost function.

[0052] According to the third aspect of the present invention, the present invention provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the processor executes the equipment scheduling decision method of the energy management system as described in any one of the first aspect of the present invention.

[0053] According to the fourth aspect of the present invention, the present invention provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that when the processor executes the computer program, the device scheduling decision method for the energy management system as described in any one of the first aspect of the present invention is implemented.

[0054] The present invention adopts the above technical solution and has at least the following beneficial effects:

[0055] Through the scheme of the present invention, the grid signal data, user request data and device management data from the energy management system are obtained; the cost function is defined using the grid signal data, the user request data and the device management data; an MDP Markov decision model based on reinforcement learning is constructed, and the MDP Markov decision model is used to calculate the device scheduling decision that minimizes the cost function. The present invention expresses the rescheduling problem of a fully automated EMS as a reinforcement learning (RL) problem, and demonstrates that this RL problem can be solved by approximate decomposition of device clusters, thereby achieving the user dissatisfaction of job rescheduling without explicit modeling, enabling the EMS to start jobs on its own, allowing users to initiate more flexible requests, and its computational complexity is linearly related to the number of device clusters, reducing the computational complexity, thereby promoting the application and development of demand response technology in these fields.

[0056] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0058] Figure 1 A schematic diagram showing a flow chart of a device scheduling decision method of an energy management system provided by an embodiment of the present invention;

[0059] Figure 2 A brief schematic diagram showing the operation of a fully automatic energy management system provided by an embodiment of the present invention is shown;

[0060] Figure 3 A simplified schematic diagram of a user-energy management system interaction timeline provided by an embodiment of the present invention is shown;

[0061] Figure 4 A schematic diagram of the concept of an episode provided by an embodiment of the present invention is shown;

[0062] Figure 5 A brief schematic diagram of a Q-learning algorithm provided by an embodiment of the present invention is shown;

[0063] Figures 6 to 11 Schematic diagrams of simulation results of applying Q-learning provided by an embodiment of the present invention to a typical example are respectively shown;

[0064] Fig.12 A schematic diagram showing the structure of an equipment scheduling decision system for an energy management system provided by an embodiment of the present invention is shown;

[0065] Fig.13 A result schematic diagram of a computer device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0066] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0067] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0068] The embodiment of the present invention provides a device scheduling decision method for an energy management system, such as Figure 1 As shown, at least the following steps S101 to S103 may be included:

[0069] Step S101, acquiring power grid signal data, user request data and equipment management data related to the energy management system.

[0070] like Figure 2As shown, it is a brief schematic diagram of the operation of the fully automatic energy management system. Among them, the EMS energy management system observes the power grid signal data through the communication network. The communication network refers to the infrastructure that provides power grid signals to the EMS energy management system. That is, any effectively transmitted external information data is useful for the EMS energy management system to make scheduling decisions and can be regarded as power grid signal data. In the embodiment of the present invention, the most common power grid signal data is the real-time energy price, and other power grid signal data may include expected future energy prices, real-time temperature and weather conditions, and other useful external information. It should be noted that most power grid signal data is exogenous in nature, that is, the actions of the EMS energy management system will not affect the power grid signal data. The embodiment of the present invention makes a reasonable assumption that the EMS energy management system is a price taker and the energy price is exogenous. Because in the field of residential and small commercial buildings, the market power of individual EMS (or equivalently, individual consumers) is very small, and the impact of their actions on energy prices can be ignored.

[0071] based on Figure 2 It can be seen that a fully automated EMS energy management system should perform the following two functions: First, the EMS energy management system receives user requests (user-initiated work) and then arranges when to meet the received requests. The embodiment of the present invention further assumes that the EMS energy management system allows users to cancel existing unfinished requests. Second, if the smart device managed by the EMS energy management system is in an idle state, that is, there is no request for the device at present, the EMS energy management system can pre-power the device (EMS-initiated work). For example, in a small commercial building, the EMS energy management system may pre-turn on the building's air conditioning before the tenant arrives to capture lower energy costs in the morning or cover up delays in building cooling. It should be noted that the EMS energy management system does not automatically start work on all smart devices (such as dishwashers). The embodiment of the present invention assumes that time is discrete, that is, t = 0, 1, ..., and there are n smart devices managed by the EMS energy management system, numbered 1, 2, ..., n. To simplify the expression, the embodiment of the present invention assumes that all work performed by device n is standardized, so it can be completed within a time period and consumes a constant energy Cn, which depends only on the type of smart device. This assumption can be easily relaxed to devices with different operating modes.

[0072] In the embodiment of the present invention, the power request / cancellation data initiated by the user to the energy management system for the first target device to use power within the first target time period is referred to as user request data; the power supply decision data for the EMS energy management system to supply power to the second target device within the second target time period based on the user request data is referred to as device management data. It should be noted that the second target time period is not necessarily equal to the first target time period; and the second target device is not necessarily equal to the first target device.

[0073] The formula for user request data is expressed as J = (n, τr, τg, g); where n is the device requested by the user, that is, the first target device; τr is the request time, which means the time when the EMS energy management system receives this request; τg is the working time, which means the time when the user wants the work of this request to be completed; g represents the priority of this request, and a higher priority means that the user prefers the requested work to be completed at a time close to the working time τg. It should be noted that the working time τg is not necessarily equal to the request time τr. On the contrary, the user may request to use the device at a later time (that is, τg ≥ τr). On the other hand, for the request J = (n, τr, τg, g), assuming that the difference between the working time and the request time τg-τr cannot be arbitrarily large, τr≤τg≤τr+Wn must be satisfied; Wn is a known time window that depends only on the type of device. If J = (n, τr, τg, g) is not satisfied before time τg+Wn, the EMS energy management system will automatically cancel the request, and the unsatisfied request can be canceled by the user. In the embodiment of the present invention, at a preset time point, such as the end of a day, a user can evaluate all or part of the completed / canceled requests for use in subsequent steps.

[0074] Step S102: defining a cost function using power grid signal data, user request data, and device management data.

[0075] In order to define the concept of optimal demand response, the embodiment of the present invention first defines a dissatisfaction function to capture the user's preference for job rescheduling.

[0076] Specifically, the embodiment of the present invention provides t represents the history of equipment operations, user requests / cancellations, and EMS energy management system decisions at the end of time t. Then, in the rescheduling at time t, the user's dissatisfaction is expressed by the function For any t≥0, the dissatisfaction function is approximately additive on the device. The user dissatisfaction function is defined based on user request data and device management data, and the formula is as follows:

[0077]

[0078] in, The power request / cancellation data and power supply decision data of the target device n before time t; H is the user's dissatisfaction with the target device n at time t; t For the target device;

[0079] In addition, the embodiment of the present invention assumes that at time t, the user instantaneous cost function has the following form:

[0080]

[0081] It should be noted that from the perspective of the EMS energy management system, electricity prices and user behaviors are exogenous and random; therefore, the embodiment of the present invention may assume that the EMS energy management system aims to minimize the expected indefinite discounted cost:

[0082]

[0083] Then, the cost function is defined based on the user dissatisfaction function and the power grid signal data. The formula is as follows:

[0084]

[0085] Where D(t) = {device performing work at time t}; P t is the electricity price at time t; γ ≥ 0 represents the trade-off parameter between electricity payment and consumer dissatisfaction with redispatch; ∑n∈D(t)Cn is the total electric energy consumed at time t; P t Cn∑n∈D(t) is the electricity fee paid at time t.

[0086] Step S103, constructing an MDP Markov decision model based on reinforcement learning, and using the MDP Markov decision model to calculate the equipment scheduling decision that minimizes the cost function.

[0087] It is understandable that in most practical situations, the user dissatisfaction function, the grid signal data, and the user request data are initially unknown. Therefore, the EMS energy management system must learn how to make the best decision for the device cluster based on the gradually collected user and grid signal data. Reinforcement learning is a set of techniques for learning how to make the best decision when the decision maker interacts with an unknown environment. RL algorithms attempt to strike a balance between learning (exploration) and optimization (utilization) and have been widely used in many other fields, such as robotics and petroleum engineering. Therefore, the embodiment of the present invention uses an RL algorithm to solve the learning problem of the EMS energy management system, so that the EMS energy management system learns how to make decisions in the interaction with users and grid signals. Specifically, in the RL formalization of the optimal DR problem, the decision maker is the EMS energy management system, and the environment includes grid signals and users. In practical applications, the grid signal data and user request data can be learned by directly observing user behavior and grid signals. Under reasonable assumptions, the user's dissatisfaction function can be learned based on the user's evaluation of the completed and canceled work.

[0088] In the embodiment of the present invention, an MDP Markov decision model based on reinforcement learning is constructed. First, the power grid signal can be modeled as a Markov process. That is, all power grid signal data follow an exogenous Markov process. It should be noted that, in general, these Markov processes are time-dependent, so the equipment scheduling problem of the EMS energy management system can be approximately decomposed between equipment clusters.

[0089] In order to enhance the understanding of the MDP Markov decision model proposed in the embodiment of the present invention, the three assumptions proposed in the embodiment of the present invention are first explained:

[0090] 1. Assume that each device cluster has only one device, and the MDP Markov decision model focuses on developing the optimal scheduling strategy for the single device. Therefore, the subscript / superscript n is omitted in the subsequent description of the embodiment of the present invention to simplify the explanation. 2. Assume that the only available grid signal is the real-time energy price, and the statistical model of energy price and user request / cancellation / evaluation is time-invariant. 3. Assume that if a device currently has an unfinished request, the user will not submit a new request to the device, and the user will evaluate all completed / canceled jobs immediately after the job is completed / canceled.

[0091] Based on the above assumptions, the embodiment of the present invention can first propose a simplified MDP Markov decision model for a single device, assuming that the energy price P t Follow an exogenous finite state ergodic Markov chain with state space P (the “price part” of the model) and model user requests / cancellations of smart devices as being related to P tStatistically independent control Markov process (the "user part" of the model). Figure 3 , which is a user-EMS interaction timeline within a single time period t.

[0092] Furthermore, we assume that the user part of the model can be divided into “episodes”, which usually consist of multiple time periods. Specifically, we assume that each time a smart device completes a job (either initiated by the user or by EMS decision), or the current unfinished request is canceled by the user, the current episode terminates. In the next time period, the user part will reset its state according to the fixed distribution π0 and start a new episode. Figure 4 The following is a conceptual diagram of the series.

[0093] Based on the above simplified MDP Markov decision model, its influencing parameters are explained:

[0094] First, the electrical devices are divided into different device clusters; each device cluster is represented as Thus, given the time and grid signals, consumer requests / cancellations to different device clusters are weakly statistically correlated. Device clusters can be classified based on device type: for example, in a residential home, air conditioners, electric vehicles, washing machines and dryers can be classified into three clusters: cluster 1 includes air conditioners; cluster 2 includes washing machines and dryers; cluster 3 includes electric vehicles. For most residential users under this classification, given the time and grid signals (especially energy prices), the statistical dependence between requests to devices in different clusters is weak.

[0095] Furthermore, the function form of the dissatisfaction function is defined as follows:

[0096]

[0097] Among them, g t is the priority of the current request; S t is the elapsed time of time t. It should be noted that, since the user's preference for job rescheduling is weaker than other aspects of life, the embodiment of the present invention assumes that unless the job is completed / cancelled at time t, On the other hand, if the job is completed / cancelled at time t, then assuming Depends only on the elapsed time S of the job t and priority g t .

[0098] Elapsed time S t The formula is as follows:

[0099]

[0100] The state function at time t is defined as:

[0101] x t =[P t ,s t ,g t ] T ∈S

[0102] Where S is the state space; the cardinality of S is |P| is the cardinality of P, For another time window.

[0103] In order to ensure that the state space S is finite, the embodiment of the present invention assumes that no request is received in the current episode (i.e., g t = 0) there is another time window Specifically, the embodiment of the present invention assumes that for all State [P, s, g = 0] T The transfer / cost model and state [P, W, g = 0] T The same. Let |P| represent the cardinality of P. Then under the above assumptions, the cardinality of S is This is consistent with |P|, W, and g max related.

[0104] The MDP Markov decision model makes decisions on equipment scheduling strategies based on dissatisfaction functions and state functions. The formula is expressed as follows:

[0105] μ * (x t )∈argmax a∈A Q * (x t ,a)

[0106] Among them, μ * Q * The optimal decision when available; a is the discount factor; A is the action space. In most device-based MDP models, the calculation of Q * is feasible, since |A|=2 and $|S|$ is usually small. Once Q * Available, we can get an optimal strategy μ * .

[0107] Specifically, the action space in the embodiment of the present invention is A={off, on}, where action a t = "on, indicating that the smart device completes a task at time t, a t = "off", indicating that the smart device is idle at time t. In order to fully describe the user part of the model, the embodiment of the present invention needs to specify the following:

[0108] 1. If no request is received in the current episode and the action off is executed, what is the probability of receiving a request of a given type at the next moment; 2. If a request is received in the current episode and the action off is executed, what is the probability of the request being canceled.

[0109] Furthermore, the MDP Markov decision model is used to calculate the equipment scheduling decision that minimizes the cost function.

[0110] The goal of the EMS energy management system is to find an optimal scheduling strategy to minimize the cost function proposed in step S102. Based on the above assumptions, it can be seen that user requests / cancellations for different device clusters are almost conditionally independent. Therefore, the device scheduling problem of the EMS energy management system can be approximately decomposed into device clusters. Specifically, for each device cluster The work scheduling problem consists of the discount factor a, the trade-off parameter γ, and the dissatisfaction function The energy consumption rate Cn of the device n in each cluster, the power grid signal data and the user request data for the devices in the device cluster are determined. Furthermore, the embodiment of the present invention defines a performance indicator function, uses the performance indicator function to calculate the cost function of the current decision, and obtains the device scheduling strategy that minimizes the cost function.

[0111] The decision algorithm of the embodiment of the present invention can be implemented by applying any RL algorithm. In order to demonstrate the performance of the RL algorithm, the embodiment of the present invention needs to compare it with a reasonable benchmark strategy μ base Since the embodiment of the present invention focuses on how DR can potentially reduce the user's (expected indefinitely discounted) cost, μ is selected. base As a strategy without job rescheduling. Specifically, in μ base Under the EMS, the energy management system will never start work spontaneously, and all work initiated by the user is scheduled to be completed at its target time.

[0112] The present invention proposes the concept of DR potential (DRP), which upper bounds the cost reduction that any algorithm can achieve. Specifically, for any strategy μ in the device-based MDP model, V μ is used to represent the expected indefinite discounted cost under strategy μ. * Representing an optimal strategy for this device-based MDP, DRP and relative DR potential RDRP are defined as follows:

[0113]

[0114] Among them, DRP is the maximum expected cost reduction that can be achieved by DR; RDRP is the relative maximum expected cost reduction.

[0115] Obviously, when the transition model and dissatisfaction function are known, μ * can be derived in advance, so DRP is achievable. However, in actual situations, when EMS needs to learn μ through some RL algorithm * DRP is usually not possible when represents the expected indefinite discounted cost under the RL algorithm, then the RI between the RL algorithm and the baseline is defined as:

[0116]

[0117] RI captures the normalized expected cost reduction that users see from the RL algorithm, so the device scheduling policy μ that maximizes RI can be taken as the device scheduling policy μ that minimizes the cost function * It should be noted that due to It can be obtained that RI≤RDRP, and RI may be negative because it cannot be guaranteed

[0118] Furthermore, the embodiment of the present invention also describes how DRP and RDRP change with the tradeoff parameter γ:

[0119] Based on the MDP Markov decision model of the device, under mild conditions, the embodiment of the present invention obtains the following results on how DRP and RDRP change with the trade-off parameter γ:

[0120] Precondition: If the energy price is always strictly positive, satisfies the user's dissatisfaction function and is always non-negative; when the user's request is satisfied within its target time or is canceled before the target time, the user's dissatisfaction is 0, and the following results can be obtained:

[0121] 1. V μbas Does not depend on γ.

[0122] 2. There exists γ*>0, so that when γ>γ*, μ base is an optimal strategy. Therefore, when γ→∞, DRP→0.

[0123] 3. DRP and RDRP are non-increasing functions of γ.

[0124] 4. If γ=0, then RDRP=1.

[0125] Furthermore, the embodiment of the present invention also describes how to extend the proposed device-based MDP model to a more general model:

[0126] 1. For a device cluster consisting of multiple devices, the embodiment of the present invention can give a similar MDP model, which may have a higher-dimensional state. For example, a device cluster consisting of a washing machine and a dryer can combine these two devices into a "super device" and still define the state as x t =[P t ,s t ,g t ] T , where Pt is the energy price, s t is the elapsed time, g t Encodes information about the phase and priority of the job.

[0127] 2. If there are other external grid signals, and / or the statistical model of grid signals and user behavior is time-varying (e.g., periodic), then the embodiment of the present invention can incorporate other grid signals and / or time into state x t To propose a similar MDP model.

[0128] 3. The MDP Markov decision model proposed in the embodiment of the present invention can be easily extended to allow users to submit new requests (called superimposed requests) while retaining existing unfinished requests. The method can be: set the target time τ of the device g is defined as a vector. Specifically, τ g The cardinality of is the number of outstanding requests submitted to the device, and its components represent the target times of these requests. When a user submits a new request, it simply concatenates its target time to τ g .

[0129] 4. In actual applications, users will evaluate some completed / canceled jobs at a later time (e.g., at the end of each day). The present invention can easily extend the MDP Markov decision model to this situation. For example, suppose there is a fixed evaluation time every day. At the evaluation time, for each completed / canceled request within the previous 24 hours, the user will evaluate the completed / canceled job with p eval The probability of evaluating, where p eval ∈(0,1) is the evaluation probability. Usually, p eval Probably depends on the device, the request priority, and whether it was completed or canceled.

[0130] Furthermore, the embodiment of the present invention also proposes an auxiliary aggregation decision based on Q-learning, that is, the device decision strategy is optimized using an auxiliary aggregation decision algorithm based on Q-learning to obtain the target device scheduling decision. Q-learning is applied to the device-centric Markov decision process (MDP) model as a reinforcement learning algorithm to help the EMS energy management system learn how to make the best decision when interacting with users and grid signals. The EMS energy management system needs to gradually learn how to adjust the energy consumption of the equipment based on the data collected from users and grid signals to adapt to the changing electricity prices and user needs. By learning the Q-value function, the EMS energy management system can evaluate the expected returns of taking different actions in a specific state, thereby selecting the optimal action strategy. This Q-learning-based method enables the EMS to learn and optimize its decision-making process through interaction with the environment without knowing the user dissatisfaction function and the state transition model.

[0131] By decomposing the problem into an MDP Markov decision model on a cluster of devices, the EMS energy management system can effectively handle the demand response problem of a large-scale cluster of devices, and the computational complexity increases linearly with the number of devices, so that many classic reinforcement learning algorithms can be applied to practical scenarios. Through the application of the Q-learning algorithm, the EMS can continuously optimize its decision-making strategy based on real-time observation and learning experience to achieve the goal of maximizing user satisfaction and energy efficiency. Therefore, Q-learning was successfully applied to the device-centric demand response problem in this paper, providing an effective learning and optimization mechanism for the EMS energy management system, thereby promoting the application and development of intelligent energy management systems in residential and commercial buildings.

[0132] The following is an introduction to the Q-learning algorithm:

[0133] Q-learning is an off-policy learning algorithm that allows the learning agent to follow an exploration strategy while learning the optimal policy. Other advantages of Q-learning include online learning, incremental learning, and easy implementation on real-time data. Q-learning works based on temporal difference learning. At each time step t, the learning algorithm receives input data (x t ,a t ,Φ t ,x t+1 ), where _x0007_t is defined as the instantaneous cost observed after taking action at in state xt and reaching state xt+1. The Q-learning algorithm then updates the state-action value function Qt(xt,at) according to the following update rule:

[0134] Q t+1 (x t ,a t ):=Q t (x t ,a t )+β t [Φ t +αmax a′∈A Q t (x t+1 ,a′)-Q t (x t ,a t )]

[0135] Among them, Q t (x t ,a t ) means taking action a at time t t In state x t The estimated value of β t is the learning rate, Φ t is the observed instantaneous cost and α is the discount factor. i=1 Q t (x t+1 ,a′) means in the next state x t+1 The Q-learning algorithm iteratively updates the Q value through the observed data until it converges to the optimal policy. Due to its simplicity and effectiveness, this algorithm has been widely used in various reinforcement learning applications.

[0136] To complete the Q-learning algorithm description, the embodiment of the present invention also needs to specify a behavior strategy μ b , which guides the algorithm to choose actions. b The way μ affects the data will help the algorithm learn the optimal strategy faster. b A key component of is that it must be an exploratory strategy during learning. A standard but crude choice of μ b The following are suggestions: For a small By probability (hereinafter referred to as “exploration probability”), the algorithm follows a random strategy from state x t Select action a t , with probability 1-ò, the algorithm selects a t ∈argmax a∈A Q t (x t ,a), where Qt is the state-action value function estimate at time t. Here, the embodiment of the present invention considers adopting a randomization strategy in the form of Boltzmann exploration:

[0137]

[0138] Where η>0 is a tuning parameter, called the "temperature" of Boltzmann exploration. The Q-learning algorithm for the deterministic environment of the embodiment of the present invention is as follows: Figure 5 The parameters are as follows: exploration probability ò = 0.05, and temperature η of the soft minimization strategy = 0.1. For each set j, the step size β j =(10 / 20+j); Initialize the algorithm by initializing Q0 to 0.

[0139] The present invention also shows simulation results of applying Q-learning to typical examples that satisfy the simplified assumptions discussed previously, such as Figure 6 to Figure 11 shown.

[0140] For the experimental setting, the embodiment of the present invention provides a representative example: Assume that the state space of the exogenous price Markov chain is P = {10, 12, 15, 20}, and the user request has two different priorities, "high" and "normal". Set the time window W = 4 and The discrete time discount factor α = 0.9995, and the energy consumption of each job C = 1. Therefore, there are |S| = 96 states in this example. Dissatisfaction function and Respectively Figure 6 , Figure 7 and Figure 8 shown.

[0141] Further, for the transfer model, the embodiment of the present invention assumes that if the smart device does not receive a user request in the current episode, then under the shutdown operation, it will be with probability Receive a user request in the next time period. It should be noted that is chosen as the elapsed time s t The increase function.

[0142] Furthermore, there are (W+1)gmax=10 types of user requests (with different target times and priorities), and for simplicity, these ten types of requests are assumed to be equally likely. In addition, if the smart device receives a user request in the current episode, then under the shutdown operation, the unsatisfied request will be closed with probability In this example, assume that the “cancellation probability” Depends only on the elapsed time s t , and with priority g t Not relevant. Select is the elapsed time s t The increase function, such as Fig. 9Finally, suppose that when the smart device regenerates its state, the regenerated user part state is [s t+1 =0,g t+1 =0] T .

[0143] It should be noted that this example satisfies the conditions of the theorem, and therefore, RDRP is a non-increasing function of γ. In addition, when γ = 0, RDRP = 1, and when γ → ∞, RDRP → 0.

[0144] The simulation results of running the Q-learning algorithm on the above detailed example. Specifically, for each trade-off parameter γ = 0, 0.1, 0.2, ..., the Q-learning algorithm was run for [(2 / 1-α)] = 4000 sets of simulations, repeated 200 times. Then, the sample mean of the results of these 200 simulations was used to approximate and Please note and According to the strategy μ base The Bellman equation under RI is analytically derived. Therefore, RI and BCT can be based on as well as and The sample mean (approximately) is calculated. The simulation results are as follows Fig.10 and Fig.11 As shown in Figure 2, the RI and BCT are plotted as a function of the trade-off parameter γ. Only the simulation results for 0≤γ≤4.3 are plotted in the figure, because for γ≥4.4, Therefore, for γ ≥ 4.4, RI is negative and BCT is infinite.

[0145] It should be noted that based on Fig.10 and Fig.11 It is shown that in this representative example, RI is a decreasing function of γ, while BCT is an increasing function of γ. This means that with all other parameters remaining the same, the more the user prefers "no adjustment" to "low energy price", the harder it is for the Q-learning algorithm to achieve significant improvement over the baseline and quickly surpass the baseline policy. In addition, it is observed that for γ≤2.1, BCT=0. This means that for such γ, the Q-learning algorithm outperforms the baseline policy starting from episode 0. Moreover, as γ→4.4, Therefore BCT→∞.

[0146] The device scheduling decision method proposed in the embodiment of the present invention does not require a pre-specified loss function to model consumer dissatisfaction with job rescheduling, and its computational complexity grows linearly with the number of device clusters. The EMS energy management system is able to start work autonomously and allow users to initiate more flexible requests. The simulation results based on the Q-learning algorithm presented above when applied to representative examples show that within a wide range of trade-off parameters γ, the Q-learning algorithm outperforms the baseline strategy without any job rescheduling.

[0147] The present invention provides an equipment scheduling decision method for an energy management system, which solves the technical problems in demand response (DR) in residential and small commercial building fields. By proposing a novel fully automatic energy management system (EMS) formula, a reinforcement learning algorithm is used to achieve dynamic adjustment of energy consumption, simplify user participation, improve flexibility, and reduce computational complexity, thereby promoting the application and development of demand response technology in these fields. It has at least the following beneficial effects:

[0148] 1. By adopting a device-centric perspective, a novel device scheduling decision formulation is proposed, which eliminates the limitation of modeling pre-specified inconvenience functions of consumer dissatisfaction in previous demand response (DR).

[0149] 2. Allow the EMS energy management system to start work autonomously and allow users to initiate more flexible requests, thereby improving the flexibility and adaptability of the system.

[0150] 3. The computational complexity of the algorithm grows linearly with the number of device clusters, making many classic reinforcement learning algorithms applicable to a large number of devices.

[0151] 4. Propose appropriate performance evaluation indicators to evaluate the performance of RL algorithms on this problem.

[0152] 5. Simplify the Markov decision process (MDP) model to tackle the DR problem in residential and small commercial building sectors by decomposing the problem into an RL problem on a cluster of devices.

[0153] Further, as Figure 1 The specific implementation of the present invention provides an equipment scheduling decision system for an energy management system, such as Fig.12 As shown, the device may include: a data acquisition module 121, a function definition module 122 and a decision calculation module 123.

[0154] The data acquisition module 121 can be used to acquire grid signal data, user request data and device management data from the energy management system;

[0155] A function definition module 122 may be used to define a cost function using power grid signal data, user request data, and device management data;

[0156] The decision calculation module 123 can be used to construct an MDP Markov decision model based on reinforcement learning, and use the MDP Markov decision model to calculate the equipment scheduling decision that minimizes the cost function.

[0157] Optionally, the function definition module 122 may also be used to define a user dissatisfaction function based on the user request data and the device management data, and the formula is as follows:

[0158]

[0159] in, The power request / cancellation data and power supply decision data of the target device n before time t; H is the user's dissatisfaction with the target device n at time t; t For the target device;

[0160] The cost function is defined based on the user dissatisfaction function and the power grid signal data. The formula is as follows:

[0161]

[0162] Where D(t) = {device performing work at time t}; P t is the electricity price at time t; γ ≥ 0 represents the trade-off parameter between electricity payment and consumer dissatisfaction with redispatch; ∑n∈D(t)Cn is the total electric energy consumed at time t; P t Cn∑n∈D(t) is the electricity fee paid at time t.

[0163] Optionally, the decision calculation module 123 may also be used to divide the electrical devices into different device clusters based on device type; each device cluster is represented as

[0164] Define the functional form of the dissatisfaction function, the formula is as follows:

[0165]

[0166] Among them, g t is the priority of the current request; S t is the elapsed time of time t, and the formula is as follows:

[0167]

[0168] The state function at time t is defined as:

[0169] x t =[P t,s t ,g t ] T ∈S

[0170] Where S is the state space; the cardinality of S is |P| is the cardinality of P, For another time window;

[0171] The MDP Markov decision model makes decisions on equipment scheduling strategies based on dissatisfaction functions and state functions. The formula is expressed as follows:

[0172] μ * (x t )∈argmax a∈A Q * (x t ,a)

[0173] Among them, μ * Q * The optimal decision when available; a is the discount factor; A is the action space.

[0174] Optionally, the decision calculation module 123 can also be used to obtain the discount factor a, the compromise parameter γ, the dissatisfaction function The energy consumption rate Cn of the device n in each cluster, the power grid signal data, and the user request data for the devices in the device cluster are used to make decisions on the device scheduling strategy using the MDP Markov decision model;

[0175] Define a performance indicator function, use it to calculate the cost function of the current decision, and obtain the equipment scheduling strategy that minimizes the cost function.

[0176] Optionally, the decision calculation module 123 can also be used for the device scheduling strategy μ of the MDP Markov decision model, using V μ Denotes the expected indefinite discounted cost, and the cost-minimizing equipment scheduling strategy μ is obtained * ;

[0177] Define the maximum expected cost reduction that can be achieved by the equipment scheduling strategy μ, as follows:

[0178]

[0179] Where DRP is the maximum expected cost reduction; RDRP is the relative maximum expected cost reduction; μ base is the benchmark strategy;

[0180] Computing the expected indefinite discounted cost using RL algorithms Then the standardized expected cost reduces RI, and the formula is as follows:

[0181]

[0182] The device scheduling strategy μ with the largest RI is taken as the device scheduling strategy μ that minimizes the cost function. * .

[0183] Optionally, the decision calculation module 123 can also be used to optimize the device decision strategy by using an auxiliary aggregation decision algorithm based on Q-learning to obtain a target device scheduling decision.

[0184] It should be noted that for other corresponding descriptions of the functional modules involved in the equipment scheduling decision system of an energy management system provided by an embodiment of the present invention, reference can be made to Figure 1 The corresponding description of the method shown will not be repeated here.

[0185] Based on the above Figure 1 The method shown, accordingly, an embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the equipment scheduling decision method of the energy management system of any of the above embodiments are implemented.

[0186] Based on the above Figure 1 The method shown and Fig.12 The embodiment of the device shown in the figure, the embodiment of the present invention also provides a physical structure diagram of a computer device, such as Fig.13 As shown, the computer device may include a communication bus, a processor, a memory and a communication interface, and may also include an input and output interface and a display device, wherein each functional unit may communicate with each other through the bus. The memory stores a computer program, and the processor is used to execute the program stored in the memory and execute the steps of the device scheduling decision method of the energy management system of the above embodiment.

[0187] Those skilled in the art can clearly understand that the specific working processes of the systems, devices, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and for the sake of brevity, they are not further described here.

[0188] In addition, the functional units in various embodiments of the present invention may be physically independent of each other, or two or more functional units may be integrated together, or all functional units may be integrated into one processing unit. The above integrated functional units may be implemented in the form of hardware, or in the form of software or firmware.

[0189] Those skilled in the art can understand that if the integrated functional unit is implemented in the form of software and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention can essentially or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, which includes a number of instructions to enable a computing device (such as a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present invention when running the instructions. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program codes.

[0190] Alternatively, all or part of the steps of implementing the aforementioned method embodiments may be accomplished by hardware associated with program instructions (such as a computing device such as a personal computer, a server, or a network device), and the program instructions may be stored in a computer-readable storage medium. When the program instructions are executed by a processor of a computing device, the computing device executes all or part of the steps of the methods described in the embodiments of the present invention.

[0191] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that within the spirit and principles of the present invention, the technical solutions described in the aforementioned embodiments can still be modified, or some or all of the technical features therein can be replaced by equivalents. However, these modifications or replacements do not deviate from the protection scope of the present invention.

Claims

1. A device scheduling decision method for an energy management system, characterized in that: The method comprises: Obtain grid signal data, user request data, and equipment management data related to the energy management system; defining a cost function using the grid signal data, the user request data, and the device management data; An MDP Markov decision model based on reinforcement learning is constructed, and the MDP Markov decision model is used to calculate the equipment scheduling decision that minimizes the cost function.

2. The method according to claim 1, characterized in that The grid signal data includes at least one of real-time energy prices, future energy prices, real-time temperature and weather conditions; The user request data includes power request / cancellation data initiated by the user to the energy management system for power consumption of the first target device within the first target time period, and the formula is expressed as J=(n,τr,τg,g); wherein n is the first target device; τr is the request time; τg is the working time; g is the priority of the request; τr≤τg≤τr+Wn; Wn is a time window; The device management data includes power supply decision data for the energy management system to supply power to the second target device within the second target time period based on the user request data.

3. The method according to claim 2, characterized in that The method of defining a cost function using the power grid signal data, the user request data, and the device management data includes: A user dissatisfaction function is defined based on the user request data and the device management data, and the formula is as follows: in, The power request / cancellation data and power supply decision data of the target device n before time t; is the user's dissatisfaction with the target device n at time t; Ht is the target device; A cost function is defined based on the user dissatisfaction function and the power grid signal data, and the formula is as follows: Where D(t) = {equipment performing work at time t}; Pt is the electricity price at time t; γ ≥ 0 represents the trade-off parameter between electricity payment and consumer dissatisfaction with rescheduling; ∑n∈D(t)Cn is the total electric energy consumed at time t; P t Cn∑n∈D(t) is the electricity fee paid at time t.

4. The method according to claim 3, characterized in that The construction of the MDP Markov decision model based on reinforcement learning includes: The electrical devices are divided into different device clusters based on the device type; each of the device clusters is represented as The functional form of the dissatisfaction function is defined as follows: Among them, g t is the priority of the current request; S t is the elapsed time of time t, and the formula is as follows: The state function at time t is defined as: x t =[P t ,s t ,g t ] T ∈S Where S is the state space; the cardinality of S is |P| is the cardinality of P, For another time window; The MDP Markov decision model makes decisions on the equipment scheduling strategy based on the dissatisfaction function and the state function, and the formula is expressed as: μ * (x t )∈argmax a∈A Q * (x t ,a) Among them, μ * Q * The optimal decision when available; a is the discount factor; A is the action space.

5. The method according to claim 4, characterized in that The device scheduling decision of calculating the cost function minimization by using the MDP Markov decision model includes: Obtain the discount factor a, the trade-off parameter γ, and the dissatisfaction function The energy consumption rate Cn of the device n in each of the clusters, the power grid signal data, and the user request data for the devices in the device cluster are used to make decisions on the device scheduling strategy using the MDP Markov decision model; A performance indicator function is defined, and the cost function of the current decision is calculated using the performance indicator function to obtain a device scheduling strategy that minimizes the cost function.

6. The method according to claim 5, characterized in that The defining of the performance indicator function and using the performance indicator function to calculate the minimum cost function of the equipment scheduling decision includes: For the equipment scheduling strategy μ of the MDP Markov decision model, using V μ Denotes the expected indefinite discounted cost, and the cost-minimizing equipment scheduling strategy μ is obtained * ; Define the maximum expected cost reduction that can be achieved by the equipment scheduling strategy μ, as follows: Where DRP is the maximum expected cost reduction; RDRP is the relative maximum expected cost reduction; μ base is the benchmark strategy; Computing the expected indefinite discounted cost using RL algorithms Then the standardized expected cost reduces RI, and the formula is as follows: The device scheduling strategy μ with the largest RI is taken as the device scheduling strategy μ that minimizes the cost function. * .

7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: The device decision strategy is optimized using an auxiliary aggregation decision algorithm based on Q-learning to obtain a target device scheduling decision.

8. An equipment scheduling decision system for an energy management system, characterized in that: The system comprises: A data acquisition module, used to acquire power grid signal data, user request data and equipment management data from the energy management system; A function definition module, used to define a cost function using the power grid signal data, the user request data and the device management data; The decision calculation module is used to construct an MDP Markov decision model based on reinforcement learning, and use the MDP Markov decision model to calculate the equipment scheduling decision that minimizes the cost function.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the device scheduling decision method of the energy management system according to any one of claims 1 to 7.

10. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the device scheduling decision method of the energy management system according to any one of claims 1 to 7 is implemented.