Energy scheduling strategy determination method and device, electronic equipment and storage medium
By converting the charge and discharge power of energy storage equipment as a linear variable, the energy scheduling problem is transformed into a linear planning problem, and the complexity and local optimal problems determined by the energy scheduling strategy in the prior art are solved, thereby achieving more efficient energy management.
Patent Information
- Application Number
- CN202311691793.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-09
- Publication Date
- 2025-06-10
AI Technical Summary
When determining energy scheduling strategies, the prior art faces complex nonlinear solution problems and is prone to falling into local optimal solutions.
By using the charge and discharge power of the energy storage device as a single linear variable of the objective function, the energy scheduling problem is converted into a linear planning problem, reducing the solution complexity and avoiding local optimal solutions.
Energy scheduling solutions with lower complexity are realized to ensure the global optimal solution and improve the efficiency and accuracy of energy management.
Smart Images

Figure CN120127720A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of energy management, and particularly to a method, apparatus, electronic device and storage medium for determining an energy scheduling strategy. Background Art
[0002] In order to improve the efficiency of energy management, the energy of a specific area or organization is usually managed uniformly. For example, a preset area is regarded as a microgrid, and the energy of this area is scheduled and managed through the microgrid. The microgrid can be an office park, which has power-consuming devices, power generation devices and energy storage devices. The power-consuming devices can be routers, air conditioners, etc., the power generation devices can be wind power generation devices, photovoltaic power generation devices, etc., and the energy storage devices can be batteries. The power-consuming devices in the microgrid can be powered by the power generation devices. When the power supply capacity of the power generation devices cannot meet the power consumption requirements of the power-consuming devices, the energy storage devices can also supply power to the power-consuming devices. When the power supply capacity of the power generation devices far exceeds the power consumption requirements of the power-consuming devices, the power generation devices can store the excess power in the energy storage devices. In addition, the energy storage devices can also be charged and stored through the mains power.
[0003] Since the power consumption of the power-consuming devices is determined by multiplying two variables, current and voltage, and both current and voltage are decision variables of the objective function, a non-linear objective function is usually constructed based on the corresponding powers of the power-consuming devices, power supply devices and energy storage devices, and the scheduling strategy is determined by solving the non-linear objective function. However, the algorithm for non-linear solution is relatively complex and the solution of the non-linear objective function is prone to falling into local optimum. Summary of the Invention
[0004] The present application provides a method, apparatus, electronic device and storage medium for determining an energy scheduling strategy. By taking the charge and discharge power of the energy storage device as a single variable of the objective function, the problem of determining the energy scheduling strategy is converted into a linear programming problem, and the energy scheduling strategy is obtained by solving the linear programming problem, reducing the complexity of energy scheduling solution and avoiding the solution of the linear scheduling model from falling into local optimum.
[0005] To achieve the above object, the present application adopts the following technical solutions:
[0006] In a first aspect, a method for determining an energy scheduling strategy is provided. The method for determining the energy scheduling strategy includes: obtaining the load power information of power-consuming devices and the power generation information of power generation devices, where the load power information includes the load power corresponding to multiple scheduling time periods, and the power generation information includes the power generation corresponding to multiple scheduling time periods; based on the load power information of the power-consuming devices and the power generation information of the power generation devices, solving the optimal solution of a linear scheduling model to obtain a target scheduling strategy for energy scheduling, where the target scheduling strategy is the charge and discharge power of the energy storage device corresponding to each scheduling time period. In the linear scheduling model, both the objective function and the constraint conditions are linear functions, and the objective function represents the charge and discharge power of the energy storage device with a single variable.
[0007] In this way, by taking the charge and discharge power of the energy storage device as a single linear variable of the objective function, the energy scheduling is converted into a linear problem. By converting the energy scheduling problem into a linear programming problem, the complexity of the solution is reduced.
[0008] Further, the method for determining the above energy scheduling strategy is an offline scheduling method. By pre-obtaining the load power and power generation power of multiple scheduling time periods, by solving the optimal solution of the linear scheduling model, to determine the charge and discharge power corresponding to each scheduling time period, and by determining the charge and discharge power of the energy storage device, the determination of the energy scheduling strategy is realized.
[0009] Among them, the linear scheduling model is a mathematical optimization model used to arrange limited energy scheduling resources to maximize benefits or minimize costs. The linear scheduling model can be implemented through algorithms or through the cooperation of multiple formulas. The embodiments of the present application do not limit the implementation manner of the linear scheduling model.
[0010] Optionally, since the mains power, the energy storage device, and the power generation device can all supply power to the power-consuming device; and the power supply of the mains power affects the power consumption and the power consumption cost. By determining the energy scheduling strategy, that is, the charge and discharge power of the energy storage device, the power supply of the mains power is reduced, and thus the power consumption or the power consumption cost is reduced.
[0011] In some embodiments, solving the optimal solution of the linear scheduling model includes: solving the optimal solution of the linear scheduling model under the constraint of a first constraint condition, where the first constraint condition is used to constrain the upper and lower limits of the charge and discharge power of the energy storage device.
[0012] It is easy to understand that since the charge and discharge power is converted from a non-linear variable to a linear variable, abnormal solutions are easily introduced. By the first constraint condition of the charge and discharge power, the abnormal solutions of the linear scheduling model are reduced; by combining the first constraint condition and the linear scheduling model, the solution of the linear scheduling model is prevented from falling into a local optimum.
[0013] Optionally, the first constraint condition is used to limit the upper and lower limits of the charge-discharge power. Then, the first constraint condition can be determined based on the charge-discharge capacity of the energy storage device, such as the maximum charge power and the maximum discharge power of the energy storage device.
[0014] In some embodiments, solving the optimal solution of the linear scheduling model includes: solving the optimal solution of the linear scheduling model under the constraints of the first constraint condition and the second constraint condition, where the second constraint condition is used to constrain the charge-discharge time period of the energy storage device.
[0015] It is easy to understand that when determining the energy scheduling strategy for each scheduling time period, in addition to controlling the charge-discharge power of the energy storage device, the charge-discharge behavior of the energy storage device can also be controlled, that is, the charge-discharge time period of the energy storage device. In this way, the charge-discharge power and the charge-discharge behavior of the energy storage device are limited by the first constraint condition and the second constraint condition to limit the range of the optimal solution of the linear scheduling model, filter out abnormal solutions, and improve the solving speed of finding the optimal solution of the linear scheduling model.
[0016] In some embodiments, before solving the optimal solution of the linear scheduling model under the constraint of the first constraint condition, the method further includes: updating the first constraint condition and the second constraint condition corresponding to the target scheduling time period according to the power generation power of the power generation device and the load power of the power consumption device.
[0017] It is easy to understand that since the mains power, the energy storage device, and the power generation device can all supply power to the power consumption device; since the power supply amount of the mains power affects the power consumption amount and the power consumption cost, by determining the energy scheduling strategy, the power supply amount of the mains power can be reduced, and the power consumption amount or the power consumption cost can be reduced. When the power generation power cannot meet the requirement of the load power of the power consumption device, the energy storage device supplies power to the power consumption device; when the discharge power of the energy storage device and the power generation power cannot meet the requirement of the load power of the power consumption device, the mains power supplies power to the power consumption device. The power supply priorities of the mains power, the energy storage device, and the power generation device for the power consumption device can be controlled by controlling the first constraint condition and the second constraint condition, so as to facilitate the determination of the optimal solution. For example, if the power generation power is greater than the load power, there is no need for the energy storage device to supply power, that is, the charge power of the energy storage device is 0, and the energy storage device is in the charging time period at this time, that is, the part of the power generation power greater than the load power is used to supply power to the energy storage device.
[0018] In some embodiments, if the power generation is greater than the load power during the target scheduling time period, the method further includes: obtaining the maximum chargeable amount of the energy storage device and the excess power of the power generation device over the load power of the power consumption device during the target scheduling time period; if the maximum chargeable amount is less than or equal to the excess power, setting the power consumption or the power consumption cost of the mains power corresponding to the target scheduling time period to 0. In this way, during the target scheduling time period, if the power generation power of the power generation device can meet the needs of the load power of the power consumption device, and the part of the power generation power exceeding the load power is sufficient to fully charge the energy storage battery, then during this period, the mains power does not need to supply power to the power consumption device and the energy storage device. By setting the power consumption or the power consumption cost of the mains power for this scheduling time period to 0, it costs nothing for the energy storage device to use the power supplied by the power generation device. If the cost of the power supplied by the power generation device or the mains power consumption is calculated, the obtained solution is not the optimal solution. By setting the power consumption or the power consumption cost of the mains power for this scheduling time period to 0, the deviation correction for this scheduling time period is realized to obtain the optimal solution for this scheduling time period.
[0019] In some embodiments, if the objective of the linear scheduling model is to minimize the power consumption cost of the mains power, before obtaining the optimal solution of the linear scheduling model under the constraints of the first constraint condition and the second constraint condition, the method further includes: obtaining the electricity price information of the mains power, where the electricity price information includes the electricity prices corresponding to multiple scheduling times; updating the second constraint condition according to the relationship between the electricity price information of the mains power and a preset threshold. Optionally: if the electricity price of the mains power during the target scheduling time period is less than the first threshold, the charging and discharging behavior of the energy storage device is charging, that is, the target time period is changed to a charging time period; if the electricity price of the mains power is greater than the second threshold, the charging and discharging behavior of the energy storage device is discharging, that is, the target time period is changed to a discharging time period, where the first threshold is less than the second threshold. In this way, the charging and discharging behavior of the energy storage device is controlled according to the electricity price of the mains power, so as to charge when the electricity price of the mains power is low and discharge when the electricity price of the mains power is high, so as to reduce the overall power consumption cost.
[0020] In some embodiments, if in the second constraint condition, the target scheduling time period includes a charging period and a discharging period, the method further includes: obtaining a first energy scheduling objective and a second energy scheduling objective, where the first energy scheduling objective is the energy scheduling objective when the target scheduling time period is used as a charging period, and the second energy scheduling objective is the energy scheduling objective when the target scheduling time period is used as a discharging period; determining the corresponding second constraint condition of the target scheduling time period according to the first energy scheduling objective and the second energy scheduling objective, so that the energy storage device has only one charging and discharging behavior for each target scheduling time period.
[0021] Thus, if the target scheduling time period includes a charging period and a discharging period, that is, there are two charging and discharging behaviors of the energy storage device during this scheduling time period. Since excessive charging and discharging cycles affect the lifespan of the energy storage device, by comparing the energy scheduling objectives corresponding to the two behaviors, the charging and discharging behavior corresponding to the optimal energy scheduling objective (for example, the minimum electricity cost) is determined as the only charging and discharging behavior during this scheduling time period, so that there is only one charging and discharging behavior in each scheduling time period, which not only ensures that the energy scheduling objective is optimal but also reduces the charging and discharging cycles of the energy storage device.
[0022] In some embodiments, before obtaining the optimal solution of the linear scheduling model under the constraint of the first constraint condition, the method further includes: obtaining the upper limit of the charge state, the lower limit of the charge state, the energy storage capacity of the energy storage device, and the initial electricity of the energy storage device corresponding to each scheduling time period; updating the first constraint condition of each scheduling time period according to the upper limit of the charge state, the lower limit of the charge state, the energy storage capacity of the energy storage device, and the initial electricity of the energy storage device.
[0023] It is easy to understand that the upper and lower limits of the charging and discharging power of the energy storage device are related not only to the performance of the energy storage device itself but also to the initial electricity of the energy storage device in the current scheduling time period. By updating the upper and lower limits of the charging and discharging power of the energy storage device according to the initial electricity of each scheduling time period, the optimal solution of this scheduling time period can be obtained.
[0024] In a second aspect, a device for determining an energy scheduling strategy is provided, including:
[0025] An acquisition device, configured to acquire the load power information of the power-consuming device and the power generation power information of the power generation device, where the load power information includes the load power corresponding to multiple scheduling time periods, and the power generation power information includes the power generation power corresponding to multiple scheduling time periods;
[0026] A determination device, configured to obtain an optimal solution for the linear scheduling model based on the load power information of the power-consuming device and the power generation power information of the power generation device, and obtain a target scheduling strategy for energy scheduling, where the target scheduling strategy is the charging and discharging power of the energy storage device corresponding to each scheduling time period. Among them, the objective function and the constraint conditions in the linear scheduling model are both linear functions, and the objective function represents the charging and discharging power of the energy storage device with a single variable.
[0027] In a third aspect, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the method for determining an energy scheduling strategy in any optional implementation manner of the first aspect are implemented.
[0028] Fourthly, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for determining the energy scheduling strategy described in any item of the first aspect are implemented.
[0029] Fifthly, the present application provides a computer program product. When the computer program product runs on an electronic device, the electronic device is enabled to execute the method described in any item of the first aspect above.
[0030] It can be understood that the beneficial effects of the second to fifth aspects above can be referred to the relevant descriptions in the first aspect, and will not be elaborated here. Description of the Drawings
[0031] Figure 1 A schematic diagram of an energy scheduling system provided by an embodiment of the present application;
[0032] Figure 2 A flowchart of a method for determining an energy scheduling strategy provided by an embodiment of the present application;
[0033] Figure 3 A schematic diagram of the effect of an energy scheduling strategy provided by an embodiment of the present application;
[0034] Figure 4 A module diagram of a device for determining an energy scheduling strategy provided by an embodiment of the present application;
[0035] Figure 5 A structural diagram of an electronic device provided by an embodiment of the present application. Detailed Embodiments
[0036] It should be noted that the terms used in the embodiments of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application. In the description of the embodiments of the present application, unless otherwise specified, "a plurality of" means two or more than two, and "at least one" and "one or more" mean one, two or more than two. The terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of such features.
[0037] References to "one embodiment" or "some embodiments" etc. described in this specification mean that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, statements such as "in one embodiment", "in some embodiments", "in other some embodiments", "in still other embodiments" etc. that appear in different places in this specification do not necessarily all refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized. The terms "comprising", "including", "having" and their variants all mean "including but not limited to", unless otherwise specifically emphasized.
[0038] Please refer to Figure 1 , Figure 1 which is a schematic diagram of an energy scheduling system provided for an embodiment of the present application. Figure 1 The energy scheduling system in
[0039] includes power-consuming devices, power generation devices, and energy storage devices;
[0040] Figure 1 Both the power supply device and the energy storage device in
[0041] can supply power to the power supply device. When the power supply capacity of the power generation device cannot meet the power consumption demand of the power-consuming device, the energy storage device and the power generation device can supply power to the power-consuming device simultaneously; when the power supply capacities of both the power generation device and the energy storage device cannot meet the power consumption demand of the power-consuming device, the power grid, the energy storage device, and the power generation device can supply power to the power-consuming device simultaneously; when the power supply capacity of the power supply device far exceeds the power consumption demand of the power-consuming device, the power generation device can store the excess power in the energy storage device, and in addition, the energy storage device can also be charged and stored through the power grid.
[0042] Since the charge-discharge amount of the energy storage device is determined by time and charge-discharge power, and the charge-discharge power is determined by charge-discharge voltage and charge-discharge current, therefore, during the scheduling process of the energy scheduling system, a non-linear objective function with charge-discharge voltage and charge-discharge current as variables is usually constructed based on the corresponding powers of the power-consuming device, the power generation device, and the energy storage device, and the scheduling strategy is determined by solving the non-linear objective function. However, the algorithm for non-linear solution is relatively complex and the solution of the non-linear objective function is prone to fall into local optimum (i.e., the optimum charge-discharge voltage or the optimum charge-discharge current).
[0043] Based on the above problems, an embodiment of the present application provides a method for determining an energy scheduling strategy. By using the charge-discharge power of the energy storage device as a single linear variable of the objective function, the energy scheduling is converted into a linear problem, and the problem of determining the energy scheduling strategy is converted into a linear programming problem to reduce the complexity of the solution.
[0044] Please refer to Figure 2 , Figure 2 which is a schematic flowchart of a method for determining an energy scheduling strategy provided by an embodiment of the present application. The method for determining the energy scheduling strategy includes the following steps:
[0045] S201. Obtain the load power information of the power-consuming device and the power generation power information of the power generation device. The load power information includes the load powers corresponding to multiple scheduling time periods, and the power generation power information includes the power generation powers corresponding to multiple scheduling time periods.
[0046] Optionally, the method for determining the energy scheduling strategy of the present application is a method for determining an off-line scheduling strategy, that is, the load power and the power generation power within a specific time period are obtained, and then the energy scheduling strategy within the specific time period is determined based on the obtained load power and power generation power. For example, the specific time can be 24 hours of a day. One day can be divided into 288 scheduling time periods, and then the load power and the power generation power corresponding to each scheduling time period can be obtained.
[0047] Optionally, the multiple scheduling time periods in S201 are the time periods for which energy scheduling is required. For example, when performing energy scheduling on the energy scheduling system on December 7th, the load power information and the power generation power information are respectively the load power information and the power generation power information corresponding to December 7th.
[0048] It is easy to understand that since both the power generation power of the power generation device and the load power of the power-consuming device are uncontrollable, but the power generation power and the load power in the current multiple scheduling time periods can be estimated through the power generation power and the load power in the historical data. For example, historical data is obtained. The historical data can be the power generation power and the load power in the previous month or week, and the power generation power and the load power in the current 24 hours of multiple scheduling time periods are estimated based on the historical data.
[0049] S202. Based on the load power information of the power-consuming devices and the power generation power information of the power generation devices, find the optimal solution for the linear scheduling model to obtain the target scheduling strategy for energy scheduling. The target scheduling strategy is the charging and discharging power of the energy storage device corresponding to each scheduling time period. In the linear scheduling model, both the objective function and the constraint conditions are linear functions, and the objective function represents the charging and discharging power of the energy storage device with a single variable.
[0050] It is easy to understand that the linear scheduling model is a mathematical optimization model used to schedule limited energy scheduling resources to maximize benefits or minimize costs. The linear scheduling model can be implemented through algorithms or through the cooperation of multiple formulas. The embodiments of the present application do not limit the implementation manner of the linear scheduling model.
[0051] It is easy to understand that since the mains power, the energy storage device, and the power generation device can all supply power to the power-consuming devices; since the power supply of the mains power affects the power consumption and the power consumption cost, the power generation device is usually a wind power generation device or a photovoltaic power generation device, and the power generation power is greatly affected by weather, and the load power of the power-consuming device is affected by user demands, that is, both the power generation power and the load power cannot be artificially controlled, but the charging and discharging power of the energy storage device can be controlled as needed to achieve energy scheduling; by taking the charging and discharging power of the energy storage device as a single linear variable of the objective function, the energy scheduling problem is transformed into a linear programming problem. Based on the obtained load power of the power-consuming devices and the power generation power of the power generation devices, the optimal solution of the linear scheduling model is obtained according to the linear constraint conditions. The optimal solution refers to the best solution found under given conditions. This optimal solution determines the charging and discharging power corresponding to each scheduling time period under the condition that the load power and the power generation power are determined, and the objective of the linear scheduling model is achieved according to this scheduling strategy, such as minimizing the power consumption of the mains power or minimizing the power consumption cost of the mains power. In this way, by taking the charging and discharging power of the energy storage device as the linear decision variable of the linear scheduling model, the energy scheduling is transformed into a linear problem. By transforming the energy scheduling problem into a linear programming problem and performing linear solution based on the constraint conditions, based on the load power of the power-consuming devices and the power generation power of the power generation devices, to determine the charging and discharging power corresponding to each scheduling time period (that is, the energy scheduling strategy corresponding to each scheduling time period), so as to reduce the complexity of the solution.
[0052] Furthermore, the linear scheduling model is a linear function. A linear function is a special convex function. By constructing the linear scheduling model, the energy scheduling problem is transformed into a convex optimization problem. Convex optimization refers to the problem of finding the minimum value or the maximum value of a convex function under constraint conditions, that is, the solution process of the linear scheduling model. Compared with non-linear solution, the solution process is simplified, and the obtained solution is a global optimal solution rather than a local optimal solution.
[0053] Among them, the linear scheduling model is a mathematical programming model used to optimize energy scheduling. Here, it is used to optimize the charging and discharging power of energy storage devices to achieve the goal of energy scheduling. Based on linear programming theory, the charging and discharging parameters are expressed as decision variables, and constraint conditions and objective functions that are all linear functions are established to maximize profit or minimize cost, such as minimizing the electricity cost of the entire energy scheduling system.
[0054] Furthermore, the linear scheduling model can be solved using linear programming algorithms such as the simplex method and the interior point method. The optimal solution can be obtained in a relatively short time to simplify the process of determining the energy scheduling strategy.
[0055] Exemplarily, the following is a linear scheduling model provided by an embodiment of the present application:
[0056]
[0057] Among them, M is the goal of energy scheduling, that is, to minimize the electricity cost, is the load power of the power-consuming device, and are both the power generation powers of the power generation devices. Among them, is the photovoltaic power generation power, is the wind power generation power, is the charging and discharging power of the energy storage device and is used as a decision variable of the linear scheduling model. Δ is the scheduling period, which can be, for example, 55 minutes. N is the number of decisions, and p i is the electricity price at time i. It can be understood that the linear scheduling model can also be in other forms. For example, Y=(A1 + A2)x + B, where Y is the goal of energy scheduling, x is the charging and discharging power, and A1, A2, and B are related constants.
[0058] It is easy to understand that since the charge-discharge power of the energy storage device is determined by the current and voltage of the energy storage device, and the current and voltage usually exhibit non-linear characteristics. This is because factors such as the chemical reactions inside the battery, the change in the concentration of the electrolyte, and the temperature will all affect the current and voltage, resulting in their non-linear behavior. The non-linear characteristics of the current and voltage of the energy storage device can be described by a non-linear scheduling model. In this application, by taking the charge-discharge power as a decision variable of a linear scheduling model, since the charge-discharge power is converted from non-linear to a linear variable, abnormal solutions are easily introduced during the conversion process. The decision variable is limited by the constraint conditions of the charge-discharge power to ensure the rationality of the solution of the linear scheduling model. Then, finding the optimal solution for the linear scheduling model in S202 includes: finding the optimal solution for the linear scheduling model under the constraint of the first constraint condition, where the first constraint condition is used to constrain the upper and lower limits of the charge-discharge power of the energy storage device. By limiting the charge-discharge power of the energy storage device through the first constraint condition, that is, limiting the range of the linear scheduling model, so as to ensure that the optimal solution is within the normal range.
[0059] Optionally, the first constraint condition can be determined based on the charge-discharge capacity of the energy storage device. For example, the maximum charging power and the maximum discharging power of the energy storage device. Then, the charge-discharge power of the energy storage device needs to be within the range of the maximum charging power and the maximum discharging power. By constraining the range of the optimal solution through the first constraint condition, the optimal solution can be within the range allowed by the charge-discharge capacity of the energy storage device, thus ensuring that the optimal solution is a normal solution.
[0060] Further, the first constraint condition can also be determined based on the power supply capacity of the mains power. If the power generation power of the power generation device cannot meet the load demand of the power-consuming device, the mains power can supply power to both the power-consuming device and the energy storage device simultaneously. If the power generation power of the power generation device can meet the load demand of the power-consuming device and the energy storage device is in the charging period during the current scheduling period, the mains power only supplies power to the energy storage device, and the maximum charging power of the energy storage device is less than or equal to the power supply power of the mains power. Further, the first constraint condition is also affected by the relationship between the power generation power of the power generation device and the load power of the power-consuming device. If the power generation power of the power generation device is greater than the load power of the power-consuming device, in order to avoid waste of the excess power of the power generation device, at this time, the energy storage device is in the charging period during the current scheduling period, and the minimum charging power of the energy storage device is greater than or equal to the difference between the power generation power of the power generation device and the load power of the power-consuming device. If the power generation power of the power generation device is less than the load power of the power-consuming device and the energy storage device is in the charging period during the current scheduling period, the mains power supplies power to both the power-consuming device and the energy storage device simultaneously, and the maximum charging power of the energy storage device is less than or equal to the first difference. The first difference is obtained by adding the maximum power supply power of the mains power and the power generation power and then subtracting the load power. If the power generation power of the power generation device is less than the load power of the power-consuming device and the energy storage device is in the discharging period during the current scheduling period, the maximum discharging power of the energy storage device is less than or equal to the second difference. The second difference is the difference between the load power and the power generation power.
[0061] It can be understood that when the energy storage device supplies power to the power-consuming device, no new power consumption cost will be generated during the power supply process, but instead, the power supply amounts of the mains power and the power generation device can be reduced. When the energy storage device is charged through the mains power, since the charging process consumes the mains power and generates a new power consumption cost. Therefore, the charge and discharge behavior of the energy storage device affects the mains power consumption cost and the mains power consumption amount of the energy scheduling system, and the energy of the energy storage device can be scheduled by controlling the charge and discharge behavior of the energy storage device. Then, finding the optimal solution for the linear scheduling model in S202 includes: finding the optimal solution for the linear scheduling model under the constraints of the first constraint condition and the second constraint condition, where the second constraint condition is used to constrain the charge and discharge periods of the energy storage device.
[0062] Among them, the charge and discharge periods include the charging period and the discharging period. During the charging period, the charge and discharge behavior of the energy storage device is charging. During the discharging period, the charge and discharge behavior of the energy storage device is discharging. By limiting the magnitude range of the charge and discharge power through the first constraint condition, and linearly constraining the charge and discharge behavior of the energy storage device in each scheduling period through the second constraint condition, the two cooperate to jointly limit the value range of the linear scheduling model, filter out abnormal solutions, and improve the solution speed of finding the optimal solution for the linear scheduling model.
[0063] Further, if there is no charging or discharging requirement for the energy storage device during the target scheduling time period, the charging device can be in a non-charging and non-discharging period. For example, the energy storage device is in a fully charged state and the power generation is greater than or equal to the load power.
[0064] Optionally, since the charging and discharging periods correspond to the charging and discharging behaviors of the energy storage device respectively, the positive and negative signs of the charging and discharging power are determined by the charging and discharging periods. For example, if the energy storage device supplies power to the power-consuming device, the electricity cost and consumption of the mains power can be reduced, and the charging and discharging power is positive; if the energy storage device is charged by the mains power, the electricity cost and consumption of the mains power can be increased, and the charging and discharging power is negative. In this way, the optimal solution of the linear scheduling model is jointly determined by the charging and discharging power and the charging and discharging behavior. The charging and discharging behavior determines the positive or negative of the optimal solution, and the charging and discharging power determines the value of the optimal solution; and the charging and discharging behavior and the charging and discharging power are related, and the two cooperate to determine the optimal solution of the linear scheduling model.
[0065] It is easy to understand that after obtaining the load power and power generation of multiple scheduling time periods, if the power generation in the target scheduling time period is greater than the load power, the power-consuming device does not need to be supplied with power through the energy storage device and the mains power, then the target scheduling time period is a charging period or a non-charging and non-discharging period; if the power generation in the target scheduling time period is less than the load power, the energy storage device and / or the mains power need to supply power to the power-consuming device, then the energy storage device can be in a discharging period or a non-charging and non-discharging period in the target scheduling time period; if the sum of the maximum power supply of the mains power and the power generation is less than the load power within the target scheduling time period, the energy storage device is in a discharging period in the target scheduling time period; that is, the relationship between the load power and the power generation in each scheduling time period can affect the charging and discharging behavior of the energy storage device in that scheduling time period, that is, the relationship between the load power and the power generation in each scheduling time period can determine whether the scheduling time period is a charging period or a discharging period.
[0066] Further, the charging and discharging power of the energy storage device is also related to the relationship between the power generation of the power generation device and the load power of the power-consuming device.
[0067] Among them, the relationship between the power generation of the power generation device and the load power of the power-consuming device includes two types:
[0068] The first type: the power generation of the power generation device is greater than the load power of the power-consuming device, then the excess power of the power generation device can charge the energy storage device, and the total charging power of the energy storage device is less than the charging power threshold, that is, the charging and discharging power of the energy storage device satisfies:
[0069]
[0070] Among them, is the charging and discharging power of the energy storage device, and are the photovoltaic power generation and the separate power generation respectively, is the load power of the power-consuming device, is the charging power threshold;
[0071] Second: If the power generation of the power generation device is less than the load power of the power-consuming device, the energy storage device can supply power to the power-consuming device, and the total discharge power of the energy storage device is less than the discharge power threshold, that is, the charge and discharge power of the energy storage device satisfies:
[0072]
[0073] Among them, combining the two scenarios, the upper and lower boundaries of the charge and discharge power of the energy storage device can be determined, that is, the range of the charge and discharge power of the energy storage device:
[0074]
[0075]
[0076] Among them, UB i is the upper boundary of the charge and discharge power of the energy storage device, and LB i is the lower boundary of the charge and discharge power of the energy storage device.
[0077] In this way, after obtaining the load power and power generation power of multiple scheduling time periods, the upper and lower boundaries of the charge and discharge power and the charge and discharge time periods of each scheduling time period can be determined according to the relationship between the load power and the power generation power. Then step S202 includes: updating the first constraint condition and the second constraint condition corresponding to the target scheduling time period according to the power generation power of the power generation device and the load power of the power-consuming device. That is, first update the first constraint condition and the second constraint condition corresponding to the target scheduling time period according to the power generation power of the power generation device and the load power of the power-consuming device, and then find the optimal solution of the linear scheduling model under the constraints of the updated first constraint condition and the second constraint condition.
[0078] Furthermore, since the mains power, energy storage device, and power generation device can all supply power to the power-consuming device; as the power supply of the mains power affects the power consumption and power consumption cost, by determining the energy scheduling strategy, the power supply of the mains power can be reduced to reduce the power consumption or power consumption cost. When the power generation power cannot meet the load power requirement of the power-consuming device, the energy storage device supplies power to the power-consuming device; when the discharge power of the energy storage device and the power generation power cannot meet the load power requirement of the power-consuming device, the mains power supplies power to the power-consuming device. The power supply priorities of the mains power, energy storage device, and power generation device for the power-consuming device can be controlled by updating the first constraint condition and the second constraint condition, so as to facilitate the determination of the optimal solution. For example, if the power generation power is greater than the load power, there is no need for the energy storage device to supply power, that is, the charging power of the energy storage device is 0, and the energy storage device is in the charging period during this time period, that is, the part of the power generation power greater than the load power is used to supply power to the energy storage device.
[0079] It is easy to understand that the maximum power supply of the mains power in different regions is different. When updating the first constraint condition and the second constraint condition corresponding to the target scheduling time period according to the power generation power of the power generation device and the load power of the power-consuming device, the maximum power supply of the mains power also needs to be considered.
[0080] Exemplarily, if the power generation power of the power generation device is greater than the load power of the power-consuming device, the excess power of the power generation power of the power generation device can charge the energy storage device, and the mains power can also charge the energy storage device; then the charge-discharge power of the energy storage device satisfies:
[0081] Among them, is the maximum power supply of the mains power.
[0082] If the power generation power of the power generation device is less than the load power of the power-consuming device, the mains power can also charge the energy storage device, then the charge-discharge power of the energy storage device satisfies:
[0083]
[0084] Furthermore, the upper boundary of the charge-discharge power of the energy storage device can be determined:
[0085]
[0086]
[0087] Then the maximum power supply of the mains power is used as a constant in the linear scheduling model. Here, the constant can be a quantity that remains unchanged within a specific time period, or a quantity that remains unchanged in all time periods. Here, the maximum power supply of the mains power can be a quantity that remains unchanged within a day or a month.
[0088] In some embodiments, if the power generation is greater than the load power during the target scheduling time period, the method further includes: obtaining the maximum chargeable amount of the energy storage device and the excess power of the power generation of the power generation device over the load power of the power consumption device during the target scheduling time period; if the maximum chargeable amount is less than or equal to the excess power, setting the power consumption or power consumption cost of the mains power corresponding to the target scheduling time period to 0. In this way, during the target scheduling time period, if the power generation power of the power generation device can meet the needs of the load power of the power consumption device, the part of the power generation power exceeding the load power is sufficient to fully charge the energy storage battery. Then, during this scheduling time period, the mains power does not need to supply power to the power consumption device and the energy storage device. By setting the power consumption or power consumption cost of the mains power in this scheduling time period to 0, it costs nothing for the energy storage device to use the power supplied by the power generation device. If the power supply part of the power generation device is calculated for cost or mains power consumption, the solution obtained is not the optimal solution. By setting the power consumption of the mains power in this scheduling time period to the minimum or the power consumption cost of the mains power to 0, the deviation correction for this scheduling time period is realized to obtain the optimal solution for this scheduling time period.
[0089] Exemplarily, the moment when the power generation power of the power generation device is greater than the load power of the power consumption device is set as the target scheduling moment. Before the target scheduling moment, the remaining power of the energy storage device is S tmp , then the maximum chargeable amount S res = S max - S tmp ; where S max is the maximum power of the energy storage device;
[0090] During the target scheduling time period, the total power of the power generation device exceeding the load power of the power consumption device is:
[0091]
[0092] If That is, the power of the power generation device exceeding the power consumption device is sufficient to fully charge the energy storage device. Therefore, the electricity price p i during the target scheduling time period is set to 0, that is, the lower bound of the charge-discharge power of the energy storage device during the target scheduling time period is set to Thus, the mains power is prohibited from charging the energy storage device.
[0093] Further, if the power of the power generation device exceeding the power consumption device is not sufficient to fully charge the energy storage device, the mains power is allowed to charge the energy storage device, and the minimum charging power of the energy storage device is the power of the power generation device exceeding the power consumption device, thereby avoiding the charging of the energy storage device by the power generation device being recorded as a charging cost, resulting in the solution of the linear scheduling model not being the optimal solution.
[0094] Exemplarily, if That is, the excess power of the power generation equipment over the power consumption equipment is not enough to fully charge the energy storage equipment. To make full use of the excess power of the power generation equipment over the power consumption equipment, this part can be used to charge the energy storage equipment, that is, the first constraint condition is optimized, that is, the upper bound of the energy storage equipment is set to At the same time, it is allowed to charge the energy storage equipment through the mains power.
[0095] It is easy to understand that since each scheduling time period has a corresponding electricity price, in order to save the electricity cost, the charging and discharging behavior of the energy storage equipment can be determined according to the relationship between the electricity price and the preset threshold. For example, if the electricity price is less than 0.8 yuan, it is allowed to charge the energy storage equipment through the mains power; if the electricity price is greater than 1 yuan, only the energy storage equipment is allowed to discharge, and it is not allowed to charge the energy storage equipment through the mains power.
[0096] In some embodiments, if the objective of the linear scheduling model is to minimize the electricity cost of the mains power, before solving the optimal solution of the linear scheduling model under the constraints of the first constraint condition and the second constraint condition, the method further includes: obtaining the electricity price information of the mains power, where the electricity price information includes the electricity prices corresponding to multiple scheduling times; updating the second constraint condition according to the relationship between the electricity price information of the mains power and the preset threshold.
[0097] Optionally, if the electricity price of the mains power in the target scheduling time period is less than the first threshold, the charging and discharging behavior of the energy storage equipment is charging, that is, the target time period is changed to a charging time period; if the electricity price of the mains power is greater than the second threshold, the charging and discharging behavior of the energy storage equipment is discharging, that is, the target time period is changed to a discharging time period, where the first threshold is less than the second threshold. In this way, the charging and discharging behavior of the energy storage equipment is controlled according to the electricity price of the mains power, so as to charge when the electricity price of the mains power is low and discharge when the electricity price of the mains power is high, so as to reduce the overall electricity cost.
[0098] Further, if the electricity price of the mains power in the target scheduling time period is greater than the first threshold and less than the second threshold, the energy storage equipment can be in a charging time period or a discharging time period during this scheduling period.
[0099] Exemplarily, the mains power is divided into valley hours and peak hours. During valley hours, the electricity price of the mains power is low, and it is allowed to charge the energy storage equipment through the mains power; during peak hours, the electricity price of the mains power is the highest, and it is not allowed to charge the energy storage equipment through the mains power during this period.
[0100] In this way, the charging and discharging time periods of the energy storage equipment are controlled according to the electricity price of the mains power in each scheduling time period, so as to reduce the overall electricity cost.
[0101] Further, if it is determined whether the energy storage device is in a charging period or a discharging period during the target scheduling period based on the relationship between the electricity price of the mains power and the preset threshold, and the power generation power of the power generation device is greater than the load power of the power consumption device, then it is determined that the energy storage device is in the charging period during the target scheduling period; if it is determined whether the energy storage device is in a charging period or a discharging period during the target scheduling period based on the relationship between the electricity price of the mains power and the preset threshold, and the sum of the power generation power of the power generation device and the maximum power of the mains power is less than the load power of the power consumption device, then it is determined that the energy storage device is in the discharging period during the target scheduling period.
[0102] Further, the charging and discharging periods of the energy storage device also need to consider the current power of the energy storage device itself; if the current power of the energy storage device is in a full charge state, then the energy storage device can be in the discharging period or the non-charging and non-discharging period during the current period; if the current power of the energy storage device is less than or equal to the minimum power, then the energy storage device can be in the charging period or the non-charging and non-discharging period during the current period.
[0103] It is easy to understand that the charge and discharge times of the energy storage device affect the life of the energy storage device. For example, the more the charge and discharge times of the energy storage device, the greater the life loss of the energy storage device, and the fewer the charge and discharge times, the smaller the life loss of the energy storage device. In some scenarios, the energy storage device can be charged, and the energy storage device can also supply power to the power consumption device. For example, when the electricity price of the mains power is less than 1 yuan and greater than 0.8 yuan, the energy storage device can be charged, and the energy storage device can also supply power to the power consumption device. However, if the energy storage device is both charged and discharged, and the power conversion rate of the energy storage device is less than 100%, the electricity cost is increased; at the same time, the charge and discharge times of the energy storage device are increased, and the life loss of the energy storage device is increased. Therefore, within each scheduling period, if the electricity price remains unchanged, the charge and discharge behavior of the energy storage device remains unchanged. For example, the charge and discharge behavior of the scheduling period is set to discharge or charge, and remains unchanged throughout the scheduling period to reduce the charge and discharge times of the energy storage device.
[0104] It is easy to understand that if it is determined according to the second constraint condition that the target scheduling time period includes a charging period and a discharging period, that is, the energy storage device has two charging and discharging behaviors within the same scheduling time period, the charging and discharging behaviors corresponding to the optimal energy scheduling target (for example, the minimum electricity cost) can be determined by comparing the energy scheduling targets corresponding to the two behaviors, and the charging and discharging behavior corresponding to the optimal energy scheduling target is used as the only charging and discharging behavior in this scheduling time period, so that this scheduling time period is a charging period or a discharging period. Then, if in the second constraint condition, the target scheduling time period includes a charging period and a discharging period, the method further includes: obtaining a first energy scheduling target and a second energy scheduling target, where the first energy scheduling target is the energy scheduling target when the target scheduling time period is a charging period, and the second energy scheduling target is the energy scheduling target when the target scheduling time period is a discharging period; determining the corresponding second constraint condition of the target scheduling time period according to the first energy scheduling target and the second energy scheduling target, so that there is only one charging and discharging behavior of the energy storage device in each target scheduling time period.
[0105] Exemplarily, if the charging and discharging periods of the energy storage device or the second constraint condition are determined according to the relationship between the electricity price information and the electricity price threshold, since the electricity price is greater than the first threshold and less than the second threshold, that is, the electricity price is in the period when the energy storage device can be charged or discharged; it may lead to charging the energy storage device and discharging through the energy storage device in the same scheduling period.
[0106] Thus, if the target scheduling time period includes a charging period and a discharging period, that is, there are two charging and discharging behaviors of the energy storage device in this scheduling time period. Since too many charging and discharging times affect the life of the energy storage device, the charging and discharging behaviors corresponding to the optimal energy scheduling target (for example, the minimum electricity cost) are determined by comparing the energy scheduling targets corresponding to the two behaviors, and the charging and discharging behavior corresponding to the optimal energy scheduling target is used as the only charging and discharging behavior in this scheduling time period, so that there is only one charging and discharging behavior in each scheduling time period, that is, the energy scheduling target is ensured to be optimal and the charging and discharging times of the energy storage device are reduced.
[0107] It can be understood that when the energy storage device supplies power to a power-consuming device or the power generation device and the mains power charge the energy storage device, the capacity threshold of the energy storage device also needs to be considered, and the capacity threshold is determined by the energy storage capacity of the energy storage device, the upper limit of the state of charge (SOC), and the lower limit of the state of charge.
[0108] Exemplarily, the charging and discharging power of the energy storage device satisfies:
[0109] S min ≤S i ≤S max ,S min =SOC min *Cap,S max =SOC max *Cap;
[0110] Wherein, SOCmin is the lower limit of the SOC of the energy storage device, and SOC max is the lower limit of the SOC of the energy storage device, Cap is the energy storage capacity of the energy storage device. If the energy storage device is a battery, the energy storage capacity is the battery capacity.
[0111] Furthermore, since the relationship between the charge and discharge power of the energy storage device and the charging power is:
[0112] S i = P.T;
[0113] where P is the charge and discharge power of the energy storage device, and T is the charge and discharge time corresponding to the charge and discharge power;
[0114] then the charge and discharge power of the energy storage device satisfies:
[0115] S min ≤ P.T ≤ S max ;
[0116] In this way, when the energy storage device supplies power to the power-consuming device or charges the energy storage device through the power generation device or the mains power, it is necessary to combine the charging power threshold, the discharge power threshold, the upper limit of the charge state, the lower limit of the charge state, and the energy storage capacity of the energy storage device. That is, when charging and discharging through the energy storage device, it is necessary to consider the charge and discharge ability and storage ability of the energy storage device itself to improve the accuracy of the optimal solution of the linear scheduling model.
[0117] It is easy to understand that in each scheduling period, the energy storage device has an initial charge, which is the remaining charge in the energy storage device after the end of the previous scheduling period.
[0118] Exemplarily, the initial charge is S 0 , and the change in the charge of the energy storage device in two scheduling periods is:
[0119]
[0120] where S i is the charge in the i-th scheduling period; S i+1 is the charge in the (i + 1)-th scheduling period; is the charge and discharge power in the i-th scheduling period, and Δ is the size of the scheduling period;
[0121] then the charge and discharge power in each scheduling period needs to satisfy:
[0122]
[0123] That is, in addition to being related to the capabilities of the energy storage device itself, the upper and lower limits of the charging and discharging power of the energy storage device are also related to the initial power of the energy storage device in each scheduling period. Then, before solving the optimal solution of the linear scheduling model under the constraint of the first constraint condition, the method further includes: obtaining the upper limit of the charge state, the lower limit of the charge state, the energy storage capacity of the energy storage device, and the initial power of the energy storage device corresponding to each scheduling period; updating the first constraint condition of each scheduling period according to the upper limit of the charge state, the lower limit of the charge state, the energy storage capacity of the energy storage device, and the initial power of the energy storage device.
[0124] It is easy to understand that the upper and lower limits of the charging and discharging power of the energy storage device are not only related to the performance of the energy storage device itself, but also related to the initial power of the energy storage device in the current scheduling period. The initial power of the energy storage device in each scheduling period can be limited by the first constraint condition of this scheduling period, that is, the upper and lower limits of the charging and discharging power; if the energy storage device in this scheduling period is in the charging period, the maximum charging power is equal to the product of the duration of the scheduling period and the target charging power, that is, the maximum charging power of the energy storage device in this scheduling period is less than or equal to the target charging power, where the maximum charging power is the difference between the maximum capacitance of the energy storage device and the initial power; if the energy storage device in this scheduling period is in the discharging period, the maximum discharging power is equal to the initial power of the energy storage device, and the initial power is equal to the product of the duration of the scheduling period and the target charging power, that is, the maximum discharging power of the energy storage device in this scheduling period is less than or equal to the target charging power. Update the upper and lower limits of the charging and discharging power of the energy storage device through the initial power of each scheduling period to obtain the optimal solution of this scheduling period.
[0125] It is easy to understand that the upper and lower limits of the charging and discharging power of the energy storage device are limited by the first constraint condition. Among them, the upper and lower limits of the charging and discharging power include the maximum charging power and the minimum charging power, the maximum discharging power and the minimum discharging power of the energy storage device. If multiple maximum charging powers and maximum discharging powers or multiple minimum charging powers and multiple minimum discharging powers are determined by at least one of the maximum power supply of the mains, the power generation power, the load power, and the charging and discharging performance of the energy storage device, then select the intersecting part from multiple maximum charging powers, multiple maximum discharging powers, multiple minimum charging powers, and multiple minimum discharging powers as the upper and lower limits of the charging and discharging power. Similarly, the second constraint condition limits the charging and discharging periods of the energy storage device. The charging and discharging periods are affected by factors such as electricity price, power generation power, and load power relationship. If the second constraint conditions determined by multiple influencing elements are different, if it is determined that this scheduling period is a discharging period according to the relationship between the power generation power and the load power, then determine that this scheduling period is a discharging period. For example, when the sum of the power generation power and the maximum power supply of the mains is less than the load power, the energy storage device is in the discharging period in the current scheduling period.
[0126] Please refer toFigure 3 , Figure 3 This is a schematic diagram showing the effect of a scheduling strategy provided by an embodiment of the present application. Figure 3 The abscissa in [the figure] is time (unit: hour), and the ordinate is power (unit: W); the scheduling period is 24 hours, and the scheduling time period is 5 minutes, so there are 288 scheduling time periods in this scheduling period; it is assumed that the capacity of the energy storage device is 400 Ah, the maximum charge-discharge power is 200 W, the lower limit of the state of charge is 0.2; the upper limit of the state of charge is 0.8; the initial state of charge of the energy storage device is 0.2; energy scheduling is achieved by controlling the charge-discharge behavior and charge-discharge power of the energy storage device, and the charge-discharge behavior and charge-discharge power are also two decision variables of the corresponding linear scheduling model; when the value of the charge-discharge power is negative, it indicates that the energy storage device is charging through the power generation power of the mains or the power generation device; when the value of the charge-discharge power is positive, it indicates that the energy storage device is discharging; the charge-discharge behavior of the energy storage device is controlled by the relationship between the electricity price of the mains and a preset threshold. Figure 3 There are two charge-discharge behaviors in [the figure]. From 0 to around 6:00 and from around 15:00 to around 17:00, the charge-discharge behavior of the energy storage device is charging; from 13:00 to 14:00 and from 17:00 to 22:00, the charge-discharge behavior of the energy storage device is discharging. By controlling the charge-discharge behavior of the energy storage device, not only can the electricity cost be minimized, but also the number of charge-discharge times within the scheduling period can be reduced, thereby reducing the impact of the number of charge-discharge times on the lifespan of the energy storage device; further, the charge-discharge power of the energy storage device is adjusted according to the load power of the load device and the power generation power of the power generation device, so as to improve the energy utilization efficiency, reduce energy waste, and lower the energy cost.
[0127] In some embodiments, the goal of energy scheduling is set to minimize the electricity cost; then a linear scheduling model is constructed based on the goal of energy scheduling, the load power of the power-consuming device, the electricity price parameter, the power generation power of the power generation device, and the charge-discharge parameters of the energy storage device; both the objective function and the constraint conditions in the linear scheduling model are linear functions, and the objective function represents the charge-discharge power of the energy storage device with a single variable.
[0128] Then, the load power, electricity price parameter, and power generation power of the power generation device for multiple scheduling time periods are obtained, and the optimal solution of the linear scheduling model is obtained according to the first constraint condition and the second constraint condition, where the first constraint condition is used to constrain the upper and lower limits of the charge-discharge power of the energy storage device, and the second constraint condition is used to constrain the charge-discharge time period of the energy storage device.
[0129] Further, before obtaining the optimal solution of the linear scheduling model, the method further includes: updating the first constraint condition and the second constraint condition corresponding to the target scheduling time period according to the relationship between the power generation power of the power generation device and the load power of the power consumption device; if the power generation power is greater than the load power during the target scheduling time period, obtaining the maximum chargeable amount of the energy storage device and the excess power of the power generation power of the power generation device exceeding the load power of the power consumption device during the target scheduling time period; if the maximum chargeable amount is less than or equal to the excess power, setting the power consumption of the mains power or the power consumption cost of the mains power corresponding to the target scheduling time period to 0.
[0130] Before obtaining the optimal solution of the linear scheduling model under the constraints of the first constraint condition and the second constraint condition, obtain the electricity price information of the mains power, where the electricity price information includes the electricity prices corresponding to multiple scheduling times; update the second constraint condition according to the relationship between the electricity price information of the mains power and the preset threshold.
[0131] If in the second constraint condition, the target scheduling time period includes a charging period and a discharging period, obtain a first energy scheduling target and a second energy scheduling target, where the first energy scheduling target is the energy scheduling target when the target scheduling time period is used as the charging period, and the second energy scheduling target is the energy scheduling target when the target scheduling time period is used as the discharging period; determine the second constraint condition corresponding to the target scheduling time period according to the first energy scheduling target and the second energy scheduling target, so that the energy storage device has only one charging and discharging behavior in each target scheduling time period.
[0132] Before obtaining the optimal solution of the linear scheduling model under the constraint of the first constraint condition, obtain the upper limit of the charge state, the lower limit of the charge state, the energy storage capacity of the energy storage device, and the initial power of the energy storage device corresponding to each scheduling time period; update the first constraint condition of each scheduling time period according to the upper limit of the charge state, the lower limit of the charge state, the energy storage capacity of the energy storage device, and the initial power of the energy storage device.
[0133] Limit the range of the optimal solution through the first constraint condition and the second constraint condition, so as to reduce the introduction of abnormal solutions when converting the problem of determining the energy scheduling strategy into a linear programming problem, and improve the accuracy of the optimal solution.
[0134] It should be understood that although the steps in the flowcharts involved in the above-described embodiments are shown in sequence according to the indications of the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear indication in this article, there is no strict order limit for the execution of these steps, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-described embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily executed 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 executed alternately or in turn with at least a part of other steps or steps or stages in other steps.
[0135] Based on the same inventive concept, the embodiments of the present application also provide an apparatus for determining an energy scheduling strategy. The apparatus for determining an energy scheduling strategy provided by the embodiments of the present application can implement each process of the embodiments of the above-described method for determining an energy scheduling strategy and can achieve the same technical effects. Therefore, the specific limitations in one or more of the following embodiments for determining an energy scheduling strategy can refer to the limitations on the method for determining an energy scheduling strategy in the foregoing text.
[0136] Please refer to Figure 4 , Figure 4 which is a schematic diagram of the modules of an apparatus for determining an energy scheduling strategy provided by an embodiment of the present application. The apparatus for determining an energy scheduling strategy includes an acquisition module and a determination module;
[0137] Among them, the acquisition module is used to acquire the load power information of the power-consuming device and the power generation power information of the power generation device. The load power information includes the load power corresponding to multiple scheduling time periods, and the power generation power information includes the power generation power corresponding to multiple scheduling time periods;
[0138] The determination module is used to find the optimal solution of the linear scheduling model based on the load power information of the power-consuming device and the power generation power information of the power generation device, and obtain the target scheduling strategy for energy scheduling. Among them, the target scheduling strategy is the charge and discharge power of the energy storage device corresponding to each scheduling time period. In the linear scheduling model, both the objective function and the constraint conditions are linear functions, and the objective function represents the charge and discharge power of the energy storage device with a single variable.
[0139] In some embodiments, the determination module is further configured to: find the optimal solution of the linear scheduling model under the constraint of the first constraint condition, where the first constraint condition is used to constrain the upper and lower limits of the charge and discharge power of the energy storage device.
[0140] In some embodiments, the determining module is further configured to: find an optimal solution for the linear scheduling model under the constraints of the first constraint condition and the second constraint condition, where the second constraint condition is used to constrain the charging and discharging periods of the energy storage device.
[0141] In some embodiments, the determining module is further configured to: update the first constraint condition and the second constraint condition corresponding to the target scheduling period according to the power generation power of the power generation device and the load power of the power consumption device.
[0142] In some embodiments, the determining module is further configured to, if the power generation power is greater than the load power within the target scheduling period, obtain the maximum chargeable amount of the energy storage device within the target scheduling period and the excess amount of the power generation amount of the power generation device exceeding the load amount of the power consumption device; if the maximum chargeable amount is less than or equal to the excess amount, set the power consumption amount or the power consumption cost of the mains power corresponding to the target scheduling period to 0.
[0143] In some embodiments, the determining module is further configured to: before finding an optimal solution for the linear scheduling model under the constraints of the first constraint condition and the second constraint condition, obtain the electricity price information of the mains power, where the electricity price information includes the electricity prices corresponding to multiple scheduling times; update the second constraint condition according to the relationship between the electricity price information of the mains power and a preset threshold.
[0144] In some embodiments, the determining module is further configured to: if the target scheduling period includes a charging period and a discharging period in the second constraint condition, obtain a first energy scheduling target and a second energy scheduling target, where the first energy scheduling target is the energy scheduling target when the target scheduling period is a charging period, and the second energy scheduling target is the energy scheduling target when the target scheduling period is a discharging period;
[0145] Determine the second constraint condition corresponding to the target scheduling period according to the first energy scheduling target and the second energy scheduling target, so that the energy storage device has only one charging and discharging behavior in each target scheduling period.
[0146] In some embodiments, the determining module is further configured to: before finding an optimal solution for the linear scheduling model under the constraint of the first constraint condition, obtain the upper limit of the charge state, the lower limit of the charge state of the energy storage device, the energy storage capacity of the energy storage device, and the initial power of the energy storage device corresponding to each scheduling period; update the first constraint condition of each scheduling period according to the upper limit of the charge state of the energy storage device, the lower limit of the charge state, the energy storage capacity of the energy storage device, and the initial power of the energy storage device.
[0147] Please refer to Figure 5, which is a schematic structural diagram of an electronic device provided by an embodiment of the present application. As Figure 5 shown, the electronic device 50 provided in this embodiment may include: a processor 540, a memory 541, and a computer program 542 stored in the memory 541 and executable on the processor 540, such as a program corresponding to the method for determining an energy scheduling strategy. When the processor 540 executes the computer program 542, it implements the steps in the embodiment of the method for determining an energy scheduling strategy applied above, such as Figure 2 the steps shown.
[0148] Exemplarily, the computer program 542 may be divided into one or more modules / units. One or more modules / units are stored in the memory 541 and executed by the processor 540 to complete the present application. One or more modules / units may be a series of computer program instruction segments capable of performing specific functions, and these instruction segments are used to describe the execution process of the computer program 542 in the electronic device 50.
[0149] Those skilled in the art can understand that Figure 5 this is only an example of the electronic device 50 and does not constitute a limitation on the electronic device 50. It may include more or fewer components than shown in the figure, or combine certain components, or different components.
[0150] The processor 540 may be a central processing unit (CPU), or may also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0151] The memory 541 may be an internal storage unit of the electronic device 50, such as the hard disk or memory of the electronic device 50. The memory 541 may also be an external storage device of the electronic device 50, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, or a flash card equipped on the electronic device. Further, the memory 541 may also include both the internal storage unit and the external storage device of the electronic device 50.
[0152] The memory 541 is used to store computer programs as well as other programs and data required by the electronic device. The memory 541 can also be used to temporarily store data that has been output or is to be output.
[0153] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the above division of each functional unit is used as an example. In actual applications, the above functions can be allocated to different functional units according to needs, that is, the internal structure of the data storage architecture is divided into different functional units to complete all or part of the functions described above. Each functional unit in the embodiment can be integrated into a processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit. In addition, the specific names of each functional unit are only for the convenience of mutual distinction and do not limit the protection scope of this application. The specific working process of the units in the above system can refer to the corresponding process in the foregoing method embodiment and will not be elaborated here.
[0154] The embodiment of this application also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps in the foregoing method embodiments can be implemented.
[0155] The embodiment of this application provides a computer program product. When the computer program product runs on an electronic device, the electronic device implements the steps in the foregoing method embodiments.
[0156] In the above embodiments, the descriptions of each embodiment have their own emphases. For the parts not detailed or recorded in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0157] Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed in this article can be implemented by electronic hardware, or by a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this application.
[0158] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
[0159] Finally, it should be noted that the above is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any changes or replacements within the technical scope disclosed in the present application should be covered by the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A method for determining an energy scheduling strategy, characterized in that, comprising: Obtaining the load power information of power-consuming devices and the power generation information of power generation devices, where the load power information includes the load power corresponding to multiple scheduling time periods, and the power generation information includes the power generation corresponding to multiple scheduling time periods; Based on the load power information of the power-consuming devices and the power generation information of the power generation devices, solving the optimal solution of the linear scheduling model to obtain the target scheduling strategy for energy scheduling, where the target scheduling strategy is the charge and discharge power of the energy storage device corresponding to each scheduling time period, the objective function and the constraint conditions in the linear scheduling model are all linear functions, and the objective function represents the charge and discharge power of the energy storage device with a single variable.
2. The method according to claim 1, characterized in that, The solving of the optimal solution of the linear scheduling model includes: Solving the optimal solution of the linear scheduling model under the constraint of the first constraint condition, where the first constraint condition is used to constrain the upper and lower limits of the charge and discharge power of the energy storage device.
3. The method according to claim 2, characterized in that, The solving of the optimal solution of the linear scheduling model includes: Solving the optimal solution of the linear scheduling model under the constraints of the first constraint condition and the second constraint condition, where the second constraint condition is used to constrain the charge and discharge time periods of the energy storage device.
4. The method according to claim 3, characterized in that, Before solving the optimal solution of the linear scheduling model, the method further includes: Updating the first constraint condition and the second constraint condition corresponding to the target scheduling time period according to the power generation of the power generation device and the load power of the power-consuming device.
5. The method according to claim 4, characterized in that, If, within the target scheduling time period, the power generation is greater than the load power, the method further includes: Obtaining the maximum chargeable amount of the energy storage device within the target scheduling time period, and the excess power generation of the power generation device over the load power of the power-consuming device; If the maximum chargeable amount is less than or equal to the excess power generation, setting the power consumption or the power consumption cost of the mains power corresponding to the target scheduling time period to 0.
6. The method according to claim 3, characterized in that, If the objective of the linear scheduling model is to minimize the power consumption cost of the mains power, before solving the optimal solution of the linear scheduling model under the constraints of the first constraint condition and the second constraint condition, the method further includes: Obtaining the electricity price information of the mains power, where the electricity price information includes the electricity prices corresponding to multiple scheduling time periods; Updating the second constraint condition according to the relationship between the electricity price information of the mains power and a preset threshold.
7. The method according to claim 3 or 6, characterized in that, If, in the second constraint condition, the target scheduling time period includes a charging period and a discharging period, the method further includes: Obtaining a first energy scheduling target and a second energy scheduling target, where the first energy scheduling target is the energy scheduling target when the target scheduling time period is the charging period, and the second energy scheduling target is the energy scheduling target when the target scheduling time period is the discharging period; Determine the corresponding second constraint condition for the target scheduling time period according to the first energy scheduling target and the second energy scheduling target, so that there is only one charge and discharge behavior of the energy storage device in each target scheduling time period.
8. The method according to any one of claims 2 to 5, wherein, before obtaining the optimal solution of the linear scheduling model under the constraint of the first constraint condition, the method further includes: obtaining the upper limit of the charge state of the energy storage device, the lower limit of the charge state, the energy storage capacity of the energy storage device, and the initial power of the energy storage device corresponding to each scheduling time period; updating the first constraint condition of each scheduling time period according to the upper limit of the charge state of the energy storage device, the lower limit of the charge state, the energy storage capacity of the energy storage device, and the initial power of the energy storage device.
9. An apparatus for determining an energy scheduling strategy, wherein, comprising: an obtaining device, configured to obtain the load power information of the power-consuming device and the power generation power information of the power generation device, where the load power information includes the load power corresponding to a plurality of scheduling time periods, and the power generation power information includes the power generation power corresponding to a plurality of scheduling time periods; a determining device, configured to obtain the optimal solution of the linear scheduling model based on the load power information of the power-consuming device and the power generation power information of the power generation device, and obtain a target scheduling strategy for energy scheduling, where the target scheduling strategy is the charge and discharge power of the energy storage device corresponding to each scheduling time period, and in the linear scheduling model, the objective function and the constraint conditions are both linear functions, and the objective function represents the charge and discharge power of the energy storage device with a single variable.
10. An electronic device, wherein, 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 steps of the method for determining an energy scheduling strategy according to any one of claims 1 to 8 are implemented.
11. A computer-readable storage medium storing a computer program, wherein, when the computer program is executed by a processor, the steps of the method for determining an energy scheduling strategy according to any one of claims 1 to 8 are implemented.