Economic dispatching optimization method and system for micro-grid of charging and battery swapping station
By constructing a microgrid operation constraint model and power prediction, the economic optimization problem of the microgrid scheduling strategy of the charging and swapping station is solved, and the charging cost reduction and photovoltaic back-over are achieved under uncertain factors.
Patent Information
- Application Number
- CN202411436262.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-15
- Publication Date
- 2024-11-15
AI Technical Summary
The existing microgrid scheduling strategies for charging and swapping stations cannot ensure overall economic optimization under fluctuations in new energy, load, electricity prices and other uncertainties, and lack flexible and adaptable scheduling plans.
Build a running constraint model for grid-connected distribution transformers, energy storage and battery swap stations, use the power prediction model to predict the power value of uncertain source load, and build a microgrid economy with the minimum charging cost and photovoltaic reversal penalty cost as the objective function Scheduling model, solving optimization plan.
The optimal economic scheduling of the charging and swapping station microgrid under fluctuations in uncertainties is achieved, and a flexible and adaptive economic operation plan is generated, which reduces charging costs and avoids photovoltaic reversal.
Smart Images

Figure CN118966720A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a dispatch optimization technology, and in particular to an economic dispatch optimization method and system for a microgrid of a charging and swapping station. Background Art
[0002] With the continuous expansion of the new energy vehicle market, the demand for charging and battery swapping services is increasing, providing a broad market prospect for the construction and operation of charging and swapping stations. Charging and swapping stations are generally connected to the 10kV distribution network feeder through distribution transformers. At the same time, distributed photovoltaic power generation is built on the roof of the parking space shed and the roof of the lounge in the charging and swapping station, and distributed energy storage equipment of a certain capacity is configured to form a charging and swapping station microgrid that integrates photovoltaic storage, charging and swapping. Through the coordinated control between economic dispatch and photovoltaic storage, charging and swapping, the overall economic efficiency of the operation of the charging and swapping station microgrid can be improved. At present, through the fixed dispatching strategies such as photovoltaic "self-generation and self-use, surplus power to the grid", energy storage "valley charging, peak power discharge", and charging piles "charging with light", although it can promote the consumption of new energy and reduce operating costs to a certain extent, it cannot guarantee the overall economic optimality of the dispatching strategy of the charging and swapping station microgrid under the fluctuation of uncertain factors such as new energy, load, and electricity price, and lacks flexible and adaptive dispatching plans. Summary of the invention
[0003] In view of the problems existing in the prior art, the purpose of the present invention is to provide a charging and swapping station microgrid economic dispatch optimization method and system that can achieve optimal dispatch under the fluctuation of uncertain factors.
[0004] In order to achieve the above-mentioned object of the invention, the present invention provides the following technical solutions: A method for optimizing economic dispatch of a microgrid of a charging and swapping station comprises the following steps: (1) Constructing the operating constraints of the grid-connected distribution transformers for economic dispatch of the microgrid of the charging and swapping station, wherein the operating constraints of the grid-connected distribution transformers include the active power constraints of each grid-connected distribution transformer in each time period; (2) Constructing energy storage operation constraints for economic dispatch of the microgrid of the charging and swapping station, wherein the energy storage operation constraints include energy storage charging and discharging power constraints, energy storage charging and discharging state constraints, energy storage remaining power level constraints, energy storage power-power balance constraints between remaining power level and charging and discharging power, and energy storage reverse power protection constraints; (3) Constructing the operation constraints of the battery swap station for the economic dispatch of the charging and swap station microgrid, wherein the operation constraints of the battery swap station include the charging power constraint and the charging capacity constraint of the battery swap station; (4) Based on the historical power values of uncertain source loads, historical values of meteorological data, and predicted values of meteorological data, the trained power prediction model is used to predict the power prediction value of uncertain source loads; (5) Taking the grid-connected transformer operation constraints, energy storage operation constraints, and battery swap station operation constraints as model constraints, and minimizing the sum of charging cost and photovoltaic reverse transmission penalty cost as the objective function, an economic dispatch model for battery swap station microgrid is constructed; (6) Based on the power prediction value of the uncertain source and load, the economic dispatch model of the battery swap station microgrid is solved to obtain the economic dispatch optimization plan of the charging and swap station microgrid.
[0005] A microgrid economic dispatch optimization system for a charging and swapping station, comprising: The first constraint condition construction module is used to construct the grid-connected distribution transformer operation constraint conditions for the economic dispatch of the microgrid of the charging and swapping station, wherein the grid-connected distribution transformer operation constraint conditions include the active power constraint of each grid-connected distribution transformer in each time period; The second constraint condition construction module is used to construct the energy storage operation constraint conditions for the economic dispatch of the charging and swapping station microgrid, wherein the energy storage operation constraint conditions include energy storage charging and discharging power constraint, energy storage charging and discharging state constraint, energy storage remaining power level constraint, energy storage remaining power level and charge and discharge power between the power-power balance constraint and energy storage reverse power protection constraint; The third constraint condition construction module is used to construct the battery swap station operation constraint conditions for the economic dispatch of the charging and swap station microgrid, wherein the battery swap station operation constraint conditions include the battery swap station charging power constraint and the battery swap station charging amount constraint; A power prediction module is used to predict the power prediction value of the uncertain source load by using a trained power prediction model according to the historical power value of the uncertain source load, the historical value of the meteorological data and the predicted value of the meteorological data; The dispatch model building module is used to build an economic dispatch model for the microgrid of the battery swap station, taking the operation constraints of the grid-connected transformer, the operation constraints of the energy storage, and the operation constraints of the battery swap station as the model constraints, and taking the minimum sum of the charging cost and the photovoltaic reverse transmission penalty cost as the objective function; The scheduling optimization module is used to solve the economic scheduling model of the microgrid of the battery swap station based on the power prediction value of the uncertain source and load, and obtain the economic scheduling optimization plan of the microgrid of the charging and swap station.
[0006] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the above method.
[0007] A computer-readable storage medium having a computer program / instruction stored thereon, wherein the computer program / instruction implements the above method when executed by a processor.
[0008] Compared with the prior art, the present invention has the following beneficial effects: the present invention proposes a method and system for economic dispatching of a microgrid of a charging and swapping station, firstly, the operating constraints of the grid-connected distribution transformer, energy storage, and battery swapping station for the economic dispatching of the microgrid of the charging and swapping station are modeled to solve the problem that the flexible operating range of the grid-connected distribution transformer, energy storage, and battery swapping station is not fully considered; secondly, the power of uncertain sources and loads (including photovoltaics, charging piles, and self-use power loads, etc.) in the microgrid of the charging and swapping station is predicted to solve the problem that the fixed control mode cannot fully consider the uncertainty of sources and loads; finally, the overall optimization model of the economic dispatching of the microgrid of the charging and swapping station is solved to solve the problem that the fixed control mode cannot guarantee the overall economic optimality and model adaptability of the dispatching strategy when the uncertain factors such as new energy, load, and electricity price fluctuate, thereby realizing the ability to flexibly and adaptively generate the optimal economic dispatching plan of the microgrid of the charging and swapping station as the basis for the economic operation dispatching plan of the microgrid of the charging and swapping station the next day. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Figure 1 It is a flow chart of the economic dispatch optimization method of the microgrid of the charging and swapping station provided by the embodiment of the present invention; Figure 2 It is a system block diagram of the economic dispatch optimization system of the microgrid of the charging and swapping station provided by the embodiment of the present invention; Figure 3 It is a composition diagram of a microgrid of a charging and swapping station used in the simulation of the present invention; Figure 4 It is a comparison chart of energy storage power of different examples; Figure 5 This is a power comparison chart of battery swap stations in different examples; Figure 6 It is a comparison chart of grid-connected distribution transformer power for different examples. DETAILED DESCRIPTION
[0010] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0011] The first embodiment is described below.
[0012] This embodiment provides a method for optimizing economic dispatch of a microgrid in a charging and swapping station. Figure 1 As shown, the following steps are included: S101. Construct the operating constraints of the grid-connected distribution transformers for economic dispatch of the microgrid of the charging and swapping station.
[0013] The grid-connected distribution transformer operation constraint conditions include active power constraints of each grid-connected distribution transformer in each time period, specifically: , In the formula, and Grid-connected distribution transformer i In the t Active power, off-grid power and reverse power in the time period; It is a grid-connected indicator variable, with a specific value of 0 / 1. When the value is 1, it indicates that the grid-connected distribution transformer i In the t The power direction of the time period is off-grid, otherwise it is not off-grid. It is a reverse indicator variable, specifically a 0 / 1 value. When the value is 1, it indicates that the grid-connected distribution transformer i In the t The power direction of the time period is reverse, otherwise it is not reverse; For distribution transformers i The first and second formulas indicate that at any time, the power flow direction of the grid-connected distribution transformer is unique and the power outflow direction is positive while the power outflow direction is negative; the third and fourth formulas indicate that the power flowing through the grid-connected distribution transformer does not exceed the maximum power capacity allowed by the grid-connected distribution transformer.
[0014] S102. Construct energy storage operation constraints for economic dispatch of microgrids in charging and swapping stations.
[0015] The energy storage operation constraints include energy storage charging and discharging power constraints, energy storage charging and discharging state constraints, energy storage remaining power level constraints, energy storage power-power balance constraints between remaining power level and charging and discharging power, and energy storage reverse power protection constraints, specifically: , , , , , , , , , , , , , In the formula, They represent the charging and discharging power of energy storage j in time period t, The energy storage j is tThe charging and discharging status indicator variable of the time period is 0 / 1 value. When it is on, it means it is in charging state, otherwise it means it is not in charging state. When it is in the discharging state, it indicates that it is in the discharging state; otherwise, it indicates that it is not in the discharging state; represents the maximum charge and discharge power of energy storage j, Respectively represent the energy storage j in the t , t-1 time period, the remaining power level at the initial moment, are the charging and discharging efficiencies of energy storage j, represents the capacity of energy storage j, is the scheduling time interval, are the minimum and maximum remaining power levels of energy storage j, , are the final and initial power levels of energy storage j in a scheduling cycle, respectively; The energy storage j is t Whether the time period starts charging or discharging, the status indicator variable is 0 / 1. When the value is 1, it means charging has started, otherwise it means charging has not started. When the value is 0, it means that the discharge has started, otherwise it means that the discharge has not started; Representation and energy storage j Distribution transformers connected to the same bus i In the t The indicator variable of whether the power in the time period is reversed, ES represents the energy storage set, DT j express Energy Storage j A collection of distribution transformers connected to the same busbar; T Represents the time period set within the scheduling cycle, They are the maximum number of charging and discharging times allowed within the scheduling cycle.
[0016] Among the constraints, the first and second formulas indicate that the charging and discharging power of the energy storage does not exceed its maximum charging and discharging power; the third formula indicates that the charging and discharging states of the energy storage in the same time period are mutually exclusive; the fourth formula indicates the power-power balance relationship between the remaining power level of the energy storage and the charging and discharging power; the fifth formula indicates that the remaining power level of the energy storage must be maintained in a certain range, such as 10%~100% of the capacity; the sixth formula limits the remaining power level of the energy storage at the initial and end times; the seventh formula is the energy storage reverse power protection constraint, which constrains the energy storage from discharging when the grid-connected distribution transformer reverses power; the eighth and ninth formulas are the total charging and discharging times constraints of the energy storage in the entire scheduling cycle, the purpose of which is to limit the frequent charging and discharging of the energy storage; the tenth and eleventh formulas define the mutually exclusive constraints of the energy storage starting to charge and starting to discharge; the twelfth formula describes the logical relationship between the logical variable of the energy storage starting to charge and the charging state variable, and the thirteenth formula describes the logical relationship between the logical variable of the energy storage starting to discharge and the discharge state variable.
[0017] S103. Construct the operating constraints of the battery swap station for economic dispatch of the charging and battery swap station microgrid.
[0018] The battery swap station operation constraints include the battery swap station charging power constraints and the battery swap station charging capacity constraints, specifically: , In the formula, represents the charging power of the battery swap station connected to bus b in the tth time period, represents the maximum charging power of the battery swap station connected to bus b, They represent the power stations connected to busbar b in t , the amount of charge in the t-1 time period, is the scheduling time interval, represents the charged capacity of the battery swap station connected to bus b at the initial moment, It represents the minimum charging capacity that the battery swap station connected to bus b must meet during the entire scheduling cycle. represents the charging efficiency of the battery swap station, and T represents the time period set within the scheduling cycle.
[0019] Among the constraints, the first formula indicates that the charging power of the battery swap station does not exceed the maximum charging power; the second formula indicates the energy-power balance relationship between the charged capacity and the charging power of the battery swap station; the third formula indicates that the charged capacity of the battery swap station at the initial moment of the entire scheduling cycle is 0; the fourth formula indicates that the charged capacity of the battery swap station in each time period does not exceed the minimum charging capacity, that is, the battery swap station only needs to be fully charged; the fifth formula indicates that the cumulative charging capacity of the battery swap station in the entire scheduling cycle is not less than the minimum charging capacity.
[0020] S104, predicting the power prediction value of the uncertain source load using the trained power prediction model according to the historical power value of the uncertain source load, the historical value of the meteorological data and the predicted value of the meteorological data.
[0021] The power of uncertain sources and loads such as photovoltaic power generation, charging pile loads, and self-use loads (air conditioning, lighting, etc.) in the microgrid of the charging and swapping station is volatile and uncertain. Therefore, when formulating the economic dispatch plan, it is necessary to predict the power of uncertain sources and loads on the day before. The power curves of photovoltaic power generation, charging pile loads, and self-use loads have different characteristics, and the main correlation influencing factors of various source load powers (such as temperature, irradiance, charging price, etc.) are also different. Therefore, different prediction methods are used to predict them respectively. When implementing them, follow the following steps to predict: S1041. According to the historical power value of photovoltaic power generation, the historical value of meteorological data and the predicted value of meteorological data, the trained first power prediction model is used to predict the predicted value of photovoltaic power generation; wherein the historical power value includes the historical value of photovoltaic power generation in a certain period of time (for example, the past three months) or similar days (for example, the same period in history and dates with similar meteorological conditions); the historical value of meteorological data and the predicted value of meteorological data represent the historical value and predicted value of meteorological data that affect photovoltaic power generation, mainly including the historical value and predicted value of irradiance, temperature and precipitation; the first power prediction model is any one of the machine learning algorithms or a weighted combination of several machine learning algorithms, for example, it can be any one of the artificial intelligence algorithms such as long short-term memory network (LSTM), support vector machine (SVM), random forest regression (RF), or a weighted combination of these algorithms. When training the first power prediction model, the historical power value of photovoltaic power generation, the predicted value of power, the historical value of meteorological data and the predicted value of meteorological data are used as samples, and training is performed in a conventional manner.
[0022] S1042. According to the historical power value of the charging pile load, the charging electricity price, the historical value of meteorological data and the predicted value of meteorological data, the trained second power prediction model is used to predict the power prediction value of the charging pile load; wherein the historical power value includes the historical value of the charging pile load in a certain period of time (for example, the past three months) or similar days (for example, the same period in history and the date with similar meteorological conditions); the historical value of meteorological data and the predicted value of meteorological data represent the historical value and predicted value of meteorological data that affect the charging pile load, mainly including the historical value and predicted value of temperature and precipitation; the second power prediction model is any one of the machine learning algorithms or a weighted combination of several machine learning algorithms, for example, it can be any one of the artificial intelligence algorithms such as long short-term memory network (LSTM), support vector machine (SVM), random forest regression (RF), or a weighted combination of these algorithms. When training the second power prediction model, the historical power value, power prediction value, charging electricity price, historical value of meteorological data and predicted value of meteorological data of the charging pile load are used as samples, and training is performed in a conventional manner.
[0023] S1043. According to the historical power value of the self-use electricity load, the historical value of the meteorological data and the predicted value of the meteorological data, the trained third power prediction model is used to predict the power prediction value of the self-use electricity load. Among them, the historical power value includes the historical value of the self-use electricity load in a certain period of time (for example, the past three months) or similar days (for example, the same period in history and the date with similar meteorological conditions); the historical value of the meteorological data and the predicted value of the meteorological data represent the historical value and predicted value of the meteorological data that affect the self-use electricity load, mainly including the historical value and predicted value of the temperature; the third power prediction model is any one of the machine learning algorithms or a weighted combination of several machine learning algorithms, for example, it can be any one of the artificial intelligence algorithms such as long short-term memory network (LSTM), support vector machine (SVM), random forest regression (RF), or a weighted combination of these algorithms. When training the third power prediction model, the historical power value, power prediction value, historical value of the meteorological data and predicted value of the meteorological data of the self-use electricity load are used as samples, and training is performed in a conventional manner.
[0024] S105. Taking the grid-connected transformer operation constraints, energy storage operation constraints, and battery swap station operation constraints as model constraints, and minimizing the sum of charging cost and photovoltaic reverse transmission penalty cost as the objective function, an economic dispatch model for battery swap station microgrid is constructed.
[0025] The economic dispatch model of the battery swap station microgrid is specifically as follows: , , , , In the formula: C, They represent the total cost, charging cost and photovoltaic reverse transmission penalty cost respectively, DT represents the set of grid-connected distribution transformers, T represents the time period set within the scheduling cycle, Respectively represent t The purchase price and sales price of electricity per unit of electricity in a time period, , and Grid-connected distribution transformer i In the t Active power, off-grid power and reverse power in the time period, represents the penalty cost of photovoltaic reverse transmission per unit of electricity, is the scheduling time interval, PV represents the photovoltaic set, ES represents the energy storage set, {b} represents the busbar set connected to the battery swap station, Indicates the photovoltaic power generation k in the t Power forecast value for the time period, Respectively represent the energy storage j in the t The charging and discharging power in the time period, Indicates busbar b The connected power station is t Charging power during the time period, Indicates busbar b All connected charging stations are t The charging load forecast value for the time period, Indicates busbar b All connected self-use loads are t The load forecast value for the time period.
[0026] S106. Based on the power prediction value of the uncertain source load, solve the economic dispatch model of the battery swap station microgrid to obtain the economic dispatch optimization plan of the charging and swap station microgrid.
[0027] The economic dispatch model of the battery swap station microgrid is a mixed integer linear optimization model (MILP) in mathematics. The global optimal solution can be easily obtained by using commonly used deterministic solution algorithms such as branch and bound method, cutting plane method, Benders decomposition method, DW decomposition method, etc. These deterministic optimization solution algorithms are integrated in general solvers (such as CPLEX and GUROBI). By using programming languages (such as C++ / Java / Python / Matlab) to model and calling CPLEX and GUROBI solvers, the economic dispatch optimization plan of the charging and swap station microgrid with the best economic performance can be solved and obtained.
[0028] The second embodiment is described below.
[0029] Figure 2 Schematic diagram of the economic dispatch optimization system of the microgrid of the charging and swapping station provided by the embodiment of the present invention. The system can be implemented in software and / or hardware, including: The first constraint condition building module 201 is used to build the grid-connected distribution transformer operation constraint conditions for the economic dispatch of the microgrid of the charging and swapping station, wherein the grid-connected distribution transformer operation constraint conditions include the active power constraint of each grid-connected distribution transformer in each time period; The second constraint condition construction module 202 is used to construct the energy storage operation constraint conditions for the economic dispatch of the charging and swapping station microgrid, wherein the energy storage operation constraint conditions include energy storage charging and discharging power constraint, energy storage charging and discharging state constraint, energy storage remaining power level constraint, energy storage remaining power level and charge and discharge power between the power-power balance constraint and energy storage reverse power protection constraint; The third constraint condition building module 203 is used to build the battery swap station operation constraint conditions for the economic dispatch of the charging and swap station microgrid, wherein the battery swap station operation constraint conditions include the battery swap station charging power constraint and the battery swap station charging amount constraint; The power prediction module 204 is used to predict the power prediction value of the uncertain source load by using the trained power prediction model according to the historical power value of the uncertain source load, the historical value of the meteorological data and the predicted value of the meteorological data; The dispatch model building module 205 is used to build an economic dispatch model of the microgrid for the battery swap station by taking the operation constraints of the grid-connected transformer, the operation constraints of the energy storage and the operation constraints of the battery swap station as model constraints and taking the minimum sum of the charging cost and the photovoltaic reverse transmission penalty cost as the objective function; The dispatch optimization module 206 is used to solve the economic dispatch model of the battery swap station microgrid based on the power prediction value of the uncertain source and load, and obtain the economic dispatch optimization plan of the charging and swap station microgrid.
[0030] The first constraint condition building module builds 201 the grid-connected distribution transformer operation constraint conditions as follows: , In the formula, and Grid-connected distribution transformer i In the t Active power, off-grid power and reverse power in the time period; It is a grid-connected indicator variable, with a specific value of 0 / 1. When the value is 1, it indicates that the grid-connected distribution transformer i In the t The power direction of the time period is off-grid, otherwise it is not off-grid. It is a reverse indicator variable, specifically a 0 / 1 value. When the value is 1, it indicates that the grid-connected distribution transformer i In the t The power direction of the time period is reverse, otherwise it is not reverse; For distribution transformers i The first and second formulas indicate that at any time, the power flow direction of the grid-connected distribution transformer is unique and the power outflow direction is positive while the power outflow direction is negative; the third and fourth formulas indicate that the power flowing through the grid-connected distribution transformer does not exceed the maximum power capacity allowed by the grid-connected distribution transformer.
[0031] The energy storage operation constraint conditions constructed by the second constraint condition construction module 202 are specifically: , , , , , , , , , , , , , In the formula, They represent the charging and discharging power of energy storage j in time period t, The energy storage j is t The charging and discharging status indicator variable of the time period is 0 / 1 value. When it is on, it means it is in charging state, otherwise it means it is not in charging state. When it is in the discharging state, it indicates that it is in the discharging state; otherwise, it indicates that it is not in the discharging state; represents the maximum charge and discharge power of energy storage j, Respectively represent the energy storage j in the t , t-1 time period, the remaining power level at the initial moment, are the charging and discharging efficiencies of energy storage j, represents the capacity of energy storage j, is the scheduling time interval, are the minimum and maximum remaining power levels of energy storage j, , are the final and initial power levels of energy storage j in a scheduling cycle, respectively; The energy storage j is t Whether the time period starts charging or discharging, the status indicator variable is 0 / 1. When the value is 1, it means charging has started, otherwise it means charging has not started. When the value is 0, it means that the discharge has started, otherwise it means that the discharge has not started; Representation and energy storage j Distribution transformers connected to the same bus i In the t The indicator variable of whether the power in the time period is reversed, ES represents the energy storage set, DT j express Energy Storage j A collection of distribution transformers connected to the same busbar; T Represents a set of time periods within a scheduling cycle. They are the maximum number of charging and discharging times allowed within the scheduling cycle.
[0032] The operation constraints of the battery swap station constructed by the third constraint construction module 203 are specifically: , In the formula, represents the charging power of the battery swap station connected to bus b in the tth time period, represents the maximum charging power of the battery swap station connected to bus b, They represent the power stations connected to busbar b in t , the amount of charge in the t-1 time period, is the scheduling time interval, represents the charged capacity of the battery swap station connected to bus b at the initial moment, It represents the minimum charging capacity that the battery swap station connected to bus b must meet during the entire scheduling cycle. represents the charging efficiency of the battery swap station, and T represents the time period set within the scheduling cycle.
[0033] The power prediction module 204 specifically includes: A photovoltaic power generation power prediction unit, used to predict the power prediction value of photovoltaic power generation by using a trained first power prediction model according to the historical power value of photovoltaic power generation, the historical value of meteorological data and the predicted value of meteorological data, wherein the first power prediction model is any one of the machine learning algorithms or a weighted combination of several machine learning algorithms; A charging pile load power prediction unit, used to predict the power prediction value of the charging pile load using a trained second power prediction model according to the historical power value of the charging pile load, the charging electricity price, the historical value of meteorological data and the predicted value of meteorological data, wherein the second power prediction model is any one of the machine learning algorithms or a weighted combination of several machine learning algorithms; The self-power load power prediction unit is used to predict the power prediction value of the self-power load based on the historical power value of the self-power load, the historical value of meteorological data and the predicted value of meteorological data, using a trained third power prediction model, wherein the third power prediction model is any one of the machine learning algorithms or a weighted combination of several machine learning algorithms.
[0034] The economic dispatch model of the battery swap station microgrid constructed by the dispatch model construction module 205 is specifically: , , , , In the formula: C, They represent the total cost, charging cost and photovoltaic reverse transmission penalty cost respectively, DT represents the set of grid-connected distribution transformers, T represents the time period set within the scheduling cycle, Respectively represent t The purchase price and sales price of electricity per unit of electricity in a time period, , and Grid-connected distribution transformer i In the t Active power, off-grid power and reverse power in the time period, represents the penalty cost of photovoltaic reverse transmission per unit of electricity, is the scheduling time interval, PV represents the photovoltaic set, ES represents the energy storage set, {b} represents the busbar set connected to the battery swap station, Indicates the photovoltaic power generation k in the t Power forecast value for the time period, Respectively represent the energy storage j in the t The charging and discharging power in the time period, Indicates busbar b The connected power station is t Charging power during the time period, Indicates busbar b All connected charging stations are t The charging load forecast value for the time period, Indicates busbar b All connected self-use loads are t The load forecast value for the time period.
[0035] The system provided in the embodiment of the present invention can be used to execute the method provided in the first embodiment of the present invention, and has the corresponding functions and beneficial effects of the execution method.
[0036] It is worth noting that in the embodiment of the above system, the various units and modules included are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0037] The embodiments described above are only illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, i.e., they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, or of course, it can be implemented only by hardware, as long as the function or effect can be achieved.
[0038] The third embodiment is described below.
[0039] The embodiment of the present invention provides a computer device, which provides services for implementing the method of the first embodiment of the present invention. The device may include: a memory storing a computer executable program; a processor coupled to the memory; the processor calls the computer executable program stored in the memory to execute the steps in the method described in the first embodiment.
[0040] The memory may include computer system readable media in the form of volatile memory, such as random access memory (RAM) and / or cache memory. The device may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the memory may be used to read and write non-removable, non-volatile magnetic media (commonly referred to as a "hard drive"). A program / utility having a set (at least one) of program modules may be stored in, for example, the memory, such program modules including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The computer executable program of the program module typically performs the functions and / or methods in the embodiments described in the present invention.
[0041] The processor executes various functional applications and data processing by running the program stored in the memory, such as implementing the method provided in the first embodiment of the present invention.
[0042] The code of the computer executable program can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" language or similar programming languages.
[0043] The fourth embodiment is described below.
[0044] An embodiment of the present invention provides a storage medium including a computer executable program. When the computer executable program is executed by a computer processor, it is used to execute the method of the first embodiment.
[0045] The storage medium of the embodiment of the present invention may adopt any combination of one or more computer-readable media. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, device or device.
[0046] Of course, the storage medium including a computer executable program provided by an embodiment of the present invention, the computer executable program is not limited to the above method operations, and can also execute related operations in the method provided by any embodiment of the present invention.
[0047] The method of the present invention is simulated below. Taking a microgrid of an actual charging and swapping station as an example, Figure 3 As shown, the specific parameters are: the maximum charging and discharging power of the energy storage is 100kW, the capacity is 215kWh, the charging and discharging efficiency is 90%, the SOC range is 0.1~1, the initial SOC is 0.1, and the maximum charging and discharging times in the scheduling cycle (the next 24 hours) are 2; the maximum charging power of the battery swap station is 320kW, the charging efficiency is 90%, and the minimum charging capacity is 300kWh; the capacity of the grid-connected distribution transformer is 2500kW; the power prediction curves of photovoltaic, charging piles and self-use power loads use measured values (such as Figure 2 As shown in the figure); the purchase price is the industrial and commercial agency price, which is 1.1566 yuan / kWh during the peak period (8:00~11:00 and 17:00~22:00), 0.2815 yuan / kWh during the valley period (0:00~8:00), and 0.6726 yuan / kWh during the flat period (11:00~17:00 and 22:00~24:00); the sales price is the photovoltaic surplus power on-grid price, which is 0.391 yuan / kWh. In this example, the penalty cost of photovoltaic reverse transmission is taken as 1.0 yuan / kWh.
[0048] Design comparison examples: Example 1 and Example 2. Example 1 uses a fixed scheduling operation strategy, specifically: the energy storage is charged and discharged twice a day, and the two discharges are respectively in two peak electricity price time periods, one of the two charges is in the night electricity price valley period, and the other is in the daytime electricity price flat period. The charging and discharging are performed at the maximum charging and discharging power until the SOC reaches the maximum / minimum. The battery swap station starts charging at the maximum charging power at the night electricity price valley until it is fully charged (that is, the minimum charging power is met). Example 2 uses the economic scheduling optimization method proposed in this patent. The comparison of the scheduling strategies obtained by the two methods is shown in Table 1 and Figure 4 , Figure 5 , Figure 6 shown.
[0049] Table 1 Cost comparison of different examples Calculation example Charging cost (yuan) PV reverse transmission penalty cost (yuan) Total cost (yuan) Calculation example 1 3305.0 62.9 3367.9 Calculation example 2 3270.6 0 3270.6 pass Figure 4 , Figure 5 , Figure 6 By comparing with the results in Table 1, it can be found that: under the fixed scheduling operation strategy, the energy storage charging and discharging power and the charging power of the battery swap station are relatively fixed, and photovoltaic reverse transmission occurs in the grid-connected distribution transformer. At this time, the charging cost and photovoltaic reverse transmission cost are not optimal; in contrast, the scheduling strategy obtained by the economic scheduling method of the charging and swap station microgrid proposed in the present invention does not have photovoltaic reverse transmission, and the charging cost is also reduced compared with the fixed scheduling operation strategy. It can be seen that the fixed scheduling operation strategy is not the most economically optimal scheduling operation strategy, and it cannot adapt to the situation of uncertain source and load fluctuations. The economic scheduling optimization method proposed in the present invention can well solve the overall economic optimality and model adaptability problems of the scheduling operation strategy of the charging and swap station microgrid.
Claims
1. A method for optimizing economic dispatch of microgrids in charging and swapping stations, characterized in that: The following steps are involved: (1) Constructing the operating constraints of the grid-connected distribution transformers for economic dispatch of the microgrid of the charging and swapping station, wherein the operating constraints of the grid-connected distribution transformers include the active power constraints of each grid-connected distribution transformer in each time period; (2) Constructing energy storage operation constraints for economic dispatch of the microgrid of the charging and swapping station, wherein the energy storage operation constraints include energy storage charging and discharging power constraints, energy storage charging and discharging state constraints, energy storage remaining power level constraints, energy storage power-power balance constraints between remaining power level and charging and discharging power, and energy storage reverse power protection constraints; (3) Constructing the operation constraints of the battery swap station for the economic dispatch of the charging and swap station microgrid, wherein the operation constraints of the battery swap station include the charging power constraint and the charging capacity constraint of the battery swap station; (4) Based on the historical power values of uncertain source loads, historical values of meteorological data, and predicted values of meteorological data, the trained power prediction model is used to predict the power prediction value of uncertain source loads; (5) Taking the grid-connected transformer operation constraints, energy storage operation constraints, and battery swap station operation constraints as model constraints, and minimizing the sum of charging cost and photovoltaic reverse transmission penalty cost as the objective function, an economic dispatch model for battery swap station microgrid is constructed; (6) Based on the power prediction value of the uncertain source and load, the economic dispatch model of the battery swap station microgrid is solved to obtain the economic dispatch optimization plan of the charging and swap station microgrid.
2. The method for optimizing economic dispatch of microgrid of charging and swapping station according to claim 1, characterized in that: The specific operating constraints of the grid-connected distribution transformer in step (1) are: , In the formula, and Grid-connected distribution transformer i In the t Active power, off-grid power and reverse power in the time period; It is a grid-connected indicator variable, with a specific value of 0 / 1. When the value is 1, it indicates that the grid-connected distribution transformer i In the t The power direction of the time period is off-grid, otherwise it is not off-grid. It is a reverse indicator variable, specifically a 0 / 1 value. When the value is 1, it indicates that the grid-connected distribution transformer i In the t The power direction of the time period is reverse, otherwise it is not reverse; For distribution transformers i Maximum active power capacity.
3. The method for optimizing economic dispatch of microgrid of charging and swapping station according to claim 1, characterized in that: The energy storage operation constraints described in step (2) are specifically: , , , , , , , , , , , , , In the formula, They represent the charging and discharging power of energy storage j in time period t, The energy storage j is t The charging and discharging status indicator variable of the time period is 0 / 1 value. When it is on, it means it is in charging state, otherwise it means it is not in charging state. When it is in the discharging state, it indicates that it is in the discharging state; otherwise, it indicates that it is not in the discharging state; represents the maximum charge and discharge power of energy storage j, Respectively represent the energy storage j in the t , t-1 time period, the remaining power level at the initial moment, are the charging and discharging efficiencies of energy storage j, represents the capacity of energy storage j, is the scheduling time interval, are the minimum and maximum remaining power levels of energy storage j, , are the final and initial power levels of energy storage j in a scheduling cycle, respectively; The energy storage j is t Whether the time period starts charging or discharging, the status indicator variable is 0 / 1. When the value is 1, it means charging has started, otherwise it means charging has not started. When the value is 0, it means that the discharge has started, otherwise it means that the discharge has not started; Representation and energy storage j Distribution transformers connected to the same bus i In the t The indicator variable of whether the power in the time period is reversed, ES represents the energy storage set, DT j express Energy Storage j A collection of distribution transformers connected to the same busbar; T Represents the time period set within the scheduling cycle, They are the maximum number of charging and discharging times allowed within the scheduling cycle.
4. The method for optimizing economic dispatch of microgrid of charging and swapping station according to claim 1, characterized in that: The specific operating constraints of the battery swap station in step (3) are: , In the formula, represents the charging power of the battery swap station connected to bus b in the tth time period, represents the maximum charging power of the battery swap station connected to bus b, They represent the power stations connected to busbar b in t , the amount of charge in the t-1 time period, is the scheduling time interval, represents the charged capacity of the battery swap station connected to bus b at the initial moment, It represents the minimum charging capacity that the battery swap station connected to bus b must meet during the entire scheduling cycle. represents the charging efficiency of the battery swap station, and T represents the time period set within the scheduling cycle.
5. The method for optimizing economic dispatch of microgrid of charging and swapping station according to claim 1, characterized in that: Step (4) specifically includes: (4.1) predicting the power prediction value of photovoltaic power generation using a trained first power prediction model based on the historical power value of photovoltaic power generation, the historical value of meteorological data and the predicted value of meteorological data, wherein the first power prediction model is any one of the machine learning algorithms or a weighted combination of several machine learning algorithms; (4.2) using a trained second power prediction model to predict the power prediction value of the charging pile load based on the historical power value of the charging pile load, the charging electricity price, the historical value of meteorological data, and the predicted value of meteorological data, wherein the second power prediction model is any one of the machine learning algorithms or a weighted combination of several machine learning algorithms; (4.3) Predicting the power prediction value of the self-power load using a trained third power prediction model based on the historical power value of the self-power load, the historical value of the meteorological data, and the predicted value of the meteorological data, wherein the third power prediction model is any one of the machine learning algorithms or a weighted combination of several machine learning algorithms.
6. The method for optimizing economic dispatch of microgrid of charging and swapping station according to claim 1, characterized in that: The economic dispatch model of the battery swap station microgrid described in step (5) is specifically: , , , , In the formula: C, They represent the total cost, charging cost and photovoltaic reverse transmission penalty cost respectively, DT represents the set of grid-connected distribution transformers, T represents the time period set within the scheduling cycle, Respectively represent t The purchase price and sales price of electricity per unit of electricity in a time period, , and Grid-connected distribution transformer i In the t Active power, off-grid power and reverse power in the time period, Represents the penalty cost of photovoltaic reverse transmission per unit of electricity, is the scheduling time interval, PV represents the photovoltaic set, ES represents the energy storage set, {b} represents the busbar set connected to the battery swap station, Indicates the photovoltaic power generation k in the t Power forecast value for the time period, Respectively represent the energy storage j in the t The charging and discharging power in the time period, Indicates busbar b The connected power station is t Charging power during the time period, Indicates busbar b All connected charging stations are t The charging load forecast value for the time period, Indicates busbar b All connected self-use loads are t The load forecast value for the time period.
7. An economic dispatch optimization system for microgrids of charging and swapping stations, characterized in that: include: The first constraint condition construction module is used to construct the grid-connected distribution transformer operation constraint conditions for the economic dispatch of the microgrid of the charging and swapping station, wherein the grid-connected distribution transformer operation constraint conditions include the active power constraint of each grid-connected distribution transformer in each time period; The second constraint condition construction module is used to construct the energy storage operation constraint conditions for the economic dispatch of the charging and swapping station microgrid, wherein the energy storage operation constraint conditions include energy storage charging and discharging power constraint, energy storage charging and discharging state constraint, energy storage remaining power level constraint, energy storage remaining power level and charge and discharge power between the power-power balance constraint and energy storage reverse power protection constraint; The third constraint condition construction module is used to construct the battery swap station operation constraint conditions for the economic dispatch of the charging and swap station microgrid, wherein the battery swap station operation constraint conditions include the battery swap station charging power constraint and the battery swap station charging amount constraint; A power prediction module is used to predict the power prediction value of the uncertain source load by using a trained power prediction model according to the historical power value of the uncertain source load, the historical value of the meteorological data and the predicted value of the meteorological data; The dispatch model building module is used to build an economic dispatch model for the microgrid of the battery swap station, taking the operation constraints of the grid-connected transformer, the operation constraints of the energy storage, and the operation constraints of the battery swap station as the model constraints, and taking the minimum sum of the charging cost and the photovoltaic reverse transmission penalty cost as the objective function; The scheduling optimization module is used to solve the economic scheduling model of the microgrid of the battery swap station based on the power prediction value of the uncertain source and load, and obtain the economic scheduling optimization plan of the microgrid of the charging and swap station.
8. The charging and swapping station microgrid economic dispatch optimization system according to claim 7 is characterized in that: The operation constraints of the grid-connected distribution transformer constructed by the first constraint construction module are specifically: , In the formula, and Grid-connected distribution transformer i In the t Active power, off-grid power and reverse power in the time period; It is a grid-connected indicator variable, with a specific value of 0 / 1. When the value is 1, it indicates that the grid-connected distribution transformer i In the t The power direction of the time period is off-grid, otherwise it is not off-grid. It is a reverse indicator variable, specifically a 0 / 1 value. When the value is 1, it indicates that the grid-connected distribution transformer i In the t The power direction of the time period is reverse, otherwise it is not reverse; For distribution transformers i Maximum active power capacity.
9. The charging and swapping station microgrid economic dispatch optimization system according to claim 7, characterized in that: The energy storage operation constraints constructed by the second constraint construction module are specifically: , , , , , , , , , , , , , In the formula, They represent the charging and discharging power of energy storage j in time period t, The energy storage j is t The charging and discharging status indicator variable of the time period is 0 / 1 value. When it is on, it means it is in charging state, otherwise it means it is not in charging state. When it is in the discharging state, it indicates that it is in the discharging state; otherwise, it indicates that it is not in the discharging state; represents the maximum charge and discharge power of energy storage j, Respectively represent the energy storage j in the t , t-1 time period, the remaining power level at the initial moment, are the charging and discharging efficiencies of energy storage j, represents the capacity of energy storage j, is the scheduling time interval, are the minimum and maximum remaining power levels of energy storage j, , are the final and initial power levels of energy storage j in a scheduling cycle, respectively; The energy storage j is t Whether the time period starts charging or discharging, the status indicator variable is 0 / 1. When the value is 1, it means charging has started, otherwise it means charging has not started. When the value is 0, it means that the discharge has started, otherwise it means that the discharge has not started; Representation and energy storage j Distribution transformers connected to the same bus i In the t The indicator variable of whether the power in the time period is reversed, ES represents the energy storage set, DT j express Energy Storage j A collection of distribution transformers connected to the same busbar; T Represents the time period set within the scheduling cycle, They are the maximum number of charging and discharging times allowed within the scheduling cycle.
10. The charging and swapping station microgrid economic dispatch optimization system according to claim 7, characterized in that: The operation constraints of the battery swap station constructed by the third constraint construction module are specifically: , In the formula, represents the charging power of the battery swap station connected to bus b in the tth time period, represents the maximum charging power of the battery swap station connected to bus b, They represent the power stations connected to busbar b in t , the amount of charge in the t-1 time period, is the scheduling time interval, represents the charged capacity of the battery swap station connected to bus b at the initial moment, It represents the minimum charging capacity that the battery swap station connected to bus b must meet during the entire scheduling cycle. represents the charging efficiency of the battery swap station, and T represents the time period set within the scheduling cycle.
11. The charging and swapping station microgrid economic dispatch optimization system according to claim 7, characterized in that: The power prediction module specifically includes: A photovoltaic power generation power prediction unit, used to predict the power prediction value of photovoltaic power generation by using a trained first power prediction model according to the historical power value of photovoltaic power generation, the historical value of meteorological data and the predicted value of meteorological data, wherein the first power prediction model is any one of the machine learning algorithms or a weighted combination of several machine learning algorithms; A charging pile load power prediction unit, used to predict the power prediction value of the charging pile load using a trained second power prediction model according to the historical power value of the charging pile load, the charging electricity price, the historical value of meteorological data and the predicted value of meteorological data, wherein the second power prediction model is any one of the machine learning algorithms or a weighted combination of several machine learning algorithms; The self-power load power prediction unit is used to predict the power prediction value of the self-power load based on the historical power value of the self-power load, the historical value of meteorological data and the predicted value of meteorological data, using a trained third power prediction model, wherein the third power prediction model is any one of the machine learning algorithms or a weighted combination of several machine learning algorithms.
12. The charging and swapping station microgrid economic dispatch optimization system according to claim 7, characterized in that: The economic dispatch model of the battery swap station microgrid constructed by the dispatch model construction module is specifically: , , , , In the formula: C, They represent the total cost, charging cost and photovoltaic reverse transmission penalty cost respectively, DT represents the set of grid-connected distribution transformers, T represents the time period set within the scheduling cycle, Respectively represent t The purchase price and sales price of electricity per unit of electricity in a time period, , and Grid-connected distribution transformer i In the t Active power, off-grid power and reverse power in the time period, Represents the penalty cost of photovoltaic reverse transmission per unit of electricity, is the scheduling time interval, PV represents the photovoltaic set, ES represents the energy storage set, {b} represents the busbar set connected to the battery swap station, Indicates the photovoltaic power generation k in the t Power forecast value for the time period, Respectively represent the energy storage j in the t The charging and discharging power in the time period, Indicates busbar b The connected power station is t Charging power during the time period, Indicates busbar b All connected charging stations are t The charging load forecast value for the time period, Indicates busbar b All connected self-use loads are t The load forecast value for the time period.
13. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: The processor executes the computer program to implement the method according to any one of claims 1 to 6.
14. A computer-readable storage medium having a computer program / instruction stored thereon, characterized in that: The computer program / instructions, when executed by a processor, implement the method of any one of claims 1-6.
Citation Information
Patent Citations
Power load prediction system and prediction method
CN110751317A
CNN-LSTM load prediction-based charging station micro-grid system optimization scheduling method
CN113887858A
5G base station optical storage micro-grid system scheduling method based on multi-agent deep reinforcement learning
CN115459359A
Deep reinforcement learning method for microgrid energy scheduling under consideration of source load uncertainty
CN116247648A
Electric vehicle charging pile business expansion point selection method based on multi-objective function
CN118269730A
Cited By
Energy storage optimization scheduling method and device and electronic equipment thereof
CN121566572A
Microgrid carbon footprint scheduling method and system for port battery swap station, electronic equipment and medium
CN122000923A
Carbon footprint scheduling method and system of micro-grid of port battery swap station, electronic device and medium
CN122000923B
