Microgrid scheduling method and device based on charging piles, server and medium

By receiving data from microgrids and charging piles, and combining constraints and objective functions, the microgrid scheduling is adjusted in real time, which solves the problem of fluctuating electricity demand from distributed energy sources and charging piles, and improves energy utilization.

CN121663450APending Publication Date: 2026-03-13CUIJI TECHNOLOGY (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-10-09
Publication Date
2026-03-13

Smart Images

  • Figure CN121663450A_ABST
    Figure CN121663450A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a micro-grid scheduling method and device based on a charging pile, a server and a medium. The method comprises the following steps: receiving micro-grid data and charging pile data of a current scheduling period sent by a data terminal; obtaining a constraint condition of the micro-grid and a constraint condition of the charging pile; calculating a variable value of a preset variable according to the micro-grid data, the charging pile data, the constraint condition of the micro-grid, the constraint condition of the charging pile and a preset objective function; wherein the preset variables comprise a preset decision variable and a preset state variable; and scheduling the microgrid according to the variable value of the preset decision variable and the variable value of the preset state variable. According to the method, the energy utilization rate is increased.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of microgrid dispatching technology, and in particular to a microgrid dispatching method, device, server and medium based on charging piles. Background Technology

[0002] Microgrids, as a key platform for integrating distributed energy resources, energy storage systems, and various user loads, can effectively improve energy utilization efficiency. With the rapid development of the electric vehicle industry and the dramatic increase in the number of electric vehicles, charging piles are being connected to microgrids on a large scale, further exacerbating the scheduling challenges of microgrids.

[0003] Currently, related technologies rely on predictive data to formulate fixed scheduling plans. However, on the one hand, the output of distributed energy sources in microgrids fluctuates, and on the other hand, the electricity demand of charging stations is random and intermittent. Therefore, fixed scheduling plans cannot be adjusted in real time based on the characteristics of microgrids and charging stations, limiting the improvement in energy utilization. Summary of the Invention

[0004] This application provides a microgrid scheduling method, device, server, and medium based on charging piles to improve energy utilization.

[0005] In a first aspect, embodiments of this application provide a microgrid scheduling method based on charging piles, comprising: receiving microgrid data and charging pile data for the current scheduling period sent by a data terminal; obtaining constraints on the microgrid and constraints on the charging piles; calculating the values ​​of preset variables based on the microgrid data, charging pile data, constraints on the microgrid, constraints on the charging piles, and a preset objective function; wherein the preset variables include preset decision variables and preset state variables; and scheduling the microgrid according to the values ​​of the preset decision variables and the values ​​of the preset state variables.

[0006] In one possible implementation, the variable values ​​of preset variables are calculated based on microgrid data, charging pile data, microgrid constraints, charging pile constraints, and a preset objective function. This includes: determining the constraint parameters of the microgrid based on the microgrid data and microgrid constraints; determining the constraint parameters of the charging pile based on the charging pile data and charging pile constraints; and calculating the variable values ​​of preset variables based on the microgrid data, charging pile data, microgrid constraint parameters, charging pile constraint parameters, and the preset objective function.

[0007] In one possible implementation, the charging pile data includes unidirectional charging pile data and bidirectional charging pile data; the charging pile constraints include unidirectional charging pile constraints and bidirectional charging pile constraints; accordingly, determining the charging pile constraint parameters based on the charging pile data and the charging pile constraints includes: determining the unidirectional charging pile constraint parameters based on the unidirectional charging pile data and the unidirectional charging pile constraint conditions; and determining the bidirectional charging pile constraint parameters based on the bidirectional charging pile data and the bidirectional charging pile constraint conditions.

[0008] In one possible implementation, the unidirectional charging pile data includes the maximum charging power of the unidirectional charging pile, the controllable start time of the unidirectional charging pile, the controllable end time of the unidirectional charging pile, the charging efficiency of the unidirectional charging pile, the load demand of the unidirectional charging pile, and the minimum working time of the unidirectional charging pile; the constraints of the unidirectional charging pile include the power constraint, the working time constraint, the energy constraint, and the minimum working time constraint.

[0009] The power constraint condition for a one-way charging pile is:

[0010] The working time constraint for unidirectional charging piles is as follows:

[0011] The energy constraint condition for a one-way charging pile is:

[0012] The minimum working time constraint for a one-way charging station is:

[0013]

[0014]

[0015] in, This represents the charging power of the k-th unidirectional charging pile in the t-th time period. This represents the maximum charging power of the k-th unidirectional charging pile; This represents the controllable start time of the k-th unidirectional charging station. This represents the controllable end time of the k-th unidirectional charging pile; T represents the scheduling period. This represents the charging efficiency of the k-th unidirectional charging station. Indicates time interval, This represents the load demand of the k-th unidirectional charging station; i represents the i-th time period. This represents the shortest working time for the k-th unidirectional charging station; This indicates the charging status of the k-th unidirectional charging pile in the t-th time period;

[0016] Accordingly, based on the data and constraints of the unidirectional charging pile, the constraint parameters of the unidirectional charging pile are determined, including: inputting the maximum charging power of the unidirectional charging pile into the power constraint condition to obtain the power constraint parameters of the unidirectional charging pile; inputting the controllable start time and controllable end time of the unidirectional charging pile into the working time constraint condition to obtain the working time constraint parameters of the unidirectional charging pile; inputting the charging efficiency and load demand of the unidirectional charging pile into the energy constraint condition to obtain the energy constraint parameters of the unidirectional charging pile; and inputting the minimum working time of the unidirectional charging pile into the minimum working time constraint condition to obtain the minimum working time constraint parameters of the unidirectional charging pile.

[0017] In one possible implementation, the bidirectional charging pile data includes the bidirectional charging pile's battery remaining energy state, minimum and maximum battery remaining energy state, battery capacity, charging efficiency, discharging efficiency, maximum discharge power, maximum charging power, controllable start time, controllable end time, load demand, shortest charging time, and shortest discharging time. The constraints of the bidirectional charging pile include battery state of charge constraints, battery charge / discharge power constraints, operating time constraints, energy constraints, shortest charging time constraints, and shortest discharging time constraints.

[0018] The state of charge (SOC) constraints for the batteries in bidirectional charging piles are as follows:

[0019]

[0020] The battery charging and discharging power constraints for bidirectional charging piles are as follows:

[0021]

[0022] The working time constraints for bidirectional charging piles are as follows:

[0023]

[0024] The energy constraint conditions for bidirectional charging piles are:

[0025]

[0026] The minimum charging time constraint for bidirectional charging piles is:

[0027]

[0028]

[0029] The minimum discharge time constraint for bidirectional charging piles is:

[0030]

[0031]

[0032] in, This represents the remaining battery energy state of the j-th bidirectional charging pile in the t-th time period. This represents the remaining battery energy state of the j-th bidirectional charging pile in the (t-1)-th time period. This represents the charging power of the j-th bidirectional charging pile in the t-th time period. Indicates time interval, Let represent the charging efficiency of the j-th bidirectional charging pile. This represents the battery capacity of the j-th bidirectional charging station. This represents the discharge power of the j-th bidirectional charging pile in the t-th time period. This represents the discharge efficiency of the j-th bidirectional charging pile; This represents the minimum remaining state of energy of the battery at the j-th bidirectional charging station. This represents the maximum value of the remaining battery energy state of the j-th bidirectional charging pile; This represents the maximum discharge power of the j-th bidirectional charging pile. This represents the maximum charging power of the j-th bidirectional charging pile; This represents the controllable start time of the j-th bidirectional charging pile. Let represent the controllable end time of the j-th bidirectional charging pile; T represents the scheduling period. This represents the load demand of the j-th bidirectional charging pile; i represents the i-th time period. This represents the shortest charging time for the j-th bidirectional charging station. This represents the shortest discharge time for the j-th bidirectional charging pile. This indicates the charging status of the j-th bidirectional charging pile in the t-th time period. This represents the discharge state of the j-th bidirectional charging pile in the t-th time period;

[0033] Accordingly, based on the bidirectional charging pile data and its constraints, the constraint parameters for the bidirectional charging pile are determined. These include: inputting the remaining state of energy (SGE) of the battery, the minimum and maximum SGE of the battery, the battery capacity, the charging efficiency, and the discharging efficiency of the bidirectional charging pile into the battery SGE constraint conditions to obtain the bidirectional charging pile battery SGE constraint parameters; and inputting the maximum discharge power and maximum charging power of the bidirectional charging pile into the battery charge / discharge power constraint conditions to obtain the bidirectional charging pile battery SGE constraint parameters. The charging and discharging power constraint parameters for the charging pile battery are as follows: The controllable start time and controllable end time of the bidirectional charging pile are input into the bidirectional charging pile working time constraint condition to obtain the bidirectional charging pile working time constraint parameters; the load demand of the bidirectional charging pile is input into the bidirectional charging pile energy constraint condition to obtain the bidirectional charging pile energy constraint parameters; the shortest charging time of the bidirectional charging pile is input into the bidirectional charging pile shortest charging time constraint condition to obtain the bidirectional charging pile shortest charging time constraint parameters; the shortest discharging time of the bidirectional charging pile is input into the bidirectional charging pile shortest discharging time constraint condition to obtain the bidirectional charging pile shortest discharging time constraint parameters.

[0034] In one possible implementation, the microgrid data includes fixed load, maximum power connected to the main grid, maximum power purchased from the main grid, maximum power for battery charging, maximum power for battery discharging, battery state of charge, battery charging efficiency, battery capacity, battery discharging efficiency, minimum battery state of charge, maximum battery state of charge, and maximum photovoltaic power; the microgrid constraints include: energy conservation constraints, grid constraints, battery constraints, and photovoltaic constraints.

[0035] The energy conservation constraint is:

[0036]

[0037] The power grid constraints are:

[0038]

[0039]

[0040] The battery constraints are:

[0041]

[0042]

[0043]

[0044]

[0045] The photovoltaic constraints are:

[0046] in, This represents the photovoltaic power in the t-th time period, and N represents the number of unidirectional charging piles. This represents the charging power of the k-th unidirectional charging pile in the t-th time period. This represents the fixed load during the t-th time period. This represents the power sold to the grid during the t-th time period. This represents the power purchased from the grid during the t-th time period; This represents the charging power of the battery in the t-th time period. R represents the battery's discharge power in the t-th time period, and R represents the number of bidirectional charging stations. This represents the charging power of the j-th bidirectional charging pile in the t-th time period. This represents the discharge power of the j-th bidirectional charging pile in the t-th time period;

[0047] in, This represents the maximum power connected to the main grid during the t-th time period. This represents the maximum power supplied to the main network over a time period of t. Indicates the maximum charging power of the battery. Indicates the maximum power of the battery discharge; This represents the battery state of charge in the t-th time period. This represents the battery state of charge during the (t-1)th time period. This indicates the battery's charging efficiency. Indicates battery capacity, Indicates the battery's discharge efficiency;

[0048] in, This represents the minimum value of the battery's state of charge. This represents the maximum value of the battery's state of charge. This represents the battery's discharge state during the t-th time period. This represents the battery's charging state during the t-th time period. This represents the battery's discharge state during the (t-1)th time period. This represents the charging state of the battery during the (t-1)th time period; This represents the maximum photovoltaic power in the t-th time period;

[0049] Accordingly, based on the microgrid data and microgrid constraints, the microgrid constraint parameters are determined, including: inputting the fixed load into the energy conservation constraint conditions to obtain energy conservation constraint parameters; inputting the maximum power connected to the main grid and the maximum power purchased from the main grid into the grid constraint conditions to obtain grid constraint parameters; inputting the maximum power of battery charging, the maximum power of battery discharging, the battery state of charge, the battery charging efficiency, the battery capacity, the battery discharging efficiency, the minimum value of battery state of charge, and the maximum value of battery state of charge into the battery constraint conditions to obtain battery constraint parameters; and inputting the maximum photovoltaic power into the photovoltaic constraint conditions to obtain photovoltaic constraint parameters.

[0050] In one possible implementation, the microgrid data includes electricity sales price, electricity purchase price, battery charging cost, battery discharging cost, and demand-based electricity price; the bidirectional charging pile data includes the charging cost and discharging cost of the bidirectional charging pile; and the preset objective function includes:

[0051]

[0052]

[0053]

[0054]

[0055] in, This represents the function value of the objective function. Indicates the benefits of grid interaction. This indicates the cost of charging and discharging the battery. This represents the maximum demand cost; T represents the scheduling period. This represents the power sold to the grid during the t-th time period. This represents the power purchased from the grid during the t-th time period. This represents the electricity price for the t-th time period. This represents the electricity purchase price for the t-th time period. Indicates a time interval; This represents the charging power of the battery in the t-th time period. This indicates the cost of charging the battery. This represents the battery's discharge power during the t-th time period. R represents the cost of discharging the battery, and R represents the number of bidirectional charging stations. This represents the charging power of the j-th bidirectional charging pile in the t-th time period. This represents the charging cost of the j-th bidirectional charging station. This represents the discharge power of the j-th bidirectional charging pile in the t-th time period. This represents the discharge cost of the j-th bidirectional charging pile. Indicates the demand-based electricity price;

[0056] Accordingly, based on microgrid data, charging pile data, microgrid constraint parameters, charging pile constraint parameters, and a preset objective function, the values ​​of preset variables are calculated, including: inputting the electricity sales price, electricity purchase price, battery charging cost, battery discharging cost and demand electricity price, bidirectional charging cost and bidirectional charging pile discharging cost into the preset objective function to obtain preset objective function parameters; and calculating the values ​​of preset variables based on the microgrid constraint parameters, charging pile constraint parameters, and preset objective function parameters.

[0057] Secondly, embodiments of this application provide a microgrid scheduling device based on charging piles, comprising: a receiving module for receiving microgrid data and charging pile data for the current scheduling period sent by a data terminal; an acquisition module for acquiring constraints of the microgrid and constraints of the charging piles; a calculation module for calculating the variable values ​​of preset variables based on the microgrid data, charging pile data, constraints of the microgrid, constraints of the charging piles, and a preset objective function; wherein the preset variables include preset decision variables and preset state variables; and a scheduling module for scheduling the microgrid according to the variable values ​​of the preset decision variables and the preset state variables.

[0058] Thirdly, embodiments of this application provide a server, including: a memory and a processor;

[0059] The memory stores the instructions that the computer executes;

[0060] The processor executes computer execution instructions stored in memory, causing the processor to perform the first aspect and / or various possible implementations of the first aspect as described above.

[0061] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the first aspect and / or various possible implementations of the first aspect.

[0062] Fifthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the first aspect and / or various possible implementations of the first aspect.

[0063] The microgrid scheduling method, device, server, and medium based on charging piles provided in this application acquire microgrid data, charging pile data, microgrid constraints, and charging pile constraints for the current scheduling period. Based on these data and combined with a preset objective function, preset variable values ​​are obtained. These preset variables include preset decision variables and preset state variables. The system can adjust the values ​​of the preset decision variables and preset state variables in real time, and in the next scheduling period, the microgrid is scheduled according to these values, thereby improving energy utilization. Attached Figure Description

[0064] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0065] Figure 1 A schematic diagram illustrating a scenario for a microgrid scheduling method based on charging piles provided in an embodiment of this application;

[0066] Figure 2 A flowchart illustrating the microgrid scheduling method based on charging piles provided in this application embodiment;

[0067] Figure 3 A schematic diagram of the structure of a microgrid dispatching device based on charging piles provided in an embodiment of this application;

[0068] Figure 4 This is a schematic diagram of the server structure provided in an embodiment of this application.

[0069] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0070] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0071] Figure 1 A schematic diagram of a scenario for a microgrid scheduling method based on charging piles provided in this application embodiment, as shown below. Figure 1 As shown, it includes: data terminal 101 and server 102.

[0072] In this embodiment, the data terminal 101 is used to collect data, including but not limited to photovoltaic data acquisition equipment, energy storage data acquisition equipment, power grid data acquisition equipment, unidirectional charging pile data acquisition equipment, and bidirectional charging pile data acquisition equipment. The server 102 receives microgrid data and charging pile data for the current scheduling period sent by the data terminal 101; obtains the constraints of the microgrid and the constraints of the charging pile; calculates the variable values ​​of preset variables based on the microgrid data, charging pile data, microgrid constraints, charging pile constraints, and a preset objective function; wherein the preset variables include preset decision variables and preset state variables; and schedules the microgrid according to the variable values ​​of the preset decision variables and the preset state variables.

[0073] Currently, related technologies rely on predictive data to formulate fixed scheduling plans. However, on the one hand, the output of distributed energy sources in microgrids fluctuates, and on the other hand, the electricity demand of charging stations is random and intermittent. Therefore, fixed scheduling plans cannot be adjusted in real time based on the characteristics of microgrids and charging stations, limiting the improvement in energy utilization.

[0074] To address the aforementioned technical problems, this application proposes the following technical concept: Considering a fixed scheduling plan, the improvement in energy utilization is limited. The inventors conceived of combining microgrid data, charging pile data, microgrid constraints, charging pile constraints, and a preset objective function to calculate the values ​​of preset variables. These preset variables include preset decision variables and preset state variables. The values ​​of the preset decision variables and preset state variables can be adjusted in real time. In the next scheduling cycle, the microgrid is scheduled based on the values ​​of the preset decision variables and preset state variables, thereby improving energy utilization.

[0075] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.

[0076] Figure 2 A flowchart illustrating the microgrid scheduling method based on charging piles provided in this application embodiment is shown below. Figure 2 As shown, the method includes:

[0077] S201: Receive microgrid data and charging pile data for the current scheduling period sent by the data terminal.

[0078] In this embodiment, the scheduling period is 24 hours and the time interval is 0.5 hours, so the scheduling period is divided into multiple time periods 1, 2, 3, ..., 48.

[0079] S202: Obtain the constraints of the microgrid and the charging pile.

[0080] In this embodiment, the constraints of the microgrid take into account the characteristics of the microgrid, and the constraints of the charging pile take into account the characteristics of the charging pile.

[0081] S203: Calculate the values ​​of preset variables based on microgrid data, charging pile data, microgrid constraints, charging pile constraints, and preset objective function; the preset variables include preset decision variables and preset state variables.

[0082] Specifically, step S203 includes S2031 to S2033:

[0083] S2031: Determine the constraint parameters of the microgrid based on the microgrid data and the constraints of the microgrid.

[0084] In this embodiment, the microgrid data includes fixed load, maximum power connected to the main grid, maximum power purchased from the main grid, maximum power for battery charging, maximum power for battery discharging, battery state of charge, battery charging efficiency, battery capacity, battery discharging efficiency, minimum battery state of charge, maximum battery state of charge, and maximum photovoltaic power.

[0085] In this embodiment, the constraints of the microgrid include: energy conservation constraints, grid constraints, battery constraints, and photovoltaic constraints.

[0086] In this embodiment, a fixed load is input into the energy conservation constraint conditions to obtain the energy conservation constraint parameters.

[0087] The energy conservation constraint is:

[0088]

[0089] in, This represents the photovoltaic power in the t-th time period, and N represents the number of unidirectional charging piles. This represents the charging power of the k-th unidirectional charging pile in the t-th time period. This represents the fixed load during the t-th time period. This represents the power sold to the grid during the t-th time period. This represents the power purchased from the grid during the t-th time period; This represents the charging power of the battery in the t-th time period. This represents the battery's discharge power during the t-th time period. This represents the charging power of the j-th bidirectional charging pile in the t-th time period. This represents the discharge power of the j-th bidirectional charging pile in the t-th time period.

[0090] In this embodiment, the energy conservation constraint is used to constrain the supply and demand balance of the microgrid.

[0091] In this embodiment, the fixed load is set to different values ​​for different time periods based on historical data and user needs.

[0092] For example, the load is higher during the 13th-18th time period (7:00-9:00 AM), with a fixed load of 3kW; the load peaks during the 37th-44th time period (7:00-10:00 PM), with a fixed load of 4kW; and the load is lower during the remaining time periods, with a fixed load of 0.5kW. When the fixed load in the t-th time period is... At that time, the energy conservation constraint parameters are:

[0093]

[0094] In this embodiment, the maximum power connected to the main grid and the maximum power purchased from the main grid are input into the grid constraint conditions to obtain the grid constraint parameters.

[0095] The power grid constraints are:

[0096]

[0097]

[0098] in, This represents the power sold to the grid during the t-th time period. This represents the power purchased from the grid during the t-th time period. This represents the maximum power connected to the main grid during the t-th time period. This represents the maximum power supplied to the main network shopping network over a time period of t.

[0099] In this embodiment, in the t-th time period, the product of the power sold to the grid and the power purchased from the grid is 0, which is used to constrain the grid from selling and purchasing power at the same time, that is, it cannot sell and purchase electricity at the same time; the power sold cannot exceed the maximum power connected to the main grid, and the power purchased cannot exceed the maximum power purchased from the main grid.

[0100] For example, the maximum power connected to the main grid during the t-th time period. The maximum power of the main network shopping network Then the power grid constraint parameters are:

[0101]

[0102] In this embodiment, the maximum power of battery charging, the maximum power of battery discharging, the state of charge of the battery, the charging efficiency of the battery, the battery capacity, the discharging efficiency of the battery, the minimum value of the state of charge of the battery, and the maximum value of the state of charge of the battery are input into the battery constraint conditions to obtain the battery constraint parameters.

[0103] The battery constraints are:

[0104]

[0105]

[0106]

[0107]

[0108] in, This represents the charging power of the battery in the t-th time period. This represents the battery's discharge power during the t-th time period. Indicates the maximum charging power of the battery. Indicates the maximum power of the battery discharge; This represents the battery state of charge in the t-th time period. This represents the battery state of charge during the (t-1)th time period. This indicates the battery's charging efficiency. Indicates battery capacity, Indicates the battery's discharge efficiency; This represents the minimum value of the battery's state of charge. This represents the maximum value of the battery's state of charge.

[0109] in, This represents the battery's discharge state during the t-th time period. This represents the battery's charging state during the t-th time period. This represents the battery's discharge state during the (t-1)th time period. This represents the charging state of the battery during the (t-1)th time period.

[0110] In this embodiment, during the t-th time period, the product of the battery's charging power and discharging power is 0, which is used to constrain the battery from charging and discharging simultaneously, and to avoid the simultaneous presence of charging current and discharging current inside the battery.

[0111] In this embodiment, during the t-th time period, the charging power of the battery cannot exceed the maximum charging power of the battery, and the discharging power of the battery cannot exceed the maximum discharging power of the battery.

[0112] In this embodiment, during the t-th time period, the battery state of charge (SOC) cannot be less than the minimum SOC and cannot be greater than the maximum SOC.

[0113] In this embodiment, M is an integer, representing a sufficiently large integer. A value of 1 indicates that the battery is in a discharging state during the t-th time period. When the value is 1, it indicates that the battery is in a charging state during the t-th time period; A value of 1 indicates that the battery is in a discharging state during the (t-1)th time period. A value of 1 indicates that the battery is in a charging state during the (t-1)th time period. The battery cannot be charged and discharged simultaneously in two consecutive time periods, but rather... The value is 2, so by being less than or equal to 1, the battery cannot be charged and discharged at two consecutive times, thus avoiding sudden changes in the charging and discharging states that could affect battery life.

[0114] For example, the maximum power of battery charging in the t-th time period is Maximum power of battery discharge The state of charge of the battery during the (t-1)th time period Minimum state of charge of the battery The maximum value of the battery's state of charge Battery charging efficiency Battery discharge efficiency Battery capacity Then the battery constraint parameters are:

[0115]

[0116]

[0117]

[0118]

[0119] In this embodiment, the maximum photovoltaic power is input into the photovoltaic constraint conditions to obtain the photovoltaic constraint parameters.

[0120] The photovoltaic constraints are:

[0121] in, This represents the photovoltaic power in the t-th time period. This represents the maximum photovoltaic power in the t-th time period.

[0122] In this embodiment, the maximum photovoltaic power varies at different times.

[0123] For example, in the t-th time period, the maximum photovoltaic power Then the photovoltaic constraint parameters are: .

[0124] S2032: Determine the constraint parameters of the charging pile based on the charging pile data and the constraints of the charging pile.

[0125] In this embodiment, the charging pile data includes unidirectional charging pile data and bidirectional charging pile data; the constraints of the charging pile include constraints of unidirectional charging piles and constraints of bidirectional charging piles.

[0126] In this embodiment, the characteristic of a unidirectional charging pile is that energy can only flow in one direction, and it can only obtain power from the microgrid or the main grid to charge electric vehicles, and cannot transmit power back to the microgrid or the main grid.

[0127] In this embodiment, the bidirectional charging pile is a device adapted to Vehicle-to-Grid (V2G) technology. Its characteristic is that energy can flow in both directions. It can obtain power from the microgrid or the main grid to charge electric vehicles, and it can also transmit the power of electric vehicles back to the microgrid or the main grid when needed.

[0128] Specifically, step S2032 includes Sa~Sb:

[0129] Sa: Determine the constraint parameters of the unidirectional charging pile based on the data and constraints of the unidirectional charging pile.

[0130] In this embodiment, the data for a one-way charging pile includes the maximum charging power of the one-way charging pile, the controllable start time of the one-way charging pile, the controllable end time of the one-way charging pile, the charging efficiency of the one-way charging pile, the load requirement of the one-way charging pile, and the shortest working time of the one-way charging pile.

[0131] In this embodiment, there are a total of N unidirectional charging piles.

[0132] In this embodiment, the constraints of the unidirectional charging pile include the unidirectional charging pile power constraint, the unidirectional charging pile working time constraint, the unidirectional charging pile energy constraint, and the unidirectional charging pile minimum working time constraint.

[0133] In this embodiment, the maximum value of the charging power of the unidirectional charging pile is input into the unidirectional charging pile power constraint condition to obtain the constraint parameter of the unidirectional charging pile power.

[0134] The power constraint condition for a one-way charging pile is:

[0135] in, This represents the charging power of the k-th unidirectional charging pile in the t-th time period. This represents the maximum charging power of the k-th unidirectional charging station.

[0136] In this embodiment, the charging power of a one-way charging pile represents the electrical energy power delivered by the one-way charging pile to the electric vehicle. The maximum value of the charging power of a one-way charging pile is determined by the hardware performance of the one-way charging pile, such as the rated power of the charging module, which can be adjusted according to the microgrid load at different times.

[0137] In this embodiment, during the t-th time period, the one-way charging pile can only charge and cannot discharge. Therefore, the lower limit of the charging power is 0, and the charging power cannot exceed the maximum value of the one-way charging pile's charging power. Otherwise, it will cause the internal components of the one-way charging pile to overheat and be damaged, such as the charging module and cables.

[0138] In this embodiment, the power constraint condition of the unidirectional charging pile is used to protect the hardware safety of the unidirectional charging pile and avoid failure caused by over-power operation; at the same time, it avoids the impact of short-term high-power charging of the unidirectional charging pile on the microgrid.

[0139] For example, the maximum charging power of the k-th unidirectional charging pile in the t-th time period. Then the power constraint parameters for the k-th unidirectional charging pile are: .

[0140] In this embodiment, the controllable start time and controllable end time of the unidirectional charging pile are input into the unidirectional charging pile working time constraint condition to obtain the unidirectional charging pile working time constraint parameter.

[0141] The working time constraint for unidirectional charging piles is as follows:

[0142] in, This represents the charging power of the k-th unidirectional charging pile in the t-th time period. This represents the controllable start time of the k-th unidirectional charging station. Indicates time interval, This represents the controllable end time of the k-th unidirectional charging pile.

[0143] In this embodiment, This indicates that it is earlier than the controllable start time. This indicates a time later than the controllable end time. If the unidirectional charging station cannot charge if the start time is earlier than the controllable start time or later than the controllable end time, the charging power of the unidirectional charging station will be 0.

[0144] For example, the controllable start time of the k-th unidirectional charging pile in the t-th time period. Controllable end time of one-way charging pile Then the working time constraint parameter for the kth unidirectional charging pile is: .

[0145] In this embodiment, the charging efficiency and load demand of the unidirectional charging pile are input into the energy constraint conditions of the unidirectional charging pile to obtain the energy constraint parameters of the unidirectional charging pile.

[0146] The energy constraint condition for a one-way charging pile is:

[0147] Where T represents the scheduling period, This represents the charging power of the k-th unidirectional charging pile in the t-th time period. This represents the charging efficiency of the k-th unidirectional charging station. Indicates time interval, This represents the load demand of the k-th unidirectional charging pile.

[0148] In this embodiment, the load demand of a one-way charging pile refers to the total energy demand of the batteries charged by the one-way charging pile. The energy constraint condition for the one-way charging pile is used to ensure that, throughout the entire scheduling cycle, the total electrical energy actually charged into the electric vehicle battery must be greater than or equal to the total energy demand of the batteries charged by the one-way charging pile.

[0149] For example, in the t-th time period, the charging efficiency of the k-th unidirectional charging pile is... The load demand of one-way charging piles The energy constraint parameters for a one-way charging pile are: .

[0150] In this embodiment, the shortest working time of the unidirectional charging pile is input into the shortest working time constraint condition of the unidirectional charging pile to obtain the shortest working time constraint parameter of the unidirectional charging pile.

[0151] The minimum working time constraint for a one-way charging station is:

[0152]

[0153]

[0154] Where i represents the i-th time period. This represents the shortest working time for the k-th unidirectional charging station; Indicates time interval, This represents the charging status of the k-th unidirectional charging pile in the t-th time period.

[0155] In this embodiment, When the value is 1, it indicates that the k-th unidirectional charging pile is in a charging state during the t-th time period. When the value is 0, it indicates that the k-th unidirectional charging pile is in a non-charging state during the t-th time period. Indicates the time period from the i-th time period to the i-th time period. The sum of the charging states over a period of time.

[0156] In this embodiment, the minimum working time constraint of the unidirectional charging pile is used to constrain the... The charging state must continue during the time period.

[0157] For example, in the t-th time period, the shortest working time of the k-th unidirectional charging pile The minimum working time constraint parameter for a one-way charging pile is:

[0158]

[0159]

[0160] Sb: Determine the constraint parameters of the bidirectional charging pile based on the bidirectional charging pile data and the constraints of the bidirectional charging pile.

[0161] In this embodiment, there are a total of R bidirectional charging piles.

[0162] In this embodiment, the bidirectional charging pile data includes the remaining energy state of the battery of the bidirectional charging pile, the minimum value of the remaining energy state of the battery of the bidirectional charging pile, the maximum value of the remaining energy state of the battery of the bidirectional charging pile, the battery capacity of the bidirectional charging pile, the charging efficiency of the bidirectional charging pile, the discharging efficiency of the bidirectional charging pile, the maximum value of the discharging power of the bidirectional charging pile, the maximum value of the charging power of the bidirectional charging pile, the controllable start time of the bidirectional charging pile, the controllable end time of the bidirectional charging pile, the load demand of the bidirectional charging pile, the shortest charging time of the bidirectional charging pile, and the shortest discharging time of the bidirectional charging pile.

[0163] In this embodiment, the constraints of the bidirectional charging pile include the state of charge constraints of the bidirectional charging pile battery, the charging and discharging power constraints of the bidirectional charging pile battery, the working time constraints of the bidirectional charging pile, the energy constraints of the bidirectional charging pile, the shortest charging time constraints of the bidirectional charging pile, and the shortest discharging time constraints of the bidirectional charging pile.

[0164] In this embodiment, the remaining energy state of the battery of the bidirectional charging pile, the minimum value of the remaining energy state of the battery of the bidirectional charging pile, the maximum value of the remaining energy state of the battery of the bidirectional charging pile, the battery capacity of the bidirectional charging pile, the charging efficiency of the bidirectional charging pile, and the discharging efficiency of the bidirectional charging pile are input into the battery state of charge constraint conditions of the bidirectional charging pile to obtain the battery state of charge constraint parameters of the bidirectional charging pile.

[0165] The state of charge (SOC) constraints for the batteries in bidirectional charging piles are as follows:

[0166]

[0167] in, This represents the remaining battery energy state of the j-th bidirectional charging pile during the t-th time period. This represents the remaining battery energy state of the j-th bidirectional charging pile in the (t-1)-th time period. This represents the charging power of the j-th bidirectional charging pile in the t-th time period. Indicates time interval, Let represent the charging efficiency of the j-th bidirectional charging pile. This represents the battery capacity of the j-th bidirectional charging station. This represents the discharge power of the j-th bidirectional charging pile in the t-th time period. This represents the discharge efficiency of the j-th bidirectional charging pile; This represents the minimum remaining state of energy of the battery at the j-th bidirectional charging station. This represents the maximum value of the remaining energy state of the battery at the j-th bidirectional charging station.

[0168] In this embodiment, the state of charge constraint condition of the bidirectional charging pile battery is used to constrain the safety boundary of the state of charge.

[0169] In this embodiment, This indicates that the battery is in a charging state. In the t-th time period, the remaining battery energy of the j-th bidirectional charging pile is equal to the remaining battery energy of the j-th bidirectional charging pile in the (t-1)-th time period plus the energy charged by the j-th bidirectional charging pile in the t-th time period. This indicates that the battery is in a discharge state. In the t-th time period, the remaining battery energy of the j-th bidirectional charging pile = the remaining battery energy of the j-th bidirectional charging pile in the (t-1)-th time period - the energy released by the j-th bidirectional charging pile in the t-th time period. Whether charging or discharging, Must and This is to prevent damage to the charging station's battery from overcharging or over-discharging.

[0170] For example, in the t-th time period, the charging efficiency of the j-th bidirectional charging pile is... The discharge efficiency of the j-th bidirectional charging pile The battery capacity of the j-th bidirectional charging station The minimum value of the remaining state of energy of the battery of the j-th bidirectional charging pile. The maximum value of the remaining state of energy of the battery in a bidirectional charging station The remaining energy state of the battery in the bidirectional charging pile during the (t-1)th time period. The state-of-charge (SOC) constraint parameters for the bidirectional charging pile battery are:

[0171]

[0172] In this embodiment, the maximum value of the discharge power of the bidirectional charging pile and the maximum value of the charging power of the bidirectional charging pile are input into the battery charging and discharging power constraint conditions of the bidirectional charging pile to obtain the battery charging and discharging power constraint parameters of the bidirectional charging pile.

[0173] The battery charging and discharging power constraints for bidirectional charging piles are as follows:

[0174]

[0175] in, This represents the discharge power of the j-th bidirectional charging pile during the t-th time period. This represents the charging power of the j-th bidirectional charging pile during the t-th time period. This represents the maximum discharge power of the j-th bidirectional charging pile. This represents the maximum charging power of the j-th bidirectional charging pile.

[0176] For example, the maximum charging power of the j-th bidirectional charging pile in the t-th time period. The maximum discharge power of the j-th bidirectional charging pile The battery charging and discharging power constraint parameters for bidirectional charging piles are: .

[0177] In this embodiment, the battery charging and discharging power constraint condition of the bidirectional charging pile is used to constrain the power range.

[0178] In this embodiment, the controllable start time and controllable end time of the bidirectional charging pile are input into the working time constraint condition of the bidirectional charging pile to obtain the working time constraint parameter of the bidirectional charging pile.

[0179] The working time constraints for bidirectional charging piles are as follows:

[0180]

[0181] in, This represents the charging power of the j-th bidirectional charging pile in the t-th time period. This represents the controllable start time of the j-th bidirectional charging pile. This represents the controllable end time of the j-th bidirectional charging pile. Indicates a time interval.

[0182] In this embodiment, the working time constraint condition of the bidirectional charging pile is used to constrain the bidirectional charging pile within a controllable time period.

[0183] In this embodiment, This indicates a controllable start time earlier than that of the bidirectional charging station. This indicates a time later than the controllable end time of the bidirectional charging station. If the start time is earlier than the controllable start time but later than the controllable end time, the bidirectional charging station cannot charge, and its charging power is 0. Only when the start time is earlier than the controllable end time will the bidirectional charging station be able to charge. arrive Only within the designated area can bidirectional charging stations operate.

[0184] For example, the controllable start time of the j-th bidirectional charging pile in the t-th time period. Controllable end time of bidirectional charging pile The working time constraint parameters for bidirectional charging piles are as follows: .

[0185] In this embodiment, the load demand of the bidirectional charging pile is input into the energy constraint conditions of the bidirectional charging pile to obtain the energy constraint parameters of the bidirectional charging pile.

[0186] The energy constraint conditions for bidirectional charging piles are:

[0187]

[0188] Where T represents the scheduling period, This represents the discharge power of the j-th bidirectional charging pile in the t-th time period. This represents the charging power of the j-th bidirectional charging pile in the t-th time period. This represents the load demand of the j-th bidirectional charging pile. Indicates a time interval.

[0189] In this embodiment, the energy constraint condition of the bidirectional charging pile means that within the scheduling cycle, regardless of how the battery is discharged in the middle process, the energy that is finally charged into the battery must be greater than or equal to the load demand of the bidirectional charging pile.

[0190] For example, in the t-th time period, the load demand of the j-th bidirectional charging pile Then the energy constraint parameters for the j-th bidirectional charging pile are: .

[0191] In this embodiment, the shortest charging time of the bidirectional charging pile is input into the shortest charging time constraint condition of the bidirectional charging pile to obtain the shortest charging time constraint parameter of the bidirectional charging pile.

[0192] The minimum charging time constraint for bidirectional charging piles is:

[0193]

[0194]

[0195] Where i represents the i-th time period. This represents the shortest charging time for the j-th bidirectional charging station. This indicates the charging status of the j-th bidirectional charging pile in the t-th time period. Indicates a time interval.

[0196] In this embodiment, the minimum charging time constraint of the bidirectional charging pile is used to constrain the charging time. The charging process must continue throughout the time period to avoid frequent start-stop cycles.

[0197] For example, in the t-th time period, the shortest charging time of the j-th bidirectional charging pile Then the minimum charging time constraint parameter for the j-th bidirectional charging pile is:

[0198]

[0199]

[0200] In this embodiment, the shortest discharge time of the bidirectional charging pile is input into the shortest discharge time constraint condition of the bidirectional charging pile to obtain the shortest discharge time constraint parameter of the bidirectional charging pile.

[0201] The minimum discharge time constraint for bidirectional charging piles is:

[0202]

[0203]

[0204] Where i represents the i-th time period. This indicates the shortest discharge time for a bidirectional charging station. This represents the discharge state of the j-th bidirectional charging pile in the t-th time period. Indicates a time interval.

[0205] In this embodiment, the shortest discharge time constraint of the bidirectional charging pile is used to constrain the... The discharge state must be continuous within the time period to avoid frequent start-stop of discharge.

[0206] For example, in the t-th time period, the shortest discharge time of the j-th bidirectional charging pile The minimum discharge time constraint parameter for bidirectional charging piles is:

[0207]

[0208]

[0209] S2033: Calculate the values ​​of preset variables based on microgrid data, charging pile data, microgrid constraint parameters, charging pile constraint parameters, and preset objective function.

[0210] In this embodiment, the microgrid data includes the electricity sales price, the electricity purchase price, the battery charging cost, the battery discharging cost, and the demand electricity price; the bidirectional charging pile data includes the bidirectional charging pile charging cost and the bidirectional charging pile discharging cost.

[0211] Specifically, the electricity sales price, electricity purchase price, battery charging cost, battery discharging cost and demand electricity price, bidirectional charging cost and bidirectional charging cost are input into the preset objective function to obtain the preset objective function parameters; based on the microgrid constraint parameters, charging pile constraint parameters and preset objective function parameters, the variable values ​​of the preset variables are calculated.

[0212] In this embodiment, the preset objective function includes:

[0213]

[0214]

[0215]

[0216]

[0217] in, This represents the function value of the objective function. Indicates the benefits of grid interaction. This indicates the cost of charging and discharging the battery. This represents the maximum demand cost; T represents the scheduling period. This represents the power sold to the grid during the t-th time period. This represents the power purchased from the grid during the t-th time period. This represents the electricity price for the t-th time period. This represents the electricity purchase price for the t-th time period. Indicates a time interval; This represents the charging power of the battery in the t-th time period. This indicates the cost of charging the battery. This represents the battery's discharge power during the t-th time period. R represents the cost of discharging the battery, and R represents the number of bidirectional charging stations. This represents the charging power of the j-th bidirectional charging pile in the t-th time period. This represents the charging cost of the j-th bidirectional charging station. This represents the discharge power of the j-th bidirectional charging pile in the t-th time period. This represents the discharge cost of the j-th bidirectional charging pile. This indicates the demand-based electricity price.

[0218] In this embodiment, during the scheduling cycle, the calculation logic for grid interaction revenue is the electricity sales revenue minus the electricity purchase cost; the calculation logic for battery charging and discharging cost is the battery charging and discharging cost and the charging and discharging cost of bidirectional charging piles; the maximum demand cost represents the additional cost incurred due to peak electricity purchase.

[0219] For example, in the t-th time period, the electricity sales price and the electricity purchase price are set according to the grid peak-valley electricity price, and the electricity sales price... Electricity purchase price Battery charging cost The cost of discharging batteries Demand electricity price The charging cost of any bidirectional charging station Discharge cost of any bidirectional charging station If there are 3 bidirectional charging stations, then the preset objective function parameters are:

[0220]

[0221]

[0222]

[0223]

[0224] In this embodiment, the values ​​of preset variables are calculated based on the constraint parameters of the microgrid, the constraint parameters of the charging pile, and the preset objective function parameters. The preset variables include preset decision variables and preset state variables.

[0225] In this embodiment, the preset decision variables include: the photovoltaic power in the t-th time period. The charging power of the k-th unidirectional charging pile in the t-th time period The power sold to the grid in the t-th time period Power purchased from the grid in the t-th time period The charging power of the battery in the t-th time period The discharge power of the battery in the t-th time period The charging power of the j-th bidirectional charging pile in the t-th time period The discharge power of the j-th bidirectional charging pile in the t-th time period .

[0226] In this embodiment, the preset state variables include: the battery state of charge in the t-th time period. The remaining energy state of the battery of the j-th bidirectional charging pile in the t-th time period. .

[0227] S204: Dispatch the microgrid according to the preset decision variables and the preset state variables.

[0228] In this embodiment, the microgrid is scheduled according to the values ​​of preset decision variables and preset state variables in the next scheduling cycle.

[0229] In summary, the process involves acquiring microgrid data, charging pile data, microgrid constraints, and charging pile constraints for the current scheduling cycle. Based on these data and constraints, and combined with a preset objective function, the values ​​of preset variables are obtained. These preset variables include preset decision variables and preset state variables. The system can adjust the values ​​of these preset decision variables and preset state variables in real time. In the next scheduling cycle, the microgrid performs scheduling based on these preset decision and state variable values, thereby improving energy utilization.

[0230] Figure 3 This is a schematic diagram of the structure of a microgrid dispatching device based on charging piles provided in an embodiment of this application, as shown below. Figure 3 As shown, the microgrid scheduling device based on charging piles provided in this embodiment includes: a receiving module 301, an acquisition module 302, a calculation module 303, and a scheduling module 304.

[0231] The receiving module 301 is used to receive microgrid data and charging pile data for the current scheduling period sent by the data terminal.

[0232] The acquisition module 302 is used to acquire the constraints of the microgrid and the charging pile.

[0233] The calculation module 303 is used to calculate the variable values ​​of preset variables based on microgrid data, charging pile data, microgrid constraints, charging pile constraints, and preset objective function; wherein the preset variables include preset decision variables and preset state variables.

[0234] The scheduling module 304 is used to schedule the microgrid according to the values ​​of preset decision variables and preset state variables.

[0235] In one possible implementation, the calculation module 303 is specifically used to: determine the constraint parameters of the microgrid based on the microgrid data and the constraints of the microgrid; determine the constraint parameters of the charging pile based on the charging pile data and the constraints of the charging pile; and calculate the variable values ​​of preset variables based on the microgrid data, the charging pile data, the constraint parameters of the microgrid, the constraint parameters of the charging pile, and the preset objective function.

[0236] In one possible implementation, the charging pile data includes unidirectional charging pile data and bidirectional charging pile data; the constraints of the charging pile include constraints of unidirectional charging piles and constraints of bidirectional charging piles; accordingly, the calculation module 303 is further configured to: determine the constraint parameters of the unidirectional charging pile based on the unidirectional charging pile data and the constraints of the unidirectional charging pile; and determine the constraint parameters of the bidirectional charging pile based on the bidirectional charging pile data and the constraints of the bidirectional charging pile.

[0237] In one possible implementation, the unidirectional charging pile data includes the maximum charging power of the unidirectional charging pile, the controllable start time of the unidirectional charging pile, the controllable end time of the unidirectional charging pile, the charging efficiency of the unidirectional charging pile, the load demand of the unidirectional charging pile, and the minimum working time of the unidirectional charging pile; the constraints of the unidirectional charging pile include the power constraint, the working time constraint, the energy constraint, and the minimum working time constraint.

[0238] The power constraint condition for a one-way charging pile is:

[0239] The working time constraint for unidirectional charging piles is as follows:

[0240] The energy constraint condition for a one-way charging pile is:

[0241] The minimum working time constraint for a one-way charging station is:

[0242]

[0243]

[0244] in, This represents the charging power of the k-th unidirectional charging pile in the t-th time period. This represents the maximum charging power of the k-th unidirectional charging pile; This represents the controllable start time of the k-th unidirectional charging station. This represents the controllable end time of the k-th unidirectional charging pile; T represents the scheduling period. This represents the charging efficiency of the k-th unidirectional charging station. Indicates time interval, This represents the load demand of the k-th unidirectional charging station; i represents the i-th time period. This represents the shortest working time for the k-th unidirectional charging station; This indicates the charging status of the k-th unidirectional charging pile in the t-th time period;

[0245] Accordingly, the calculation module 303 is also used to: input the maximum value of the charging power of the unidirectional charging pile into the unidirectional charging pile power constraint condition to obtain the constraint parameters of the unidirectional charging pile power; input the controllable start time and controllable end time of the unidirectional charging pile into the unidirectional charging pile working time constraint condition to obtain the unidirectional charging pile working time constraint parameters; input the charging efficiency and load demand of the unidirectional charging pile into the unidirectional charging pile energy constraint condition to obtain the unidirectional charging pile energy constraint parameters; and input the shortest working time of the unidirectional charging pile into the shortest working time constraint condition to obtain the shortest working time constraint parameters of the unidirectional charging pile.

[0246] In one possible implementation, the bidirectional charging pile data includes the bidirectional charging pile's battery remaining energy state, minimum and maximum battery remaining energy state, battery capacity, charging efficiency, discharging efficiency, maximum discharge power, maximum charging power, controllable start time, controllable end time, load demand, shortest charging time, and shortest discharging time. The constraints of the bidirectional charging pile include battery state of charge constraints, battery charge / discharge power constraints, operating time constraints, energy constraints, shortest charging time constraints, and shortest discharging time constraints.

[0247] The state of charge (SOC) constraints for the batteries in bidirectional charging piles are as follows:

[0248]

[0249] The battery charging and discharging power constraints for bidirectional charging piles are as follows:

[0250]

[0251] The working time constraints for bidirectional charging piles are as follows:

[0252]

[0253] The energy constraint conditions for bidirectional charging piles are:

[0254]

[0255] The minimum charging time constraint for bidirectional charging piles is:

[0256]

[0257]

[0258] The minimum discharge time constraint for bidirectional charging piles is:

[0259]

[0260]

[0261] in, This represents the remaining battery energy state of the j-th bidirectional charging pile in the t-th time period. This represents the remaining battery energy state of the j-th bidirectional charging pile in the (t-1)-th time period. This represents the charging power of the j-th bidirectional charging pile in the t-th time period. Indicates time interval, Let represent the charging efficiency of the j-th bidirectional charging pile. This represents the battery capacity of the j-th bidirectional charging station. This represents the discharge power of the j-th bidirectional charging pile in the t-th time period. This represents the discharge efficiency of the j-th bidirectional charging pile; This represents the minimum remaining state of energy of the battery at the j-th bidirectional charging station. This represents the maximum value of the remaining battery energy state of the j-th bidirectional charging pile; This represents the maximum discharge power of the j-th bidirectional charging pile. This represents the maximum charging power of the j-th bidirectional charging pile; This represents the controllable start time of the j-th bidirectional charging pile. Let represent the controllable end time of the j-th bidirectional charging pile; T represents the scheduling period. This represents the load demand of the j-th bidirectional charging pile; i represents the i-th time period. This represents the shortest charging time for the j-th bidirectional charging station. This represents the shortest discharge time for the j-th bidirectional charging pile. This indicates the charging status of the j-th bidirectional charging pile in the t-th time period. This represents the discharge state of the j-th bidirectional charging pile in the t-th time period;

[0262] Accordingly, the calculation module 303 is also used to: input the remaining energy state of the bidirectional charging pile's battery, the minimum value of the remaining energy state of the bidirectional charging pile's battery, the maximum value of the remaining energy state of the bidirectional charging pile's battery, the battery capacity of the bidirectional charging pile, the charging efficiency of the bidirectional charging pile, and the discharging efficiency of the bidirectional charging pile into the bidirectional charging pile's battery state of charge constraint conditions to obtain the bidirectional charging pile's battery state of charge constraint parameters; and input the maximum value of the bidirectional charging pile's discharge power and the maximum value of the bidirectional charging pile's charging power into the bidirectional charging pile's battery charge and discharge power constraint conditions to obtain the bidirectional charging pile's battery charge and discharge power constraint parameters. The following steps are taken: inputting the controllable start time and controllable end time of the bidirectional charging pile into the bidirectional charging pile working time constraint condition to obtain the bidirectional charging pile working time constraint parameter; inputting the load demand of the bidirectional charging pile into the bidirectional charging pile energy constraint condition to obtain the bidirectional charging pile energy constraint parameter; inputting the shortest charging time of the bidirectional charging pile into the bidirectional charging pile shortest charging time constraint condition to obtain the bidirectional charging pile shortest charging time constraint parameter; inputting the shortest discharging time of the bidirectional charging pile into the bidirectional charging pile shortest discharging time constraint condition to obtain the bidirectional charging pile shortest discharging time constraint parameter.

[0263] In one possible implementation, the microgrid data includes fixed load, maximum power connected to the main grid, maximum power purchased from the main grid, maximum power for battery charging, maximum power for battery discharging, battery state of charge, battery charging efficiency, battery capacity, battery discharging efficiency, minimum battery state of charge, maximum battery state of charge, and maximum photovoltaic power; the microgrid constraints include: energy conservation constraints, grid constraints, battery constraints, and photovoltaic constraints.

[0264] The energy conservation constraint is:

[0265]

[0266] The power grid constraints are:

[0267]

[0268]

[0269] The battery constraints are:

[0270]

[0271]

[0272]

[0273]

[0274] The photovoltaic constraints are:

[0275] in, This represents the photovoltaic power in the t-th time period, and N represents the number of unidirectional charging piles. This represents the charging power of the k-th unidirectional charging pile in the t-th time period. This represents the fixed load during the t-th time period. This represents the power sold to the grid during the t-th time period. This represents the power purchased from the grid during the t-th time period; This represents the charging power of the battery in the t-th time period. R represents the battery's discharge power in the t-th time period, and R represents the number of bidirectional charging stations. This represents the charging power of the j-th bidirectional charging pile in the t-th time period. This represents the discharge power of the j-th bidirectional charging pile in the t-th time period;

[0276] in, This represents the maximum power connected to the main grid during the t-th time period. This represents the maximum power supplied to the main network over a time period of t. Indicates the maximum charging power of the battery. Indicates the maximum power of the battery discharge; This represents the battery state of charge in the t-th time period. This represents the battery state of charge during the (t-1)th time period. This indicates the battery's charging efficiency. Indicates battery capacity, Indicates the battery's discharge efficiency;

[0277] in, This represents the minimum value of the battery's state of charge. This represents the maximum value of the battery's state of charge. This represents the battery's discharge state during the t-th time period. This represents the battery's charging state during the t-th time period. This represents the battery's discharge state during the (t-1)th time period. This represents the charging state of the battery during the (t-1)th time period; This represents the maximum photovoltaic power in the t-th time period;

[0278] Accordingly, the calculation module 303 is also used to: input the fixed load into the energy conservation constraint conditions to obtain energy conservation constraint parameters; input the maximum power connected to the main grid and the maximum power purchased from the main grid into the grid constraint conditions to obtain grid constraint parameters; input the maximum power of battery charging, the maximum power of battery discharging, the battery state of charge, the battery charging efficiency, the battery capacity, the battery discharging efficiency, the minimum value of battery state of charge, and the maximum value of battery state of charge into the battery constraint conditions to obtain battery constraint parameters; and input the maximum photovoltaic power into the photovoltaic constraint conditions to obtain photovoltaic constraint parameters.

[0279] In one possible implementation, the microgrid data includes electricity sales price, electricity purchase price, battery charging cost, battery discharging cost, and demand-based electricity price; the bidirectional charging pile data includes the charging cost and discharging cost of the bidirectional charging pile; and the preset objective function includes:

[0280]

[0281]

[0282]

[0283]

[0284] in, This represents the function value of the objective function. Indicates the benefits of grid interaction. This indicates the cost of charging and discharging the battery. This represents the maximum demand cost; T represents the scheduling period. This represents the power sold to the grid during the t-th time period. This represents the power purchased from the grid during the t-th time period. This represents the electricity price for the t-th time period. This represents the electricity purchase price for the t-th time period. Indicates a time interval; This represents the charging power of the battery in the t-th time period. This indicates the cost of charging the battery. This represents the battery's discharge power during the t-th time period. R represents the cost of discharging the battery, and R represents the number of bidirectional charging stations. This represents the charging power of the j-th bidirectional charging pile in the t-th time period. This represents the charging cost of the j-th bidirectional charging station. This represents the discharge power of the j-th bidirectional charging pile in the t-th time period. This represents the discharge cost of the j-th bidirectional charging pile. Indicates the demand-based electricity price;

[0285] Accordingly, the calculation module 303 is also used to: input the electricity sales price, electricity purchase price, battery charging cost, battery discharging cost and demand electricity price, bidirectional charging cost and bidirectional charging cost into the preset objective function to obtain the preset objective function parameters; and calculate the variable values ​​of the preset variables based on the constraint parameters of the microgrid, the constraint parameters of the charging pile and the preset objective function parameters.

[0286] The microgrid dispatching device based on charging piles provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and will not be described in detail here.

[0287] Figure 4 This is a schematic diagram of the server structure provided in an embodiment of this application. Figure 4 As shown, the server provided in this embodiment includes at least one processor 401 and a memory 402. Optionally, the server also includes a communication component 403. The processor 401, memory 402, and communication component 403 are connected via a bus.

[0288] In a specific implementation, at least one processor 401 executes computer execution instructions stored in memory 402, causing at least one processor 401 to perform the above-described method.

[0289] The specific implementation process of processor 401 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.

[0290] In the above embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.

[0291] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.

[0292] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.

[0293] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method.

[0294] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the above-described method.

[0295] The aforementioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.

[0296] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and the readable storage medium can exist as discrete components in the device.

[0297] The division of units is merely a logical functional division; in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.

[0298] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0299] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0300] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0301] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.

[0302] Finally, it should be noted that other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein, and is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.

Claims

1. A microgrid scheduling method based on charging piles, characterized in that, Applied to servers, including: Receive microgrid data and charging pile data for the current scheduling period sent by the data terminal; Obtain the constraints of the microgrid and the charging pile; Based on the microgrid data, the charging pile data, the constraints of the microgrid, the constraints of the charging pile, and the preset objective function, calculate the variable values ​​of preset variables; wherein the preset variables include preset decision variables and preset state variables; The microgrid is scheduled according to the values ​​of the preset decision variables and the preset state variables.

2. The method according to claim 1, characterized in that, The step of calculating the variable values ​​of preset variables based on the microgrid data, the charging pile data, the constraints of the microgrid, the constraints of the charging pile, and the preset objective function includes: Based on the microgrid data and the constraints of the microgrid, determine the constraint parameters of the microgrid; Based on the charging pile data and the constraints of the charging pile, determine the constraint parameters of the charging pile; The values ​​of preset variables are calculated based on the microgrid data, the charging pile data, the constraint parameters of the microgrid, the constraint parameters of the charging pile, and the preset objective function.

3. The method according to claim 2, characterized in that, The charging pile data includes unidirectional charging pile data and bidirectional charging pile data; the constraints of the charging piles include constraints for unidirectional charging piles and constraints for bidirectional charging piles. Accordingly, determining the constraint parameters of the charging pile based on the charging pile data and the constraints of the charging pile includes: Based on the data of the unidirectional charging pile and the constraints of the unidirectional charging pile, determine the constraint parameters of the unidirectional charging pile. Based on the bidirectional charging pile data and the constraints of the bidirectional charging pile, the constraint parameters of the bidirectional charging pile are determined.

4. The method according to claim 3, characterized in that, The unidirectional charging pile data includes the maximum charging power of the unidirectional charging pile, the controllable start time of the unidirectional charging pile, the controllable end time of the unidirectional charging pile, the charging efficiency of the unidirectional charging pile, the load demand of the unidirectional charging pile, and the minimum working time of the unidirectional charging pile; the constraints of the unidirectional charging pile include the power constraint, the working time constraint, the energy constraint, and the minimum working time constraint. The power constraint condition for a one-way charging pile is: The working time constraint for unidirectional charging piles is as follows: The energy constraint condition for a one-way charging pile is: The minimum working time constraint for a one-way charging station is: in, This represents the charging power of the k-th unidirectional charging pile in the t-th time period. This represents the maximum charging power of the k-th unidirectional charging pile; This represents the controllable start time of the k-th unidirectional charging station. This represents the controllable end time of the k-th unidirectional charging pile; T represents the scheduling period. This represents the charging efficiency of the k-th unidirectional charging station. Indicates time interval, This represents the load demand of the k-th unidirectional charging station; i represents the i-th time period. This represents the shortest working time for the k-th unidirectional charging station; This indicates the charging status of the k-th unidirectional charging pile in the t-th time period; Accordingly, determining the constraint parameters of the unidirectional charging pile based on the unidirectional charging pile data and the constraint conditions of the unidirectional charging pile includes: The maximum value of the charging power of the unidirectional charging pile is input into the power constraint condition of the unidirectional charging pile to obtain the constraint parameter of the unidirectional charging pile power. The controllable start time and controllable end time of the one-way charging pile are input into the working time constraint condition of the one-way charging pile to obtain the working time constraint parameter of the one-way charging pile. The charging efficiency and load demand of the unidirectional charging pile are input into the energy constraint conditions of the unidirectional charging pile to obtain the energy constraint parameters of the unidirectional charging pile. The shortest working time of the unidirectional charging pile is input into the shortest working time constraint condition of the unidirectional charging pile to obtain the shortest working time constraint parameter of the unidirectional charging pile.

5. The method according to claim 3, characterized in that, The bidirectional charging pile data includes the battery's remaining energy state, minimum and maximum remaining energy state, battery capacity, charging efficiency, discharging efficiency, maximum discharge power, maximum charging power, controllable start time, controllable end time, load demand, shortest charging time, and shortest discharging time. The constraints on the bidirectional charging pile include battery state of charge constraints, battery charge / discharge power constraints, operating time constraints, energy constraints, shortest charging time constraints, and shortest discharging time constraints. The state of charge (SOC) constraints for the batteries in bidirectional charging piles are as follows: The battery charging and discharging power constraints for bidirectional charging piles are as follows: The working time constraints for bidirectional charging piles are as follows: The energy constraint conditions for bidirectional charging piles are: The minimum charging time constraint for bidirectional charging piles is: The minimum discharge time constraint for bidirectional charging piles is: in, This represents the remaining battery energy state of the j-th bidirectional charging pile in the t-th time period. This represents the remaining battery energy state of the j-th bidirectional charging pile in the (t-1)-th time period. This represents the charging power of the j-th bidirectional charging pile in the t-th time period. Indicates time interval, Let represent the charging efficiency of the j-th bidirectional charging pile. This represents the battery capacity of the j-th bidirectional charging station. This represents the discharge power of the j-th bidirectional charging pile in the t-th time period. This represents the discharge efficiency of the j-th bidirectional charging pile; This represents the minimum remaining state of energy of the battery at the j-th bidirectional charging station. This represents the maximum value of the remaining battery energy state of the j-th bidirectional charging pile; This represents the maximum discharge power of the j-th bidirectional charging pile. This represents the maximum charging power of the j-th bidirectional charging pile; This represents the controllable start time of the j-th bidirectional charging pile. Let represent the controllable end time of the j-th bidirectional charging pile; T represents the scheduling period. This represents the load demand of the j-th bidirectional charging pile; i represents the i-th time period. This represents the shortest charging time for the j-th bidirectional charging station. This represents the shortest discharge time for the j-th bidirectional charging pile. This indicates the charging status of the j-th bidirectional charging pile in the t-th time period. This represents the discharge state of the j-th bidirectional charging pile in the t-th time period; Accordingly, determining the constraint parameters of the bidirectional charging pile based on the bidirectional charging pile data and the constraint conditions of the bidirectional charging pile includes: The remaining energy state of the battery of the bidirectional charging pile, the minimum value of the remaining energy state of the battery of the bidirectional charging pile, the maximum value of the remaining energy state of the battery of the bidirectional charging pile, the battery capacity of the bidirectional charging pile, the charging efficiency of the bidirectional charging pile, and the discharging efficiency of the bidirectional charging pile are input into the battery state of charge constraint conditions of the bidirectional charging pile to obtain the battery state of charge constraint parameters of the bidirectional charging pile. The maximum discharge power and the maximum charging power of the bidirectional charging pile are input into the battery charging and discharging power constraint conditions of the bidirectional charging pile to obtain the battery charging and discharging power constraint parameters of the bidirectional charging pile. The controllable start time and controllable end time of the bidirectional charging pile are input into the working time constraint condition of the bidirectional charging pile to obtain the working time constraint parameter of the bidirectional charging pile. The load demand of the bidirectional charging pile is input into the energy constraint condition of the bidirectional charging pile to obtain the energy constraint parameters of the bidirectional charging pile. The shortest charging time of the bidirectional charging pile is input into the shortest charging time constraint condition of the bidirectional charging pile to obtain the shortest charging time constraint parameter of the bidirectional charging pile. The shortest discharge time of the bidirectional charging pile is input into the shortest discharge time constraint condition of the bidirectional charging pile to obtain the shortest discharge time constraint parameter of the bidirectional charging pile.

6. The method according to claim 2, characterized in that, The microgrid data includes fixed load, maximum power connected to the main grid, maximum power purchased from the main grid, maximum battery charging power, maximum battery discharging power, battery state of charge, battery charging efficiency, battery capacity, battery discharging efficiency, minimum battery state of charge, maximum battery state of charge, and maximum photovoltaic power; the microgrid constraints include: energy conservation constraints, grid constraints, battery constraints, and photovoltaic constraints. The energy conservation constraint is: The power grid constraints are: The battery constraints are: The photovoltaic constraints are: in, This represents the photovoltaic power in the t-th time period, and N represents the number of unidirectional charging piles. This represents the charging power of the k-th unidirectional charging pile in the t-th time period. This represents the fixed load during the t-th time period. This represents the power sold to the grid during the t-th time period. This represents the power purchased from the grid during the t-th time period; This represents the charging power of the battery in the t-th time period. R represents the battery's discharge power in the t-th time period, and R represents the number of bidirectional charging stations. This represents the charging power of the j-th bidirectional charging pile in the t-th time period. This represents the discharge power of the j-th bidirectional charging pile in the t-th time period; in, This represents the maximum power connected to the main grid during the t-th time period. This represents the maximum power supplied to the main network over a time period of t. Indicates the maximum charging power of the battery. Indicates the maximum power of the battery discharge; This represents the battery state of charge in the t-th time period. This represents the battery state of charge during the (t-1)th time period. This indicates the battery's charging efficiency. Indicates battery capacity, Indicates the battery's discharge efficiency; in, This represents the minimum value of the battery's state of charge. This represents the maximum value of the battery's state of charge. This represents the battery's discharge state during the t-th time period. This represents the battery's charging state during the t-th time period. This represents the battery's discharge state during the (t-1)th time period. This represents the charging state of the battery during the (t-1)th time period; This represents the maximum photovoltaic power in the t-th time period; Accordingly, determining the constraint parameters of the microgrid based on the microgrid data and the constraints of the microgrid includes: The fixed load is input into the energy conservation constraint condition to obtain the energy conservation constraint parameters; The maximum power connected to the main grid and the maximum power purchased from the main grid are input into the grid constraint conditions to obtain the grid constraint parameters; The maximum charging power of the battery, the maximum discharging power of the battery, the state of charge of the battery, the charging efficiency of the battery, the battery capacity, the discharging efficiency of the battery, the minimum value of the state of charge of the battery, and the maximum value of the state of charge of the battery are input into the battery constraint conditions to obtain the battery constraint parameters. The maximum photovoltaic power is input into the photovoltaic constraint conditions to obtain the photovoltaic constraint parameters.

7. The method according to claim 3, characterized in that, The microgrid data includes electricity sales price, electricity purchase price, battery charging cost, battery discharging cost, and demand-based electricity price; the bidirectional charging pile data includes the charging cost and discharging cost of the bidirectional charging pile. The preset objective function includes: in, This represents the function value of the objective function. Indicates the benefits of grid interaction. This indicates the cost of charging and discharging the battery. This represents the maximum demand cost; T represents the scheduling period. This represents the power sold to the grid during the t-th time period. This represents the power purchased from the grid during the t-th time period. This represents the electricity price for the t-th time period. This represents the electricity purchase price for the t-th time period. Indicates a time interval; This represents the charging power of the battery in the t-th time period. This indicates the cost of charging the battery. This represents the battery's discharge power during the t-th time period. R represents the cost of discharging the battery, and R represents the number of bidirectional charging stations. This represents the charging power of the j-th bidirectional charging pile in the t-th time period. This represents the charging cost of the j-th bidirectional charging station. This represents the discharge power of the j-th bidirectional charging pile in the t-th time period. This represents the discharge cost of the j-th bidirectional charging pile. Indicates the demand-based electricity price; Accordingly, the step of calculating the variable values ​​of the preset variables based on the microgrid data, the charging pile data, the constraint parameters of the microgrid, the constraint parameters of the charging pile, and the preset objective function includes: The electricity sales price, the electricity purchase price, the battery charging cost, the battery discharging cost, the demand electricity price, the charging cost of the bidirectional charging pile, and the discharging cost of the bidirectional charging pile are input into the preset objective function to obtain the preset objective function parameters. The values ​​of the preset variables are calculated based on the constraint parameters of the microgrid, the constraint parameters of the charging pile, and the preset objective function parameters.

8. A microgrid dispatching device based on charging piles, characterized in that, Applied to servers, including: The receiving module is used to receive microgrid data and charging pile data for the current scheduling period sent by the data terminal; The acquisition module is used to acquire the constraints of the microgrid and the charging piles. The calculation module is used to calculate the variable values ​​of preset variables based on the microgrid data, the charging pile data, the constraints of the microgrid, the constraints of the charging pile, and the preset objective function; wherein the preset variables include preset decision variables and preset state variables. The scheduling module is used to schedule the microgrid according to the values ​​of the preset decision variables and the values ​​of the preset state variables.

9. A server, characterized in that, include: Memory, used to store computer programs; A processor for executing the computer program to implement the method as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1-7.