Microgrid energy storage energy management method, device, storage medium and terminal equipment
Through the improved particle swarm algorithm and dynamic electricity price management, the problem of difficulty in ensuring the safety and consistency of lithium-ion batteries in energy storage power stations is solved, and safe and efficient management of energy storage batteries is achieved.
Patent Information
- Application Number
- CN202410567604.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-09
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-05-09
AI Technical Summary
The energy density of lithium-ion batteries in large-scale energy storage power stations is high, but there are safety risks. As the number and cycles of charge and discharge increase, battery consistency is difficult to ensure, causing the safety and optimal regulation of energy storage power stations to become a challenge for the development of energy storage. .
An improved particle swarm algorithm is used to solve the charging and discharging scheduling model of energy storage batteries, and an objective function is constructed based on dynamic electricity prices to dynamically determine the safety and health status of the energy storage unit, optimally perform charging and discharging operations, and ensure the safety of the battery. and consistency.
By dynamically managing the charge and discharge of energy storage batteries, the safety and consistency of the batteries are effectively ensured, and the overall efficiency and reliability of the energy storage system are improved.
Smart Images

Figure CN118157186B
Abstract
Description
Technical Field
[0001] The present application relates to the field of microgrid dispatching and control technology, and specifically to a microgrid energy storage management method, a microgrid energy storage management device, a machine-readable storage medium and a terminal device. Background Art
[0002] With the development of new energy, the existing distribution network has gradually developed from a passive network to an active network. Among them, electrochemical energy storage is the main growth subject at present, and it has a strong regulation ability. Microgrid refers to a small power generation and distribution system composed of distributed power sources, energy storage devices, energy conversion devices, loads, monitoring and protection devices, etc. Microgrid can realize the flexible and efficient application of distributed power sources, solve the problem of large-scale and diverse distributed power sources connected to the grid, and realize highly reliable supply of various energy forms to loads. It is an effective way to realize active distribution networks and make the transition from traditional power grids to smart grids. Among them, the energy management system plays a vital role in microgrids. It not only ensures the efficient use of renewable energy in the system, but also optimizes the scheduling and control of various distributed energy sources and loads in the microgrid. Among them, energy storage devices, as a key part of the energy management system, can be used to smooth power generation fluctuations and reduce electricity costs. However, in large-scale energy storage power stations, lithium-ion batteries are especially used, which have a high energy density and certain safety risks. At the same time, due to the limitations of manufacturing processes, as the number and cycle of energy storage battery charging and discharging increases, the consistency of the battery is difficult to guarantee. Therefore, with the expansion of energy storage applications, the safety and optimal regulation of energy storage power stations, especially large-scale battery energy storage power stations, have become new risks and challenges facing the development of energy storage. Summary of the invention
[0003] The purpose of the embodiments of the present application is to provide a microgrid energy storage management method, device, storage medium and terminal device to solve the above-mentioned problems.
[0004] In order to achieve the above objectives, the present application provides a first aspect of a microgrid energy storage management method, comprising:
[0005] In response to the energy dispatch instruction, a first target dispatch power is determined, and a pre-established charge and discharge dispatch model is called, wherein the charge and discharge dispatch model includes an objective function and constraint conditions with the lowest cost as the objective, wherein the objective function is constructed based on at least the discharge income and charging cost of each energy storage unit under the dynamic electricity price in different time periods;
[0006] Acquire operating parameters of each energy storage unit, determine the safety state value and charge-discharge judgment value of each energy storage unit based on the operating parameters, and determine the energy storage unit that meets the safety state threshold, charge-discharge judgment value and the first target dispatching power among the energy storage units as the target energy storage unit;
[0007] The charging and discharging scheduling model is solved by an improved particle swarm algorithm to obtain an optimal solution that satisfies the objective function and the constraint conditions, wherein the optimal solution includes the charging and discharging state and the charging and discharging power of each target energy storage unit in different time periods;
[0008] According to the charging and discharging state and charging and discharging power of each target energy storage unit in different time periods, the corresponding target energy storage unit is controlled to be charged and discharged with the corresponding charging and discharging power in the corresponding time period.
[0009] Optionally, the discharge benefit of each target energy storage unit is the difference between the total discharge benefit of each target energy storage unit in each discharge period and the total discharge cost of each target energy storage unit in each discharge period;
[0010] The charging cost of each target energy storage unit is the sum of the total charging cost of each target energy storage unit in each charging period and the total charging expenditure of each target energy storage unit in each charging period;
[0011] The total discharge income of each target energy storage unit in each discharge period is obtained based on the discharge power of each target energy storage unit in the current discharge period, the current discharge period, the conversion efficiency of the discharge power and the time-of-use electricity price in the current discharge period;
[0012] The total discharge cost of each target energy storage unit in each discharge period is obtained based on the discharge power of each target energy storage unit in the current discharge period, the current discharge period, the rated capacity of the target energy storage unit, the current number of cycles of the target energy storage unit, the current discharge depth of the target energy storage unit and the investment cost of the target energy storage unit, wherein the conversion efficiency of the discharge power includes at least the conversion efficiency of the first energy conversion device between the energy storage unit and the DC bus, and the conversion efficiency of the second energy conversion device between the DC bus and the AC bus.
[0013] Optionally, the total charging cost of each target energy storage unit in each charging period is obtained based on the charging power of each target energy storage unit in the current discharge period, the current charging period, the rated capacity of the target energy storage unit, the current number of cycles of the target energy storage unit, the current charging depth of the target energy storage unit and the investment cost of the target energy storage unit;
[0014] The total charging expenditure of each target energy storage unit in each charging period is obtained based on the charging power of each target energy storage unit in the current charging period, the current charging period, the conversion efficiency of the charging power and the time-of-use electricity price of the current charging period, wherein the conversion efficiency of the charging power includes at least the conversion efficiency of the first energy conversion device and the conversion efficiency of the second energy conversion device.
[0015] Optionally, the objective function also includes carbon trading income, and the objective function is as follows:
[0016] C pro =C disc -C char +C carbon
[0017] Among them, C pro is the total revenue, C disc is the discharge benefit of each target energy storage unit, C char is the charging cost of each target energy storage unit, C carbon Carbon trading income is obtained based on the carbon trading price and the difference between the total CO2 emissions and the carbon emission quota;
[0018] Among them, the total CO2 emissions are obtained based on the sum of the CO2 emissions of each energy device in the microgrid. The CO2 emissions of each energy device are obtained by multiplying the sum of the first carbon emission coefficient and the second carbon emission coefficient of the current energy device by the operating power of the current energy device. The first carbon emission coefficient is the carbon emission coefficient of the current energy device in the transportation stage, and the second carbon emission coefficient is the carbon emission coefficient of the current energy device in the operation stage.
[0019] Optionally, the operating parameters of the energy storage unit include:
[0020] At least one of the voltage, temperature, internal resistance and mechanical deformation of the energy storage unit;
[0021] Determining the safety status value of each energy storage unit based on the operating parameters includes:
[0022] Determining a rated state value of a current operating parameter and a safety threshold of the current operating parameter, wherein the safety threshold of the current operating parameter is greater than the rated state value thereof;
[0023] Determine the safety state value of the current operating parameter according to the difference between the current value of the current operating parameter and its rated state value, and the difference between the safety threshold of the current operating parameter and its rated state value;
[0024] The safety status values of all operating parameters are multiplied to obtain the safety status value of the current energy storage unit.
[0025] Optionally, determining the safety state value of the current operating parameter according to the difference between the current value of the current operating parameter and its rated state value, and the difference between the safety threshold of the current operating parameter and its rated state value, includes:
[0026] The safety status value of the current operating parameters is calculated using the following formula:
[0027]
[0028] Among them, x rat,w is the rated state value of the wth operating parameter; x sec,w is the safety threshold of the wth operating parameter, x cur,w is the current value of the wth operating parameter.
[0029] Optionally, the operating parameters of the energy storage unit also include:
[0030] The remaining number of charge and discharge cycles and the state of charge value of the energy storage unit;
[0031] Determining the charge and discharge judgment value of each energy storage unit based on the operating parameters includes:
[0032] The ratio of the remaining charge and discharge cycle number of the current energy storage unit to the theoretical charge and discharge cycle number of the current energy storage unit is used as the cycle state value of the current energy storage unit;
[0033] Determine the health status value corresponding to the current cycle status value of the energy storage unit according to a preset health status mapping table, wherein the health status mapping table at least includes different health status values corresponding to different cycle status values of the energy storage unit;
[0034] The state of charge reference value of the current energy storage unit is determined based on the state of charge value of the current energy storage unit, or based on the state of charge value of the current energy storage unit and the health state value of the current energy storage unit, and the difference between the state of charge value of the current energy storage unit and the state of charge reference value is determined as the charge and discharge judgment value of the current energy storage unit.
[0035] Optionally, the state of charge reference value of the current energy storage unit is determined according to the state of charge value of the current energy storage unit, or according to the state of charge value of the current energy storage unit and the health state value of the current energy storage unit, including:
[0036] When the state of charge value of the current energy storage unit belongs to a preset state of charge value interval, determining a ratio of the first preset value to the health state value of the current energy storage unit as a state of charge reference value of the current energy storage unit; and
[0037] When the state of charge value of the current energy storage unit does not belong to the preset state of charge value interval, the second preset value is determined as the state of charge reference value of the current energy storage unit.
[0038] Optionally, determining an energy storage unit among the energy storage units that meets the safety state threshold, the charge and discharge judgment value, and the first target dispatching power as a target energy storage unit includes:
[0039] Determine that an energy storage unit whose safety state value is not less than the safety state threshold is a safe energy storage unit;
[0040] The rated charging power or the rated discharging power of each safety energy storage unit is accumulated in descending order according to the charge and discharge judgment value of each safety energy storage unit, until the accumulated sum of the rated charging power or the rated discharging power of each safety energy storage unit is not less than the first target scheduling power, and the safety energy storage unit corresponding to the current accumulated sum of the rated charging power or the rated discharging power of each safety energy storage unit is determined as the target energy storage unit.
[0041] Optionally, the constraint conditions include:
[0042] Constraints on the state of charge value of each energy storage unit, charging and discharging power constraints, state of charge change constraints, and power balance constraints of the microgrid;
[0043] The state of charge value constraints include:
[0044] The current state of charge value of the energy storage unit is not less than the minimum allowable state of charge value and not greater than the maximum allowable state of charge value;
[0045] The charge and discharge power constraints include:
[0046] The discharge power of the current energy storage unit in the current discharge period is not less than the minimum discharge power of the current energy storage unit, and is not greater than the maximum discharge power of the current energy storage unit. The charging power of the current energy storage unit in the current charging period is not less than the minimum charging power of the current energy storage unit, and is not greater than the maximum charging power of the current energy storage unit.
[0047] The state of charge change constraints include:
[0048]
[0049]
[0050] Among them, SOC x,t+1 is the state of charge value of the x-th energy storage unit in the t+1 period, SOC x,t is the state of charge value of the x-th energy storage unit in period t, P x,t,disc is the discharge power of the energy storage battery unit x in period t, T disc is the discharge time, S x is the rated capacity of the xth energy storage unit, S x SOH xis the actual capacity of the x-th energy storage unit, P x,t,char is the charging power of the energy storage battery unit x in period t, T char For charging time;
[0051] The power balance constraints of the microgrid include:
[0052] The sum of the power of the first energy conversion device and the power of the DC load on the DC bus side is the same as the power on the DC bus side of the second energy conversion device;
[0053] The sum of the power of the AC bus side of the second energy conversion device and the power of the AC load on the AC bus side is the same as the power of the power grid on the AC bus side.
[0054] Optionally, the minimum discharge power of the current energy storage unit is determined by the following steps:
[0055] averaging the first target dispatching power based on the number of target energy storage units to obtain a second target dispatching power for each target energy storage unit, and performing a multiplication operation on the safety state value of the current energy storage unit and the second target dispatching power to obtain a minimum discharge power of the current energy storage unit;
[0056] The maximum discharge power of the current energy storage unit is determined by the following steps:
[0057] Perform multiplication operation on the safety state value of the current energy storage unit and the rated amplified electric power to obtain the maximum discharge power of the current energy storage unit;
[0058] The minimum charging power of the current energy storage unit is determined by the following steps:
[0059] Performing a multiplication operation on the safety state value of the current energy storage unit and the second target dispatching power to obtain the minimum charging power of the current energy storage unit;
[0060] The maximum charging power of the current energy storage unit is determined by the following steps:
[0061] The safety status value of the current energy storage unit and the rated charging power are multiplied to obtain the maximum charging power of the current energy storage unit.
[0062] Optionally, solving the charging and discharging scheduling model by using an improved particle swarm algorithm includes:
[0063] S1. Establish a system consisting of multiple particles and multiple disks, where the particles and the disks are on the same horizontal plane;
[0064] S2, initializing algorithm parameters, wherein the algorithm parameters at least include population size, disk number, disk radius and maximum number of iterations;
[0065] S3, converting the charge and discharge states of each energy storage unit at different time periods into the position vector of each particle, randomly generating the initial position of each particle, and randomly generating the position of each disk;
[0066] S4, calculating the Euclidean distance between each particle and the center of each disk, determining that particles whose Euclidean distance to the center of at least one disk is smaller than the radius of the disk are covered particles, and taking the ratio of the covered particles to the total number of particles as the initial coverage rate of the particles;
[0067] S5, taking the output value of the objective function as the fitness value of each particle, and determining the individual extreme value of each particle and the global extreme value of the population according to the fitness value of each particle;
[0068] S6, updating the position and velocity of each particle based on the individual extreme value of each particle, the population extreme value and the distance between each particle and each disk;
[0069] S7. If all particles are covered particles and the maximum number of iterations is reached, the current global extreme value is taken as the optimal solution; otherwise, return to step S5.
[0070] Optionally, the position and velocity of each particle are updated based on the individual extreme value of each particle, the population extreme value and the distance between each particle and each disk, including:
[0071] Update the position of each particle using the following formula:
[0072] ;
[0073] Update the velocity of each particle using the following formula:
[0074]
[0075] in, is the inertia weight, C1 and C2 are acceleration factors, C3 is the pseudo-gravitational acceleration coefficient, r1, r2, and r3 are random numbers between 0 and 1, and x m (k) is the position of particle m at the kth iteration, V m (k) is the velocity of particle m at the kth iteration, P best,m is the individual extreme value of the particle, G best is the global extreme value of the population, g m (k) is the pseudo-gravitational force;
[0076] in, , represents the mass of the qth disk, r j is the radius of the jth disk, d mq Represents the distance between the disk and the particle.
[0077] Optionally, after updating the position and velocity of each particle, step S6 further includes:
[0078] Update the inertia weight by the following formula:
[0079] in, is the maximum inertia weight, is the minimum inertia weight, k max is the maximum number of iterations, k is the current number of iterations, k1=0.7k max , k2=0.8 k max .
[0080] In a second aspect of the present application, a microgrid energy storage energy management device is provided, comprising:
[0081] The instruction response module is configured to respond to the energy dispatch instruction, determine the first target dispatch power, and call a pre-established charge and discharge dispatch model, wherein the charge and discharge dispatch model includes an objective function and constraint conditions with the lowest cost as the goal, wherein the objective function is constructed based on at least the discharge income and charging cost of each energy storage unit under the dynamic electricity price in different time periods;
[0082] an energy storage unit configuration module, configured to obtain operating parameters of each energy storage unit, determine a safety state value and a charge-discharge judgment value of each energy storage unit based on the operating parameters, and determine an energy storage unit among the energy storage units that meets the safety state threshold, the charge-discharge judgment value and the first target dispatching power as a target energy storage unit;
[0083] A scheduling optimization module is configured to solve the charging and discharging scheduling model by using an improved particle swarm algorithm to obtain an optimal solution that satisfies the objective function and the constraint conditions, wherein the optimal solution includes the charging and discharging state and charging and discharging power of each target energy storage unit in different time periods;
[0084] The scheduling control module is configured to control the corresponding target energy storage unit to charge and discharge with the corresponding charge and discharge power in the corresponding time period according to the charge and discharge state and charge and discharge power of each target energy storage unit in different time periods.
[0085] Optionally, the discharge benefit of each target energy storage unit is the difference between the total discharge benefit of each target energy storage unit in each discharge period and the total discharge cost of each target energy storage unit in each discharge period;
[0086] The charging cost of each target energy storage unit is the sum of the total charging cost of each target energy storage unit in each charging period and the total charging expenditure of each target energy storage unit in each charging period;
[0087] The total discharge income of each target energy storage unit in each discharge period is obtained based on the discharge power of each target energy storage unit in the current discharge period, the current discharge period, the conversion efficiency of the discharge power and the time-of-use electricity price in the current discharge period;
[0088] The total discharge cost of each target energy storage unit in each discharge period is obtained based on the discharge power of each target energy storage unit in the current discharge period, the current discharge period, the rated capacity of the target energy storage unit, the current number of cycles of the target energy storage unit, the current discharge depth of the target energy storage unit and the investment cost of the target energy storage unit, wherein the conversion efficiency of the discharge power includes at least the conversion efficiency of the first energy conversion device between the energy storage unit and the DC bus, and the conversion efficiency of the second energy conversion device between the DC bus and the AC bus.
[0089] Optionally, the total charging cost of each target energy storage unit in each charging period is obtained based on the charging power of each target energy storage unit in the current discharge period, the current charging period, the rated capacity of the target energy storage unit, the current number of cycles of the target energy storage unit, the current charging depth of the target energy storage unit and the investment cost of the target energy storage unit;
[0090] The total charging expenditure of each target energy storage unit in each charging period is obtained based on the charging power of each target energy storage unit in the current charging period, the current charging period, the conversion efficiency of the charging power and the time-of-use electricity price of the current charging period, wherein the conversion efficiency of the charging power includes at least the conversion efficiency of the first energy conversion device and the conversion efficiency of the second energy conversion device.
[0091] Optionally, the objective function also includes carbon trading income, and the objective function is as follows:
[0092] C pro =C disc -C char +C carbon
[0093] Among them, C pro is the total revenue, C disc is the discharge benefit of each target energy storage unit, C char is the charging cost of each target energy storage unit, C carbon Carbon trading income is obtained based on the carbon trading price and the difference between the total CO2 emissions and the carbon emission quota;
[0094] Among them, the total CO2 emissions are obtained based on the sum of the CO2 emissions of each energy device in the microgrid. The CO2 emissions of each energy device are obtained by multiplying the sum of the first carbon emission coefficient and the second carbon emission coefficient of the current energy device by the operating power of the current energy device. The first carbon emission coefficient is the carbon emission coefficient of the current energy device in the transportation stage, and the second carbon emission coefficient is the carbon emission coefficient of the current energy device in the operation stage.
[0095] Optionally, the operating parameters of the energy storage unit include:
[0096] At least one of the voltage, temperature, internal resistance and mechanical deformation of the energy storage unit;
[0097] Determining the safety status value of each energy storage unit based on the operating parameters includes:
[0098] Determining a rated state value of a current operating parameter and a safety threshold of the current operating parameter, wherein the safety threshold of the current operating parameter is greater than the rated state value thereof;
[0099] Determine the safety state value of the current operating parameter according to the difference between the current value of the current operating parameter and its rated state value, and the difference between the safety threshold of the current operating parameter and its rated state value;
[0100] The safety status values of all operating parameters are multiplied to obtain the safety status value of the current energy storage unit.
[0101] Optionally, determining the safety state value of the current operating parameter according to the difference between the current value of the current operating parameter and its rated state value, and the difference between the safety threshold of the current operating parameter and its rated state value, includes:
[0102] The safety status value of the current operating parameters is calculated using the following formula:
[0103]
[0104] Among them, x rat,w is the rated state value of the wth operating parameter; x sec,w is the safety threshold of the wth operating parameter, x cur,w is the current value of the wth operating parameter.
[0105] Optionally, the operating parameters of the energy storage unit also include:
[0106] The remaining number of charge and discharge cycles and the state of charge value of the energy storage unit;
[0107] Determining the charge and discharge judgment value of each energy storage unit based on the operating parameters includes:
[0108] The ratio of the remaining charge and discharge cycle number of the current energy storage unit to the theoretical charge and discharge cycle number of the current energy storage unit is used as the cycle state value of the current energy storage unit;
[0109] Determine the health status value corresponding to the current cycle status value of the energy storage unit according to a preset health status mapping table, wherein the health status mapping table at least includes different health status values corresponding to different cycle status values of the energy storage unit;
[0110] The state of charge reference value of the current energy storage unit is determined based on the state of charge value of the current energy storage unit, or based on the state of charge value of the current energy storage unit and the health state value of the current energy storage unit, and the difference between the state of charge value of the current energy storage unit and the state of charge reference value is determined as the charge and discharge judgment value of the current energy storage unit.
[0111] Optionally, the state of charge reference value of the current energy storage unit is determined according to the state of charge value of the current energy storage unit, or according to the state of charge value of the current energy storage unit and the health state value of the current energy storage unit, including:
[0112] When the state of charge value of the current energy storage unit belongs to a preset state of charge value interval, determining a ratio of the first preset value to the health state value of the current energy storage unit as a state of charge reference value of the current energy storage unit; and
[0113] When the state of charge value of the current energy storage unit does not belong to the preset state of charge value interval, the second preset value is determined as the state of charge reference value of the current energy storage unit.
[0114] Optionally, determining an energy storage unit among the energy storage units that meets the safety state threshold, the charge and discharge judgment value, and the first target dispatching power as a target energy storage unit includes:
[0115] Determine that an energy storage unit whose safety state value is not less than the safety state threshold is a safe energy storage unit;
[0116] The rated charging power or the rated discharging power of each safety energy storage unit is accumulated in descending order according to the charge and discharge judgment value of each safety energy storage unit, until the accumulated sum of the rated charging power or the rated discharging power of each safety energy storage unit is not less than the first target scheduling power, and the safety energy storage unit corresponding to the current accumulated sum of the rated charging power or the rated discharging power of each safety energy storage unit is determined as the target energy storage unit.
[0117] Optionally, the constraint conditions include:
[0118] Constraints on the state of charge value of each energy storage unit, charging and discharging power constraints, state of charge change constraints, and power balance constraints of the microgrid;
[0119] The state of charge value constraints include:
[0120] The current state of charge value of the energy storage unit is not less than the minimum allowable state of charge value and not greater than the maximum allowable state of charge value;
[0121] The charge and discharge power constraints include:
[0122] The discharge power of the current energy storage unit in the current discharge period is not less than the minimum discharge power of the current energy storage unit, and is not greater than the maximum discharge power of the current energy storage unit. The charging power of the current energy storage unit in the current charging period is not less than the minimum charging power of the current energy storage unit, and is not greater than the maximum charging power of the current energy storage unit.
[0123] The state of charge change constraints include:
[0124]
[0125]
[0126] Among them, SOC x,t+1 is the state of charge value of the x-th energy storage unit in the t+1 period, SOC x,t is the state of charge value of the x-th energy storage unit in period t, P x,t,disc is the discharge power of the energy storage battery unit x in period t, T disc is the discharge time, S x is the rated capacity of the xth energy storage unit, S x SOH x is the actual capacity of the x-th energy storage unit, P x,t,char is the charging power of the energy storage battery unit x in period t, T char For charging time;
[0127] The power balance constraints of the microgrid include:
[0128] The sum of the power of the first energy conversion device and the power of the DC load on the DC bus side is the same as the power on the DC bus side of the second energy conversion device;
[0129] The sum of the power of the AC bus side of the second energy conversion device and the power of the AC load on the AC bus side is the same as the power of the power grid on the AC bus side.
[0130] Optionally, the minimum discharge power of the current energy storage unit is determined by the following steps:
[0131] averaging the first target dispatching power based on the number of target energy storage units to obtain a second target dispatching power for each target energy storage unit, and performing a multiplication operation on the safety state value of the current energy storage unit and the second target dispatching power to obtain a minimum discharge power of the current energy storage unit;
[0132] The maximum discharge power of the current energy storage unit is determined by the following steps:
[0133] Perform multiplication operation on the safety state value of the current energy storage unit and the rated amplified electric power to obtain the maximum discharge power of the current energy storage unit;
[0134] The minimum charging power of the current energy storage unit is determined by the following steps:
[0135] Performing a multiplication operation on the safety state value of the current energy storage unit and the second target dispatching power to obtain the minimum charging power of the current energy storage unit;
[0136] The maximum charging power of the current energy storage unit is determined by the following steps:
[0137] The safety status value of the current energy storage unit and the rated charging power are multiplied to obtain the maximum charging power of the current energy storage unit.
[0138] Optionally, the scheduling optimization module is configured to perform the following steps:
[0139] S1. Establish a system consisting of multiple particles and multiple disks, where the particles and the disks are on the same horizontal plane;
[0140] S2, initializing algorithm parameters, wherein the algorithm parameters at least include population size, disk number, disk radius and maximum number of iterations;
[0141] S3, converting the charge and discharge states of each energy storage unit at different time periods into the position vector of each particle, randomly generating the initial position of each particle, and randomly generating the position of each disk;
[0142] S4, calculating the Euclidean distance between each particle and the center of each disk, determining that particles whose Euclidean distance to the center of at least one disk is smaller than the radius of the disk are covered particles, and taking the ratio of the covered particles to the total number of particles as the initial coverage rate of the particles;
[0143] S5, taking the output value of the objective function as the fitness value of each particle, and determining the individual extreme value of each particle and the global extreme value of the population according to the fitness value of each particle;
[0144] S6, updating the position and velocity of each particle based on the individual extreme value of each particle, the population extreme value and the distance between each particle and each disk;
[0145] S7. If all particles are covered particles and the maximum number of iterations is reached, the current global extreme value is taken as the optimal solution; otherwise, return to step S5.
[0146] Optionally, the position and velocity of each particle are updated based on the individual extreme value of each particle, the population extreme value and the distance between each particle and each disk, including:
[0147] Update the position of each particle using the following formula:
[0148] ;
[0149] Update the velocity of each particle using the following formula:
[0150]
[0151] in, is the inertia weight, C1 and C2 are acceleration factors, C3 is the pseudo-gravitational acceleration coefficient, r1, r2, and r3 are random numbers between 0 and 1, and x m (k) is the position of particle m at the kth iteration, V m (k) is the velocity of particle m at the kth iteration, P best,m is the individual extreme value of the particle, G best is the global extreme value of the population, g m (k) is the pseudo-gravitational force;
[0152] in, , represents the mass of the qth disk, r j is the radius of the jth disk, d mq Represents the distance between the disk and the particle.
[0153] Optionally, after updating the position and velocity of each particle, the scheduling optimization module is further configured to:
[0154] Update the inertia weight by the following formula:
[0155] in, is the maximum inertia weight, is the minimum inertia weight, k max is the maximum number of iterations, k is the current number of iterations, k1=0.7k max , k2=0.8 k max .
[0156] According to a third aspect of the present application, a machine-readable storage medium is provided, on which instructions are stored, and when the instructions are executed by a processor, the processor is configured to execute the microgrid energy storage energy management method as described above.
[0157] In a fourth aspect of the present application, a terminal device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the microgrid energy storage management method as described above are implemented.
[0158] The present application constructs an objective function based on dynamic electricity prices in different time periods, predicts the safety status and health status of each energy storage unit based on the operating parameters of the energy storage unit, and dynamically determines the energy storage unit with the best safety status and health status to perform charging and discharging operations each time when charging and discharging, thereby effectively ensuring the safety of the energy storage unit and ensuring the consistency of the energy storage unit. At the same time, by solving the objective function through an improved particle swarm algorithm, the charging and discharging status and charging and discharging power of the energy storage unit in different time periods under the condition of satisfying the objective function can be calculated more accurately and efficiently.
[0159] Other features and advantages of the embodiments of the present application will be described in detail in the subsequent specific implementation section. BRIEF DESCRIPTION OF THE DRAWINGS
[0160] The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present application, but do not constitute a limitation on the embodiments of the present application. In the accompanying drawings:
[0161] Figure 1 A schematic diagram of the system architecture of an energy storage management system provided in a preferred embodiment of the present application;
[0162] Figure 2 A schematic diagram of the microgrid system structure provided for the preferred embodiment of the present application;
[0163] Figure 3 A method flow chart of a microgrid energy storage energy management method provided in a preferred embodiment of the present application;
[0164] Figure 4 A schematic diagram of the process flow of the improved particle swarm algorithm provided in the preferred embodiment of the present application;
[0165] Figure 5 A schematic block diagram of a microgrid energy storage management device provided in a preferred embodiment of the present application;
[0166] Figure 6 A schematic diagram of a terminal device provided for a preferred embodiment of the present application.
[0167] Description of Reference Numerals
[0168] 10-terminal device, 100-processor, 101-memory, 102-computer program. DETAILED DESCRIPTION
[0169] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the specific implementation methods described herein are only used to illustrate and explain the embodiments of the present application, and are not used to limit the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0170] It should be noted that the technical solutions between the various embodiments of the present application can be combined with each other, but it must be based on the fact that ordinary technicians in the field can implement it. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0171] like Figure 1 The system architecture of the energy storage management system based on microgrid of the present application is shown. The master station is connected to the microgrid controller, and the microgrid controller is connected to the DC load, AC load, energy storage system, photovoltaic system, and large power grid within its control range. The microgrid controller is used to collect and preprocess the resource information within its control range, upload the collected information to the upper master station after processing, and accept and execute the control command of the upper master station; at the same time, the microgrid controller also has edge computing capabilities. When the master station issues a dispatch command, it can combine the historical power generation data, load data, time-sharing electricity price data and other information in the microgrid to allocate and dispatch power quotas and charging and discharging modes to the energy storage system, so as to realize the energy management of the microgrid.
[0172] like Figure 2 As shown, the microgrid system of the present application includes: a large power grid and AC loads connected to the AC bus, an AC / DC converter arranged between the AC bus and the DC bus, a photovoltaic system, a DC load and a DC / DC converter connected to the DC bus, and a battery energy storage system connected to the DC / DC converter, wherein the battery energy storage system includes multiple energy storage units. The microgrid system supplies power to the AC and DC loads in the system through the large power grid on the one hand, and supplies power to the AC and DC loads in the system through the battery energy storage system and photovoltaic system in the system on the other hand.
[0173] like Figure 3 As shown, the first aspect of the present application provides a microgrid energy storage management method, which can be applied to a microgrid controller, and the method includes:
[0174] S100, in response to the energy dispatch instruction, determining a first target dispatch power, calling a pre-established charge and discharge dispatch model, the charge and discharge dispatch model including an objective function and constraints with the lowest cost as the objective, the objective function being constructed based on at least the discharge income and charging cost of each energy storage unit under the dynamic electricity price in different time periods;
[0175] S200, obtaining operating parameters of each energy storage unit, determining the safety state value and charge-discharge judgment value of each energy storage unit based on the operating parameters, and determining the energy storage unit that meets the safety state threshold, charge-discharge judgment value and first target dispatching power among the energy storage units as the target energy storage unit;
[0176] S300, solving the charge and discharge scheduling model by using an improved particle swarm algorithm to obtain an optimal solution that satisfies the objective function and constraint conditions, wherein the optimal solution includes the charge and discharge state and charge and discharge power of each target energy storage unit in different time periods;
[0177] S400, controlling the corresponding target energy storage unit to charge and discharge at the corresponding charge and discharge power in the corresponding time period according to the charge and discharge state and charge and discharge power of each target energy storage unit in different time periods.
[0178] In this way, the present application constructs an objective function based on the dynamic electricity prices in different time periods, predicts the safety status and health status of each energy storage unit based on the operating parameters of the energy storage unit, and dynamically determines the energy storage unit with the best safety status and health status to perform charging and discharging operations each time charging and discharging, thereby effectively ensuring the safety of the energy storage unit and ensuring the consistency of the energy storage unit. At the same time, by solving the objective function through the improved particle swarm algorithm, the charging and discharging status and charging and discharging power of the energy storage unit in different time periods while satisfying the objective function can be calculated more accurately and efficiently.
[0179] It is understandable that the electricity price is different in different time periods. Therefore, this application constructs the objective function based on the industrial and commercial time-of-use electricity price, adopts a daily multiple charge and discharge cycle operation mode, charges in the low electricity price stage, and discharges in the peak electricity price stage, so as to form a complete charge and discharge process. By controlling the energy storage system to purchase electricity from the grid side in the low electricity price stage, and releasing the stored electricity in the peak and peak electricity price stages, the profit difference between the electricity prices can be obtained and converted into economic benefits.
[0180] Specifically, in step S100, the energy dispatching instruction is issued by the master station. After receiving the energy dispatching instruction, the microgrid controller calls a pre-established charge and discharge dispatching model to calculate the charge and discharge status of each energy storage unit in different time periods to obtain the optimal solution that meets the objective function and constraint conditions.
[0181] In the present application, the objective function takes the lowest cost of the day as the goal, wherein in the objective function, the discharge benefit of each target energy storage unit is the difference between the total discharge benefit of each target energy storage unit in each discharge period and the total discharge cost of each target energy storage unit in each discharge period. Among them, the total discharge benefit of each target energy storage unit in each discharge period is obtained based on the discharge power of each target energy storage unit in the current discharge period, the current discharge period, the conversion efficiency of the discharge power and the time-of-use electricity price of the current discharge period; the total charging cost of each target energy storage unit in each charging period is obtained based on the charging power of each target energy storage unit in the current discharge period, the current charging period, the rated capacity of the target energy storage unit, the current number of cycles of the target energy storage unit, the current charging depth of the target energy storage unit and the investment cost of the target energy storage unit. Specifically, the discharge benefit of each target energy storage unit is as follows:
[0182]
[0183] The charging cost of each target energy storage unit is the sum of the total charging cost of each target energy storage unit in each charging period and the total charging expenditure of each target energy storage unit in each charging period. Among them, the total discharge cost of each target energy storage unit in each discharge period is obtained based on the discharge power of each target energy storage unit in the current discharge period, the current discharge period, the rated capacity of the target energy storage unit, the current number of cycles of the target energy storage unit, the current discharge depth of the target energy storage unit and the investment cost of the target energy storage unit, wherein the conversion efficiency of the discharge power at least includes the conversion efficiency of the first energy conversion device between the energy storage unit and the DC bus, and the conversion efficiency of the second energy conversion device between the DC bus and the AC bus; the total charging expenditure of each target energy storage unit in each charging period is obtained based on the charging power of each target energy storage unit in the current charging period, the current charging period, the conversion efficiency of the charging power and the time-of-use electricity price of the current charging period, wherein the conversion efficiency of the charging power at least includes the conversion efficiency of the first energy conversion device and the conversion efficiency of the second energy conversion device. Specifically, the charging cost of each target energy storage unit is as follows:
[0184]
[0185] Among them, C disc is the discharge benefit of each target energy storage unit, C char is the charging cost of each target energy storage unit, C capex is the total investment cost of each energy storage unit, U is the total number of discharges during the discharge process, V is the total number of charges during the charge process, and P disc (i) With T disc (i) represents the i-th discharge power and the corresponding discharge time, C TOU_disc (i) is the time-of-use electricity price during the discharge period, and are the efficiency of DC / DC and AC / DC converters under charging (discharging) power, M0 is the rated capacity of the energy storage unit, i.e., the battery, N t is the number of cycles of the energy storage unit D t is the discharge depth of the energy storage unit, P char (i) With T char (i) represents the i-th charging power and the corresponding charging time, C TOU_char (i) is the time-of-use electricity price during the charging period.
[0186] In this application, the objective function also includes carbon trading income, so the objective function is as follows:
[0187] C pro =C disc -C char +C carbon
[0188] Among them, C carbon is the carbon trading income, where the carbon trading income is based on the carbon trading price and the difference between the total CO2 emissions and the carbon emission quota, that is, C carbon =C price (E out -E all ), where C price is the carbon trading price of the day, E out is the total CO2 emissions, E all For carbon emission quotas.
[0189] In this application, the total CO2 emissions are obtained based on the sum of the CO2 emissions of each energy device in the microgrid, that is, ,in, It is a collection of energy equipment, including photovoltaic systems, energy storage systems and other energy equipment. is the carbon emission coefficient of the j-th energy equipment corresponding to the energy transportation stage, that is, the first carbon emission coefficient, in units of , is the carbon emission coefficient of the j-th energy equipment corresponding to the energy use and operation stage, that is, the second carbon emission coefficient, in units of , P j is the operating output of the jth energy device, that is, the operating power.
[0190] In step S200, the operating parameters of the energy storage unit include: at least one of the voltage, temperature, internal resistance and mechanical deformation of the energy storage unit; determining the safety state value of each energy storage unit based on the operating parameters includes:
[0191] S201. Determine a rated state value of a current operating parameter and a safety threshold of the current operating parameter, wherein the safety threshold of the current operating parameter is greater than the rated state value thereof.
[0192] S202: Determine the safety state value of the current operating parameter according to the difference between the current value of the current operating parameter and its rated state value, and the difference between the safety threshold of the current operating parameter and its rated state value.
[0193] It can be understood that in order to ensure the continuous and stable operation of the battery energy storage system, the SOC, i.e., the state of charge value, of each energy storage unit needs to be controlled within the range of [0, 1] and cannot approach the limit. At the same time, in order to limit the safety state value, i.e., SOS, to a reasonable working value, it is defined to have the same numerical range as SOC, from 0 to 1. Then, the present application calculates the safety state value of the current operating parameters by the following formula:
[0194]
[0195] Among them, x rat,w is the rated state value of the wth operating parameter; x sec,w is the safety threshold of the wth operating parameter, x cur,w is the current value of the wth operating parameter.
[0196] S203, the safety status values of all operating parameters are multiplied to obtain the safety status value of the current energy storage unit. Then, considering multiple influencing factors, the safety status value of the current energy storage unit is .
[0197] In the present application, the operating parameters of the energy storage unit also include: the remaining number of charge and discharge cycles and the state of charge value of the energy storage unit; then, in step S200, the charge and discharge judgment value of each energy storage unit is determined based on the operating parameters, including:
[0198] S204: taking the ratio of the remaining charge and discharge cycle times of the current energy storage unit to the theoretical charge and discharge cycle times of the current energy storage unit as the cycle state value of the current energy storage unit.
[0199] S205. Determine the health status value corresponding to the current cycle status value of the energy storage unit according to a preset health status mapping table, wherein the health status mapping table at least includes different health status values corresponding to different cycle status values of the energy storage unit.
[0200] Specifically, the health status value SOH of the battery energy storage unit is calculated based on the ratio T of the current remaining charge and discharge cycle number to the theoretical charge and discharge cycle number. cir Divided into three levels, T cir ≤20% is unhealthy, SOH is 0.2; 20%<T cir≤80% is the sub-healthy state, and the SOH is 0.5; T cir >80% is the healthy state, and the SOH is 0.8.
[0201] S206. Determine the reference value of the state of charge of the current energy storage unit based on the state of charge value of the current energy storage unit, or based on the state of charge value of the current energy storage unit and the health state value of the current energy storage unit, and determine the difference between the state of charge value and the reference value of the state of charge of the current energy storage unit as the charge and discharge judgment value of the current energy storage unit.
[0202] Among them, determining the reference value of the state of charge of the current energy storage unit based on the state of charge value of the current energy storage unit, or based on the state of charge value of the current energy storage unit and the health state value of the current energy storage unit includes: when the state of charge value of the current energy storage unit belongs to a preset state of charge value interval, determining the ratio of the first preset value to the health state value of the current energy storage unit as the reference value of the state of charge of the current energy storage unit; and when the state of charge value of the current energy storage unit does not belong to the preset state of charge value interval, determining the second preset value as the reference value of the state of charge of the current energy storage unit.
[0203] Specifically, define the preset state of charge value interval as 0.3 < SOC < 0.7. Then, when the SOC of the xth energy storage unit belongs to 0.3 < SOC < 0.7, the reference value of SOC is SOC ref,x = SOC ref / SOH x , where the first preset value is SOC ref = 0.5; when the SOC of the xth energy storage unit does not belong to the preset state of charge value interval, that is, SOC < 0.3 or SOC > 0.7, SOC ref = 0.5, that is, the second preset value is 0.5. Calculate the charge and discharge judgment value of the xth battery energy storage unit at time t as . It can be understood that the state of charge value SOC and the health state value SOH of each energy storage unit can be directly obtained through the battery management system of the energy storage system.
[0204] In step S200, determining the energy storage units that meet the safety state threshold, the charge and discharge judgment value, and the first target scheduling power among the energy storage units as the target energy storage units includes:
[0205] S207. Determine the energy storage units with a safety state value not less than the safety state threshold as the safe energy storage units. First, generate a charge and discharge criterion table for the battery energy storage units according to the SOC, SOS, and charge and discharge judgment value of each energy storage unit. The criterion table includes the charge and discharge judgment value of each energy storage unit and its corresponding SOS. Then, first delete the unsafe units, that is, delete the energy storage units with SOS less than the safety state threshold such as 0.5.
[0206] S208, accumulating the rated charging power or the rated discharging power of each safety energy storage unit in descending order according to the charge and discharge judgment value of each safety energy storage unit, until the accumulated sum of the rated charging power or the rated discharging power of each safety energy storage unit is not less than the first target dispatching power, and determining that the safety energy storage unit corresponding to the current accumulated sum of the rated charging power or the rated discharging power of each safety energy storage unit is the target energy storage unit.
[0207] Specifically, when the energy storage power station needs to dispatch discharge, according to The values of are sorted from large to small and from top to bottom. During discharge, the rated discharge power P of the energy storage units participating in the discharge is sorted from top to bottom. discx Sum the power until the power sum is greater than or equal to the total dispatch power, i.e., the first target dispatch power P discpt , then the sum of the energy storage units is CharN+1, N=0, 1, ..., N. When the energy storage station needs to be dispatched for charging, according to The values are sorted from large to small and from top to bottom, and the rated charging power P of the energy storage units involved in charging are sorted from top to bottom. charx Sum the power until it is greater than or equal to the total dispatch power P discpt At this time, the sum of the energy storage units is disCharN+1.
[0208] In the present application, the constraints include: state of charge value constraints of each energy storage unit, charge and discharge power constraints, state of charge change constraints and power balance constraints of the microgrid.
[0209] The state of charge value constraint includes: the state of charge value of the current energy storage unit is not less than the minimum allowable state of charge value and not greater than the maximum allowable state of charge value. Specifically, , where SOC x,min is the minimum allowable SOC of energy storage unit x, SOC x,max is the maximum allowable SOC of energy storage unit x.
[0210] The charging and discharging power constraints include: the discharge power of the current energy storage unit in the current discharging period is not less than the minimum discharge power of the current energy storage unit, and is not greater than the maximum discharge power of the current energy storage unit; the charging power of the current energy storage unit in the current charging period is not less than the minimum charging power of the current energy storage unit, and is not greater than the maximum charging power of the current energy storage unit.
[0211] Specifically, the charge and discharge power constraints include:
[0212]
[0213]
[0214] Among them, Px,t,disc is the discharge power of the energy storage battery unit x in period t, P x,t,char is the charging power of the energy storage battery unit x in period t, P x,t,min,disc is the minimum discharge power of the energy storage battery unit x in period t, P x,t,max,disc is the maximum discharge power of the energy storage battery unit x in period t, P x,t,min,char is the minimum charging power of the energy storage battery unit x in period t, P x,t,max,char is the maximum charging power of the energy storage battery unit x in period t.
[0215] The minimum discharge power of the current energy storage unit is determined by the following steps: averaging the first target dispatching power based on the number of target energy storage units to obtain the second target dispatching power of each target energy storage unit, performing a multiplication operation on the safety state value of the current energy storage unit and the second target dispatching power to obtain the minimum discharge power of the current energy storage unit, that is, , among which SOS x,t is the SOS value of energy storage unit x in period t, P discpt Scheduling power for the first target, set it to >0 when discharging is required, and set it to <0 when charging is required.
[0216] The maximum discharge power of the current energy storage unit is determined by the following steps: multiplying the safety state value of the current energy storage unit and the rated amplified electric power to obtain the maximum discharge power of the current energy storage unit, that is, .
[0217] The minimum charging power of the current energy storage unit is determined by the following steps: multiplying the safety state value of the current energy storage unit and the second target dispatching power to obtain the minimum charging power of the current energy storage unit, that is, .
[0218] The maximum charging power of the current energy storage unit is determined by the following steps: multiplying the safety state value of the current energy storage unit and the rated charging power to obtain the maximum charging power of the current energy storage unit, that is, .
[0219] The state of charge change constraints include:
[0220]
[0221]
[0222] Among them, SOC x,t+1 is the state of charge value of the x-th energy storage unit in the t+1 period, SOC x,t is the state of charge value of the x-th energy storage unit in period t, P x,t,disc is the discharge power of the energy storage battery unit x in period t, Tdisc is the discharge time, S x is the rated capacity of the xth energy storage unit, S x SOH x is the actual capacity of the x-th energy storage unit, P x,t,char is the charging power of the energy storage battery unit x in period t, T char For charging time;
[0223] The power balance constraints of the microgrid include:
[0224] The sum of the power of the first energy conversion device and the power of the DC load on the DC bus side is the same as the power on the DC bus side of the second energy conversion device, that is, .
[0225] The sum of the power of the AC bus side of the second energy conversion device and the power of the AC load on the AC bus side is the same as the power of the grid on the AC bus side, that is, .
[0226] In this application, the power balance constraints of the microgrid also include:
[0227] or
[0228] or
[0229] in, is the power of the first energy conversion device, i.e., the DC / DC converter, is the photovoltaic system power, is the DC load power, is the actual charging and discharging power of the energy storage unit, is the large grid power, is the AC load power, and They are the power on the DC side and the AC side of the AC / DC converter respectively.
[0230] This application introduces a pseudo-universal gravitation model to improve the particle swarm algorithm, that is, assuming that a plane is in a horizontal position and is absolutely smooth, a finite number of points are imagined as particles in this plane, and several disks are randomly placed in the plane. Due to the universal gravitation between the particles and the disks, each particle attracts the disk to cover itself, thereby achieving full coverage of the particles. Then, if Figure 4 As shown in the figure, the charging and discharging scheduling model is solved by using the improved particle swarm algorithm, including:
[0231] S1. Establish a system consisting of m particles and q disks, with the particles and disks on the same horizontal plane.
[0232] S2. Initialize algorithm parameters, which at least include population size, number of disks, disk radius, and maximum number of iterations.
[0233] S3. Convert the charge and discharge states of each energy storage unit at different time periods into the position vector of each particle, randomly generate the initial position of each particle, and randomly generate the position of each disk.
[0234] S4. Calculate the Euclidean distance between each particle and the center of each disk, determine that the particles whose Euclidean distance to the center of at least one disk is less than the radius of the disk are covered particles, and take the ratio of the covered particles to the total number of particles as the initial coverage rate of the particles, that is, the initial coverage rate of each particle ,in, To calculate the total number of particles whose distance from the center of the disk is less than the radius r of the disk using the Euclidean distance formula, is the total number of particles.
[0235] S5. The output value of the objective function is used as the fitness value of each particle. The individual extreme value of each particle and the global extreme value of the population are determined according to the fitness value of each particle. The objective function is calculated according to the charge and discharge state of each particle, i.e., each energy storage unit, at different time periods to obtain the current day cost under the current charge and discharge state. The obtained current day cost is used as the fitness value of each particle.
[0236] S6. Based on the individual extreme value of each particle, the population extreme value and the distance between each particle and each disk, the position and velocity of each particle are updated, the global optimal value is updated, and the new coverage rate of each particle is calculated.
[0237] Specifically, the position of each particle is updated by the following formula:
[0238] ;
[0239] Update the velocity of each particle using the following formula:
[0240]
[0241] in, is the inertia weight, C1 and C2 are acceleration factors, C3 is the pseudo-gravitational acceleration coefficient, r1, r2, and r3 are random numbers between 0 and 1, and x m (k) is the position of particle m at the kth iteration, V m (k) is the velocity of particle m at the kth iteration, P best,m is the individual extreme value of the particle, G best is the global extreme value of the population, g m (k) is the pseudo-gravitational force;
[0242] in, , r j is the radius of the jth disk, d mq represents the distance between the disk and the particle, It limits the gravitational force to only the particles and disks that are not covered by the disk. Indicates the mass of the disk. When calculating, first calculate the value of the gravitational force of a single disk on the particle, and then add up the gravitational function values of each disk on the proton.
[0243] Update the inertia weight by the following formula:
[0244]
[0245] in, is the maximum inertia weight, is the minimum inertia weight, is the maximum number of iterations, k is the current number of iterations, k1=0.7k max , k2=0.8 k max .
[0246] S7, determine whether the particles are completely covered. If all particles are covered and the maximum number of iterations is reached, the current global extreme value is used as the optimal solution. Otherwise, return to step S5 and execute the universal gravitation once.
[0247] The charge and discharge power of each target energy storage unit under the objective function and constraint conditions is calculated under the obtained global extreme value, that is, the optimal charge and discharge state of each target energy storage unit in different time periods, and each target energy storage unit is controlled to charge and discharge with the corresponding charge and discharge power in the corresponding charge and discharge period.
[0248] like Figure 5 As shown, in a second aspect of the present application, a microgrid energy storage energy management device is provided, comprising:
[0249] The instruction response module is configured to respond to the energy dispatch instruction, determine the first target dispatch power, and call a pre-established charge and discharge dispatch model, wherein the charge and discharge dispatch model includes an objective function and constraint conditions with the lowest cost as the goal, and the objective function is constructed based on at least the discharge income and charging cost of each energy storage unit under the dynamic electricity price in different time periods;
[0250] The energy storage unit configuration module is configured to obtain operating parameters of each energy storage unit, determine the safety state value and charge and discharge judgment value of each energy storage unit based on the operating parameters, and determine the energy storage unit that meets the safety state threshold, charge and discharge judgment value and first target dispatching power among the energy storage units as the target energy storage unit;
[0251] The scheduling optimization module is configured to solve the charging and discharging scheduling model through an improved particle swarm algorithm to obtain an optimal solution that satisfies the objective function and constraint conditions. The optimal solution includes the charging and discharging state and charging and discharging power of each target energy storage unit in different time periods;
[0252] The scheduling control module is configured to control the corresponding target energy storage unit to charge and discharge with the corresponding charge and discharge power in the corresponding time period according to the charge and discharge state and charge and discharge power of each target energy storage unit in different time periods.
[0253] Optionally, the discharge benefit of each target energy storage unit is the difference between the total discharge benefit of each target energy storage unit in each discharge period and the total discharge cost of each target energy storage unit in each discharge period;
[0254] The charging cost of each target energy storage unit is the sum of the total charging cost of each target energy storage unit in each charging period and the total charging expenditure of each target energy storage unit in each charging period;
[0255] The total discharge income of each target energy storage unit in each discharge period is obtained based on the discharge power of each target energy storage unit in the current discharge period, the current discharge period, the conversion efficiency of the discharge power and the time-of-use electricity price in the current discharge period;
[0256] The total discharge cost of each target energy storage unit in each discharge period is obtained based on the discharge power of each target energy storage unit in the current discharge period, the current discharge period, the rated capacity of the target energy storage unit, the current number of cycles of the target energy storage unit, the current discharge depth of the target energy storage unit and the investment cost of the target energy storage unit, wherein the conversion efficiency of the discharge power includes at least the conversion efficiency of the first energy conversion device between the energy storage unit and the DC bus, and the conversion efficiency of the second energy conversion device between the DC bus and the AC bus.
[0257] Optionally, the total charging cost of each target energy storage unit in each charging period is obtained based on the charging power of each target energy storage unit in the current discharge period, the current charging period, the rated capacity of the target energy storage unit, the current number of cycles of the target energy storage unit, the current charging depth of the target energy storage unit and the investment cost of the target energy storage unit;
[0258] The total charging expenditure of each target energy storage unit in each charging period is obtained based on the charging power of each target energy storage unit in the current charging period, the current charging period, the conversion efficiency of the charging power and the time-of-use electricity price in the current charging period, wherein the conversion efficiency of the charging power includes at least the conversion efficiency of the first energy conversion device and the conversion efficiency of the second energy conversion device.
[0259] Optionally, the objective function also includes carbon trading revenue, and the objective function is as follows:
[0260] Cpro =C disc -C char +C carbon
[0261] Among them, C pro is the total revenue, C disc is the discharge benefit of each target energy storage unit, C char is the charging cost of each target energy storage unit, C carbon Carbon trading income is obtained based on the carbon trading price and the difference between the total CO2 emissions and the carbon emission quota;
[0262] Among them, the total CO2 emissions are obtained based on the sum of the CO2 emissions of each energy device in the microgrid. The CO2 emissions of each energy device are obtained by multiplying the sum of the first carbon emission coefficient and the second carbon emission coefficient of the current energy device by the operating power of the current energy device. The first carbon emission coefficient is the carbon emission coefficient of the current energy device in the transportation stage, and the second carbon emission coefficient is the carbon emission coefficient of the current energy device in the operation stage.
[0263] Optionally, the operating parameters of the energy storage unit include:
[0264] At least one of the voltage, temperature, internal resistance and mechanical deformation of the energy storage unit;
[0265] Determine the safety status value of each energy storage unit based on the operating parameters, including:
[0266] Determining a rated state value of a current operating parameter and a safety threshold of the current operating parameter, wherein the safety threshold of the current operating parameter is greater than the rated state value thereof;
[0267] Determine the safety state value of the current operating parameter according to the difference between the current value of the current operating parameter and its rated state value, and the difference between the safety threshold of the current operating parameter and its rated state value;
[0268] The safety status values of all operating parameters are multiplied to obtain the safety status value of the current energy storage unit.
[0269] Optionally, determining the safety state value of the current operating parameter according to the difference between the current value of the current operating parameter and its rated state value, and the difference between the safety threshold of the current operating parameter and its rated state value, includes:
[0270] The safety status value of the current operating parameters is calculated using the following formula:
[0271]
[0272] Among them, x rat,w is the rated state value of the wth operating parameter; x sec,wis the safety threshold of the wth operating parameter, x cur,w is the current value of the wth operating parameter.
[0273] Optionally, the operating parameters of the energy storage unit also include:
[0274] The remaining number of charge and discharge cycles and the state of charge value of the energy storage unit;
[0275] The charge and discharge judgment value of each energy storage unit is determined based on the operating parameters, including:
[0276] The ratio of the remaining charge and discharge cycle number of the current energy storage unit to the theoretical charge and discharge cycle number of the current energy storage unit is used as the cycle state value of the current energy storage unit;
[0277] Determine the health status value corresponding to the current cycle status value of the energy storage unit according to a preset health status mapping table, wherein the health status mapping table at least includes different health status values corresponding to different cycle status values of the energy storage unit;
[0278] The state of charge reference value of the current energy storage unit is determined based on the state of charge value of the current energy storage unit, or based on the state of charge value of the current energy storage unit and the health state value of the current energy storage unit, and the difference between the state of charge value of the current energy storage unit and the state of charge reference value is determined as the charge and discharge judgment value of the current energy storage unit.
[0279] Optionally, the state of charge reference value of the current energy storage unit is determined according to the state of charge value of the current energy storage unit, or according to the state of charge value of the current energy storage unit and the health state value of the current energy storage unit, including:
[0280] When the state of charge value of the current energy storage unit belongs to a preset state of charge value interval, determining a ratio of the first preset value to the health state value of the current energy storage unit as a state of charge reference value of the current energy storage unit; and
[0281] When the state of charge value of the current energy storage unit does not belong to the preset state of charge value interval, the second preset value is determined as the state of charge reference value of the current energy storage unit.
[0282] Optionally, determining an energy storage unit among the energy storage units that meets the safety state threshold, the charge and discharge judgment value, and the first target scheduling power as the target energy storage unit includes:
[0283] Determine that an energy storage unit whose safety state value is not less than a safety state threshold is a safe energy storage unit;
[0284] The rated charging power or the rated discharging power of each safety energy storage unit is accumulated in descending order according to the charge and discharge judgment value of each safety energy storage unit, until the accumulated sum of the rated charging power or the rated discharging power of each safety energy storage unit is not less than the first target dispatching power, and the safety energy storage unit corresponding to the current accumulated sum of the rated charging power or the rated discharging power of each safety energy storage unit is determined as the target energy storage unit.
[0285] Optionally, constraints include:
[0286] Constraints on the state of charge value of each energy storage unit, charging and discharging power constraints, state of charge change constraints, and power balance constraints of the microgrid;
[0287] State of charge value constraints include:
[0288] The current state of charge value of the energy storage unit is not less than the minimum allowable state of charge value and not greater than the maximum allowable state of charge value;
[0289] The charge and discharge power constraints include:
[0290] The discharge power of the current energy storage unit in the current discharge period is not less than the minimum discharge power of the current energy storage unit, and is not greater than the maximum discharge power of the current energy storage unit. The charging power of the current energy storage unit in the current charging period is not less than the minimum charging power of the current energy storage unit, and is not greater than the maximum charging power of the current energy storage unit.
[0291] The state of charge change constraints include:
[0292]
[0293]
[0294] Among them, SOC x,t+1 is the state of charge value of the x-th energy storage unit in the t+1 period, SOC x,t is the state of charge value of the x-th energy storage unit in period t, P x,t,disc is the discharge power of the energy storage battery unit x in period t, T disc is the discharge time, S x is the rated capacity of the xth energy storage unit, S x SOH x is the actual capacity of the x-th energy storage unit, P x,t,char is the charging power of the energy storage battery unit x in period t, T char For charging time;
[0295] The power balance constraints of the microgrid include:
[0296] The sum of the power of the first energy conversion device and the power of the DC load on the DC bus side is the same as the power on the DC bus side of the second energy conversion device;
[0297] The sum of the power of the second energy conversion device on the AC bus side and the power of the AC load on the AC bus side is the same as the power of the power grid on the AC bus side.
[0298] Optionally, the minimum discharge power of the current energy storage unit is determined by the following steps:
[0299] The first target dispatching power is averaged based on the number of target energy storage units to obtain the second target dispatching power of each target energy storage unit, and the safety state value of the current energy storage unit and the second target dispatching power are multiplied to obtain the minimum discharge power of the current energy storage unit;
[0300] The maximum discharge power of the current energy storage unit is determined by the following steps:
[0301] Perform multiplication operation on the safety state value of the current energy storage unit and the rated amplified electric power to obtain the maximum discharge power of the current energy storage unit;
[0302] The minimum charging power of the current energy storage unit is determined by the following steps:
[0303] Perform a multiplication operation on the safety state value of the current energy storage unit and the second target dispatching power to obtain the minimum charging power of the current energy storage unit;
[0304] The maximum charging power of the current energy storage unit is determined by the following steps:
[0305] The safety status value of the current energy storage unit and the rated charging power are multiplied to obtain the maximum charging power of the current energy storage unit.
[0306] Optionally, the scheduling optimization module is configured to perform the following steps:
[0307] S1. Establish a system consisting of multiple particles and multiple disks, where the particles and the disks are on the same horizontal plane;
[0308] S2, initializing algorithm parameters, which at least include population size, number of disks, disk radius, and maximum number of iterations;
[0309] S3, converting the charge and discharge states of each energy storage unit at different time periods into the position vector of each particle, randomly generating the initial position of each particle, and randomly generating the position of each disk;
[0310] S4, calculating the Euclidean distance between each particle and the center of each disk, determining that particles whose Euclidean distance to the center of at least one disk is smaller than the radius of the disk are covered particles, and taking the ratio of the covered particles to the total number of particles as the initial coverage rate of the particles;
[0311] S5. Taking the output value of the objective function as the fitness value of each particle, the individual extreme value of each particle and the global extreme value of the population are determined according to the fitness value of each particle;
[0312] S6, updating the position and velocity of each particle based on the individual extreme value of each particle, the population extreme value and the distance between each particle and each disk;
[0313] S7. If all particles are covered particles and the maximum number of iterations is reached, the current global extreme value is taken as the optimal solution; otherwise, return to step S5.
[0314] Optionally, the position and velocity of each particle are updated based on the individual extreme value of each particle, the population extreme value and the distance between each particle and each disk, including:
[0315] Update the position of each particle using the following formula:
[0316] ;
[0317] Update the velocity of each particle using the following formula:
[0318]
[0319] in, is the inertia weight, C1 and C2 are acceleration factors, C3 is the pseudo-gravitational acceleration coefficient, r1, r2, and r3 are random numbers between 0 and 1, and x m (k) is the position of particle m at the kth iteration, V m (k) is the velocity of particle m at the kth iteration, P best,m is the individual extreme value of the particle, G best is the global extreme value of the population, g m (k) is the pseudo-gravitational force;
[0320] in, , r j is the radius of the jth disk, d mq Represents the distance between the disk and the particle.
[0321] Optionally, after updating the position and velocity of each particle, the scheduling optimization module is further configured as follows:
[0322] Update the inertia weight by the following formula:
[0323]
[0324] in, is the maximum inertia weight, is the minimum inertia weight, is the maximum number of iterations, k is the current number of iterations, k1=0.7k max , k2=0.8 k max .
[0325] It is understandable that the technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0326] In a third aspect of the present application, a machine-readable storage medium is provided, on which instructions are stored, and when the instructions are executed by a processor, the processor is configured to execute the microgrid energy storage energy management method as described above.
[0327] In a fourth aspect of the present application, a terminal device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the microgrid energy storage management method as described above are implemented.
[0328] like Figure 6 FIG. 1 is a schematic diagram of a terminal device provided in an embodiment of the present application. Figure 6 As shown, the terminal device 10 of this embodiment includes: a processor 100, a memory 101, and a computer program 102 stored in the memory 101 and executable on the processor 100. When the processor 100 executes the computer program 102, the steps in the above method embodiment are implemented. Alternatively, when the processor 100 executes the computer program 102, the functions of each module / unit in the above device embodiments are implemented.
[0329] Exemplarily, the computer program 102 may be divided into one or more modules / units, one or more modules / units are stored in the memory 101, and are executed by the processor 100 to complete the present application. One or more modules / units may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program 102 in the terminal device 10.
[0330] The terminal device 10 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The terminal device 10 may include, but is not limited to, a processor 100 and a memory 101. Those skilled in the art will appreciate that Figure 6 It is only an example of the terminal device 10 and does not constitute a limitation of the terminal device 10. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal device may also include input and output devices, network access devices, buses, etc.
[0331] The processor 100 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0332] The memory 101 may be an internal storage unit of the terminal device 10, such as a hard disk or memory of the terminal device 10. The memory 101 may also be an external storage device of the terminal device 10, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card (FlashCard), etc. equipped on the terminal device 10. Further, the memory 101 may also include both an internal storage unit of the terminal device 10 and an external storage device. The memory 101 is used to store computer programs and other programs and data required by the terminal device 10. The memory 101 may also be used to temporarily store data that has been output or is to be output.
[0333] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0334] In summary, this application is based on time-of-use electricity price information, considers the three state information of the risk of energy storage batteries, namely, the safety state, the state of charge, and the health state, and establishes an objective function in combination with the carbon trading cost. The objective function is solved by the improved particle swarm algorithm to achieve the management and scheduling of microgrid energy storage. At the same time, the improved particle swarm algorithm of this application can realize the sharing of location information, reasonably adjust the distance between particles, thereby increasing the coverage of the target area, speeding up the search speed of particles, preventing the algorithm from falling into the local optimum, and increasing the global optimization ability of the algorithm.
[0335] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0336] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A microgrid energy storage energy management method, characterized in that: include: In response to the energy dispatch instruction, a first target dispatch power is determined, and a pre-established charge-discharge dispatch model is invoked, wherein the charge-discharge dispatch model includes an objective function and constraints with a minimum cost as a goal, wherein the objective function is constructed based on at least the discharge revenue and charging cost of each energy storage unit under dynamic electricity prices in different time periods; Obtaining operating parameters of each energy storage unit, determining a safety state value and a charge-discharge judgment value of each energy storage unit based on the operating parameters, and determining an energy storage unit among the energy storage units that meets the safety state threshold, the charge-discharge judgment value, and the first target dispatching power as a target energy storage unit; Solving the charge-discharge scheduling model using an improved particle swarm algorithm to obtain an optimal solution that satisfies the objective function and the constraints, wherein the optimal solution includes the charge-discharge state and charge-discharge power of each target energy storage unit at different time periods; According to the charge and discharge status and charge and discharge power of each target energy storage unit in different time periods, the corresponding target energy storage unit is controlled to charge and discharge at the corresponding charge and discharge power in the corresponding time period; The discharge benefit of each target energy storage unit is the difference between the total discharge benefit of each target energy storage unit in each discharge period and the total discharge cost of each target energy storage unit in each discharge period; The charging cost of each target energy storage unit is the sum of the total charging cost of each target energy storage unit in each charging period and the total charging expenditure of each target energy storage unit in each charging period; The total discharge revenue of each target energy storage unit in each discharge period is obtained based on the discharge power of each target energy storage unit in the current discharge period, the current discharge period, the conversion efficiency of the discharge power, and the time-of-use electricity price in the current discharge period. The total discharge cost of each target energy storage unit in each discharge period is obtained based on the discharge power of each target energy storage unit in the current discharge period, the current discharge period, the rated capacity of the target energy storage unit, the current number of cycles of the target energy storage unit, the current depth of discharge of the target energy storage unit, and the investment cost of the target energy storage unit, wherein the conversion efficiency of the discharge power includes at least the conversion efficiency of the first energy conversion device between the energy storage unit and the DC bus, and the conversion efficiency of the second energy conversion device between the DC bus and the AC bus; The total charging cost of each target energy storage unit in each charging period is obtained based on the charging power of each target energy storage unit in the current discharge period, the current charging period, the rated capacity of the target energy storage unit, the current number of cycles of the target energy storage unit, the current depth of charge of the target energy storage unit, and the investment cost of the target energy storage unit; The total charging expenditure of each target energy storage unit in each charging period is obtained based on the charging power of each target energy storage unit in the current charging period, the current charging period, the conversion efficiency of the charging power, and the time-of-use electricity price of the current charging period, wherein the conversion efficiency of the charging power includes at least the conversion efficiency of the first energy conversion device and the conversion efficiency of the second energy conversion device; The objective function also includes carbon trading income, and the objective function is as follows: C pro =C disc -C char +C carbon Among them, C pro is the total revenue, C disc is the discharge benefit of each target energy storage unit, C char is the charging cost of each target energy storage unit, C carbon Carbon trading income is obtained based on the carbon trading price and the difference between the total CO2 emissions and the carbon emission quota; The total CO2 emissions are obtained based on the sum of the CO2 emissions of each energy device in the microgrid. The CO2 emissions of each energy device are obtained by multiplying the sum of the first carbon emission coefficient and the second carbon emission coefficient of the current energy device by the operating power of the current energy device. The first carbon emission coefficient is the carbon emission coefficient of the current energy device in the transportation stage, and the second carbon emission coefficient is the carbon emission coefficient of the current energy device in the operation stage. The constraints include: State of charge value constraints of each energy storage unit, charge and discharge power constraints, state of charge change constraints and power balance constraints of the microgrid.
2. The microgrid energy storage energy management method according to claim 1, characterized in that: The operating parameters of the energy storage unit include: at least one of the voltage, temperature, internal resistance, and mechanical deformation of the energy storage unit; Determining a safety status value of each energy storage unit based on the operating parameters includes: Determining a rated state value of a current operating parameter and a safety threshold of the current operating parameter, wherein the safety threshold of the current operating parameter is greater than the rated state value thereof; Determining the safety state value of the current operating parameter based on the difference between the current value of the current operating parameter and its rated state value, and the difference between the safety threshold of the current operating parameter and its rated state value; The safety status value of the current energy storage unit is obtained by multiplying the safety status values of all operating parameters.
3. The microgrid energy storage management method according to claim 2, characterized in that: The safety state value of the current operating parameter is determined based on the difference between the current value of the current operating parameter and its rated state value, and the difference between the safety threshold of the current operating parameter and its rated state value, including: The safety status value of the current operating parameters is calculated using the following formula: Among them, x rat,w is the rated state value of the wth operating parameter; x sec,w is the safety threshold of the wth operating parameter, x cur,w is the current value of the wth operating parameter.
4. The microgrid energy storage management method according to claim 2, characterized in that: The operating parameters of the energy storage unit also include: The remaining number of charge and discharge cycles and the state of charge value of the energy storage unit; Determining a charge and discharge judgment value of each energy storage unit based on the operating parameters includes: The ratio of the remaining charge and discharge cycles of the current energy storage unit to the theoretical charge and discharge cycles of the current energy storage unit is used as the cycle state value of the current energy storage unit; Determining a health status value corresponding to the current cycle state value of the energy storage unit according to a preset health status mapping table, wherein the health status mapping table at least includes different health status values corresponding to different cycle state values of the energy storage unit; The state of charge reference value of the current energy storage unit is determined based on the state of charge value of the current energy storage unit, or based on the state of charge value of the current energy storage unit and the health status value of the current energy storage unit, and the difference between the state of charge value of the current energy storage unit and the state of charge reference value is determined as the charge and discharge judgment value of the current energy storage unit.
5. The microgrid energy storage management method according to claim 4, characterized in that: Determining a state of charge reference value of the current energy storage unit based on the state of charge value of the current energy storage unit, or based on the state of charge value of the current energy storage unit and the health state value of the current energy storage unit, includes: When the state of charge value of the current energy storage unit falls within a preset state of charge value interval, determining a ratio of the first preset value to the health state value of the current energy storage unit as a state of charge reference value of the current energy storage unit; and When the current state of charge value of the energy storage unit does not belong to the preset state of charge value range, the second preset value is determined as the state of charge reference value of the current energy storage unit.
6. The microgrid energy storage management method according to claim 4, characterized in that: Determining an energy storage unit among the energy storage units that meets the safety state threshold, the charge and discharge judgment value, and the first target dispatch power as a target energy storage unit includes: Determining an energy storage unit whose safety state value is not less than the safety state threshold as a safe energy storage unit; The rated charging power or rated discharging power of each safety energy storage unit is accumulated in descending order according to the charge and discharge judgment value of each safety energy storage unit until the accumulated sum of the rated charging power or rated discharging power of each safety energy storage unit is not less than the first target scheduling power, and the safety energy storage unit corresponding to the current accumulated sum of the rated charging power or rated discharging power of each safety energy storage unit is determined as the target energy storage unit.
7. The microgrid energy storage management method according to claim 6, characterized in that: The state of charge value constraints include: The current state of charge of the energy storage unit is not less than the minimum allowable state of charge and not greater than the maximum allowable state of charge; The charge and discharge power constraints include: The discharge power of the current energy storage unit in the current discharge period is not less than the minimum discharge power of the current energy storage unit and not greater than the maximum discharge power of the current energy storage unit. The charging power of the current energy storage unit in the current charging period is not less than the minimum charging power of the current energy storage unit and not greater than the maximum charging power of the current energy storage unit. The state of charge change constraints include: Among them, SOC x,t+1 is the state of charge value of the x-th energy storage unit at time t+1, SOC x,t is the state of charge value of the x-th energy storage unit in time period t, P x,t,disc is the discharge power of the energy storage battery unit x in period t, T disc is the discharge time, S x is the rated capacity of the x-th energy storage unit, S x SOH x is the actual capacity of the x-th energy storage unit, P x,t,char is the charging power of the energy storage battery unit x in period t, T char is the charging time; The power balance constraints of the microgrid include: The sum of the power of the first energy conversion device and the power of the DC load on the DC bus side is the same as the power on the DC bus side of the second energy conversion device; The sum of the AC bus-side power of the second energy conversion device and the power of the AC load on the AC bus side is the same as the grid power on the AC bus side.
8. The microgrid energy storage management method according to claim 7, characterized in that: The minimum discharge power of the current energy storage unit is determined by the following steps: averaging the first target dispatching power based on the number of target energy storage units to obtain a second target dispatching power for each target energy storage unit, and multiplying the safety state value of the current energy storage unit by the second target dispatching power to obtain a minimum discharge power for the current energy storage unit; The maximum discharge power of the current energy storage unit is determined by the following steps: Perform a multiplication operation on the safety state value of the current energy storage unit and the rated amplified electric power to obtain the maximum discharge power of the current energy storage unit; The minimum charging power of the current energy storage unit is determined by the following steps: Performing a multiplication operation on the safety state value of the current energy storage unit and the second target scheduling power to obtain the minimum charging power of the current energy storage unit; The maximum charging power of the current energy storage unit is determined by the following steps: A multiplication operation is performed on the safety state value of the current energy storage unit and the rated charging power to obtain the maximum charging power of the current energy storage unit.
9. The microgrid energy storage management method according to claim 1, characterized in that: The charge and discharge scheduling model is solved by an improved particle swarm optimization algorithm, including: S1. Establish a system consisting of multiple particles and multiple disks, with the particles and disks being on the same horizontal plane; S2. Initialize algorithm parameters, which include at least the population size, the number of disks, the disk radius, and the maximum number of iterations; S3, converting the charge and discharge states of each energy storage unit at different time periods into the position vector of each particle, randomly generating the initial position of each particle, and randomly generating the position of each disk; S4. Calculate the Euclidean distance between each particle and the center of each disk, determine that particles whose Euclidean distance to the center of at least one disk is less than the radius of the disk are covered particles, and use the ratio of the covered particles to the total number of particles as the initial coverage rate of the particles; S5. Using the output value of the objective function as the fitness value of each particle, and determining the individual extreme value of each particle and the global extreme value of the population according to the fitness value of each particle; S6. Update the position and velocity of each particle based on the individual extreme value of each particle, the population extreme value, and the distance between each particle and each disk; S7. If all particles are covered particles and the maximum number of iterations is reached, the current global extreme value is taken as the optimal solution; otherwise, return to step S5.
10. The microgrid energy storage management method according to claim 9, characterized in that: Update the position and velocity of each particle based on its individual extreme value, population extreme value, and the distance between each particle and each disk, including: Update the position of each particle using the following formula: ; Update the velocity of each particle using the following formula: in, is the inertia weight, C1 and C2 are acceleration factors, C3 is the pseudo-gravitational acceleration coefficient, r1, r2, and r3 are random numbers between 0 and 1, and x m (k) is the position of particle m at the kth iteration, V m (k) is the velocity of particle m at the kth iteration, P best,m is the individual extreme value of the particle, G best is the global extreme value of the population, g m (k) is the pseudo-gravitational force; in, , represents the mass of the qth disk, r j is the radius of the jth disk, d mq Represents the distance between the disk and the particle.
11. The microgrid energy storage management method according to claim 10, characterized in that: After updating the position and velocity of each particle, step S6 further includes: Update the inertia weight using the following formula: in, is the maximum inertia weight, is the minimum inertia weight, k max is the maximum number of iterations, k is the current number of iterations, k1=0.7k max , k2 = 0.8 k max .
12. A microgrid energy storage energy management device, characterized in that: include: a command response module configured to, in response to the energy scheduling command, determine a first target scheduling power and invoke a pre-established charge-discharge scheduling model, wherein the charge-discharge scheduling model includes an objective function and constraints with a minimum cost objective, wherein the objective function is constructed based on at least the discharge revenue and charging cost of each energy storage unit under dynamic electricity prices in different time periods; an energy storage unit configuration module configured to obtain operating parameters of each energy storage unit, determine a safety state value and a charge / discharge judgment value of each energy storage unit based on the operating parameters, and determine an energy storage unit among the energy storage units that meets the safety state threshold, the charge / discharge judgment value, and the first target dispatch power as a target energy storage unit; a scheduling optimization module configured to solve the charge-discharge scheduling model using an improved particle swarm algorithm to obtain an optimal solution that satisfies the objective function and the constraints, wherein the optimal solution includes the charge-discharge state and charge-discharge power of each target energy storage unit at different time periods; The scheduling control module is configured to control the corresponding target energy storage unit to charge and discharge at the corresponding charge and discharge power in the corresponding time period according to the charge and discharge status and charge and discharge power of each target energy storage unit in different time periods; The discharge benefit of each target energy storage unit is the difference between the total discharge benefit of each target energy storage unit in each discharge period and the total discharge cost of each target energy storage unit in each discharge period; The charging cost of each target energy storage unit is the sum of the total charging cost of each target energy storage unit in each charging period and the total charging expenditure of each target energy storage unit in each charging period; The total discharge revenue of each target energy storage unit in each discharge period is obtained based on the discharge power of each target energy storage unit in the current discharge period, the current discharge period, the conversion efficiency of the discharge power, and the time-of-use electricity price in the current discharge period. The total discharge cost of each target energy storage unit in each discharge period is obtained based on the discharge power of each target energy storage unit in the current discharge period, the current discharge period, the rated capacity of the target energy storage unit, the current number of cycles of the target energy storage unit, the current depth of discharge of the target energy storage unit, and the investment cost of the target energy storage unit, wherein the conversion efficiency of the discharge power includes at least the conversion efficiency of the first energy conversion device between the energy storage unit and the DC bus, and the conversion efficiency of the second energy conversion device between the DC bus and the AC bus; The total charging cost of each target energy storage unit in each charging period is obtained based on the charging power of each target energy storage unit in the current discharge period, the current charging period, the rated capacity of the target energy storage unit, the current number of cycles of the target energy storage unit, the current depth of charge of the target energy storage unit, and the investment cost of the target energy storage unit; The total charging expenditure of each target energy storage unit in each charging period is obtained based on the charging power of each target energy storage unit in the current charging period, the current charging period, the conversion efficiency of the charging power, and the time-of-use electricity price of the current charging period, wherein the conversion efficiency of the charging power includes at least the conversion efficiency of the first energy conversion device and the conversion efficiency of the second energy conversion device; The objective function also includes carbon trading income, and the objective function is as follows: C pro =C disc -C char +C carbon Among them, C pro is the total revenue, C disc is the discharge benefit of each target energy storage unit, C char is the charging cost of each target energy storage unit, C carbon Carbon trading income is obtained based on the carbon trading price and the difference between the total CO2 emissions and the carbon emission quota; The total CO2 emissions are obtained based on the sum of the CO2 emissions of each energy device in the microgrid. The CO2 emissions of each energy device are obtained by multiplying the sum of the first carbon emission coefficient and the second carbon emission coefficient of the current energy device by the operating power of the current energy device. The first carbon emission coefficient is the carbon emission coefficient of the current energy device in the transportation stage, and the second carbon emission coefficient is the carbon emission coefficient of the current energy device in the operation stage. The constraints include: State of charge value constraints of each energy storage unit, charge and discharge power constraints, state of charge change constraints and power balance constraints of the microgrid.
13. The microgrid energy storage management device according to claim 12, characterized in that: The operating parameters of the energy storage unit include: at least one of the voltage, temperature, internal resistance, and mechanical deformation of the energy storage unit; Determining a safety status value of each energy storage unit based on the operating parameters includes: Determining a rated state value of a current operating parameter and a safety threshold of the current operating parameter, wherein the safety threshold of the current operating parameter is greater than the rated state value thereof; Determining the safety state value of the current operating parameter based on the difference between the current value of the current operating parameter and its rated state value, and the difference between the safety threshold of the current operating parameter and its rated state value; The safety status value of the current energy storage unit is obtained by multiplying the safety status values of all operating parameters.
14. The microgrid energy storage management device according to claim 13, characterized in that: The safety state value of the current operating parameter is determined based on the difference between the current value of the current operating parameter and its rated state value, and the difference between the safety threshold of the current operating parameter and its rated state value, including: The safety status value of the current operating parameters is calculated using the following formula: Among them, x rat,w is the rated state value of the wth operating parameter; x sec,w is the safety threshold of the wth operating parameter, x cur,w is the current value of the wth operating parameter.
15. The microgrid energy storage management device according to claim 13, characterized in that: The operating parameters of the energy storage unit also include: The remaining number of charge and discharge cycles and the state of charge value of the energy storage unit; Determining a charge and discharge judgment value of each energy storage unit based on the operating parameters includes: The ratio of the remaining charge and discharge cycles of the current energy storage unit to the theoretical charge and discharge cycles of the current energy storage unit is used as the cycle state value of the current energy storage unit; Determining a health status value corresponding to the current cycle state value of the energy storage unit according to a preset health status mapping table, wherein the health status mapping table at least includes different health status values corresponding to different cycle state values of the energy storage unit; The state of charge reference value of the current energy storage unit is determined based on the state of charge value of the current energy storage unit, or based on the state of charge value of the current energy storage unit and the health status value of the current energy storage unit, and the difference between the state of charge value of the current energy storage unit and the state of charge reference value is determined as the charge and discharge judgment value of the current energy storage unit.
16. The microgrid energy storage management device according to claim 15, characterized in that: Determining a state of charge reference value of the current energy storage unit based on the state of charge value of the current energy storage unit, or based on the state of charge value of the current energy storage unit and the health state value of the current energy storage unit, includes: When the state of charge value of the current energy storage unit falls within a preset state of charge value interval, determining a ratio of the first preset value to the health state value of the current energy storage unit as a state of charge reference value of the current energy storage unit; and When the current state of charge value of the energy storage unit does not belong to the preset state of charge value range, the second preset value is determined as the state of charge reference value of the current energy storage unit.
17. The microgrid energy storage management device according to claim 15, characterized in that: Determining an energy storage unit among the energy storage units that meets the safety state threshold, the charge and discharge judgment value, and the first target dispatch power as a target energy storage unit includes: Determining an energy storage unit whose safety state value is not less than the safety state threshold as a safe energy storage unit; The rated charging power or rated discharging power of each safety energy storage unit is accumulated in descending order according to the charge and discharge judgment value of each safety energy storage unit until the accumulated sum of the rated charging power or rated discharging power of each safety energy storage unit is not less than the first target scheduling power, and the safety energy storage unit corresponding to the current accumulated sum of the rated charging power or rated discharging power of each safety energy storage unit is determined as the target energy storage unit.
18. The microgrid energy storage management device according to claim 17, wherein the state of charge value constraint comprises: The current state of charge of the energy storage unit is not less than the minimum allowable state of charge and not greater than the maximum allowable state of charge; The charge and discharge power constraints include: The discharge power of the current energy storage unit in the current discharge period is not less than the minimum discharge power of the current energy storage unit and not greater than the maximum discharge power of the current energy storage unit. The charging power of the current energy storage unit in the current charging period is not less than the minimum charging power of the current energy storage unit and not greater than the maximum charging power of the current energy storage unit. The state of charge change constraints include: Among them, SOC x,t+1 is the state of charge value of the x-th energy storage unit at time t+1, SOC x,t is the state of charge value of the x-th energy storage unit in time period t, P x,t,disc is the discharge power of the energy storage battery unit x in period t, T disc is the discharge time, S x is the rated capacity of the x-th energy storage unit, S x SOH x is the actual capacity of the x-th energy storage unit, P x,t,char is the charging power of the energy storage battery unit x in period t, T char is the charging time; The power balance constraints of the microgrid include: The sum of the power of the first energy conversion device and the power of the DC load on the DC bus side is the same as the power on the DC bus side of the second energy conversion device; The sum of the AC bus-side power of the second energy conversion device and the power of the AC load on the AC bus side is the same as the grid power on the AC bus side.
19. The microgrid energy storage management device according to claim 18, characterized in that: The minimum discharge power of the current energy storage unit is determined by the following steps: averaging the first target dispatching power based on the number of target energy storage units to obtain a second target dispatching power for each target energy storage unit, and multiplying the safety state value of the current energy storage unit by the second target dispatching power to obtain a minimum discharge power for the current energy storage unit; The maximum discharge power of the current energy storage unit is determined by the following steps: Perform a multiplication operation on the safety state value of the current energy storage unit and the rated amplified electric power to obtain the maximum discharge power of the current energy storage unit; The minimum charging power of the current energy storage unit is determined by the following steps: Performing a multiplication operation on the safety state value of the current energy storage unit and the second target scheduling power to obtain the minimum charging power of the current energy storage unit; The maximum charging power of the current energy storage unit is determined by the following steps: A multiplication operation is performed on the safety state value of the current energy storage unit and the rated charging power to obtain the maximum charging power of the current energy storage unit.
20. The microgrid energy storage management device according to claim 12, characterized in that: The scheduling optimization module is configured to perform the following steps: S1. Establish a system consisting of multiple particles and multiple disks, with the particles and disks being on the same horizontal plane; S2. Initialize algorithm parameters, which include at least the population size, the number of disks, the disk radius, and the maximum number of iterations; S3, converting the charge and discharge states of each energy storage unit at different time periods into the position vector of each particle, randomly generating the initial position of each particle, and randomly generating the position of each disk; S4. Calculate the Euclidean distance between each particle and the center of each disk, determine that particles whose Euclidean distance to the center of at least one disk is less than the radius of the disk are covered particles, and use the ratio of the covered particles to the total number of particles as the initial coverage rate of the particles; S5. Using the output value of the objective function as the fitness value of each particle, and determining the individual extreme value of each particle and the global extreme value of the population according to the fitness value of each particle; S6. Update the position and velocity of each particle based on the individual extreme value of each particle, the population extreme value, and the distance between each particle and each disk; S7. If all particles are covered particles and the maximum number of iterations is reached, the current global extreme value is taken as the optimal solution; otherwise, return to step S5.
21. The microgrid energy storage management device according to claim 20, characterized in that: Update the position and velocity of each particle based on its individual extreme value, population extreme value, and the distance between each particle and each disk, including: Update the position of each particle using the following formula: ; Update the velocity of each particle using the following formula: in, is the inertia weight, C1 and C2 are acceleration factors, C3 is the pseudo-gravitational acceleration coefficient, r1, r2, and r3 are random numbers between 0 and 1, and x m (k) is the position of particle m at the kth iteration, V m (k) is the velocity of particle m at the kth iteration, P best,m is the individual extreme value of the particle, G best is the global extreme value of the population, g m (k) is the pseudo-gravitational force; in, , represents the mass of the qth disk, r j is the radius of the jth disk, d mq Represents the distance between the disk and the particle.
22. The microgrid energy storage management device according to claim 21, characterized in that: After updating the position and velocity of each particle, the scheduling optimization module is further configured to: Update the inertia weight using the following formula: in, is the maximum inertia weight, is the minimum inertia weight, k max is the maximum number of iterations, k is the current number of iterations, k1=0.7k max , k2 = 0.8 k max .
23. A machine-readable storage medium having instructions stored thereon, characterized in that: When the instruction is executed by a processor, the processor is configured to execute the microgrid energy storage energy management method as described in any one of claims 1 to 11.
24. A terminal 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 computer program, the steps of the microgrid energy storage energy management method according to any one of claims 1 to 11 are implemented.
