Battery charging and discharging control method and device, electronic equipment and storage medium
By optimizing the charging and discharging strategy in energy storage batteries, the objective functions of ambient temperature, charging and discharging power and cycle times are used to extend the battery life, solving the problem of battery life attenuation in the microgrid and reducing operation and maintenance costs.
Patent Information
- Application Number
- CN202411309888.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-19
- Publication Date
- 2024-11-08
AI Technical Summary
The rapid attenuation of battery life in energy storage systems leads to an increase in the operation and maintenance costs of microgrids, affecting the overall operating efficiency of the system.
Based on the ambient temperature, charge and discharge power and charge and discharge cycle times of the energy storage battery, the objective function is established to obtain the optimal charge and discharge power and the optimal charge and discharge cycle times, and the particle swarm algorithm is solved to reduce daily operating costs and extend battery life.
By optimizing the charging and discharging strategy, it extends the battery life and reduces the operating costs of energy storage batteries, thereby reducing the overall operation and maintenance costs of the microgrid system.
Smart Images

Figure CN118920550A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of battery technology, and in particular to a battery charging and discharging control method, device, electronic equipment and storage medium. Background Art
[0002] As an important component of microgrids, energy storage systems provide solutions for coordinating energy supply and demand in microgrids. However, the rapid decay of battery life in energy storage systems will seriously affect the operation and maintenance costs of batteries, thereby affecting the overall operating costs of microgrid systems. In order to reduce the overall operating costs of microgrids, a charge and discharge control solution that can extend battery life is urgently needed. Summary of the invention
[0003] The embodiments of the present invention provide a battery charging and discharging control method, device, electronic device and storage medium, which can extend the life of energy storage batteries in a microgrid system and reduce the operating cost of the microgrid system.
[0004] In a first aspect, an embodiment of the present invention provides a battery charge and discharge control method, comprising:
[0005] Based on the ambient temperature, charge and discharge power and charge and discharge cycle number of the energy storage battery in the microgrid system, an objective function is established to obtain the optimal charge and discharge power and optimal charge and discharge cycle number of the energy storage battery in each scheduling period so as to minimize the daily operation cost of the microgrid system;
[0006] Solving the objective function to obtain the optimal charge and discharge power and the optimal number of charge and discharge cycles corresponding to each scheduling period; and
[0007] The energy storage battery is controlled to charge and discharge based on the corresponding optimal charge and discharge power and the corresponding optimal number of charge and discharge cycles in each scheduling period.
[0008] In a second aspect, an embodiment of the present invention provides a battery charge and discharge control device, comprising:
[0009] An objective function establishment module is used to establish an objective function for obtaining the optimal charge and discharge power and the optimal charge and discharge cycle number of the energy storage battery in each scheduling period based on the ambient temperature, charge and discharge power and charge and discharge cycle number of the energy storage battery in the microgrid system, so as to minimize the daily operation cost of the microgrid system;
[0010] An objective function solving module, used to solve the objective function to obtain the optimal charge and discharge power and the optimal charge and discharge cycle number corresponding to each scheduling period; and
[0011] The charging and discharging module is used to control the energy storage battery to charge and discharge based on the corresponding optimal charging and discharging power and the corresponding optimal number of charging and discharging cycles in each scheduling period.
[0012] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a battery charge and discharge control method as described in any one of the embodiments of the present invention is implemented.
[0013] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a battery charge and discharge control method as described in any one of the embodiments of the present invention.
[0014] A battery charge and discharge control method, device, electronic device and storage medium provided by the embodiment of the present invention establish an objective function with the goal of obtaining the optimal charge and discharge power and the optimal charge and discharge cycle number of the energy storage battery in each scheduling period, so as to minimize the daily operation cost of the microgrid system, based on the factors of ambient temperature, charge and discharge power and charge and discharge cycle number that affect the life of the energy storage battery, and solve the objective function to obtain the optimal charge and discharge power and the optimal charge and discharge cycle number corresponding to each scheduling period, and obtain the optimal charge and discharge power and the optimal charge and discharge cycle number that are beneficial to prolonging the battery life in each scheduling period, and then control the energy storage battery to charge and discharge based on the corresponding optimal charge and discharge power and the corresponding optimal charge and discharge cycle number in each scheduling period, so that in the process of charging and discharging the battery in each scheduling period, the charge and discharge power and the charge and discharge cycle number that are beneficial to prolonging the battery life can be used, thereby reducing the operation cost of the energy storage battery by prolonging the battery life, and further reducing the overall operation cost of the microgrid system. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solution of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0016] Figure 1 is a flow chart of a battery charging and discharging control method provided by an embodiment of the present invention;
[0017] Figure 2 is another flow chart of the battery charging and discharging control method provided by an embodiment of the present invention;
[0018] Figure 3is a structural schematic diagram of a battery charge and discharge control device provided by an embodiment of the present invention;
[0019] Figure 4 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0020] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0021] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0022] Figure 1 A flowchart of a battery charge and discharge control method provided in an embodiment of the present invention is provided. This embodiment is applicable to energy storage batteries in a microgrid system. The method can be executed by a battery charge and discharge control device provided in an embodiment of the present invention, and the device can be implemented in software and / or hardware. In a specific embodiment, the device can be integrated into an electronic device, such as a computer, a server, etc. The following embodiments will be described by taking the device integrated into an electronic device as an example. Reference Figure 1 , the method may specifically include the following steps:
[0023] Step 101, based on the ambient temperature, charge and discharge power, and charge and discharge cycle number of the energy storage battery in the microgrid system, establish an objective function with the goal of obtaining the optimal charge and discharge power and optimal charge and discharge cycle number of the energy storage battery in each scheduling period, so as to minimize the daily operation cost of the microgrid system. This step establishes an objective function that minimizes the daily operation cost of the microgrid system based on the factors that affect the life of the energy storage battery, such as the ambient temperature, charge and discharge power, and charge and discharge cycle number, which can help solve the objective function to obtain the optimal charge and discharge power and optimal charge and discharge cycle number that are conducive to extending the battery life in each scheduling period.
[0024] Specifically, a microgrid system is a small, integrated power system that can operate independently of the central power grid or be connected to and work in conjunction with the central power grid. A microgrid system typically includes distributed power sources, energy storage devices, energy conversion devices, and related load and monitoring protection systems. These components work together to meet the power demand in a specific area while improving energy efficiency and system reliability. The microgrid system is proposed to achieve flexible and efficient application of distributed power sources and solve the problem of grid connection of a large number of distributed power sources in various forms. By developing and extending the microgrid system, it can fully promote the large-scale access of distributed power sources and renewable energy, and realize highly reliable supply of multiple energy forms to loads. It is an effective way to realize an active distribution network and transition from traditional power grids to smart grids.
[0025] Specifically, the ambient temperature, charge and discharge power, and number of charge and discharge cycles of the energy storage battery may be understood as the ambient temperature, charge and discharge power, and number of charge and discharge cycles of the energy storage battery in each scheduling period.
[0026] Specifically, the above-mentioned dispatching cycle can be understood as providing a fixed dispatching plan based on typical various types of micro-power sources and load forecast data, for example, dispatching once every 1 hour.
[0027] Optionally, the process of establishing the objective function based on the ambient temperature, charge and discharge power and charge and discharge cycle number of the energy storage battery in the microgrid system to obtain the optimal charge and discharge power and the optimal charge and discharge cycle number of the energy storage battery in each scheduling period so as to minimize the daily operating cost of the microgrid system includes: establishing a daily operating cost equation of the energy storage battery based on the ambient temperature, charge and discharge power and charge and discharge cycle number of the energy storage battery, and establishing the above objective function based on the daily operating cost equation of the energy storage battery.
[0028] Step 102, solving the objective function to obtain the optimal charge and discharge power and the optimal charge and discharge cycle number corresponding to each scheduling period. This step can solve the objective function to obtain the optimal charge and discharge power and the optimal charge and discharge cycle number that are conducive to extending the battery life in each scheduling period.
[0029] Optionally, the process of solving the objective function to obtain the optimal charge and discharge power and the optimal number of charge and discharge cycles corresponding to each scheduling period includes:
[0030] Determine the energy storage battery operation constraints and microgrid operation constraints corresponding to each scheduling cycle, and solve the objective function according to the energy storage battery operation constraints and microgrid operation constraints to obtain the optimal charge and discharge power and the optimal number of charge and discharge cycles.
[0031] Step 103, control the energy storage battery to charge and discharge based on the corresponding optimal charge and discharge power and the corresponding optimal charge and discharge cycle number in each scheduling period. This step is based on steps 101 to 103, and based on the factors that affect the life of the energy storage battery, such as the ambient temperature, charge and discharge power, and charge and discharge cycle number, establishes an objective function with the goal of obtaining the optimal charge and discharge power and optimal charge and discharge cycle number of the energy storage battery in each scheduling period, so as to minimize the daily operation cost of the microgrid system, and solves the objective function to obtain the optimal charge and discharge power and optimal charge and discharge cycle number corresponding to each scheduling period, and obtains the optimal charge and discharge power and optimal charge and discharge cycle number that are conducive to extending the battery life in each scheduling period, and then controls the energy storage battery to charge and discharge based on the corresponding optimal charge and discharge power and the corresponding optimal charge and discharge cycle number in each scheduling period, so that in the process of charging and discharging the battery in each scheduling period, the charge and discharge power and charge and discharge cycle number that are conducive to extending the battery life can be adopted, thereby reducing the operation cost of the energy storage battery by extending the battery life, and then reducing the overall operation cost of the microgrid system.
[0032] The following further describes a battery charging and discharging control method provided by another embodiment of the present invention. Figure 2 As shown, Figure 1 Step 101 in the method may include the following steps:
[0033] Step 1011, a battery temperature equation is established based on the ambient temperature and the charge and discharge power, and a battery daily fuel cost equation is established based on the battery temperature equation.
[0034] Optionally, the process of establishing the battery temperature equation based on the ambient temperature and the charge and discharge power includes: establishing the battery temperature equation based on the ambient temperature, the charge and discharge power, and the battery thermal resistance and self-heating power of the energy storage battery.
[0035] Optionally, the battery temperature equation established based on the ambient temperature, the charge and discharge power, and the battery thermal resistance and self-heating power of the energy storage battery can be expressed as:
[0036]
[0037] Among them, T bis the battery temperature; T a is the ambient temperature; ΔT is the temperature rise caused by the battery's self-heating; Z th is the battery thermal resistance; P H is the self-heating power of the battery; a is the self-heating proportional factor, which represents the ratio of the battery self-heating power to the battery charging power; P bat It is the battery charging and discharging power.
[0038] Optionally, the process of establishing the battery daily fuel cost equation based on the battery temperature equation includes: establishing the battery daily fuel cost equation based on the battery temperature equation, electricity purchase and sale prices, and the charging efficiency and charging power of the energy storage battery.
[0039] Optionally, the battery daily fuel cost equation established based on the battery temperature equation, the price of electricity purchase and sale, the charging efficiency and charging power of the energy storage battery can be expressed as:
[0040]
[0041] Among them, C COE is the daily fuel cost of the battery, c buy is the electricity purchase and sale price, η cha is the charging efficiency, P cha is the charging power, T b is the battery temperature.
[0042] Step 1012, establishing a battery daily operation and maintenance cost equation based on the number of charge and discharge cycles.
[0043] Optionally, the process of establishing the battery daily operation and maintenance cost equation based on the number of charge and discharge cycles includes: establishing an initial operation and maintenance cost equation based on the operation and maintenance cost per kilowatt-hour of the energy storage battery, the discount rate and the battery life; and performing piecewise linearization processing on the initial operation and maintenance cost equation based on the discharge depth segmentation, the daily average temperature of the battery and the number of charge and discharge cycles to obtain the battery daily operation and maintenance cost equation.
[0044] Optionally, the initial operation and maintenance cost equation established based on the energy storage battery's per-kilowatt-hour operation and maintenance cost, discount rate, and battery life can be expressed as:
[0045]
[0046] Among them, C O&M is the daily operation and maintenance cost of the battery, C lkWh is the battery operation and maintenance cost per kilowatt-hour; r is the discount rate, L b For battery life.
[0047] Optionally, the battery daily operation and maintenance cost equation obtained by performing piecewise linearization processing on the initial operation and maintenance cost equation based on the discharge depth segmentation, the battery daily average temperature and the number of charge and discharge cycles can be expressed as:
[0048]
[0049] Among them, g d (k) is the segmentation mark at time k, which is 1 when the discharge depth is in the dth segment, otherwise it is 0; a d and k d is a piecewise linear constant, reflecting the impact of different discharge depths on battery operation and maintenance costs; D is the number of linear segments; is the daily average temperature of the battery; T Characterizing the impact of the average daily battery temperature on operation and maintenance costs, based on factory experimental data, it can be approximately considered that:
[0050]
[0051] Specifically, since the operation and maintenance cost and the number of cycles are approximately linearly related when the discharge depth and temperature are constant, the above piecewise linearization processing is performed on the operation and maintenance cost.
[0052] Specifically, the battery discharge depth segmentation can be determined based on the following formula:
[0053]
[0054] in, and d' DOD are the upper and lower limits of the discharge depth of segment d, d' DOD,d (k) represents the discharge depth at time k.
[0055] Step 1013: Establish a battery daily operation cost equation based on the battery daily operation and maintenance cost equation and the battery daily fuel cost equation.
[0056] Optionally, the above battery daily operating cost equation can be expressed as:
[0057] C bat =C COE +C O&M , (7)
[0058] Among them, C bat represents the daily operating cost of the battery; C COE represents the daily fuel cost of the battery; C O&M Represents the daily operation and maintenance cost of the battery.
[0059] Step 1014: Establish an objective function based on the battery daily operating cost equation.
[0060] Optionally, the process of establishing the objective function based on the battery daily operating cost equation includes: establishing the objective function based on the electricity purchase and sales price, electricity purchase and sales power, the unit power operating cost of the distributed power source, the active power processing of the distributed power source and the battery daily operating cost equation.
[0061] Optionally, the above-mentioned distributed power source includes a wind turbine power source and / or a photovoltaic power source.
[0062] Optionally, the objective function established based on the above electricity purchase and sales price, electricity purchase and sales power, distributed power unit power operation cost, distributed power active power processing and battery daily operation cost equation can be expressed as:
[0063]
[0064] Where: P is the price of electricity purchase and sale; buy,sell (k) is the power of electricity purchased and sold; N is the number of dispatch cycles; is the operating cost per unit power of wind turbine and photovoltaic; is the active power output of wind turbine and photovoltaic, C bat (k) is the daily operating cost of the battery.
[0065] Optionally, the aforementioned process of solving the objective function to obtain the optimal charge and discharge power and the optimal number of charge and discharge cycles corresponding to each scheduling period includes: according to the charge and discharge constraints, energy continuity constraints and upper and lower limit constraints of the state of charge of the energy storage battery, as well as the active power balance constraints and upper and lower limit constraints of the exchange power of the microgrid system, a particle swarm algorithm is used to solve the objective function to obtain the optimal charge and discharge power and the optimal number of charge and discharge cycles corresponding to each scheduling period.
[0066] Specifically, the battery must comply with certain battery operation constraints during the charging and discharging process, including charging and discharging constraints, energy continuity constraints, and upper and lower limit constraints on the state of charge. The above-mentioned charging and discharging constraints, energy continuity constraints, and upper and lower limit constraints on the state of charge can be determined based on existing technologies and can be specifically expressed as:
[0067] Charge and discharge constraints:
[0068]
[0069] Among them, P bat,max P is the upper limit of battery charge and discharge power; dis (k) is the battery discharge power; P bat (k) is the battery charging power.
[0070] Energy continuity constraints:
[0071]
[0072] Among them, d DOD (k) is the discharge depth of the battery, P bat (k) is the battery charging power, s SOC (k) is the real-time state of charge of the battery, which is determined by the state of charge at the previous moment and the charge and discharge behavior at the current moment. Δt is the scheduling period, S max is the nominal capacity of the battery.
[0073] The upper and lower limit constraints of the state of charge are:
[0074] s SOC,min ≤s SOC (k)≤s SOC,max , (11)
[0075] Among them, s SOC,min is the minimum state of charge of the battery, s SOC,max is the minimum state of charge of the battery, s SOC (k) is the state of charge of the battery.
[0076] Specifically, the operation process of the microgrid must comply with certain system operation constraints, including active power balance constraints and upper and lower limit constraints on exchange power.
[0077] Specifically, the above active power balance constraint condition and the upper and lower limit constraint conditions of the exchange power can be determined based on the existing technology, and can be specifically expressed as follows:
[0078] Active power balance constraints:
[0079] P net (k)+P wind (k)+P PV (k) = P load (k)+P cha (k) / η cha (T b )+P dis (k)η dis (T b ), (12)
[0080] Among them, P net (k) is the exchange power with the main network; P load (k) is the load size; η cha (T b ) and η dis (T b ) corresponds to the battery charging and discharging efficiency.
[0081] Switching power upper and lower limit constraints:
[0082]
[0083] Among them, P net (k) is the exchange power, P net,max is the maximum switching power, P buy (k) and P sell (k) corresponds to the power purchased and sold from the microgrid to the main grid.
[0084] Figure 3 is a structural diagram of a battery charge and discharge control device provided by an embodiment of the present invention, and the device is suitable for executing a battery charge and discharge control method provided by an embodiment of the present invention. Figure 3 As shown, the device may specifically include:
[0085] The objective function establishment module 301 is used to establish an objective function that minimizes the daily operation cost of the microgrid system by obtaining the optimal charge and discharge power and the optimal charge and discharge cycle number of the energy storage battery in each scheduling period based on the ambient temperature, charge and discharge power, and charge and discharge cycle number of the energy storage battery in the microgrid system. This module can establish an objective function that minimizes the daily operation cost of the microgrid system based on the factors that affect the life of the energy storage battery, such as the ambient temperature, charge and discharge power, and charge and discharge cycle number, and can help solve the objective function to obtain the optimal charge and discharge power and the optimal charge and discharge cycle number that are conducive to extending the battery life in each scheduling period.
[0086] Optionally, the objective function establishment module 301 can be specifically used to establish a battery temperature equation based on the ambient temperature and the charge and discharge power, and to establish a battery daily fuel cost equation based on the battery temperature equation;
[0087] Establish a battery daily operation and maintenance cost equation based on the number of charge and discharge cycles;
[0088] Establishing a battery daily operation cost equation based on the battery daily operation and maintenance cost equation and the battery daily fuel cost equation; and
[0089] The objective function is established based on the battery daily operating cost equation.
[0090] Optionally, the objective function establishing module 301 can be specifically used to establish a battery temperature equation based on the ambient temperature, the charge and discharge power, and the battery thermal resistance and self-heating power of the energy storage battery.
[0091] Optionally, the objective function establishing module 301 can be specifically used to establish a battery daily fuel cost equation based on the battery temperature equation, the price of electricity purchase and sale, and the charging efficiency and charging power of the energy storage battery.
[0092] Optionally, the objective function establishment module 301 can be specifically used to establish an initial operation and maintenance cost equation based on the operation and maintenance cost per kilowatt-hour of the energy storage battery, the discount rate and the battery life; and
[0093] The initial operation and maintenance cost equation is piecewise linearized based on the discharge depth segmentation, the daily average battery temperature and the number of charge and discharge cycles to obtain the battery daily operation and maintenance cost equation.
[0094] Optionally, the objective function establishing module 301 can be specifically used to establish an objective function based on electricity purchase and sales price, electricity purchase and sales power, distributed power unit power operating cost, distributed power source active power processing and battery daily operating cost equation.
[0095] The objective function solving module 302 is used to solve the objective function to obtain the optimal charge and discharge power and the optimal charge and discharge cycle number corresponding to each scheduling period. This module can solve the objective function to obtain the optimal charge and discharge power and the optimal charge and discharge cycle number that are conducive to extending the battery life in each scheduling period.
[0096] Optionally, the objective function solving module 302 can be specifically used to solve the objective function using a particle swarm algorithm according to the charging and discharging constraints, energy continuity constraints, and upper and lower limit constraints of the state of charge of the energy storage battery, as well as the active power balance constraints and upper and lower limit constraints of the exchange power of the microgrid system, so as to obtain the optimal charging and discharging power and the optimal number of charging and discharging cycles corresponding to each scheduling period.
[0097] The charging and discharging module 303 is used to control the energy storage battery to charge and discharge based on the corresponding optimal charging and discharging power and the corresponding optimal charging and discharging cycle number in each scheduling period. This module is a collection of modules 301 and 302. Based on the factors that affect the life of the energy storage battery, such as the ambient temperature, charging and discharging power, and charging and discharging cycle number, an objective function is established to obtain the optimal charging and discharging power and the optimal charging and discharging cycle number of the energy storage battery in each scheduling period, so as to minimize the daily operation cost of the microgrid system, and the objective function is solved to obtain the optimal charging and discharging power and the optimal charging and discharging cycle number corresponding to each scheduling period, and the optimal charging and discharging power and the optimal charging and discharging cycle number that are conducive to extending the battery life in each scheduling period are obtained. Then, the energy storage battery is controlled to charge and discharge based on the corresponding optimal charging and discharging power and the corresponding optimal charging and discharging cycle number in each scheduling period, and the charging and discharging power and the charging and discharging cycle number that are conducive to extending the battery life can be used in the process of charging and discharging the battery in each scheduling period, thereby reducing the operation cost of the energy storage battery by extending the battery life, and then reducing the overall operation cost of the microgrid system.
[0098] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules based on needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the functional modules described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0099] An embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the battery charge and discharge control method provided in any of the above embodiments is implemented.
[0100] An embodiment of the present invention further provides a computer-readable medium on which a computer program is stored. When the program is executed by a processor, the battery charge and discharge control method provided in any of the above embodiments is implemented.
[0101] The embodiment of the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements the battery charge and discharge control method as described in any one of the embodiments of the present invention.
[0102] Reference below Figure 4 , which shows a schematic diagram of the structure of a computer system 400 of an electronic device suitable for implementing an embodiment of the present invention. Figure 4 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0103] like Figure 4 As shown, the computer system 400 includes a central processing unit (CPU) 401, which can perform various appropriate actions and processes based on a program stored in a read-only memory (ROM) 402 or a program loaded from a storage part 408 into a random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the system 400 are also stored. The CPU 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0104] The following components are connected to the I / O interface 405: an input section 406 including a keyboard, a mouse, etc.; an output section 407 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 408 including a hard disk, etc.; and a communication section 409 including a network interface card such as a LAN card, a modem, etc. The communication section 409 performs communication processing via a network such as the Internet. A drive 410 is also connected to the I / O interface 405 as needed. A removable medium 411, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 410 as needed so that a computer program read therefrom is installed into the storage section 408 as needed.
[0105] In particular, based on the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 409, and / or installed from the removable medium 411. When the computer program is executed by the central processing unit (CPU) 401, the above-mentioned functions defined in the system of the present invention are executed.
[0106] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. 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 of the above. More specific examples of computer-readable storage media may include, but are not limited to: 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 of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0107] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0108] The modules and / or units involved in the embodiments of the present invention may be implemented in software or hardware. The modules and / or units described may also be provided in a processor, for example, may be described as follows: a processor includes an objective function establishment module, an objective function solution module, and a charge and discharge module. The names of these modules do not, in some cases, constitute limitations on the modules themselves.
[0109] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device implements: based on the ambient temperature, charge and discharge power, and charge and discharge cycle number of the energy storage battery in the microgrid system, establish an objective function with the goal of obtaining the optimal charge and discharge power and optimal charge and discharge cycle number of the energy storage battery in each scheduling period, so as to minimize the daily operation cost of the microgrid system; solve the objective function to obtain the optimal charge and discharge power and optimal charge and discharge cycle number corresponding to each scheduling period; and control the energy storage battery to charge and discharge based on the corresponding optimal charge and discharge power and the corresponding optimal charge and discharge cycle number in each scheduling period.
[0110] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A battery charging and discharging control method, It is characterized in that include: Based on the ambient temperature, charge and discharge power and charge and discharge cycle number of the energy storage battery in the microgrid system, an objective function is established to obtain the optimal charge and discharge power and optimal charge and discharge cycle number of the energy storage battery in each scheduling period so as to minimize the daily operation cost of the microgrid system; Solving the objective function to obtain the optimal charge and discharge power and the optimal number of charge and discharge cycles corresponding to each scheduling period; as well as The energy storage battery is controlled to charge and discharge based on the corresponding optimal charge and discharge power and the corresponding optimal number of charge and discharge cycles in each scheduling period.
2. The battery charge and discharge control method according to claim 1, It is characterized in that The objective function of obtaining the optimal charge and discharge power and the optimal charge and discharge cycle number of the energy storage battery in each scheduling period and minimizing the daily operation cost of the microgrid system is established based on the ambient temperature, charge and discharge power and charge and discharge cycle number of the energy storage battery in the microgrid system, including: Establishing a battery temperature equation based on the ambient temperature and the charge and discharge power, and establishing a battery daily fuel cost equation based on the battery temperature equation; Establishing a battery daily operation and maintenance cost equation based on the number of charge and discharge cycles; Establishing a battery daily operation cost equation based on the battery daily operation and maintenance cost equation and the battery daily fuel cost equation; and The objective function is established based on the battery daily operating cost equation.
3. The battery charge and discharge control method according to claim 2, It is characterized in that The establishing of the battery temperature equation based on the ambient temperature and the charge and discharge power includes: The battery temperature equation is established based on the ambient temperature, the charge and discharge power, and the battery thermal resistance and self-heating power of the energy storage battery.
4. The battery charge and discharge control method according to claim 2, It is characterized in that The establishing of a battery daily fuel cost equation based on the battery temperature equation comprises: The battery daily fuel cost equation is established based on the battery temperature equation, the price of electricity purchase and sale, the charging efficiency and charging power of the energy storage battery.
5. The battery charge and discharge control method according to claim 2, It is characterized in that The establishing of a battery daily operation and maintenance cost equation based on the number of charge and discharge cycles includes: Establishing an initial operation and maintenance cost equation based on the operation and maintenance cost per kilowatt-hour of the energy storage battery, the discount rate and the battery life; and The initial operation and maintenance cost equation is piecewise linearized based on the discharge depth segmentation, the daily average temperature of the battery and the number of charge and discharge cycles to obtain the daily operation and maintenance cost equation of the battery.
6. The battery charge and discharge control method according to claim 2, It is characterized in that The objective function is established based on the battery daily operation cost equation, including: The objective function is established based on the electricity purchase and sale price, the electricity purchase and sale power, the unit power operation cost of the distributed power supply, the active power processing of the distributed power supply and the battery daily operation cost equation.
7. The battery charge and discharge control method according to claim 6, It is characterized in that Solving the objective function to obtain the optimal charge and discharge power and the optimal number of charge and discharge cycles corresponding to each scheduling period includes: According to the charging and discharging constraints, energy continuity constraints, and upper and lower limit constraints of the state of charge of the energy storage battery, as well as the active power balance constraints and upper and lower limit constraints of the exchange power of the microgrid system, a particle swarm algorithm is used to solve the objective function to obtain the optimal charging and discharging power and the optimal number of charging and discharging cycles corresponding to each scheduling period.
8. A battery charge and discharge control device, It is characterized in that include: An objective function establishment module is used to establish an objective function for obtaining the optimal charge and discharge power and the optimal charge and discharge cycle number of the energy storage battery in each scheduling period based on the ambient temperature, charge and discharge power and charge and discharge cycle number of the energy storage battery in the microgrid system, so as to minimize the daily operation cost of the microgrid system; An objective function solving module, used to solve the objective function to obtain the optimal charge and discharge power and the optimal charge and discharge cycle number corresponding to each scheduling period; as well as The charging and discharging module is used to control the energy storage battery to charge and discharge based on the corresponding optimal charging and discharging power and the corresponding optimal number of charging and discharging cycles in each scheduling period.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the battery charging and discharging control method as described in any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the battery charge and discharge control method as claimed in any one of claims 1 to 7 is implemented.
