A microgrid energy storage monitoring method based on edge sensing
By using edge sensing technology for energy storage monitoring in microgrids, calculating migration information and operating costs of energy storage equipment, and constructing optimization objective functions, the problem of information delay in traditional energy storage monitoring methods is solved and more efficient energy storage is achieved. Information monitoring and cost optimization.
Patent Information
- Application Number
- CN202410818019.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-06-24
AI Technical Summary
Traditional microgrid energy storage monitoring methods rely on centralized monitoring systems, resulting in delays in information transmission and regulation, affecting the real-time performance and reliability of the system.
Using the microgrid energy storage monitoring method based on edge sensing, through information processing and analysis at the source of data generation, the migration information and operating costs of energy storage equipment are calculated, and an optimization objective function is constructed to minimize data migration energy consumption and operating costs to achieve Real-time monitoring of energy storage information and optimized configuration strategies.
It improves the real-time and accuracy of microgrid energy storage monitoring, reduces information transmission delays, optimizes the operating costs of energy storage equipment, and ensures safe and stable operation of the system.
Smart Images

Figure CN118399610B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of energy storage monitoring, and in particular to a microgrid energy storage monitoring method based on edge sensing. Background Art
[0002] With the growth of energy demand and the growing call for environmental protection, microgrids, as a new type of power system model, are receiving more and more attention. Microgrids are small power systems composed of distributed energy resources, energy storage equipment, energy management systems and intelligent control systems, which can achieve reliable, efficient and clean energy supply. Among them, energy storage technology, as one of the key components of microgrids, is crucial to improving the energy management and operation efficiency of microgrids. At present, traditional microgrid energy storage monitoring methods mainly rely on centralized monitoring systems to monitor and control parameters such as voltage, current, and charge and discharge status of energy storage equipment. However, this centralized monitoring method has limitations, such as information transmission delay and regulation delay. In response to this problem, the present invention proposes a microgrid energy storage monitoring method based on edge perception, which can realize real-time perception and monitoring of system status and environmental changes by performing information processing and analysis at the source of data generation, improve the real-time, accuracy and reliability of the monitoring system, and provide important support for the safe and stable operation of microgrids. Summary of the invention
[0003] In view of this, the present invention provides a microgrid energy storage monitoring method based on edge perception, the purpose of which is: 1) by calculating the migration delay and migration energy consumption of energy storage devices to migrate data to different servers, the migration information of operating data in different energy storage devices is formed, and the migration information is constructed as a migration optimization objective function, and the objective function is optimized and solved with minimizing the data migration energy consumption as the goal, and the migration target server of the operating data in the energy storage device is obtained, so as to realize the perception and processing of energy storage information by the edge server in the microgrid, and perform energy storage monitoring on the received operating data, and the data distribution calculation based on the operating data is carried out. The energy storage monitoring index is calculated, where the larger the energy storage monitoring index is, the more abnormal the value of the electric energy stored in the energy storage device corresponding to the operating data is, so as to realize the energy storage information monitoring of the energy storage device in the microgrid; 2) The operating costs of different energy storage devices are quantified, and the energy storage optimization configuration objective function is constructed based on the energy storage monitoring index. The objective function is solved with the goal of minimizing the operating cost, and the optimal energy storage optimization configuration strategy that does not affect the power consumption of electrical equipment in the microgrid and minimizes the operating cost of the energy storage equipment is obtained, so as to control the energy storage and energy release actions of different energy storage devices in the microgrid at the next operating moment.
[0004] To achieve the above object, the present invention provides a microgrid energy storage monitoring method based on edge sensing, comprising the following steps:
[0005] S1: Calculate the migration information of the operation data in different energy storage devices, wherein the migration delay and energy consumption are the migration information obtained by the calculation;
[0006] S2: Based on the migration information of the running data in different energy storage devices, a migration optimization objective function and constraint conditions are constructed, wherein minimizing the data migration energy consumption is the optimization goal of the migration optimization objective function, and the constraint condition is a delay constraint;
[0007] S3: Solving the migration optimization objective function to obtain the optimal migration strategy, migrating the operating data in the energy storage device to the corresponding server, wherein the improved crow optimization algorithm is the main implementation method for solving the objective function;
[0008] S4: The server performs energy storage monitoring on the received operation data and constructs an energy storage optimization configuration objective function, wherein minimizing the operation cost of the microgrid energy storage equipment is the optimization target of the energy storage optimization configuration objective function;
[0009] S5: Optimize and solve the energy storage optimization configuration objective function to obtain the optimal energy storage optimization configuration strategy, and propagate the optimal energy storage optimization configuration strategy to the energy storage devices in the microgrid for adjustment and configuration.
[0010] As a further improvement method of the present invention:
[0011] Optionally, the step S1 of calculating migration information of operation data in different energy storage devices includes:
[0012] N energy storage devices are deployed in the microgrid as the edge devices of the microgrid. The energy storage devices are used to store the electric energy generated by the power generation equipment in the microgrid and transmit electric energy to the power consumption equipment. The time series of the electric energy stored in the energy storage device is used as the operation data of the energy storage device. The operation data of the nth energy storage device is:
[0013] ;
[0014] in:
[0015] Represents the operating data of the nth energy storage device, represents the electric energy value stored by the nth energy storage device at the mth operating moment, M represents the total number of operating moments of the energy storage device, , In the embodiment of the present invention, the time interval between adjacent running times is ;
[0016] Calculate the migration information of the energy storage device's operating data to different servers, where the operating data The calculation process of migration information to the hth server is as follows:
[0017] S11: Get the hth server assigned to the running data Bandwidth resource share , and calculate the distance between the hth server and the nth energy storage device ;
[0018] S12: Calculation will run data The lossy transmission rate of migration to the hth server is:
[0019] ;
[0020] in:
[0021] Indicates that the number of runs will be The lossy transmission rate of migration to the hth server;
[0022] c represents the speed of light;
[0023] represents the energy consumption adjustment coefficient;
[0024] S13: Calculate and obtain the running data Migration delay to the hth server:
[0025] ;
[0026] in:
[0027] Indicates running data The amount of data;
[0028] Indicates that the data will be run Migration delay to the hth server;
[0029] S14: Calculate and obtain the running data Energy consumption of migration to the hth server:
[0030] ;
[0031] in:
[0032] Indicates that the data will be run Migration energy consumption to the hth server;
[0033] Delay the migration And migration energy consumption As operating data Migration information to the hth server.
[0034] Optionally, in step S2, based on the migration information of the operating data in different energy storage devices, a migration optimization objective function is constructed, including:
[0035] Based on the migration information of running data in different energy storage devices, a migration optimization objective function and constraint conditions are constructed, wherein minimizing the data migration energy consumption is the optimization goal of the migration optimization objective function. The constructed migration optimization objective function is:
[0036]
[0037]
[0038] ;
[0039] in:
[0040] represents the migration optimization objective function, represents the migration strategy of the operating data of N energy storage devices, Indicates running data migration paths;
[0041] Indicates running data Migration results to the hth server, Indicates that the data will be run Migrate to the hth server, Indicates that the running data is not Migrate to the hth server.
[0042] Optionally, the constraints of the migration optimization objective function are:
[0043]
[0044] ;
[0045] in:
[0046] Indicates the maximum migration delay of migrating N running data to the server. Indicates the preset migration delay threshold.
[0047] Optionally, solving the migration optimization objective function in step S3 to obtain an optimal migration strategy includes:
[0048] The migration optimization objective function is solved to obtain the optimal migration strategy, wherein the improved crow optimization algorithm is the main implementation method for solving the objective function. The solution process of the migration optimization objective function is as follows:
[0049] S31: Initialize and generate U groups of migration strategies, wherein the generated u-th group of migration strategies is:
[0050]
[0051] ;
[0052] in:
[0053] represents the u-th group of migration strategies generated by initialization, , Indicates running data Migration path, ; Each group of migration strategies corresponds to the crow's flight position;
[0054] S32: Set the current iteration number of the migration strategy to t, the maximum iteration number to T, and the initial value of t to 0. Then the tth iteration result of the uth group migration strategy is:
[0055] ;
[0056] in:
[0057] represents the t-th iteration result of the u-th group migration strategy;
[0058] S33: Construct a fitness function based on the constraints and the migration optimization objective function, where the fitness function takes the migration strategy as input and the fitness function value corresponding to the migration strategy as output. The fitness function of the input is expressed as:
[0059] ;
[0060] in:
[0061] represents the fitness function;
[0062] Represents the migration strategy The corresponding fitness function value;
[0063] represents an exponential function with a natural constant as base;
[0064] S34: The migration strategy of group U obtained in the tth iteration is used as the input of the fitness function, and the migration strategy with the smallest fitness function value is used as the best migration strategy for the tth iteration. ;
[0065] S35: Iterate the migration strategy, wherein the migration strategy The iteration formula is:
[0066]
[0067]
[0068] ;
[0069] in:
[0070] Represents a random number between 0 and 1;
[0071] Indicates the flight stride length of a crow;
[0072] It represents the memory information of the crow during flight;
[0073] represents any migration strategy in the U group migration strategy obtained in the tth iteration;
[0074] represents the standard deviation of the optimal migration strategy after t iterations;
[0075] represents the position perception coefficient;
[0076] Represents a random number between 0 and 2. represents the L1 norm;
[0077] S36: Let t=t+1, return to step S34, until the maximum number of iterations is reached, and select the best migration strategy at this time as the optimal migration strategy, and use the optimal migration strategy to migrate the operating data of different energy storage devices to the corresponding server.
[0078] Optionally, in step S4, the server performs energy storage monitoring on the received operation data, including:
[0079] The server performs energy storage monitoring on the received operation data and obtains energy storage monitoring indicators for different operation data. The calculation formula of energy storage monitoring index is:
[0080] ;
[0081] in:
[0082] Indicates running data Energy storage monitoring indicators;
[0083] Indicates running data The maximum electrical energy value in Indicates running data The standard deviation of
[0084] Indicates the preset maximum value of electric energy storage of the energy storage device;
[0085] represents the adjustment coefficient, ;
[0086] The operating costs of different energy storage devices in the microgrid are calculated, where the operating cost of the nth energy storage device is:
[0087] ;
[0088] in:
[0089] represents the operating cost of the nth energy storage device;
[0090] represents the depreciation cost of the energy storage device per unit of electrical energy stored;
[0091] represents the fuel cost incurred by the nth energy storage device to deliver electric energy;
[0092] represents the penalty cost of power fluctuation caused by the transmission of power by the nth energy storage device;
[0093] The energy storage optimization configuration objective function is constructed based on the energy storage monitoring indicators of the operating data and the operating cost of the energy storage equipment.
[0094] Optionally, constructing the energy storage optimization configuration objective function includes:
[0095] An energy storage optimization configuration objective function is constructed, wherein minimizing the operating cost of the microgrid energy storage equipment is the optimization target of the energy storage optimization configuration objective function. The constructed energy storage optimization configuration objective function is:
[0096]
[0097] ;
[0098] in:
[0099] represents the objective function of energy storage optimization configuration, represents the energy storage optimization configuration strategy, represents the optimal configuration result of the nth energy storage device, represents the electric energy added by the nth energy storage device, represents the electrical energy released by the nth storage device;
[0100] Represents the power dispatch cost coefficient.
[0101] Optionally, in step S5, optimizing and solving the energy storage optimization configuration objective function to obtain the optimal energy storage optimization configuration strategy includes:
[0102] The energy storage optimization configuration objective function is optimized and solved to obtain the optimal energy storage optimization configuration strategy. The optimization solution process of the energy storage optimization configuration objective function is as follows:
[0103] S51: Initialize and generate K groups of energy storage optimization configuration strategies, and substitute each group of energy storage optimization configuration strategies into the energy storage optimization configuration objective function to obtain the objective function value of each group of energy storage optimization configuration strategies, wherein the kth group of energy storage optimization configuration strategies initialized and generated The objective function value is , ;
[0104] S52: Set the current iteration number of the energy storage optimization configuration strategy to d, where the initial value of d is 0 and the maximum value is D. Then the dth iteration result of the kth group energy storage optimization configuration strategy is ;
[0105] S53: Sort the K groups of energy storage optimization configuration strategies of the dth iteration in order of the objective function value from small to large, select the first K / 2 groups of energy storage optimization configuration strategies, perform cross-mutation processing based on the Levy path, and obtain the K / 2 groups of energy storage optimization configuration strategies after cross-mutation, and the selected first K / 2 groups of energy storage optimization configuration strategies and the K / 2 groups of energy storage optimization configuration strategies after cross-mutation constitute the K groups of energy storage optimization configuration strategies obtained in the d+1th iteration; in this embodiment of the present invention, the energy storage optimization configuration strategies The formula for crossover mutation processing is:
[0106] ;
[0107] in:
[0108] Represents energy storage optimization configuration strategy The result of crossover mutation processing, Levy represents the step length that conforms to the Levy flight process; Represents the random selection of energy storage optimization configuration strategy Some parameters in the Iterative processing;
[0109] S54: let d=d+1, return to step S53, until the maximum number of iterations is reached, and sort the K groups of energy storage optimization configuration strategies obtained by the final iteration in the order of the objective function value from small to large, calculate the total amount of released electric energy of each group of energy storage optimization configuration strategies in turn according to the sorting results, and select the energy storage optimization configuration strategy with the total amount of released electric energy reaching the target electric energy and the highest ranking as the solution result;
[0110] The optimal energy storage optimization configuration strategy is propagated to the energy storage devices in the microgrid, and the energy storage devices perform electric energy storage and electric energy release configuration according to the optimal energy storage optimization configuration strategy.
[0111] In order to solve the above problem, the present invention provides an electronic device, the electronic device comprising:
[0112] A memory storing at least one instruction;
[0113] Communication interface, enabling electronic equipment to communicate; and
[0114] The processor executes the instructions stored in the memory to implement the above-mentioned microgrid energy storage monitoring method based on edge perception.
[0115] In order to solve the above problems, the present invention also provides a computer-readable storage medium, in which at least one instruction is stored. The at least one instruction is executed by a processor in an electronic device to implement the above-mentioned edge-aware microgrid energy storage monitoring method.
[0116] Compared with the prior art, the present invention proposes a microgrid energy storage monitoring method based on edge sensing, which has the following advantages:
[0117] First, this scheme proposes a data migration method. Based on the migration information of running data in different energy storage devices, a migration optimization objective function and constraint conditions are constructed. Minimizing the data migration energy consumption is the optimization goal of the migration optimization objective function. The constructed migration optimization objective function is:
[0118]
[0119]
[0120] ;
[0121] in: represents the migration optimization objective function, represents the migration strategy of the operating data of N energy storage devices, Indicates running data migration paths; Indicates running data Migration results to the hth server, Indicates that the data will be run Migrate to the hth server, Indicates that the running data is not Migrate to the hth server. The constraints of the migration optimization objective function are:
[0122]
[0123] ;
[0124] in:
[0125] Indicates the maximum migration delay of migrating N running data to the server. Represents the preset migration delay threshold. Solve the migration optimization objective function to obtain the optimal migration strategy. The solution process of the migration optimization objective function is as follows: Initialize and generate U groups of migration strategies, where the generated u-th group of migration strategies is:
[0126]
[0127] ;
[0128] in:
[0129] represents the u-th group of migration strategies generated by initialization, , Indicates running data Migration path, ; Each group of migration strategies corresponds to the crow's flying position; set the current iteration number of the migration strategy to t, the maximum iteration number to T, and the initial value of t to 0, then the tth iteration result of the uth group of migration strategies is:
[0130] ;
[0131] in: represents the t-th iteration result of the u-th group migration strategy; constructs a fitness function based on the constraints and the migration optimization objective function, where the fitness function takes the migration strategy as input and the fitness function value corresponding to the migration strategy as output. The fitness function of the input is expressed as:
[0132] ;
[0133] in: represents the fitness function; Represents the migration strategy The corresponding fitness function value; represents an exponential function with a natural constant as the base; the migration strategy of group U obtained in the tth iteration is used as the input of the fitness function, and the migration strategy with the smallest fitness function value is used as the best migration strategy for the tth iteration ; Iterate the migration strategy, where the migration strategy The iteration formula is:
[0134]
[0135]
[0136] ;
[0137] in: Represents a random number between 0 and 1; Indicates the flight stride length of a crow; It represents the memory information of the crow during flight; represents any migration strategy in the U group migration strategy obtained in the tth iteration; represents the standard deviation of the optimal migration strategy after t iterations; represents the position perception coefficient; Represents a random number between 0 and 2. Represents the L1 norm; let t=t+1, until the maximum number of iterations is reached, and select the best migration strategy at this time as the optimal migration strategy, and use the optimal migration strategy to migrate the operating data of different energy storage devices to the corresponding server. This solution calculates the migration delay and migration energy consumption of energy storage devices to migrate data to different servers, constitutes the migration information of operating data in different energy storage devices, and constructs the migration information as a migration optimization objective function, optimizes and solves the objective function with the goal of minimizing data migration energy consumption, obtains the migration target server of the operating data in the energy storage device, realizes the perception and processing of energy storage information by the edge server in the microgrid, and performs energy storage monitoring on the received operating data. The energy storage monitoring index is calculated based on the data distribution of the operating data, where the larger the energy storage monitoring index, the more the numerical abnormality of the electric energy stored in the energy storage device corresponding to the operating data, and realizes the energy storage information monitoring of the energy storage device in the microgrid.
[0138] At the same time, this scheme proposes a method for quantifying the operating cost of energy storage equipment and an energy storage optimization configuration method, and constructs an energy storage optimization configuration objective function, wherein minimizing the operating cost of microgrid energy storage equipment is the optimization target of the energy storage optimization configuration objective function, and the constructed energy storage optimization configuration objective function is:
[0139]
[0140] ;
[0141] in:
[0142] represents the objective function of energy storage optimization configuration, represents the energy storage optimization configuration strategy, represents the optimal configuration result of the nth energy storage device, represents the electric energy added by the nth energy storage device, represents the electrical energy released by the nth storage device; Represents the electric energy dispatch cost coefficient. The energy storage optimization configuration objective function is optimized and solved to obtain the optimal energy storage optimization configuration strategy. The optimization solution process of the energy storage optimization configuration objective function is as follows: initialize and generate K groups of energy storage optimization configuration strategies, and substitute each group of energy storage optimization configuration strategies into the energy storage optimization configuration objective function to obtain the objective function value of each group of energy storage optimization configuration strategies, wherein the initialized k-th group of energy storage optimization configuration strategies The objective function value is , ; Set the current iteration number of the energy storage optimization configuration strategy to d, the initial value of d is 0, and the maximum value is D. Then the dth iteration result of the kth group energy storage optimization configuration strategy is ; Sort the K groups of energy storage optimization configuration strategies of the dth iteration in order from small to large objective function values, select the first K / 2 groups of energy storage optimization configuration strategies, perform cross-mutation processing based on Levy path, and obtain K / 2 groups of energy storage optimization configuration strategies after cross-mutation. The selected first K / 2 groups of energy storage optimization configuration strategies and the K / 2 groups of energy storage optimization configuration strategies after cross-mutation constitute the K groups of energy storage optimization configuration strategies obtained in the d+1th iteration; let d=d+1, and sort the K groups of energy storage optimization configuration strategies obtained in the final iteration in order from small to large objective function values, calculate the total amount of released electric energy of each group of energy storage optimization configuration strategies in turn according to the sorting results, select the energy storage optimization configuration strategy with the total amount of released electric energy reaching the target electric energy and the highest ranking as the solution result, propagate the optimal energy storage optimization configuration strategy to the energy storage devices in the microgrid, and the energy storage devices perform electric energy storage and electric energy release configuration according to the optimal energy storage optimization configuration strategy. This scheme quantifies the operating costs of different energy storage devices, and constructs an energy storage optimization configuration objective function based on energy storage monitoring indicators. The objective function is solved with the goal of minimizing the operating cost, and the optimal energy storage optimization configuration strategy is obtained that does not affect the power consumption of electrical equipment in the microgrid and minimizes the operating cost of the energy storage equipment. The energy storage and energy release actions of different energy storage devices in the microgrid at the next operating moment are controlled. BRIEF DESCRIPTION OF THE DRAWINGS
[0143] Figure 1 A schematic diagram of a flow chart of a microgrid energy storage monitoring method based on edge sensing provided by an embodiment of the present invention;
[0144] Figure 2 A schematic diagram of the structure of an electronic device for implementing a microgrid energy storage monitoring method based on edge perception provided by one embodiment of the present invention.
[0145] In the figure: 1 electronic device, 10 processor, 11 memory, 12 program, 13 communication interface.
[0146] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0147] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0148] The embodiment of the present application provides a microgrid energy storage monitoring method based on edge perception. The execution subject of the microgrid energy storage monitoring method based on edge perception includes but is not limited to at least one of the electronic devices such as a server and a terminal that can be configured to execute the method provided in the embodiment of the present application. In other words, the microgrid energy storage monitoring method based on edge perception can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc.
[0149] Embodiment 1:
[0150] S1: Calculate migration information of operation data in different energy storage devices, wherein migration delay and energy consumption are the migration information obtained by the calculation.
[0151] The calculation of migration information of operation data in different energy storage devices in step S1 includes:
[0152] N energy storage devices are deployed in the microgrid as the edge devices of the microgrid. The energy storage devices are used to store the electric energy generated by the power generation equipment in the microgrid and transmit electric energy to the power consumption equipment. The time series of the electric energy stored in the energy storage device is used as the operation data of the energy storage device. The operation data of the nth energy storage device is:
[0153] ;
[0154] in:
[0155] Represents the operating data of the nth energy storage device, represents the electric energy value stored by the nth energy storage device at the mth operating moment, M represents the total number of operating moments of the energy storage device, , In the embodiment of the present invention, the time interval between adjacent running times is ;
[0156] Calculate the migration information of the energy storage device's operating data to different servers, where the operating data The calculation process of migration information to the hth server is as follows:
[0157] S11: Get the hth server assigned to the running data Bandwidth resource share , and calculate the distance between the hth server and the nth energy storage device ;
[0158] S12: Calculation will run data The lossy transmission rate of migration to the hth server is:
[0159] ;
[0160] in:
[0161] Indicates that the data will be run The lossy transmission rate of migration to the hth server;
[0162] c represents the speed of light;
[0163] represents the energy consumption adjustment coefficient;
[0164] S13 calculates the running data Migration delay to the hth server:
[0165] ;
[0166] in:
[0167] Indicates running data The amount of data;
[0168] Indicates that the data will be run Migration delay to the hth server;
[0169] S14: Calculate and obtain the running data Energy consumption of migration to the hth server:
[0170] ;
[0171] in:
[0172] Indicates that the data will be run Migration energy consumption to the hth server;
[0173] Delay the migration And migration energy consumption As operating data Migration information to the hth server.
[0174] S2: Based on the migration information of the running data in different energy storage devices, a migration optimization objective function and constraint conditions are constructed, wherein minimizing the data migration energy consumption is the optimization goal of the migration optimization objective function, and the constraint condition is a delay constraint.
[0175] In the step S2, based on the migration information of the operating data in different energy storage devices, a migration optimization objective function is constructed, including:
[0176] Based on the migration information of running data in different energy storage devices, a migration optimization objective function and constraint conditions are constructed, wherein minimizing the data migration energy consumption is the optimization goal of the migration optimization objective function. The constructed migration optimization objective function is:
[0177]
[0178]
[0179] ;
[0180] in:
[0181] represents the migration optimization objective function, represents the migration strategy of the operating data of N energy storage devices, Indicates running data migration paths;
[0182] Indicates running data Migration results to the hth server, Indicates that the data will be run Migrate to the hth server, Indicates that the running data is not Migrate to the hth server. The constraints of the migration optimization objective function are:
[0183]
[0184] ;
[0185] in:
[0186] Indicates the maximum migration delay of migrating N running data to the server. Indicates the preset migration delay threshold.
[0187] S3: Solve the migration optimization objective function to obtain the optimal migration strategy, and migrate the operating data in the energy storage device to the corresponding server.
[0188] In the step S3, the migration optimization objective function is solved to obtain the optimal migration strategy, including:
[0189] The migration optimization objective function is solved to obtain the optimal migration strategy, wherein the improved crow optimization algorithm is the main implementation method for solving the objective function. The solution process of the migration optimization objective function is as follows:
[0190] S31: Initialize and generate U groups of migration strategies, wherein the generated u-th group of migration strategies is:
[0191]
[0192] ;
[0193] in:
[0194] represents the u-th group of migration strategies generated by initialization, , Indicates running data Migration path, ; Each group of migration strategies corresponds to the crow's flight position;
[0195] S32: Set the current iteration number of the migration strategy to t, the maximum iteration number to T, and the initial value of t to 0. Then the tth iteration result of the uth group migration strategy is:
[0196] ;
[0197] in:
[0198] represents the t-th iteration result of the u-th group migration strategy;
[0199] S33: Construct a fitness function based on the constraints and the migration optimization objective function, where the fitness function takes the migration strategy as input and the fitness function value corresponding to the migration strategy as output. The fitness function of the input is expressed as:
[0200] ;
[0201] in:
[0202] represents the fitness function;
[0203] Represents the migration strategy The corresponding fitness function value;
[0204] represents an exponential function with a natural constant as base;
[0205] S34: The migration strategy of group U obtained in the tth iteration is used as the input of the fitness function, and the migration strategy with the smallest fitness function value is used as the best migration strategy for the tth iteration. ;
[0206] S35: Iterate the migration strategy, wherein the migration strategy The iteration formula is:
[0207]
[0208]
[0209] ;
[0210] in:
[0211] Represents a random number between 0 and 1;
[0212] Indicates the flight stride length of a crow;
[0213] It represents the memory information of the crow during flight;
[0214] represents any migration strategy in the U group migration strategy obtained in the tth iteration;
[0215] represents the standard deviation of the optimal migration strategy after t iterations;
[0216] represents the position perception coefficient;
[0217] Represents a random number between 0 and 2. represents the L1 norm;
[0218] S36: Let t=t+1, return to step S34, until the maximum number of iterations is reached, and select the best migration strategy at this time as the optimal migration strategy, and use the optimal migration strategy to migrate the operating data of different energy storage devices to the corresponding server.
[0219] S4: The server performs energy storage monitoring on the received operating data and constructs an energy storage optimization configuration objective function, wherein minimizing the operating cost of the microgrid energy storage equipment is the optimization target of the energy storage optimization configuration objective function.
[0220] In step S4, the server performs energy storage monitoring on the received operation data, including:
[0221] The server performs energy storage monitoring on the received operation data and obtains energy storage monitoring indicators for different operation data. The calculation formula of energy storage monitoring index is:
[0222] ;
[0223] in:
[0224] Indicates running data Energy storage monitoring indicators;
[0225] Indicates running data The maximum electrical energy value in Indicates running data The standard deviation of
[0226] Indicates the preset maximum value of electric energy storage of the energy storage device;
[0227] represents the adjustment coefficient, ;
[0228] The operating costs of different energy storage devices in the microgrid are calculated, where the operating cost of the nth energy storage device is:
[0229] ;
[0230] in:
[0231] represents the operating cost of the nth energy storage device;
[0232] represents the depreciation cost of the energy storage device per unit of electrical energy stored;
[0233] represents the fuel cost incurred by the nth energy storage device to deliver electric energy;
[0234] represents the penalty cost of power fluctuation caused by the transmission of power by the nth energy storage device;
[0235] The energy storage optimization configuration objective function is constructed based on the energy storage monitoring indicators of the operating data and the operating cost of the energy storage equipment.
[0236] The constructing of the energy storage optimization configuration objective function includes:
[0237] An energy storage optimization configuration objective function is constructed, wherein minimizing the operating cost of the microgrid energy storage equipment is the optimization target of the energy storage optimization configuration objective function. The constructed energy storage optimization configuration objective function is:
[0238]
[0239] ;
[0240] in:
[0241] represents the objective function of energy storage optimization configuration, represents the energy storage optimization configuration strategy, represents the optimal configuration result of the nth energy storage device, represents the electric energy added by the nth energy storage device, represents the electrical energy released by the nth storage device;
[0242] Represents the power dispatch cost coefficient.
[0243] S5: Optimize and solve the energy storage optimization configuration objective function to obtain the optimal energy storage optimization configuration strategy, and propagate the optimal energy storage optimization configuration strategy to the energy storage devices in the microgrid for adjustment and configuration.
[0244] In the step S5, the energy storage optimization configuration objective function is optimized and solved to obtain the optimal energy storage optimization configuration strategy, including:
[0245] The energy storage optimization configuration objective function is optimized and solved to obtain the optimal energy storage optimization configuration strategy. The optimization solution process of the energy storage optimization configuration objective function is as follows:
[0246] S51: Initialize and generate K groups of energy storage optimization configuration strategies, and substitute each group of energy storage optimization configuration strategies into the energy storage optimization configuration objective function to obtain the objective function value of each group of energy storage optimization configuration strategies, wherein the kth group of energy storage optimization configuration strategies initialized and generated The objective function value is , ;
[0247] S52: Set the current iteration number of the energy storage optimization configuration strategy to d, where the initial value of d is 0 and the maximum value is D. Then the dth iteration result of the kth group energy storage optimization configuration strategy is ;
[0248] S53: Sort the K groups of energy storage optimization configuration strategies of the dth iteration in order of the objective function value from small to large, select the first K / 2 groups of energy storage optimization configuration strategies, perform cross-mutation processing based on the Levy path, and obtain the K / 2 groups of energy storage optimization configuration strategies after cross-mutation, and the selected first K / 2 groups of energy storage optimization configuration strategies and the K / 2 groups of energy storage optimization configuration strategies after cross-mutation constitute the K groups of energy storage optimization configuration strategies obtained in the d+1th iteration; in this embodiment of the present invention, the energy storage optimization configuration strategies The formula for crossover mutation processing is:
[0249] ;
[0250] in:
[0251] Represents energy storage optimization configuration strategy The result of crossover mutation processing, Levy represents the step length that conforms to the Levy flight process; Represents the random selection of energy storage optimization configuration strategy Some parameters in the Iterative processing;
[0252] S54: let d=d+1, return to step S53, until the maximum number of iterations is reached, and sort the K groups of energy storage optimization configuration strategies obtained by the final iteration in the order of the objective function value from small to large, calculate the total amount of released electric energy of each group of energy storage optimization configuration strategies in turn according to the sorting results, and select the energy storage optimization configuration strategy with the total amount of released electric energy reaching the target electric energy and the highest ranking as the solution result;
[0253] The optimal energy storage optimization configuration strategy is propagated to the energy storage devices in the microgrid, and the energy storage devices perform electric energy storage and electric energy release configuration according to the optimal energy storage optimization configuration strategy.
[0254] Embodiment 2:
[0255] like Figure 2 , is a schematic diagram of the structure of an electronic device for implementing a microgrid energy storage monitoring method based on edge perception provided by an embodiment of the present invention.
[0256] The electronic device 1 may include a processor 10 , a memory 11 , a communication interface 13 , and a bus, and may also include a computer program stored in the memory 11 and executable on the processor 10 , such as a program 12 .
[0257] The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a mobile hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a magnetic memory, a disk, an optical disk, etc. In some embodiments, the memory 11 may be an internal storage unit of the electronic device 1, such as a mobile hard disk of the electronic device 1. In other embodiments, the memory 11 may also be an external storage device of the electronic device 1, such as a plug-in mobile hard disk, a smart memory card (SmartMedia Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (FlashCard), etc. equipped on the electronic device 1. Further, the memory 11 may also include both an internal storage unit of the electronic device 1 and an external storage device. The memory 11 may not only be used to store application software and various types of data installed in the electronic device 1, such as the code of the program 12, etc., but also be used to temporarily store data that has been output or is to be output.
[0258] In some embodiments, the processor 10 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips, etc. The processor 10 is the control core (Control Unit) of the electronic device, and uses various interfaces and lines to connect various components of the entire electronic device, and executes or executes programs or modules stored in the memory 11 (such as the program 12 for realizing microgrid energy storage monitoring based on edge perception), and calls data stored in the memory 11 to execute various functions of the electronic device 1 and process data.
[0259] The communication interface 13 may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device 1 and other electronic devices, and to achieve connection and communication between internal components of the electronic device.
[0260] The bus may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection and communication between the memory 11 and at least one processor 10, etc.
[0261] Figure 2 Only an electronic device with components is shown, and those skilled in the art will understand that Figure 2 The structure shown does not constitute a limitation on the electronic device 1, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.
[0262] For example, although not shown, the electronic device 1 may also include a power source (such as a battery) for supplying power to various components. Preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The electronic device 1 may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.
[0263] Optionally, the electronic device 1 may further include a user interface, which may be a display, an input unit (such as a keyboard), or a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device. The display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device 1 and to display a visual user interface.
[0264] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.
[0265] The program 12 stored in the memory 11 in the electronic device 1 is a combination of multiple instructions. When running in the processor 10, it can achieve:
[0266] Calculating migration information of operation data in different energy storage devices, wherein migration delay and energy consumption are the migration information obtained by the calculation;
[0267] Based on the migration information of operating data in different energy storage devices, the migration optimization objective function and constraint conditions are constructed;
[0268] Solve the migration optimization objective function to obtain the optimal migration strategy, and migrate the operating data in the energy storage device to the corresponding server;
[0269] The server monitors the received operation data and constructs an energy storage optimization configuration objective function;
[0270] The energy storage optimization configuration objective function is optimized and solved to obtain the optimal energy storage optimization configuration strategy, and the optimal energy storage optimization configuration strategy is propagated to the energy storage devices in the microgrid for adjustment and configuration.
[0271] Specifically, the specific implementation method of the processor 10 for the above instructions can refer to Figure 1 to Figure 2 The description of the relevant steps in the corresponding embodiments will not be repeated here.
[0272] It should be noted that the serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages and disadvantages of the embodiments. And the terms "including", "comprising" or any other variants thereof in this article are intended to cover non-exclusive inclusion, so that a process, device, article or method 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, device, article or method. In the absence of further restrictions, an element defined by the sentence "including a ..." does not exclude the presence of other identical elements in the process, device, article or method including the element.
[0273] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0274] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A microgrid energy storage monitoring method based on edge perception, characterized in that: The method comprises: S1: Calculate the migration information of the operation data in different energy storage devices, wherein the migration delay and energy consumption are the migration information obtained by the calculation; S2: Based on the migration information of the running data in different energy storage devices, a migration optimization objective function and constraint conditions are constructed, wherein minimizing the data migration energy consumption is the optimization goal of the migration optimization objective function, and the constraint condition is a delay constraint; The constructed migration optimization objective function is: ; ; ; in: represents the migration optimization objective function, represents the migration strategy of the operating data of N energy storage devices, Indicates running data migration paths; Indicates running data The migration result to the hth server, Indicates that the data will be run Migrate to the hth server, Indicates that the running data is not Migrate to the hth server; Indicates that the data will be run Migration energy consumption to the hth server; The constraints of the migration optimization objective function are: ; ; in: Indicates the maximum migration delay of migrating N running data to the server. Indicates the preset migration delay threshold; Indicates that the data will be run Migration delay to the hth server; S3: Solve the migration optimization objective function to obtain the optimal migration strategy, and migrate the operating data in the energy storage device to the corresponding server; S4: The server performs energy storage monitoring on the received operation data and constructs an energy storage optimization configuration objective function, wherein minimizing the operation cost of the microgrid energy storage equipment is the optimization target of the energy storage optimization configuration objective function; The server performs energy storage monitoring on the received operation data and obtains energy storage monitoring indicators for different operation data. The calculation formula of energy storage monitoring index is: ; in: Indicates running data Energy storage monitoring indicators; Indicates running data The maximum electrical energy value in Indicates running data The standard deviation of Indicates the preset maximum value of electric energy storage of the energy storage device; represents the adjustment coefficient, ; M represents the total number of operating hours of the energy storage device; The operating costs of different energy storage devices in the microgrid are calculated, where the operating cost of the nth energy storage device is: ; in: represents the operating cost of the nth energy storage device; represents the depreciation cost of the energy storage device per unit of electrical energy stored; represents the fuel cost incurred by the nth energy storage device to deliver electric energy; represents the penalty cost of power fluctuation caused by the transmission of power by the nth energy storage device; Construct an energy storage optimization configuration objective function based on energy storage monitoring indicators of operating data and the operating cost of energy storage equipment; The constructed energy storage optimization configuration objective function is: ; ; in: represents the objective function of energy storage optimization configuration, represents the energy storage optimization configuration strategy, represents the optimal configuration result of the nth energy storage device, represents the electric energy added by the nth energy storage device, represents the electrical energy released by the nth storage device; represents the power dispatch cost coefficient; S5: Optimize and solve the energy storage optimization configuration objective function to obtain the optimal energy storage optimization configuration strategy, and propagate the optimal energy storage optimization configuration strategy to the energy storage devices in the microgrid for adjustment and configuration.
2. A microgrid energy storage monitoring method based on edge perception as claimed in claim 1, characterized in that: The calculation of migration information of operation data in different energy storage devices in step S1 includes: N energy storage devices are deployed in the microgrid as the edge devices of the microgrid. The energy storage devices are used to store the electric energy generated by the power generation equipment in the microgrid and transmit electric energy to the power consumption equipment. The time series of the electric energy stored in the energy storage device is used as the operation data of the energy storage device. The operation data of the nth energy storage device is: ; in: Represents the operating data of the nth energy storage device, represents the electric energy value stored by the nth energy storage device at the mth operating moment, , ; Calculate the migration information of the energy storage device's operating data to different servers, where the operating data The calculation process of migration information to the hth server is as follows: S11: Get the hth server assigned to the running data Bandwidth resource share , and calculate the distance between the hth server and the nth energy storage device ; S12: Calculation will run data The lossy transmission rate of migration to the hth server: ; in: Indicates that the data will be run The lossy transmission rate of migration to the hth server; c represents the speed of light; represents the energy consumption adjustment coefficient; S13: Calculate and obtain the running data Migration delay to the hth server: ; in: Indicates running data The amount of data; S14: Calculate and obtain the running data Energy consumption of migration to the hth server: ; in: Delay the migration And migration energy consumption As operating data Migration information to the hth server.
3. A microgrid energy storage monitoring method based on edge perception as claimed in claim 1, characterized in that: In the step S3, the migration optimization objective function is solved to obtain the optimal migration strategy, including: Solve the migration optimization objective function to obtain the optimal migration strategy. The solution process of the migration optimization objective function is as follows: S31: Initialize and generate U groups of migration strategies, wherein the generated u-th group of migration strategies is: ; ; in: represents the u-th group of migration strategies generated by initialization, , Indicates running data Migration path, ; Each group of migration strategies corresponds to the crow's flight position; S32: Set the current iteration number of the migration strategy to t, the maximum iteration number to T, and the initial value of t to 0. Then the tth iteration result of the uth group migration strategy is: ; in: represents the t-th iteration result of the u-th group migration strategy; S33: Construct a fitness function based on the constraints and the migration optimization objective function, where the fitness function takes the migration strategy as input and the fitness function value corresponding to the migration strategy as output. The fitness function of the input is expressed as: ; in: represents the fitness function; Represents the migration strategy The corresponding fitness function value; represents an exponential function with a natural constant as base; S34: The migration strategy of group U obtained in the tth iteration is used as the input of the fitness function, and the migration strategy with the smallest fitness function value is used as the best migration strategy for the tth iteration. ; S35: Iterate the migration strategy, wherein the migration strategy The iteration formula is: ; ; ; in: Represents a random number between 0 and 1; Indicates the flight stride length of a crow; It represents the memory information of the crow during flight; represents any migration strategy in the U group migration strategy obtained in the tth iteration; represents the standard deviation of the optimal migration strategy after t iterations; represents the position perception coefficient; Represents a random number between 0 and 2. represents the L1 norm; S36: Let t=t+1, return to step S34, until the maximum number of iterations is reached, and select the best migration strategy at this time as the optimal migration strategy, and use the optimal migration strategy to migrate the operating data of different energy storage devices to the corresponding server.
4. A microgrid energy storage monitoring method based on edge perception as claimed in claim 1, characterized in that: In the step S5, the energy storage optimization configuration objective function is optimized and solved to obtain the optimal energy storage optimization configuration strategy, including: The energy storage optimization configuration objective function is optimized and solved to obtain the optimal energy storage optimization configuration strategy. The optimization solution process of the energy storage optimization configuration objective function is as follows: S51: Initialize and generate K groups of energy storage optimization configuration strategies, and substitute each group of energy storage optimization configuration strategies into the energy storage optimization configuration objective function to obtain the objective function value of each group of energy storage optimization configuration strategies, wherein the kth group of energy storage optimization configuration strategies initialized and generated The objective function value is , ; S52: Set the current iteration number of the energy storage optimization configuration strategy to d, where the initial value of d is 0 and the maximum value is D. Then the dth iteration result of the kth group energy storage optimization configuration strategy is ; S53: sorting the K groups of energy storage optimization configuration strategies of the d-th iteration in order of the objective function value from small to large, selecting the first K / 2 groups of energy storage optimization configuration strategies, performing crossover mutation processing based on the Levy path, obtaining K / 2 groups of energy storage optimization configuration strategies after crossover mutation, and combining the selected first K / 2 groups of energy storage optimization configuration strategies and the K / 2 groups of energy storage optimization configuration strategies after crossover mutation to form the K groups of energy storage optimization configuration strategies obtained in the d+1-th iteration; S54: let d=d+1, return to step S53, until the maximum number of iterations is reached, and sort the K groups of energy storage optimization configuration strategies obtained by the final iteration in the order of the objective function value from small to large, calculate the total amount of released electric energy of each group of energy storage optimization configuration strategies in turn according to the sorting results, and select the energy storage optimization configuration strategy with the total amount of released electric energy reaching the target electric energy and the highest ranking as the solution result; The optimal energy storage optimization configuration strategy is propagated to the energy storage devices in the microgrid, and the energy storage devices perform electric energy storage and electric energy release configuration according to the optimal energy storage optimization configuration strategy.
