Energy scheduling policy determination method and apparatus, electronic device, and storage medium
By converting the charge and discharge power of the energy storage device as a single linear variable, the energy scheduling problem is transformed into a linear planning problem, and the complexity of the energy scheduling strategy determination process in the prior art is solved, and more efficient and accurate energy scheduling is achieved.
Patent Information
- Application Number
- PCT/CN2024/099202
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-12-09
- Filing Date
- 2024-06-14
- Publication Date
- 2025-06-12
AI Technical Summary
When determining energy scheduling strategies, the prior art faces complex nonlinear solution algorithms and problems that are prone to fall into local optimality.
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 programming problem, reducing the solution complexity and avoiding local optimal solutions.
A simpler and more efficient energy scheduling strategy determination process is implemented, avoiding the trap of complexity of nonlinear solutions and local optimal solutions.
Smart Images

Figure CN2024099202_12062025_PF_FP_ABST
Abstract
Description
Energy scheduling strategy determination method, device, electronic device and storage medium
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on December 9, 2023, with application number 202311691793.1, and invention name “Method, device, electronic device and storage medium for determining energy scheduling strategy”, all contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of energy management technology, and in particular to a method, device, electronic device and storage medium for determining an energy scheduling strategy. Background Art
[0003] To improve energy management efficiency, energy management is often centralized across specific regions or organizations. For example, a pre-defined area is designated as a microgrid, where energy is dispatched and managed. This microgrid can be an office park and contain power-consuming devices, power generation equipment, and energy storage equipment. Power-consuming devices can include routers and air conditioners, while power generation equipment can include wind turbines and photovoltaic power generation equipment. Energy storage equipment can be batteries. Power-consuming devices in the microgrid can be powered by the power generation equipment. If the power generation equipment's capacity falls short of the power consumption needs of the power-consuming devices, the energy storage equipment can also provide power. If the power generation equipment's capacity significantly exceeds the power consumption needs of the power-consuming devices, the power generation equipment can store excess power in the energy storage equipment. Furthermore, the energy storage equipment can be charged and stored using the mains electricity.
[0004] Since the power consumption of power-consuming equipment is determined by the multiplication of current and voltage, and both current and voltage serve as decision variables of the objective function, a nonlinear objective function is usually constructed based on the corresponding powers of power-consuming equipment, power supply equipment, and energy storage equipment. The scheduling strategy is determined by solving the nonlinear objective function. However, the nonlinear solution algorithm is relatively complex and the solution of the nonlinear objective function is prone to fall into local optimality.
[0005] Summary of the Invention
[0006] The present application provides a method, device, electronic device and storage medium for determining an energy scheduling strategy. By using the charge and discharge power of an energy storage device as a single variable of an objective function, the problem of determining the energy scheduling strategy is converted into a linear programming problem. The energy scheduling strategy is obtained by solving the linear programming problem, thereby reducing the complexity of solving the energy scheduling problem and preventing the solution of the linear scheduling model from falling into a local optimum.
[0007] To achieve the above objectives, this application adopts the following technical solutions:
[0008] In a first aspect, a method for determining an energy scheduling strategy is provided, the method comprising: obtaining load power information of a power-consuming device and power generation information of a power generation device, the load power information including load power corresponding to a plurality of scheduling time periods, and the power generation information including power generation power corresponding to a plurality of scheduling time periods; based on the load power information of the power-consuming device and the power generation information of the power generation device, finding an optimal solution for a linear scheduling model to obtain a target scheduling strategy for energy scheduling, the target scheduling strategy being the charge and discharge power corresponding to the energy storage device in each scheduling time period, wherein the objective function and the constraint conditions in the linear scheduling model are both linear functions, and the objective function characterizes the charge and discharge power of the energy storage device with a single variable.
[0009] In this way, the charging and discharging power of the energy storage device is used as a single linear variable of the objective function to convert the energy scheduling problem into a linear problem, and the complexity of the solution is reduced by converting the energy scheduling problem into a linear programming problem.
[0010] In some embodiments, the method for determining the above-mentioned energy scheduling strategy is an offline scheduling method, which obtains the load power and power generation power of multiple scheduling time periods in advance, and obtains the optimal solution of the linear scheduling model to determine the charging and discharging power corresponding to each scheduling time period. The energy scheduling strategy is determined by determining the charging and discharging power of the energy storage device.
[0011] 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 an algorithm or through the combination of multiple formulas. The embodiments of this application do not limit the implementation method of the linear scheduling model.
[0012] In some embodiments, since the mains power, energy storage equipment and power generation equipment can all supply power to power-consuming equipment; and the mains power supply affects power consumption and electricity costs, the energy scheduling strategy, that is, the charging and discharging power of the energy storage equipment, is determined to reduce the mains power supply, thereby reducing power consumption or electricity costs.
[0013] In some embodiments, finding the optimal solution for the linear scheduling model includes: finding the optimal solution for the linear scheduling model under the constraint of a first constraint condition, wherein the first constraint condition is used to constrain the upper and lower limits of the charging and discharging power of the energy storage device.
[0014] It is easy to understand that since the conversion of charging and discharging power from a nonlinear variable to a linear variable is prone to introduce abnormal solutions, the first constraint condition of charging and discharging power is used to reduce the abnormal solutions of the linear scheduling model; the first constraint condition is combined with the linear scheduling model to avoid the solution of the linear scheduling model from falling into the local optimum.
[0015] In some embodiments, the first constraint condition is used to define upper and lower limits of the charge and discharge power. The first constraint condition may be determined based on the charge and discharge capabilities of the energy storage device, such as the maximum charge power and maximum discharge power of the energy storage device.
[0016] In some embodiments, finding the optimal solution for the linear scheduling model includes finding the optimal solution for the linear scheduling model under the constraints of the first constraint and the second constraint, wherein the second constraint is used to constrain the charging and discharging period of the energy storage device.
[0017] It is easy to understand that when determining the energy scheduling strategy for each scheduling time period, in addition to controlling the charging and discharging power of the energy storage device, it is also possible to control the charging and discharging behavior of the energy storage device, that is, the charging and discharging period of the energy storage device; in this way, the charging and discharging power and charging and discharging 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 speed of finding the optimal solution of the linear scheduling model.
[0018] In some embodiments, before finding the optimal solution of the linear scheduling model under the constraint of the first constraint, the method also includes: updating the first constraint and the second constraint corresponding to the target scheduling time period based on the power generation power of the power generation equipment and the load power of the power consumption equipment.
[0019] It is easy to understand that since the mains electricity, energy storage equipment and power generation equipment can all supply power to power-consuming equipment; and since the amount of mains electricity supplied affects the amount of electricity consumed and the cost of electricity, by determining an energy scheduling strategy, the amount of mains electricity supplied can be reduced, thereby reducing the amount of electricity consumed or the cost of electricity. When the generated power cannot meet the load power requirements of the power-consuming equipment, the energy storage equipment supplies power to the power-consuming equipment; when the discharge power and generated power of the energy storage equipment cannot meet the load power requirements of the power-consuming equipment, the mains electricity supplies power to the power-consuming equipment. By controlling the first constraint and the second constraint, the power supply priority of the mains electricity, energy storage equipment and power generation equipment for the power-consuming equipment can be controlled to determine the optimal solution. For example, if the generated power is greater than the load power, there is no need for the energy storage equipment to supply power, that is, the charging power of the energy storage equipment is 0, and the energy storage equipment is in the charging period during this period, that is, the portion of the generated power that is greater than the load power is used to power the energy storage equipment.
[0020] In some embodiments, if the generated power is greater than the load power during the target scheduling time period, the method further includes: obtaining the maximum chargeable capacity of the energy storage device and the excess power generated by the generating device over the load power of the power consuming device during the target scheduling time period; if the maximum chargeable capacity is less than or equal to the excess power, setting the utility power consumption or utility power cost corresponding to the target scheduling time period to 0. Thus, during the target scheduling time period, if the generated power of the generating device can meet the load power requirements of the power consuming device, and the excess of the generated power over the load power is sufficient to fully charge the energy storage battery, then during this time period, the utility power is not required to power the power consuming device and the energy storage device. By setting the utility power consumption or utility power cost for this scheduling time period to 0, the energy storage device does not need to use the generated power. If the cost or utility power consumption is calculated for the portion of the power supplied by the generating device, resulting in a suboptimal solution, the deviation for this scheduling time period can be corrected by setting the utility power consumption or utility power cost for this scheduling time period to 0 to obtain the optimal solution for this scheduling time period.
[0021] In some embodiments, if the goal of the linear scheduling model is to minimize the cost of utility electricity, before finding the optimal solution for the linear scheduling model under the constraints of the first and second constraints, the method further includes: obtaining the utility electricity price information, the price information including the prices corresponding to multiple scheduling times; updating the second constraint based on the relationship between the utility electricity price information and the preset threshold. In some embodiments, if the utility electricity price in 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 the charging time period; if the utility electricity price 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 the discharging time period, wherein 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 utility electricity price, so that charging is performed when the utility electricity price is low and discharging is performed when the utility electricity price is high, thereby reducing the overall electricity cost.
[0022] 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 target and a second energy scheduling target, the first energy scheduling target being the target scheduling time period as the energy scheduling target of the charging period, and the second energy scheduling target being the target scheduling time period as the energy scheduling target of the discharging period; determining the corresponding second constraint condition of the target scheduling time period based on 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.
[0023] In this way, if the target scheduling time period includes a charging period and a discharging period, that is, the energy storage device in this scheduling time period has two charging and discharging behaviors, since too many charging and discharging times affect the life of the energy storage device, by comparing the energy scheduling targets corresponding to the two behaviors, the charging and discharging behavior corresponding to the optimal energy scheduling target (for example, the minimum electricity cost) is determined 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, which ensures that the energy scheduling target is optimal and reduces the charging and discharging times of the energy storage device.
[0024] In some embodiments, before finding the optimal solution for the linear scheduling model under the constraint of the first constraint, 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 time period; and updating the first constraint for each scheduling time period based on 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.
[0025] It is easy to understand that the upper and lower limits of the energy storage device's charge and discharge power are not only related to the performance of the energy storage device itself, but also to the initial power of the energy storage device in the current scheduling time period. The upper and lower limits of the energy storage device's charge and discharge power are updated based on the initial power of each scheduling time period to obtain the optimal solution for that scheduling time period.
[0026] In a second aspect, a device for determining an energy scheduling strategy is provided, comprising:
[0027] An acquisition device, configured to acquire load power information of power-consuming devices and power generation information of power generation devices, wherein the load power information includes load powers corresponding to a plurality of scheduling time periods, and the power generation information includes power generation powers corresponding to a plurality of scheduling time periods;
[0028] A determination device is used to find an optimal solution for a linear scheduling model based on the load power information of the power consuming device and the power generation information of the power generating device, so as to obtain a target scheduling strategy for energy scheduling, wherein the target scheduling strategy is the charge and discharge power corresponding to the energy storage device in each scheduling time period, wherein the objective function and the constraint conditions in the linear scheduling model are both linear functions, and the objective function represents the charge and discharge power of the energy storage device with a single variable.
[0029] In a third aspect, an electronic device is provided, 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 the energy scheduling strategy in any optional implementation of the first aspect are implemented.
[0030] In a fourth aspect, a computer-readable storage medium is provided, wherein 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 as described in any one of the first aspects are implemented.
[0031] In a fifth aspect, the present application provides a computer program product, which, when executed on an electronic device, enables the electronic device to execute any one of the methods described in the first aspect.
[0032] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] FIG1 is a schematic diagram of an energy scheduling system provided in an embodiment of the present application;
[0034] FIG2 is a flow chart of a method for determining an energy scheduling strategy provided in an embodiment of the present application;
[0035] FIG3 is a schematic diagram showing the effect of an energy scheduling strategy provided in an embodiment of the present application;
[0036] FIG4 is a module diagram of a device for determining an energy scheduling strategy provided in an embodiment of the present application;
[0037] FIG5 is a schematic structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0038] 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, "multiple" refers to two or more than two, and "at least one" and "one or more" refer to one, two or more. The terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, the definition of "first" and "second" features can explicitly or implicitly include one or more of the features.
[0039] References to "one embodiment" or "some embodiments" in this specification mean that a particular feature, structure, or characteristic described in conjunction with that embodiment is included in one or more embodiments of the present application. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in yet other embodiments" appearing in various places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized. The terms "including," "comprising," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0040] Please refer to FIG1 , which is a schematic diagram of an energy scheduling system provided in an embodiment of the present application. The energy scheduling system in FIG1 includes power-consuming equipment, power generation equipment, and energy storage equipment;
[0041] Among them, power-consuming equipment may be routers, air conditioners, etc., power generation equipment may be wind power generation equipment, photovoltaic power generation equipment, etc., and energy storage equipment may be batteries, etc.
[0042] In Figure 1, both the power supply equipment and the energy storage equipment can supply power to the power supply equipment. When the power supply capacity of the power generation equipment cannot meet the power consumption needs of the power-consuming equipment, the power-consuming equipment can be supplied by the energy storage equipment and the power generation equipment at the same time. When the power supply capacity of the power generation equipment and the energy storage equipment cannot meet the power consumption needs of the power-consuming equipment, the power-consuming equipment can be supplied by the mains power, the energy storage equipment and the power generation equipment at the same time. When the power supply capacity of the power supply equipment greatly exceeds the power consumption needs of the power-consuming equipment, the power generation equipment can store the excess power in the energy storage equipment. In addition, the energy storage equipment can also be charged and stored by the mains power.
[0043] In order to achieve the energy scheduling goals of the energy scheduling system, such as the lowest cost of utility electricity and the smallest utility electricity consumption, the electricity or power of the energy scheduling system is usually scheduled. Since the power generation of power generation equipment is usually affected by the weather and the power consumption of power-consuming equipment is affected by demand, that is, the power generation of power generation equipment and the power consumption of power-consuming equipment are uncertain and cannot be controlled, but the charging and discharging power of energy storage equipment is controllable. Therefore, the energy scheduling of the energy scheduling system can be achieved by controlling the charging and discharging power of the energy storage equipment.
[0044] Since the charge and discharge capacity of the energy storage device is determined by time and charge and discharge power, and the charge and discharge power is determined by the charge and discharge voltage and charge and discharge current, in the process of scheduling the energy scheduling system, a nonlinear objective function with charge and discharge voltage and charge and discharge current as variables is usually constructed based on the corresponding power of the power-consuming equipment, the power generation equipment and the energy storage equipment, and the scheduling strategy is determined by solving the nonlinear objective function. However, the nonlinear solution algorithm is relatively complex and the solution of the nonlinear objective function is prone to fall into local optimality (i.e., optimal charge and discharge voltage or optimal charge and discharge current).
[0045] Based on the above problems, an embodiment of the present application provides a method for determining an energy scheduling strategy, which converts energy scheduling into a linear problem by taking the charging and discharging power of the energy storage device as a single linear variable of the objective function, and reduces the complexity of the solution by converting the problem of determining the energy scheduling strategy into a linear programming problem.
[0046] Please refer to Figure 2, which is a flow chart of a method for determining an energy scheduling strategy provided in an embodiment of the present application. The method for determining an energy scheduling strategy includes the following steps:
[0047] S201. Obtain load power information of power-consuming devices and power generation information of power generation devices, where the load power information includes load powers corresponding to multiple scheduling time periods, and the power generation power information includes power generation powers corresponding to multiple scheduling time periods.
[0048] In some embodiments, the energy scheduling strategy determination method of the present application is an offline scheduling strategy determination method, namely, obtaining the load power and generated power within a specific time period, and then determining the energy scheduling strategy for the specific time period based on the obtained load power and generated power. For example, the specific time period may be 24 hours a day, and the day may be divided into 288 scheduling time periods. The load power and generated power corresponding to each scheduling time period can then be obtained.
[0049] In some embodiments, the multiple scheduling time periods in S201 are time periods that require energy scheduling. For example, if energy scheduling is performed on the energy scheduling system on December 7, the load power information and the power generation power information are the load power information and power generation power information corresponding to December 7, respectively.
[0050] It is easy to understand that since the power generation power and the load power of the power consuming equipment are both uncontrollable, the power generation power and load power of the current multiple scheduling time periods can be estimated through the power generation power and load power in the historical data. For example, historical data can be obtained, which can be the power generation power and load power in the previous month or week. The power generation power and load power of multiple scheduling time periods in the current 24 hours are estimated based on the historical data.
[0051] S202. Based on the load power information of the power-consuming equipment and the power generation information of the power-generating equipment, an optimal solution is obtained for the linear scheduling model to obtain a target scheduling strategy for energy scheduling. The target scheduling strategy is the charge and discharge power of the energy storage equipment corresponding to each scheduling time period. In the linear scheduling model, the objective function and constraints are both linear functions, and the objective function represents the charge and discharge power of the energy storage equipment using a single variable.
[0052] 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 an algorithm or through the combination of multiple formulas. The embodiments of this application do not limit the implementation method of the linear scheduling model.
[0053] It is easy to understand that since the mains electricity, energy storage equipment and power generation equipment can all supply power to power-consuming equipment; since the power supply of the mains electricity affects the power consumption and electricity cost, the power generation equipment is usually wind power generation equipment or photovoltaic power generation equipment. The power generation power is greatly affected by the weather, and the load power of the power-consuming equipment is affected by user demand. That is, the power generation power and load power cannot be controlled manually, but the charging and discharging power of the energy storage equipment can be controlled on demand to achieve energy scheduling; by taking the charging and discharging power of the energy storage equipment as a single linear variable of the objective function, the energy scheduling problem is converted into a linear programming problem. Based on the obtained load power of the power-consuming equipment and the power generation power of the power generation equipment, the optimal solution of the linear scheduling model is obtained according to the linear constraints. The optimal solution refers to the best solution found under given conditions. This optimal solution is to determine the charging and discharging power corresponding to each scheduling time period when the load power and power generation power are determined. According to this scheduling strategy, the goal of the linear scheduling model is achieved, such as minimizing the mains power consumption or minimizing the mains power cost. In this way, the charging and discharging power of the energy storage device is used as the linear decision variable of the linear scheduling model to convert the energy scheduling into a linear problem. By converting the energy scheduling problem into a linear programming problem, a linear solution is performed based on the load power of the power-consuming equipment and the power generation power of the power generation equipment according to the constraints 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) to reduce the complexity of the solution.
[0054] In some embodiments, the linear scheduling model is a linear function, which is a special convex function. By constructing a linear scheduling model, the energy scheduling problem is transformed into a convex optimization problem. Convex optimization refers to finding the minimum value or the maximum value of a convex function under constraints, that is, the solution process of the linear scheduling model. Compared with nonlinear solution, the solution process is simplified, and the solution obtained is a global optimal solution rather than a local optimal solution.
[0055] The linear scheduling model is a mathematical programming model used to optimize energy scheduling, specifically the charge and discharge power of energy storage devices to achieve energy scheduling objectives. Based on linear programming theory, this model represents charge and discharge parameters as decision variables and establishes constraints and an objective function, both of which are linear functions, to maximize profit or minimize cost, for example, minimizing the electricity cost of the entire energy scheduling system.
[0056] In some embodiments, the linear scheduling model can be solved using a linear programming algorithm, such as the simplex method, the interior point method, etc. The optimal solution can be obtained in a relatively short time, thereby simplifying the process of determining the energy scheduling strategy.
[0057] For example, the following is a linear scheduling model provided in an embodiment of the present application:
[0058] Among them, M is the goal of energy scheduling, that is, minimizing the electricity cost, is the load power of the power-consuming equipment, P i pv and P i wp are all the power generation power of power generation equipment, among which, P i pv is the photovoltaic power generation power, P i wp is the wind power generation power, is the charge and discharge power of the energy storage device and serves as the decision variable of the linear scheduling model. Δ is the scheduling period, which can be 55 minutes, for example. N is the number of decisions, and p i is the electricity price at time i. It is understandable that the linear scheduling model can also be in other forms, such as Y = (A1 + A2)x + B, where Y is the energy scheduling target, x is the charge and discharge power, and A1, A2, and B are related constants.
[0059] It is easy to understand that since the charge and discharge power of the energy storage device is determined by the current and voltage of the energy storage device, the current and voltage usually exhibit nonlinear characteristics. This is because factors such as the chemical reaction inside the battery, the concentration change of the electrolyte, and the temperature will affect the current and voltage, resulting in its nonlinear behavior. The nonlinear characteristics of the current and voltage of the energy storage device can be described by a nonlinear scheduling model. However, the present application uses the charge and discharge power as a decision variable of a linear scheduling model. Since the charge and discharge power is converted from a nonlinear to a linear variable, the conversion process is prone to introduce abnormal solutions. The decision variable is limited by the constraint conditions of the charge and discharge power to ensure the rationality of the solution of the linear scheduling model. Then, in S202, the optimal solution of the linear scheduling model is sought, including: seeking the optimal solution of the linear scheduling model under the constraint of the first constraint condition, wherein the first constraint condition is used to constrain the upper and lower limits of the charge and discharge power of the energy storage device. The charge and discharge power of the energy storage device is limited by the first constraint condition, that is, the range of the linear scheduling model is limited, thereby ensuring that the optimal solution is within the normal range.
[0060] In some embodiments, the first constraint condition can be determined based on the charge and discharge capacity of the energy storage device, for example, the maximum charge power and maximum discharge power of the energy storage device. The charge and discharge power of the energy storage device must be within the range of the maximum charge power and the maximum discharge power. The range of the optimal solution is constrained by the first constraint condition, so that the optimal solution is within the range allowed by the charge and discharge capacity of the energy storage device, thereby ensuring that the optimal solution is a normal solution.
[0061] In some embodiments, the first constraint condition can also be determined based on the power supply capacity of the mains. If the power generation power of the power generation equipment cannot meet the load demand of the power-consuming equipment, the mains can simultaneously power the power-consuming equipment and the energy storage equipment; if the power generation power of the power generation equipment can meet the load demand of the power-consuming equipment and the energy storage equipment is in a charging period during the current scheduling time period, the mains only supplies power to the energy storage equipment, then the maximum charging power of the energy storage equipment is less than or equal to the power supply power of the mains. In some embodiments, the first constraint is also affected by 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 of the power generation device is greater than the load power of the power consumption device, in order to avoid wasting the excess power of the power generation device, the energy storage device is in a charging period during the current scheduling time 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 consumption device. If the power generation power of the power generation device is less than the load power of the power consumption device and the energy storage device is in a charging period during the current scheduling time period, the mains power supplies power to the power consumption device and the energy storage device and the power supply device at the same time, then the maximum charging power of the energy storage device is less than or equal to the first difference, which is the sum of the maximum mains power supply power and the power generation power, minus the load power. If the power generation power of the power generation device is less than the load power of the power consumption device and the energy storage device is in a discharging period during the current scheduling time period, then the maximum discharge power of the energy storage device is less than or equal to the second difference, which is the difference between the load power and the power generation power.
[0062] It can be understood that when energy storage devices supply power to power-consuming devices, the power supply process does not incur new electricity costs, but instead reduces the amount of power supplied by the mains and power generation equipment. When charging the energy storage device with mains power, the charging process consumes mains power, incurring new electricity costs. Therefore, the charging and discharging behavior of the energy storage device affects the mains power cost and mains power consumption of the energy scheduling system. Energy scheduling of the energy storage device can be performed by controlling the charging and discharging behavior of the energy storage device. Therefore, 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 a first constraint and a second constraint, wherein the second constraint is used to constrain the charging and discharging time period of the energy storage device.
[0063] The charge and discharge periods consist of two distinct periods: charging and discharging. During the charging period, the energy storage device's charge and discharge behavior is charging; during the discharging period, the energy storage device's charge and discharge behavior is discharging. The first constraint limits the range of charge and discharge power, while the second constraint linearizes the charge and discharge behavior of the energy storage device during each scheduling period. These two constraints work together to limit the range of values in the linear scheduling model, filter out abnormal solutions, and improve the speed of finding the optimal solution for the linear scheduling model.
[0064] In some embodiments, if the energy storage device has no need to charge or discharge during the target scheduling time period, the charging device may be in a non-charging and non-discharging period, for example, the energy storage device is fully charged and the generated power is greater than or equal to the load power.
[0065] In some embodiments, since the charging and discharging periods correspond to the charging and discharging behavior of the energy storage device, the sign of the charging and discharging power is determined by the charging and discharging periods. For example, if the energy storage device supplies power to a power-consuming device, this can reduce the utility's electricity costs and power consumption, resulting in a positive charging and discharging power. If the energy storage device is charged by the utility, this can increase the utility's electricity costs and power consumption, resulting in a negative charging and discharging power. In this way, the optimal solution of the linear scheduling model is determined by both the charging and discharging power and the charging and discharging behavior. The charging and discharging behavior determines the sign of the optimal solution, while the charging and discharging power determines the value of the optimal solution. Furthermore, the charging and discharging behavior and the charging and discharging power are correlated, and the two work together to determine the optimal solution of the linear scheduling model.
[0066] It is easy to understand that after obtaining the load power and power generation power of multiple scheduling time periods, if the power generation power of the target scheduling time period is greater than the load power, the power-consuming equipment does not need to be powered by the energy storage equipment and the mains, and the target scheduling time period is a charging period or a non-charging and non-discharging period; if the power generation power of the target scheduling time period is less than the load power, the energy storage equipment and\or the mains need to power the power-consuming equipment, and the energy storage equipment may be 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 power and the power generation power of the mains is less than the load power in the target scheduling time period, the energy storage equipment is a discharging period in the target scheduling time period; that is, the relationship between the load power and the power generation power of each scheduling time period can affect the charging and discharging behavior of the energy storage equipment in the scheduling time period, that is, the relationship between the load power and the power generation power of each scheduling time period can determine whether the scheduling time period is a charging period or a discharging period.
[0067] In some embodiments, the charge and discharge power of the energy storage device is also related to the relationship between the power generation power of the power generation device and the load power of the power consumption device.
[0068] There are two types of relationships between the power generation power of power generation equipment and the load power of power consumption equipment:
[0069] The first type: If the power generation power of the power generation equipment is greater than the load power of the power consumption equipment, the excess power of the power generation equipment can be used to charge the energy storage equipment, and the total charging power of the energy storage equipment is less than the charging power threshold. In other words, the charging and discharging power of the energy storage equipment meets the following requirements:
[0070] Among them, P i bat is the charging and discharging power of the energy storage device, P i pv and Pi wp are photovoltaic power generation and separation power generation, P i load is the load power of the power-consuming equipment, is the charging power threshold;
[0071] The second type: If the power generation power of the power generation equipment is less than the load power of the power consumption equipment, the energy storage equipment can supply power to the power consumption equipment, and the total discharge power of the energy storage equipment is less than the discharge power threshold. In other words, the charge and discharge power of the energy storage equipment meets the following requirements:
[0072] Combining the two scenarios, we can determine the upper and lower limits of the energy storage device's charge and discharge power, that is, the range of the energy storage device's charge and discharge power:
[0073] Among them, UB i LB is the upper limit of the charge and discharge power of the energy storage device. i It is the lower limit of the charging and discharging power of the energy storage device.
[0074] In this way, after obtaining the load power and generation power for multiple scheduling time periods, the upper and lower bounds of the charge and discharge power, as well as the charge and discharge period for each scheduling time period, can be determined based on the relationship between the load power and generation power. Step S202 then includes updating the first and second constraints corresponding to the target scheduling time period based on the generation power of the power generating equipment and the load power of the power consuming equipment. Specifically, the first and second constraints corresponding to the target scheduling time period are first updated based on the generation power of the power generating equipment and the load power of the power consuming equipment. Then, the optimal solution for the linear scheduling model is determined under the updated first and second constraints.
[0075] In some embodiments, since the mains electricity, energy storage equipment and power generation equipment can all supply power to power-consuming equipment; and since the amount of power supplied by the mains electricity affects the power consumption and the cost of electricity, an energy scheduling strategy is determined to reduce the amount of power supplied by the mains electricity, thereby reducing the power consumption or the cost of electricity. When the generated power cannot meet the load power requirements of the power-consuming equipment, the energy storage equipment supplies power to the power-consuming equipment; when the discharge power and generated power of the energy storage equipment cannot meet the load power requirements of the power-consuming equipment, the mains electricity supplies power to the power-consuming equipment. By updating the first constraint and the second constraint, the power supply priority of the mains electricity, energy storage equipment and power generation equipment for the power-consuming equipment can be controlled to determine the optimal solution. For example, if the generated power is greater than the load power, there is no need for the energy storage equipment to supply power, that is, the charging power of the energy storage equipment is 0, and the energy storage equipment is in the charging period during this period, that is, the portion of the generated power that is greater than the load power is used to power the energy storage equipment.
[0076] It is easy to understand that the maximum power supply power of the mains electricity is different in different regions. When updating the first constraint and the second constraint corresponding to the target scheduling time period based on the power generation power of the power generation equipment and the load power of the power consumption equipment, the maximum power supply power of the mains electricity must also be considered.
[0077] For example, if the power generation of the power generation equipment is greater than the load power of the power consumption equipment, the excess power generated by the power generation equipment can be used to charge the energy storage equipment, and the mains power can also be used to charge the energy storage equipment; then the charging and discharging power of the energy storage equipment satisfies:
[0078] in, The maximum power supply of the mains.
[0079] If the power generation capacity of the power generation equipment is less than the load power of the power consumption equipment, the energy storage equipment can also be charged by the mains power. The charging and discharging power of the energy storage equipment then satisfies:
[0080] The upper limit of the charging and discharging power of the energy storage device can then be determined:
[0081] The maximum utility power supply is used as a constant in the linear scheduling model. The constant can be a constant within a specific time period or a constant across all time periods. The maximum utility power supply can be a constant within a day or a month.
[0082] In some embodiments, if the generated power is greater than the load power during the target scheduling time period, the method further includes: obtaining a maximum chargeable capacity of the energy storage device and an excess of the generated power of the generating device over the load power of the power consuming device during the target scheduling time period; if the maximum chargeable capacity is less than or equal to the excess power, setting the utility power consumption or utility power cost corresponding to the target scheduling time period to 0. Thus, during the target scheduling time period, if the generated power of the generating device can meet the load power requirements of the power consuming device, and the excess of the generated power over the load power is sufficient to fully charge the energy storage battery, then during this scheduling time period, the utility power is not required to power the power consuming device and the energy storage device. By setting the utility power consumption or utility power cost during this scheduling time period to 0, the energy storage device does not need to use the generated power. If the cost or utility power consumption is calculated for the portion of the power supplied by the generating device, resulting in a suboptimal solution, the deviation for this scheduling time period can be corrected by setting the utility power consumption for this scheduling time period to a minimum or the utility power cost to 0 to obtain the optimal solution for this scheduling time period.
[0083] For example, the time when the power generation power of the power generation equipment is greater than the load power of the power consumption equipment is set as the target scheduling time. Before the target scheduling time, the remaining power of the energy storage device is S tmp , then the maximum charge capacity of the energy storage device is S res =S max -S tmp ; where S max is the maximum capacity of the energy storage device;
[0084] During the target scheduling period, the total power by which the power generation equipment exceeds the load power of the power consumption equipment is:
[0085] like That is, the power of the power generation equipment exceeds that of the power consumption equipment, which is enough to fully charge the energy storage equipment. Therefore, the electricity price p in the target scheduling period is set to i Set to 0, that is, the lower limit of the charge and discharge power of the energy storage device in the target scheduling time period is set to This prohibits the mains from charging the energy storage device.
[0086] In some embodiments, if the power of the power generation equipment exceeds that of the power consumption equipment but is insufficient to fully charge the energy storage equipment, the AC power is allowed to charge the energy storage equipment, and the minimum charging power of the energy storage equipment is the power of the power generation equipment exceeding that of the power consumption equipment, thereby avoiding the charging of the energy storage equipment by the power generation equipment being recorded as a charging cost, resulting in the solution of the linear scheduling model being suboptimal.
[0087] For example, if That is, the power of the power generation equipment exceeding the power consumption equipment is not enough to fully charge the energy storage equipment. In order to make full use of the power of the power generation equipment exceeding the power consumption equipment, the energy storage equipment can be charged with this part, that is, the first constraint condition is optimized, that is, the upper limit of the energy storage equipment is set to At the same time, it allows the energy storage device to be charged through the mains electricity.
[0088] It is easy to understand that since each scheduling time period has a corresponding electricity price, in order to save electricity costs, the charging and discharging behavior of the energy storage device can be determined based on the relationship between the electricity price and the preset threshold. For example, if the electricity price is less than 0.8 yuan, the energy storage device is allowed to be charged through the mains; if the electricity price is greater than 1 yuan, the energy storage device is only allowed to discharge, and charging through the mains is not allowed.
[0089] In some embodiments, if the goal of the linear scheduling model is to minimize the electricity cost of the mains electricity, before finding the optimal solution of the linear scheduling model under the constraints of the first constraint and the second constraint, the method also includes: obtaining the electricity price information of the mains electricity, the electricity price information including the electricity prices corresponding to multiple scheduling times; updating the second constraint based on the relationship between the electricity price information of the mains electricity and the preset threshold.
[0090] In some embodiments, if the utility price during the target scheduling time period is less than a first threshold, the energy storage device's charging and discharging behavior is charging, meaning the target time period is changed to a charging time period. If the utility price is greater than a second threshold, the energy storage device's charging and discharging behavior is discharging, meaning 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 energy storage device's charging and discharging behavior is controlled based on the utility price, enabling charging when the utility price is low and discharging when the utility price is high, thereby reducing overall electricity costs.
[0091] In some embodiments, if the price of the utility power in the target scheduling time period is greater than a first threshold and less than a second threshold, the energy storage device may be in a charging period or a discharging period in the target scheduling time period.
[0092] For example, the utility power is divided into off-peak and peak periods. During off-peak periods, the utility power price is lower, allowing the utility power to charge the energy storage device; during peak periods, the utility power price is the highest, and the utility power is not allowed to charge the energy storage device during this period.
[0093] In this way, the charging and discharging periods of the energy storage device are controlled according to the electricity price of the mains electricity in each scheduling time period, so as to reduce the overall electricity cost.
[0094] In some embodiments, if it is determined based on the relationship between the electricity price of the mains and a preset threshold that the energy storage device is in a charging period or a discharging period during the target scheduling time period, and the power generation power of the power generation device is greater than the load power of the power consumption device, then the energy storage device is determined to be in a charging period during the target scheduling time period; if it is determined based on the relationship between the electricity price of the mains and a preset threshold that the energy storage device is in a charging period or a discharging period during the target scheduling time period, and the sum of the power generation power of the power generation device and the maximum power of the mains is less than the load power of the power consumption device, then the energy storage device is determined to be in a discharging period during the target scheduling time period.
[0095] In some embodiments, the charge and discharge period of the energy storage device also needs to consider the current power of the energy storage device itself; if the current power of the energy storage device is fully charged, the energy storage device may be in a discharge period or a non-charge and non-discharge period in the current period; if the current power of the energy storage device is less than or equal to the minimum power, the energy storage device may be in a charging period or a non-charge and non-discharge period in the current period.
[0096] It's easy to understand that the number of times an energy storage device is charged and discharged affects its lifespan. For example, the more times an energy storage device is charged and discharged, the greater the loss of its lifespan, while the fewer times it is charged and discharged, the less loss of its lifespan. In some scenarios, the energy storage device can be charged and used to power consumer devices. For example, when the utility price is less than 1 yuan and greater than 0.8 yuan, the energy storage device can be charged and used to power consumer devices. However, if the energy storage device is both charged and discharged, and its energy conversion rate is less than 100%, this increases electricity costs and increases the number of times the energy storage device is charged and discharged, increasing the loss of its lifespan. Therefore, within each scheduling time period, if the electricity price remains unchanged, the charging and discharging behavior of the energy storage device remains unchanged. For example, the charging and discharging behavior for the scheduling time period can be set to discharge or charge, and remain unchanged throughout the scheduling time period, to reduce the number of times the energy storage device is charged and discharged.
[0097] It is easy to understand that if the target scheduling time period is determined to include a charging period and a discharging period based on the second constraint, that is, the energy storage device has two charging and discharging behaviors within the same scheduling time period, the energy scheduling targets corresponding to the two behaviors can be compared to determine the charging and discharging behavior corresponding to the optimal energy scheduling target (for example, the minimum electricity cost) as the only charging and discharging behavior in the scheduling time period, thereby making the scheduling time period a charging period or a discharging period. If, in the second constraint, 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, the first energy scheduling target being the energy scheduling target for the target scheduling time period as the charging period, and the second energy scheduling target being the energy scheduling target for the target scheduling time period as the discharging period; determining the second constraint corresponding to the target scheduling time period based on 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.
[0098] For example, if the charging and discharging time period or the second constraint condition of the energy storage device is determined based on 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 within the time period when the energy storage device can be charged or discharged; this may result in the energy storage device being charged and discharged in the same scheduling period.
[0099] In this way, if the target scheduling time period includes a charging period and a discharging period, that is, the energy storage device in this scheduling time period has two charging and discharging behaviors, since too many charging and discharging times affect the life of the energy storage device, by comparing the energy scheduling targets corresponding to the two behaviors, the charging and discharging behavior corresponding to the optimal energy scheduling target (for example, the minimum electricity cost) is determined 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, which ensures that the energy scheduling target is optimal and reduces the charging and discharging times of the energy storage device.
[0100] It is understandable that when the energy storage device supplies power to the power-consuming device or the power generation device and the mains charge the energy storage device, the capacity threshold of the energy storage device must also be considered. The capacity threshold is determined by the energy storage capacity, the upper limit of the state of charge (SOC), and the lower limit of the state of charge of the energy storage device.
[0101] For example, the charge and discharge capacity of the energy storage device satisfies: S min ≤S i ≤S max ,S min =SOC min *Cap,S max =SOC max *Cap;
[0102] Among them, SOC min is the lower limit of the SOC of the energy storage device, 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, and if the energy storage device is a battery, the energy storage capacity is the battery capacity.
[0103] In some embodiments, the relationship between the charge and discharge capacity of the energy storage device and the charging power is: i =PT;
[0104] Wherein, 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;
[0105] Then the charging and discharging power of the energy storage device satisfies: S min ≤PT≤S max ;
[0106] In this way, when powering power-consuming equipment through energy storage equipment or charging energy storage equipment through power generation equipment or AC power, it is necessary to combine the charging power threshold, discharge power threshold, charge state upper limit, charge state lower limit and energy storage capacity of the energy storage equipment. That is, when charging and discharging through energy storage equipment, it is necessary to consider the charging and discharging capabilities and storage capacity of the energy storage equipment itself to improve the accuracy of the optimal solution of the linear scheduling model.
[0107] It is easy to understand that in each scheduling time period, the energy storage device has an initial power, which is the remaining power in the energy storage device after the previous scheduling time period ends.
[0108] For example, the initial power is S0, and the power changes of the energy storage device in the two scheduling time periods are: S i+1 =S i -P i bat *Δ;
[0109] Among them, S i is the amount of electricity in the i-th scheduling period; S i+1 is the amount of electricity in the i+1th scheduling period; P i bat is the charge and discharge power of the i-th scheduling period, Δ is the size of the scheduling period;
[0110] The charging and discharging power in each scheduling time period must meet the following requirements:
[0111] That is, the upper and lower limits of the energy storage device's charge and discharge power are not only related to the energy storage device's own capabilities, but also to the energy storage device's initial charge level for each scheduling time period. Therefore, before finding the optimal solution for the linear scheduling model under the first constraint, the method further includes: obtaining the energy storage device's state of charge upper limit, state of charge lower limit, energy storage capacity, and the energy storage device's initial charge level for each scheduling time period; and updating the first constraint for each scheduling time period based on the energy storage device's state of charge upper limit, state of charge lower limit, energy storage capacity, and initial charge level.
[0112] It is easy to understand that the upper and lower limits of the charge and discharge power of the energy storage device are not only related to the performance of the energy storage device itself, but also to the initial power of the energy storage device in the current scheduling time period. The initial power of the energy storage device in each scheduling time period can be limited to the first constraint condition of the scheduling time period, that is, the upper and lower limits of the charge and discharge power; if the energy storage device in the scheduling time period is a charging period, the maximum charge power is equal to the product of the duration of the scheduling time period and the target charging power, that is, the maximum charging power of the energy storage device in the scheduling time period is less than or equal to the target charging power, where the maximum charge power is the difference between the maximum capacity of the energy storage device and the initial power; if the energy storage device in the scheduling time period is a discharging period, the maximum discharge 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 time period and the target charging power, that is, the maximum discharge power of the energy storage device in the scheduling time period is less than or equal to the target charging power. The upper and lower limits of the charge and discharge power of the energy storage device are updated by the initial power of each scheduling time period to obtain the optimal solution for the scheduling time period.
[0113] It is easy to understand that the upper and lower limits of the charge and discharge power of the energy storage device are defined by the first constraint, where the upper and lower limits of the charge and discharge power include the maximum charge power and minimum charge power, and the maximum discharge power and minimum discharge power of the energy storage device. If multiple maximum charge powers and maximum discharge powers, or multiple minimum charge powers and multiple minimum discharge powers, are determined by at least one of the maximum mains power supply, power generation power, load power, and the charge and discharge performance of the energy storage device, then the intersecting parts of the multiple maximum charge powers, multiple maximum discharge powers, multiple minimum charge powers, and multiple minimum discharge powers are selected as the upper and lower limits of the charge and discharge power. Similarly, the second constraint defines the charge and discharge time period of the energy storage device. The charge and discharge time period is affected by electricity prices, power generation power, and load power relationships. If the second constraints determined by multiple influencing factors are different, if the scheduling time period is determined to be a discharge time period based on the power generation power and load power relationship, then the scheduling time period is determined to be a discharge time period. For example, when the sum of the power generation power and the maximum mains power supply power is less than the load power, the energy storage device is in a discharge time period during the current scheduling time period.
[0114] Please refer to Figure 3, which is a schematic diagram of the effect of a scheduling strategy provided by an embodiment of the present application. In Figure 3, the horizontal axis is time (in hours), and the vertical axis is power (in W); the scheduling cycle is 24 hours, and the scheduling time period is 5 minutes, then there are 288 scheduling time periods in the scheduling cycle; assuming that the capacity of the energy storage device is 400Ah, the maximum charge and discharge power is 200w, and the lower limit of the charge state is 0.2; the upper limit of the charge state is 0.8; the initial charge state of the energy storage device is 0.2; energy scheduling is achieved by controlling the charge and discharge behavior and charge and discharge power of the energy storage device, and the charge and discharge behavior and charge and discharge power are also the two decision variables of the corresponding linear scheduling model; the value of the charge and discharge power is negative, indicating that the energy storage device is charged by the mains or the power generated by the power generation equipment; the value of the charge and discharge power is positive, indicating that the energy storage device During discharge, the charge and discharge behavior of the energy storage device is controlled by the relationship between the electricity price of the mains electricity and the preset threshold. FIG3 shows two charge and discharge behaviors. The charge and discharge behavior of the energy storage device from 0 to 6:00 and from 15:00 to 17:00 is charging; the charge and discharge behavior of the energy storage device from 13:00 to 14:00 and from 17:00 to 22:00 is discharging. By controlling the charge and discharge behavior of the energy storage device, the electricity cost is minimized, the number of charge and discharge times within the scheduling cycle can be reduced, and the impact of the charge and discharge times on the life of the energy storage device can be reduced. In some embodiments, the charge and 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 to improve energy utilization efficiency, reduce energy waste, and reduce energy costs.
[0115] In some embodiments, the goal of energy scheduling is set to minimize electricity costs; then, a linear scheduling model is constructed based on the energy scheduling goal, the load power of the power-consuming equipment, the electricity price parameters, the power generation power of the power generation equipment, and the charge and discharge parameters of the energy storage equipment; in the linear scheduling model, the objective function and the constraints are both linear functions, and the objective function uses a single variable to represent the charge and discharge power of the energy storage equipment;
[0116] Then, the load power, electricity price parameters, and power generation power of the power generation equipment in multiple scheduling time periods are obtained, and the optimal solution of the linear scheduling model is obtained based on the first constraint condition and the second constraint condition. Among them, the first constraint condition is used to constrain the upper and lower limits of the charging and discharging power of the energy storage device, and the second constraint condition is used to constrain the charging and discharging time period of the energy storage device.
[0117] In some embodiments, before finding the optimal solution for the linear scheduling model, the method further includes: updating the first constraint and the second constraint corresponding to the target scheduling time period based on the relationship between the power generation power of the power generation equipment and the load power of the power consuming equipment; if the power generation power is greater than the load power within the target scheduling time period, obtaining the maximum chargeable amount of the energy storage equipment and the excess power generated by the power generation equipment exceeding the load power of the power consuming equipment within the target scheduling time period; if the maximum chargeable amount is less than or equal to the excess power, setting the mains power consumption or the mains power consumption cost corresponding to the target scheduling time period to 0.
[0118] Before finding the optimal solution of the linear scheduling model under the constraints of the first constraint and the second constraint, obtain the electricity price information of the mains electricity, and the electricity price information includes the electricity prices corresponding to multiple scheduling times; update the second constraint based on the relationship between the mains electricity price information and the preset threshold.
[0119] If, in the second constraint condition, the target scheduling time period includes a charging period and a discharging period, then obtain a first energy scheduling target and a second energy scheduling target, the first energy scheduling target being the energy scheduling target of the target scheduling time period as the charging period, and the second energy scheduling target being the energy scheduling target of the target scheduling time period as the discharging period; determine the corresponding second constraint condition of the target scheduling time period based on 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.
[0120] Before finding the optimal solution of the linear scheduling model under the constraint of the first constraint condition, the charge state upper limit, charge state lower limit, energy storage capacity of the energy storage device and the initial power of the energy storage device corresponding to each scheduling time period are obtained; and the first constraint condition of each scheduling time period is updated according to the charge state upper limit, charge state lower limit, energy storage capacity and initial power of the energy storage device.
[0121] The range of the optimal solution is limited by the first constraint and the second constraint, so as to reduce the introduction of abnormal solutions when converting the energy scheduling strategy determination problem into a linear programming problem and improve the accuracy of the optimal solution.
[0122] It should be understood that, although the various steps in the flowcharts involved in the various embodiments described above are displayed in sequence according to the instructions of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the various embodiments described above can include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of steps or stages in other steps.
[0123] Based on the same inventive concept, embodiments of the present application further provide a device for determining an energy scheduling strategy. The device for determining an energy scheduling strategy provided in embodiments of the present application can implement each process of the embodiments of the above-mentioned method for determining an energy scheduling strategy and can achieve the same technical effects. Therefore, the specific limitations in one or more embodiments of determining an energy scheduling strategy provided below can refer to the limitations of the method for determining an energy scheduling strategy above.
[0124] Please refer to FIG4 , which is a module diagram of a device for determining an energy scheduling strategy provided in an embodiment of the present application. The device for determining an energy scheduling strategy includes an acquisition module and a determination module.
[0125] The acquisition module is used to obtain the load power information of the power-consuming equipment and the power generation information of the power generation equipment, wherein the load power information includes the load power corresponding to multiple scheduling time periods, and the power generation information includes the power generation power corresponding to multiple scheduling time periods;
[0126] The determination module is used to find the optimal solution for the linear scheduling model based on the load power information of the power-consuming device and the power generation information of the power generation device, and obtain a target scheduling strategy for energy scheduling, wherein the target scheduling strategy is the charge and discharge power corresponding to the energy storage device in each scheduling time period. The objective function and constraint conditions in the linear scheduling model are both linear functions, and the objective function uses a single variable to characterize the charge and discharge power of the energy storage device.
[0127] In some embodiments, the determination module is used in some embodiments to: find the optimal solution for the linear scheduling model under the constraint of a first constraint condition, wherein the first constraint condition is used to constrain the upper and lower limits of the charging and discharging power of the energy storage device.
[0128] In some embodiments, the determination module is used in some embodiments to: find an optimal solution to the linear scheduling model under the constraints of the first constraint and the second constraint, wherein the second constraint is used to constrain the charging and discharging period of the energy storage device.
[0129] In some embodiments, the determination module is used to 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 equipment and the load power of the power consumption equipment.
[0130] In some embodiments, the determination module is used in some embodiments to obtain the maximum chargeable amount of the energy storage device and the excess power of the power generation equipment exceeding the load power of the power consuming device within the target scheduling time period if the power generation power is greater than the load power within the target scheduling time period; if the maximum chargeable amount is less than or equal to the excess power, the mains power consumption or the mains power consumption cost corresponding to the target scheduling time period is set to 0.
[0131] In some embodiments, the determination module is used in some embodiments to: obtain the electricity price information of the mains electricity before finding the optimal solution to the linear scheduling model under the constraints of the first constraint and the second constraint, and the electricity price information includes electricity prices corresponding to multiple scheduling times; and update the second constraint based on the relationship between the electricity price information of the mains electricity and a preset threshold.
[0132] In some embodiments, the determination module is configured to: 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, wherein the first energy scheduling target is an energy scheduling target for the charging period as the target scheduling time period, and the second energy scheduling target is an energy scheduling target for the discharging period as the target scheduling time period;
[0133] A second constraint condition corresponding to the target scheduling time period is determined 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.
[0134] In some embodiments, the determination module is used in some embodiments to: 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 before finding the optimal solution of the linear scheduling model under the constraint of the first constraint condition; and update the first constraint condition of each scheduling time period based on 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.
[0135] Please refer to Figure 5 for a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. As shown in Figure 5, 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 described above in the embodiment of the method for determining an energy scheduling strategy, such as the steps shown in Figure 2.
[0136] For example, the computer program 542 may be divided into one or more modules / units, one or more of which are stored in the memory 541 and executed by the processor 540 to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program 542 in the electronic device 50.
[0137] Those skilled in the art will understand that FIG5 is merely an example of the electronic device 50 and does not limit the electronic device 50 . The electronic device 50 may include more or fewer components than shown in the figure, or may combine certain components, or may include different components.
[0138] The processor 540 may be a central processing unit (CPU), or other general-purpose processors, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc.
[0139] The memory 541 may be an internal storage unit of the electronic device 50, such as a 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 memory card (SMC), a secure digital (SD) card, or a flash card equipped on the electronic device. In some embodiments, the memory 541 may include both an internal storage unit of the electronic device 50 and an external storage device.
[0140] The memory 541 is used to store computer programs and 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.
[0141] Those skilled in the art can clearly understand that for the convenience and brevity of description, only the division of the above-mentioned functional units is used as an example for illustration. In actual applications, the above-mentioned functions can be distributed and completed by different functional units as needed, that is, the internal structure of the data storage architecture can be divided into different functional units to complete all or part of the functions described above. The functional units in the embodiment can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0142] An embodiment of the present application further 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 above-mentioned method embodiments can be implemented.
[0143] An embodiment of the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device implements the steps in the above-mentioned various method embodiments.
[0144] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant description of other embodiments.
[0145] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0146] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.
[0147] Finally, it should be noted that the above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. A method for determining an energy scheduling strategy, wherein: include: Obtaining load power information of power-consuming devices and power generation information of power generation devices, wherein the load power information includes load powers corresponding to multiple scheduling time periods, and the power generation information includes power generation powers corresponding to multiple scheduling time periods; Based on the load power information of the power consuming equipment and the power generation information of the power generating equipment, an optimal solution is obtained for the linear scheduling model to obtain a target scheduling strategy for energy scheduling, wherein the target scheduling strategy is the charge and discharge power corresponding to the energy storage device in each scheduling time period, and the objective function and constraint conditions in the linear scheduling model are both linear functions, and the objective function characterizes the charge and discharge power of the energy storage device with a single variable.
2. The method according to claim 1, wherein: The method of finding the optimal solution for the linear scheduling model includes: An optimal solution is obtained for the linear scheduling model under the constraint of a first constraint condition, wherein the first constraint condition is used to constrain the upper and lower limits of the charging and discharging power of the energy storage device.
3. The method according to claim 2, wherein: The method of finding the optimal solution for the linear scheduling model includes: An optimal solution for the linear scheduling model is obtained under the constraints of the first constraint condition and the second constraint condition, wherein the second constraint condition is used to constrain the charging and discharging time period of the energy storage device.
4. The method according to claim 3, wherein: Before finding the optimal solution for the linear scheduling model, the method further includes: The first constraint condition and the second constraint condition corresponding to the target scheduling time period are updated according to the power generation power of the power generation equipment and the load power of the power consumption equipment.
5. The method according to claim 4, wherein: If the generated power is greater than the load power within the target scheduling time period, the method further includes: Acquire the maximum chargeable amount of the energy storage device within the target scheduling time period, and the excess amount of power generated by 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, the utility power consumption or utility power cost corresponding to the target scheduling time period is set to 0.
6. The method according to claim 3, wherein: If the objective of the linear scheduling model is to minimize the electricity cost of the mains, before finding 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 electricity price information of the city electricity, wherein the electricity price information includes electricity prices corresponding to multiple scheduling time periods; The second constraint condition is updated according to the relationship between the electricity price information of the commercial power and a preset threshold.
7. The method according to claim 3 or 6, wherein: If, in the second constraint condition, the target scheduling time period includes a charging period and a discharging period, the method further includes: Acquire a first energy scheduling target and a second energy scheduling target, wherein the first energy scheduling target is an energy scheduling target for a charging period as the target scheduling time period, and the second energy scheduling target is an energy scheduling target for a discharging period as the target scheduling time period; The second constraint condition corresponding to the target scheduling time period is determined 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.
8. The method according to any one of claims 2 to 5, wherein: Before finding the optimal solution for the linear scheduling model under the first constraint, the method further includes: Obtaining the upper limit of the state of charge of the energy storage device, the lower limit of the state of charge, the energy storage capacity of the energy storage device, and the initial power of the energy storage device corresponding to each scheduling time period; The first constraint condition of each scheduling time period is updated according to the upper limit of the state of charge of the energy storage device, the lower limit of the state of charge, the energy storage capacity of the energy storage device, and the initial power of the energy storage device.
9. A device for determining an energy scheduling strategy, wherein: include: An acquisition device, used to acquire load power information of power-consuming equipment and power generation information of power generation equipment, wherein the load power information includes load power corresponding to multiple scheduling time periods, and the power generation information includes power generation power corresponding to multiple scheduling time periods; A determination device is used to find an optimal solution for a linear scheduling model based on the load power information of the power consuming device and the power generation information of the power generating device, and obtain a target scheduling strategy for energy scheduling, wherein the target scheduling strategy is the charge and discharge power corresponding to the energy storage device in each scheduling time period, wherein the objective function and the constraint conditions in the linear scheduling model are both linear functions, and the objective function characterizes the charge and discharge power of the energy storage device with a single variable.
10. An electronic device, wherein: The method comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method for determining the energy scheduling strategy as described in any one of claims 1 to 8 when executing the computer program.
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 the energy scheduling strategy as described in any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Control method, system and equipment for energy storage charging and discharging of light storage charging station and medium
CN113224758A
Multi-energy complementary optimal scheduling method and system for integrated energy system
CN113378409A
Distribution network side distributed energy storage optimization scheduling method and storage medium
CN114611926A
On-line energy storage charging and discharging control method for demand prediction, medium and electronic equipment
CN116799838A
Dispatch Controller for an Energy System
US20160211664A1
Cited By
Uninterruptible power supply scheduling method based on electricity price prediction
CN121172876A