Industrial and commercial entity energy storage charging and discharging simulation method, device, equipment, medium and product

By simulating historical electricity consumption and power generation data of industrial and commercial entities, charging and discharging strategies and calculation results are generated, which solves the problem of inaccurate energy storage capacity estimation in the existing technology and improves accuracy and simulation effects.

CN118656929APending Publication Date: 2024-09-17SHANGHAI ZHUOYANG ENERGY STORAGE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410699555.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

Existing distribution and storage measurement solutions for industrial and commercial entities have problems such as imprecise energy storage capacity estimation, waste of resources and lower than expected benefits, and lack of refined data analysis and statistical support.

Method used

Adopting the charging and discharging simulation method of industrial and commercial entity energy storage, through data preprocessing of historical electricity consumption and new energy generation record tables, the charging and discharging strategy is generated and the charging amount, discharge amount, electricity consumption and electricity purchase fee are calculated, and refined data analysis is provided. support.

Benefits of technology

It improves the accuracy of energy storage capacity, electricity expenses, operating costs and investment returns, achieves highly realistic simulations, simplifies the calculation process, and facilitates practical application and promotion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656929A
    Figure CN118656929A
Patent Text Reader

Abstract

The invention discloses an industrial and commercial entity energy storage charging and discharging simulation method, device and equipment, a medium and a product, and relates to the technical field of energy digitization. The method comprises the following steps: firstly, carrying out data preprocessing on a historical electricity consumption and new energy power generation record table to obtain a preprocessed historical electricity consumption and new energy power generation record table, and then applying the data of the two tables and a plurality of free parameter setting values; the industrial and commercial entity energy storage charging and discharging simulation task comprising the following steps of generating a corresponding charging and discharging strategy at each simulation moment and calculating corresponding charging amount, discharging amount, electricity consumption, electricity purchasing amount and electricity purchasing charge, and finally outputting and displaying a simulation result. The historical power utilization and power generation data of industrial and commercial entities are applied to perform analogue simulation on the charging and discharging scene after the energy storage cabinet is equipped, so that refined data analysis and statistical support can be provided for test tasks of energy storage capacity, electric charge expenditure, operation cost, investment income and the like, and the accuracy of the test tasks is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of energy digitalization technology, and specifically relates to an industrial and commercial entity energy storage charging and discharging simulation method, device, equipment, medium and product. Background Art

[0002] Industrial and commercial entities (such as factories or parks) are large consumers of electricity, and electricity costs are an important expense for an industrial and commercial entity. Based on their own electricity consumption characteristics and my country's existing peak-valley electricity price policy, industrial and commercial entities can reduce electricity costs by changing their own electricity consumption habits and production and operation regulation. In addition, industrial and commercial entities can also be equipped with new energy power generation equipment, such as photovoltaic power generation equipment and / or wind turbines. In addition to self-generation and self-use, they can also sell surplus electricity to the grid, and can also store it for subsequent use. Since the electricity consumption behavior of industrial and commercial entities is closely related to their production and operation activities, it is difficult for their power load to change significantly, and thus has a certain regularity. Therefore, after industrial and commercial entities configure a certain capacity of energy storage system under the peak-valley electricity price mechanism, they can achieve the goal of reducing the total electricity cost to a certain extent.

[0003] At present, the existing industrial and commercial entity storage calculation solutions mainly have the following problems:

[0004] (1) The energy storage capacity estimation method is relatively simple, for example, only calculating the difference between the annual average energy consumption power of the park and the rated power, or using a fixed proportion of renewable energy power generation capacity, lacking sophisticated data analysis and statistical support;

[0005] (2) The energy storage capacity may be over-allocated, resulting in a waste of resources, increased operating costs, and project returns that fall short of expectations; and when the energy storage capacity is under-allocated, the goal of reducing total electricity costs cannot be achieved;

[0006] (3) Due to the lack of data support, it is difficult for industrial and commercial entities to estimate the actual electricity expenditure, operating costs and investment returns after being equipped with energy storage systems. Summary of the invention

[0007] The purpose of the present invention is to provide a method, device, computer equipment, computer-readable storage medium and computer program product for simulating the charging and discharging of energy storage of industrial and commercial entities, so as to solve the problems that the existing industrial and commercial entity storage allocation calculation schemes have limited accuracy and difficulty in providing refined data analysis and statistical support when calculating energy storage capacity, electricity expenditure, operating costs and investment returns.

[0008] In order to achieve the above object, the present invention adopts the following technical solutions:

[0009] In a first aspect, a method for simulating charging and discharging of energy storage for industrial and commercial entities is provided, comprising:

[0010] Obtaining a historical electricity consumption record table and a historical new energy power generation record table of an industrial and commercial entity, wherein the historical electricity consumption record table periodically records a plurality of historical electricity consumption record moments and a plurality of historical electricity consumption instantaneous powers corresponding to the plurality of historical electricity consumption record moments, and the historical new energy power generation record table periodically records a plurality of historical power generation record moments and a plurality of historical new energy power generation instantaneous powers corresponding to the plurality of historical power generation record moments;

[0011] Performing data preprocessing on the historical electricity consumption record table and the historical renewable energy power generation record table to obtain a preprocessed historical electricity consumption record table and a preprocessed historical renewable energy power generation record table, wherein the data preprocessing includes data cleaning processing, null value filling processing, abnormal value exclusion processing and / or two-table record time alignment processing;

[0012] Obtaining setting values ​​of multiple free parameters required for simulation, wherein the multiple free parameters required for simulation include power consumption of energy storage cabinet management and cooling system, time-of-use electricity price of power grid and simulation time step;

[0013] The preprocessed historical electricity consumption record table, the preprocessed historical new energy power generation record table and the set values ​​of the plurality of free parameters required for the simulation are applied to complete the industrial and commercial entity energy storage charging and discharging simulation task according to the following steps S41 to S48:

[0014] S41. Initialize the simulation time sequence number i to 1, and initialize the first simulation time to the first recorded time in the pre-processed historical power consumption record table and the pre-processed historical new energy power generation record table, and also initialize the total power of the energy storage cabinet to 0, and then execute step S42;

[0015] S42. According to the pre-processed historical electricity consumption record table, the pre-processed historical new energy power generation record table, the set values ​​of the plurality of free parameters required for the simulation, and the current value of the total power of the energy storage cabinet, a charge and discharge strategy corresponding to the i-th simulation moment is generated based on the first cost safety control requirement, and then step S43 is executed, wherein the charge and discharge strategy is a charging strategy, a discharging strategy, or a static strategy;

[0016] S43. If the charge and discharge strategy corresponding to the i-th simulation moment is a charge strategy, execute step S44; if the charge and discharge strategy corresponding to the i-th simulation moment is a discharge strategy, execute step S45; and if the charge and discharge strategy corresponding to the i-th simulation moment is a static strategy, execute step S46;

[0017] S44. According to the pre-processed historical electricity consumption record table, the pre-processed historical new energy power generation record table, the setting values ​​of the plurality of free parameters required for the simulation and the current value of the total power of the energy storage cabinet, the charging amount corresponding to the i-th simulation moment is calculated based on the second cost safety control requirement, and the discharge amount corresponding to the i-th simulation moment is set to 0, and the current value of the total power of the energy storage cabinet is added with the charging amount corresponding to the i-th simulation moment, and then step S47 is executed;

[0018] S45. According to the pre-processed historical electricity consumption record table, the pre-processed historical new energy power generation record table, the setting values ​​of the plurality of free parameters required for the simulation and the current value of the total power of the energy storage cabinet, the discharge amount corresponding to the i-th simulation moment is calculated based on the third cost safety control requirement, and the charge amount corresponding to the i-th simulation moment is set to 0, and the current value of the total power of the energy storage cabinet is subtracted by the discharge amount corresponding to the i-th simulation moment, and then step S47 is executed;

[0019] S46. The charge amount and discharge amount corresponding to the i-th simulation moment are respectively set to 0, and then step S47 is executed;

[0020] S47. Calculate the power consumption E of the industrial and commercial entity corresponding to the i-th simulation moment use,i 、Power Purchase E buy,i And electricity purchase fee F buy,i Then, step S48 is executed, wherein the power consumption E use,i The amount of electricity purchased E buy,i and the electricity purchase fee F buy,i The calculation formula is as follows:

[0021]

[0022] Where P use,i represents the instantaneous power of historical power consumption in the preprocessed historical power consumption record table and corresponding to the same power consumption time, wherein the same power consumption time refers to a certain historical power consumption record time that is the same as the i-th simulation time, P esc represents the power consumption of the energy storage cabinet management and cooling system, t represents the simulation time step, E ch,i represents the charge amount corresponding to the i-th simulation moment, E disch,i represents the discharge amount corresponding to the i-th simulation moment, P gen,i represents the instantaneous power of historical renewable energy power generation in the preprocessed historical renewable energy power generation record table and corresponding to the same power generation time, wherein the same power generation time refers to a certain historical power generation record time that is the same as the i-th simulation time, C irepresents the time-of-use electricity price of the power grid corresponding to the i-th simulation moment;

[0023] S48. If the i-th simulation time is the last recorded time in the pre-processed historical electricity consumption record table and the pre-processed historical new energy power generation record table, then the simulation is terminated; otherwise, the i+1-th simulation time is determined according to the i-th simulation time and the simulation time step, and the simulation time sequence number i is incremented by 1, and then the execution returns to step S42;

[0024] The output displays the charging and discharging strategies, charging amount, discharging amount, power consumption, power purchase amount, power purchase fee and / or total power of the energy storage cabinet corresponding to each simulation moment.

[0025] Based on the above invention, a new scheme for energy storage charging and discharging simulation applicable to commercial entity storage measurement scenarios is provided, that is, firstly, the historical electricity consumption and new energy power generation record table is subjected to data preprocessing including data cleaning processing, null value filling processing, abnormal value exclusion processing and / or two-table record time alignment processing to obtain the preprocessed historical electricity consumption and new energy power generation record table, and then the two tables of data and the setting values ​​of multiple free parameters required for simulation are applied to complete the industrial and commercial entity energy storage charging and discharging simulation task including the following steps: the corresponding charging and discharging strategy generation step at each simulation moment and the corresponding charging amount, discharging amount, and power consumption , the calculation steps of the purchased electricity and the electricity purchase fee, and finally the charging and discharging strategy, charging amount, discharging amount, electricity consumption, purchased electricity, electricity purchase fee and / or total electricity of the energy storage cabinet corresponding to each simulation moment are output and displayed as the industrial and commercial entity storage simulation results. In this way, because the historical electricity consumption and power generation data of the industrial and commercial entity are applied to simulate the charging and discharging scenarios after being equipped with energy storage cabinets, it can provide refined data analysis and statistical support for the test tasks of energy storage capacity, electricity expenditure, operating cost and investment income in the process of industrial and commercial entity storage calculation, improve their accuracy, and facilitate practical application and promotion.

[0026] In a possible design, when the data preprocessing includes aligning the recording time of the two tables, data preprocessing is performed on the historical electricity consumption record table and the historical new energy power generation record table to obtain the preprocessed historical electricity consumption record table and the preprocessed historical new energy power generation record table, including:

[0027] The recording time of any one of the historical electricity consumption record table and the historical new energy power generation record table is shifted as a whole, so that each shifted recording time corresponds to and is aligned with each recording time of the other table in the historical electricity consumption record table and the historical new energy power generation record table;

[0028] For each recorded moment after translation, the corresponding instantaneous power is calculated according to the following formula:

[0029] P n =c 3,n ×(t n ) 3 +c 2,n ×(t n ) 2 +c 1,n ×t n +c 0,n

[0030] In the formula, n represents a positive integer, P n represents the instantaneous power corresponding to the nth post-translation recording time, t n represents the time difference between the nth recorded time after translation and the first recorded time of the other table, c 3,n 、c 2,n 、c 1,n and c 0,n Respectively represent coefficients of a local area cubic polynomial for realizing cubic spline interpolation, obtained by using the least square method according to K instantaneous powers in any one of the tables and corresponding to the K adjacent recording moments, K represents a positive integer greater than or equal to 4, and the K adjacent recording moments refer to the first K recording moments closest to the nth shifted recording moment;

[0031] Summarize the various recorded moments after the translation and the instantaneous powers corresponding to the various recorded moments after the translation to obtain a preprocessing table corresponding to any one of the tables, and summarize the various recorded moments and the instantaneous powers in the other table that correspond to the various recorded moments to obtain a preprocessing table corresponding to the other table.

[0032] In a possible design, when the plurality of free parameters required for simulation further include the rated power of the industrial and commercial entity, the rated capacity of the energy storage cabinet, the maximum allowable charging depth of the energy storage cabinet, the minimum allowable discharging depth of the energy storage cabinet, and the number of energy storage cabinets, a charging and discharging strategy corresponding to the i-th simulation moment is generated based on the first cost safety control requirement according to the pre-processed historical electricity consumption record table, the pre-processed historical new energy power generation record table, the set values ​​of the plurality of free parameters required for simulation, and the current value of the total power of the energy storage cabinet, including:

[0033] Determine whether the i-th simulation moment belongs to the off-peak power consumption period of the power grid;

[0034] If it is determined that the i-th simulation moment belongs to the off-peak power consumption period of the power grid, it is further determined whether the load of the industrial and commercial entity at the i-th simulation moment is less than the rated power and whether the current value of the total power of the energy storage cabinet is less than the maximum allowable power. If so, the charge and discharge strategy corresponding to the i-th simulation moment is generated as a charging strategy, otherwise the charge and discharge strategy corresponding to the i-th simulation moment is generated as a static strategy, wherein the load is equal to the power consumption of the energy storage cabinet management and cooling system plus the historical power consumption instantaneous power corresponding to the same power consumption moment in the pre-processed historical power consumption record table, and the same power consumption moment refers to a certain historical power consumption record moment that is the same as the i-th simulation moment, and the maximum allowable power is equal to the multiplication result of the rated capacity of the energy storage cabinet, the number of the energy storage cabinets and the maximum allowable charging depth of the energy storage cabinet;

[0035] If it is determined that the i-th simulation moment does not belong to the off-peak power consumption period of the power grid, it is further determined whether the load of the industrial and commercial entity at the i-th simulation moment is greater than the power generation power of the industrial and commercial entity at the i-th simulation moment and whether the current value of the total power of the energy storage cabinet is greater than the minimum allowable power. If so, the charge and discharge strategy corresponding to the i-th simulation moment is generated as a discharge strategy, wherein the power generation power is equal to the historical new energy power generation instantaneous power corresponding to the same power generation time in the pre-processed historical new energy power generation record table, and the same power generation time refers to a historical power generation record time that is the same as the i-th simulation moment, and the minimum allowable power is equal to the multiplication result of the rated capacity of the energy storage cabinet, the number of the energy storage cabinets and the minimum allowable discharge depth of the energy storage cabinet;

[0036] If it is determined that the load of the industrial and commercial entity at the i-th simulation moment is less than or equal to the power generation power of the industrial and commercial entity at the i-th simulation moment and / or the current value of the total power of the energy storage cabinet is less than or equal to the minimum allowable power, then it is further determined whether the load of the industrial and commercial entity at the i-th simulation moment is less than the power generation power of the industrial and commercial entity at the i-th simulation moment and whether the current value of the total power of the energy storage cabinet is less than the maximum allowable power. If so, the charging and discharging strategy corresponding to the i-th simulation moment is generated as the charging strategy; otherwise, the charging and discharging strategy corresponding to the i-th simulation moment is generated as the static strategy.

[0037] In a possible design, when the plurality of free parameters required for simulation further include the rated power of the industrial and commercial entity, the rated power of the energy storage cabinet, the rated capacity of the energy storage cabinet, the charging energy conversion efficiency of the energy storage cabinet, the maximum allowable charging depth of the energy storage cabinet, and the number of energy storage cabinets, the charging amount corresponding to the i-th simulation time is calculated based on the second cost safety control requirement according to the pre-processed historical electricity consumption record table, the pre-processed historical new energy power generation record table, the set values ​​of the plurality of free parameters required for simulation, and the current value of the total power of the energy storage cabinet, including:

[0038] The charging power P corresponding to the i-th simulation moment is calculated according to the following formula: ch,i :

[0039] P ch,i =min(P rat -P use,i -P esc +P gen,i ,P rat,esc ×M)

[0040] Where P rat Indicates the rated power, P use,i represents the instantaneous power of historical power consumption in the preprocessed historical power consumption record table and corresponding to the same power consumption time, wherein the same power consumption time refers to a certain historical power consumption record time that is the same as the i-th simulation time, P esc represents the power consumption of the energy storage cabinet management and cooling system, P gen,i represents the instantaneous power of historical renewable energy power generation in the preprocessed historical renewable energy power generation record table and corresponding to the same power generation time, wherein the same power generation time refers to a historical power generation record time that is the same as the i-th simulation time, P rat,esc represents the rated power of the energy storage cabinet, M represents the number of energy storage cabinets, and min() represents the minimum value function;

[0041] The charge amount E corresponding to the i-th simulation moment is calculated according to the following formula: ch,i :

[0042] E ch,i =min(P ch,i ×t×η ch ,E max -E esc )

[0043] Wherein, t represents the simulation time step, η ch represents the charging energy conversion efficiency of the energy storage cabinet, E max represents the maximum allowable power and is equal to the product of the rated capacity of the energy storage cabinet, the number of energy storage cabinets and the maximum allowable charging depth of the energy storage cabinet, Eesc Indicates the current value of the total power of the energy storage cabinet.

[0044] In a possible design, when the multiple free parameters required for simulation further include the rated power of the energy storage cabinet, the rated capacity of the energy storage cabinet, the discharge energy conversion efficiency of the energy storage cabinet, the minimum allowable discharge depth of the energy storage cabinet, and the number of energy storage cabinets, the discharge amount corresponding to the i-th simulation time is calculated based on the third cost safety control requirement according to the pre-processed historical electricity consumption record table, the pre-processed historical new energy power generation record table, the set values ​​of the multiple free parameters required for simulation, and the current value of the total power of the energy storage cabinet, including:

[0045] The discharge power P corresponding to the i-th simulation moment is calculated according to the following formula: disch,i :

[0046] P disch,i =min(P use,i +P esc -P gen,i ,P rat,esc ×M)

[0047] Where P use,i represents the instantaneous power of historical power consumption in the preprocessed historical power consumption record table and corresponding to the same power consumption time, wherein the same power consumption time refers to a certain historical power consumption record time that is the same as the i-th simulation time, P esc represents the power consumption of the energy storage cabinet management and cooling system, P gen,i represents the instantaneous power of historical renewable energy power generation in the preprocessed historical renewable energy power generation record table and corresponding to the same power generation time, wherein the same power generation time refers to a historical power generation record time that is the same as the i-th simulation time, P rat,esc represents the rated power of the energy storage cabinet, M represents the number of energy storage cabinets, and min() represents the minimum value function;

[0048] The discharge amount E corresponding to the i-th simulation moment is calculated according to the following formula: disch,i :

[0049]

[0050] Wherein, t represents the simulation time step, η disch It represents the energy conversion efficiency of the energy storage cabinet, E esc Indicates the current value of the total power of the energy storage cabinet, E min It represents the minimum allowable power and is equal to the product of the rated capacity of the energy storage cabinet, the number of the energy storage cabinets and the minimum allowable discharge depth of the energy storage cabinet.

[0051] In a possible design, the preprocessed historical electricity consumption record table, the preprocessed historical new energy power generation record table and the set values ​​of the plurality of free parameters required for the simulation are used to complete the industrial and commercial entity energy storage charging and discharging simulation task, including:

[0052] Split the industrial and commercial entity energy storage charging and discharging simulation task into multiple subtasks that can be executed in parallel;

[0053] The preprocessed historical electricity consumption record table, the preprocessed historical new energy power generation record table and the setting values ​​of the multiple free parameters required for the simulation are applied, and a distributed computing solution based on a big data cluster and using a spark computing engine is adopted to complete the multiple subtasks in parallel.

[0054] In a second aspect, an industrial and commercial entity energy storage charging and discharging simulation device is provided, including a historical data acquisition unit, a data preprocessing unit, a free parameter acquisition unit, a charging and discharging simulation unit, and a simulation result display unit;

[0055] The historical data acquisition unit is used to acquire a historical electricity consumption record table and a historical new energy power generation record table of an industrial and commercial entity, wherein the historical electricity consumption record table periodically records a plurality of historical electricity consumption record moments and a plurality of historical electricity consumption instantaneous powers corresponding to the plurality of historical electricity consumption record moments, and the historical new energy power generation record table periodically records a plurality of historical power generation record moments and a plurality of historical new energy power generation instantaneous powers corresponding to the plurality of historical power generation record moments;

[0056] The data preprocessing unit is communicatively connected to the historical data acquisition unit, and is used to perform data preprocessing on the historical electricity consumption record table and the historical renewable energy power generation record table to obtain a preprocessed historical electricity consumption record table and a preprocessed historical renewable energy power generation record table, wherein the data preprocessing includes data cleaning processing, null value filling processing, abnormal value exclusion processing and / or two-table record time alignment processing;

[0057] The free parameter acquisition unit is used to acquire the setting values ​​of multiple free parameters required for simulation, wherein the multiple free parameters required for simulation include the power consumption of energy storage cabinet management and cooling system, the time-of-use electricity price of the power grid and the simulation time step;

[0058] The charging and discharging simulation unit is respectively connected to the data preprocessing unit and the free parameter acquisition unit for communication, and is used to apply the preprocessed historical electricity consumption record table, the preprocessed historical new energy power generation record table and the set values ​​of the plurality of free parameters required for the simulation to complete the industrial and commercial entity energy storage charging and discharging simulation task, and specifically includes an initialization subunit, a strategy generation subunit, a strategy response subunit, a charging strategy execution subunit, a discharging strategy execution subunit, a static strategy execution subunit, a calculation subunit and a simulation time update subunit;

[0059] The initialization subunit is communicatively connected to the strategy generation subunit, and is used to initialize the simulation time sequence number i to 1, and initialize the first simulation time to the first recorded time in the pre-processed historical power consumption record table and the pre-processed historical new energy power generation record table, and also initialize the total power of the energy storage cabinet to 0, and then start the strategy generation subunit;

[0060] The strategy generation subunit is communicatively connected to the strategy response subunit, and is used to generate a charge and discharge strategy corresponding to the i-th simulation moment based on the first cost safety control requirement according to the pre-processed historical electricity consumption record table, the pre-processed historical new energy power generation record table, the set values ​​of the plurality of free parameters required for the simulation, and the current value of the total power of the energy storage cabinet, and then start the strategy response subunit, wherein the charge and discharge strategy is a charging strategy, a discharging strategy, or a static strategy;

[0061] The strategy response subunit is respectively communicatively connected to the charging strategy execution subunit, the discharging strategy execution subunit and the static strategy execution subunit, and is used to start the charging strategy execution subunit if the charging and discharging strategy corresponding to the i-th simulation moment is the charging strategy, start the discharging strategy execution subunit if the charging and discharging strategy corresponding to the i-th simulation moment is the discharging strategy, and start the static strategy execution subunit if the charging and discharging strategy corresponding to the i-th simulation moment is the static strategy;

[0062] The charging strategy execution subunit is communicatively connected to the calculation subunit, and is used to calculate the charge amount corresponding to the i-th simulation moment based on the second cost safety control requirement according to the pre-processed historical power consumption record table, the pre-processed historical new energy power generation record table, the set values ​​of the plurality of free parameters required for the simulation, and the current value of the total power of the energy storage cabinet, and to set the discharge amount corresponding to the i-th simulation moment to 0, and to add the charge amount corresponding to the i-th simulation moment to the current value of the total power of the energy storage cabinet, and then start the calculation subunit;

[0063] The discharge strategy execution subunit is communicatively connected to the calculation subunit, and is used to calculate the discharge amount corresponding to the i-th simulation moment based on the third cost safety control requirement according to the pre-processed historical electricity consumption record table, the pre-processed historical new energy power generation record table, the set values ​​of the plurality of free parameters required for the simulation, and the current value of the total power of the energy storage cabinet, and to set the charge amount corresponding to the i-th simulation moment to 0, and to decrement the current value of the total power of the energy storage cabinet by the discharge amount corresponding to the i-th simulation moment, and then start the calculation subunit;

[0064] The static strategy execution subunit is communicatively connected to the calculation subunit, and is used to set the charge amount and discharge amount corresponding to the i-th simulation moment to 0 respectively, and then start the calculation subunit;

[0065] The calculation subunit is communicatively connected to the simulation time updating subunit, and is used to calculate the power consumption E of the industrial and commercial entity corresponding to the i-th simulation time. use,i 、Power Purchase E buy,i And electricity purchase fee F buy,i , and then start the simulation time update subunit, where the power consumption E use,i The amount of electricity purchased E buy,i and the electricity purchase fee F buy,i The calculation formula is as follows:

[0066]

[0067] Where P use,i represents the instantaneous power of historical power consumption in the preprocessed historical power consumption record table and corresponding to the same power consumption time, wherein the same power consumption time refers to a certain historical power consumption record time that is the same as the i-th simulation time, P esc represents the power consumption of the energy storage cabinet management and cooling system, t represents the simulation time step, E ch,i represents the charge amount corresponding to the i-th simulation moment, E disch,i represents the discharge amount corresponding to the i-th simulation moment, P gen,i represents the instantaneous power of historical renewable energy power generation in the preprocessed historical renewable energy power generation record table and corresponding to the same power generation time, wherein the same power generation time refers to a certain historical power generation record time that is the same as the i-th simulation time, C i represents the time-of-use electricity price of the power grid corresponding to the i-th simulation moment;

[0068] The simulation time updating subunit is communicatively connected to the strategy generating subunit, and is used to terminate the simulation if the i-th simulation time is the last recorded time in the pre-processed historical electricity consumption record table and the pre-processed historical new energy power generation record table, otherwise, determine the i+1-th simulation time according to the i-th simulation time and the simulation time step, and increment the simulation time sequence number i by 1, and then restart the strategy generating subunit;

[0069] The simulation result display unit is communicatively connected to the charge and discharge simulation unit, and is used to output and display the charge and discharge strategy, charge amount, discharge amount, power consumption, power purchase amount, power purchase fee and / or total power of the energy storage cabinet corresponding to each simulation moment.

[0070] In a third aspect, the present invention provides a computer device comprising a memory, a processor and a transceiver which are communicatively connected in sequence, wherein the memory is used to store a computer program, the transceiver is used to send and receive messages, and the processor is used to read the computer program to execute the industrial and commercial entity energy storage charging and discharging simulation method as described in the first aspect or any possible design of the first aspect.

[0071] In a fourth aspect, the present invention provides a computer-readable storage medium having instructions stored thereon, which, when executed on a computer, executes the industrial and commercial entity energy storage charging and discharging simulation method as described in the first aspect or any possible design of the first aspect.

[0072] In a fifth aspect, the present invention provides a computer program product, including a computer program or instructions, which, when executed by a computer, implements the industrial and commercial entity energy storage charging and discharging simulation method as described in the first aspect or any possible design of the first aspect.

[0073] Beneficial effects of the above scheme:

[0074] (1) The present invention creatively provides a new energy storage charging and discharging simulation solution applicable to commercial entity storage measurement scenarios, that is, firstly, the historical electricity consumption and new energy power generation record table is subjected to data preprocessing including data cleaning processing, null value filling processing, abnormal value exclusion processing and / or two-table record time alignment processing to obtain the preprocessed historical electricity consumption and new energy power generation record table, and then the data of these two tables and the setting values ​​of multiple free parameters required for simulation are applied to complete the industrial and commercial entity energy storage charging and discharging simulation task including the following steps: the corresponding charging and discharging strategy generation step at each simulation moment and the corresponding charging amount, discharging The calculation steps of power consumption, power purchase and power purchase fee are as follows. Finally, the charging and discharging strategies, charging amount, discharging amount, power consumption, power purchase, power purchase fee and / or total power of energy storage cabinet corresponding to each simulation moment are output and displayed as the simulation results of industrial and commercial entity storage distribution. In this way, the historical power consumption and power generation data of industrial and commercial entities are used to simulate the charging and discharging scenarios after being equipped with energy storage cabinets. Therefore, in the process of industrial and commercial entity storage distribution calculation, refined data analysis and statistical support can be provided for the test tasks of energy storage capacity, electricity expenditure, operating cost and investment income, etc., to improve their accuracy.

[0075] (2) Since it simulates the actual electricity consumption and power generation of industrial and commercial entities and the actual operation scenarios after being equipped with energy storage cabinets, it has a high degree of authenticity;

[0076] (3) Due to the use of efficient distributed computing methods, simulations of multiple configuration combinations can be performed simultaneously, which can effectively control the computing time and facilitate practical application and promotion. BRIEF DESCRIPTION OF THE DRAWINGS

[0077] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0078] Figure 1 A schematic flow chart of a method for simulating the charging and discharging of energy storage for industrial and commercial entities provided in an embodiment of the present application.

[0079] Figure 2 A schematic diagram of the physical relationship between power consumption of load equipment of industrial and commercial entities, power sales and purchases from the power grid, power generation of new energy power generation equipment, and charging and discharging of energy storage cabinets provided in an embodiment of the present application.

[0080] Figure 3 A schematic diagram of the structure of an industrial and commercial entity energy storage charging and discharging simulation device provided in an embodiment of the present application.

[0081] Figure 4A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0082] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the present invention will be briefly introduced below in combination with the drawings and the description of the embodiments or the prior art. Obviously, the following description of the structures of the drawings is only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can be obtained based on these embodiments without creative work. It should be noted that the description of these embodiments is used to help understand the present invention, but does not constitute a limitation of the present invention.

[0083] It should be understood that although the terms first and second, etc. may be used herein to describe various objects, these objects should not be limited by these terms. These terms are only used to distinguish one object from another object. For example, a first object can be referred to as a second object, and similarly, a second object can be referred to as a first object without departing from the scope of the exemplary embodiments of the present invention.

[0084] It should be understood that the term "and / or" that may appear in this document is merely a description of the association relationship between associated objects, indicating that there may be three relationships. For example, A and / or B can indicate three situations: A exists alone, B exists alone, or A and B exist at the same time. For another example, A, B and / or C can indicate the existence of any one of A, B and C or any combination of them. The term " / and" that may appear in this document describes another type of association object relationship, indicating that there may be two relationships. For example, A / and B can indicate two situations: A exists alone or A and B exist at the same time. In addition, the character " / " that may appear in this document generally indicates that the previous and next associated objects are in an "or" relationship.

[0085] Example

[0086] like Figure 1 As shown, the industrial and commercial entity energy storage charging and discharging simulation method provided in the first aspect of this embodiment can be executed by, but not limited to, a computer device with certain computing resources, such as a server or a personal computer. Figure 1 As shown, the industrial and commercial entity energy storage charging and discharging simulation method may include but is not limited to the following steps S1 to S5.

[0087] S1. Obtain the historical electricity consumption record table and historical new energy power generation record table of the industrial and commercial entity, wherein the historical electricity consumption record table periodically records multiple historical electricity consumption record moments and multiple historical electricity consumption instantaneous powers corresponding to the multiple historical electricity consumption record moments, and the historical new energy power generation record table periodically records multiple historical power generation record moments and multiple historical new energy power generation instantaneous powers corresponding to the multiple historical power generation record moments.

[0088] In step S1, the industrial and commercial entity may be, but is not limited to, a factory or a park. The historical electricity consumption record table is used to record the historical electricity consumption data of the industrial and commercial entity, and may be, but is not limited to, recorded in a cycle of 15 minutes, and the specific recording time span may be one year or more. The historical new energy power generation record table is used to record the historical power generation data of the new energy power generation equipment (such as photovoltaic power generation equipment and / or wind turbines, etc.) of the industrial and commercial entity, and may also be, but is not limited to, recorded in a cycle of 15 minutes, and the specific recording time span may also be one year or more. In addition, the historical electricity consumption record table and the historical new energy power generation record table are used as the original data basis for subsequent simulation processes, and may be, but is not limited to, pulled from the database through conventional data access and reading methods.

[0089] S2. Perform data preprocessing on the historical electricity consumption record table and the historical new energy power generation record table to obtain a preprocessed historical electricity consumption record table and a preprocessed historical new energy power generation record table, wherein the data preprocessing includes but is not limited to data cleaning processing, null value filling processing, abnormal value exclusion processing and / or two-table record time alignment processing, etc.

[0090] In step S2, the data cleaning process, the null value filling process and the abnormal value exclusion process are used to ensure that there is no dirty data, null value data and abnormal value data in the processed historical electricity consumption record table and the pre-processed historical new energy power generation record table. The specific processing process can be conventionally derived using existing corresponding technical means. Due to the various ways of collecting electricity consumption data and the fact that the collection timing of electricity meters at collection points such as the energy storage side, the new energy power generation side and the grid connection point may not be synchronized, the historical electricity consumption record table and the historical new energy power generation record table may have granularity misalignment, which will be detrimental to the subsequent simulation process calculation, and therefore needs to be solved by aligning the recording times of the two tables; at the same time, considering that the adjacent collection times of the data of the two tables have equal time intervals (because the data of the two tables are collected periodically), in order to better maintain the consistency of the power curve shapes of the two tables before and after preprocessing, preferably, when the data preprocessing includes aligning the recording times of the two tables, the historical electricity consumption record table and the historical new energy power generation record table are preprocessed to obtain the preprocessed historical electricity consumption record table and the preprocessed historical new energy power generation record table, including but not limited to the following steps S21 to S23.

[0091] S21. Shift the recording time of any one of the historical electricity consumption record table and the historical new energy power generation record table as a whole, so that each shifted recording time corresponds to and is aligned with each recording time of the other table in the historical electricity consumption record table and the historical new energy power generation record table.

[0092] In step S21, the arbitrary table and the other table are the historical electricity consumption record table and the historical new energy power generation record table. For example, if the recording times of the arbitrary table are 10:03, 10:18, 10:33 and 10:48, and the recording times of the other table are 10:00, 10:15, 10:30 and 10:45, respectively, after the recording time of the arbitrary table is shifted forward by 3 minutes as a whole, the shifted recording times (i.e., 10:00, 10:15, 10:30 and 10:45, respectively) can correspond to and align with the recording times of the other table.

[0093] S22. For each recorded moment after translation, the corresponding instantaneous power is calculated according to the following formula:

[0094] P n =c 3,n ×(t n ) 3 +c 2,n ×(t n ) 2+c 1,n ×t n +c 0,n

[0095] In the formula, n represents a positive integer, P n represents the instantaneous power corresponding to the nth post-translation recording time, t n represents the time difference between the nth recorded time after translation and the first recorded time of the other table, c 3,n 、c 2,n 、c 1,n and c 0,n They respectively represent the coefficients of the local area cubic polynomial for realizing cubic spline interpolation, which is solved by the least squares method according to K instantaneous powers in any one of the tables and corresponding one to one to K adjacent recording moments, K represents a positive integer greater than or equal to 4, and the K adjacent recording moments refer to the first K recording moments closest to the nth translated recording moment.

[0096] In step S22, for example, if the first recording time of the other table is 10:00, then for a certain post-translation recording time of 10:15, the time difference from the corresponding time to the first recording time of the other table is 15 minutes. Similarly, for the certain post-translation recording time, if K is 4, the corresponding K adjacent recording times will be 10:03, 10:18, 10:33 and 10:48 respectively. In this way, the coefficient c can be obtained by conventional least square method based on the K instantaneous powers corresponding to these times. 3,n 、c 2,n 、c 1,n and c 0,n .

[0097] S23. Summarize the various recording moments after the translation and the instantaneous powers corresponding to the various recording moments after the translation to obtain a preprocessing table corresponding to any one of the tables, and summarize the various recording moments and the instantaneous powers in the other table that correspond to the various recording moments to obtain a preprocessing table corresponding to the other table.

[0098] S3. Obtain setting values ​​of multiple free parameters required for simulation, wherein the multiple free parameters required for simulation include but are not limited to power consumption of energy storage cabinet management and cooling system, time-of-use electricity price of the power grid, simulation time step, etc.

[0099] In step S3, the multiple free parameters required for simulation can be obtained by inputting by the simulation personnel, but not limited to, wherein the power consumption of the energy storage cabinet management and cooling system refers to the power consumption of the management and cooling system of the energy storage cabinet, which is specifically a fixed value; the time-of-use electricity price of the power grid refers to the electricity price in four time periods (such as 0:00-1:00) such as sharp, peak, flat and valley; the simulation time step is also called the integral step of the simulation process, which is generally the data time interval in the input data (such as the historical electricity consumption record table), such as 15 minutes. In addition, the multiple free parameters required for simulation also include but are not limited to the rated power of the industrial and commercial entity (i.e., the maximum power consumption allowed), the rated power of the energy storage cabinet, the rated capacity of the energy storage cabinet, the charging energy conversion efficiency of the energy storage cabinet, the discharging energy conversion efficiency of the energy storage cabinet, the maximum allowable charging depth of the energy storage cabinet, the minimum allowable discharge depth of the energy storage cabinet and / or the number of energy storage cabinets.

[0100] S4. Apply the pre-processed historical electricity consumption record table, the pre-processed historical new energy power generation record table and the setting values ​​of the multiple free parameters required for the simulation, and complete the industrial and commercial entity energy storage charging and discharging simulation task according to the following steps S41 to S48.

[0101] S41. Initialize the simulation time sequence number i to 1, and initialize the first simulation time to the first recorded time in the pre-processed historical electricity consumption record table and the pre-processed historical new energy power generation record table, and also initialize the total power of the energy storage cabinet to 0, and then execute step S42.

[0102] In step S41, since the pre-processed historical electricity consumption record table and the pre-processed historical new energy power generation record table are obtained by aligning the recording time of the two tables, the first recording time is the same recording time shared by the two tables. In addition, the total power of the energy storage cabinet refers to the dynamic total power of all energy storage cabinets participating in the simulation, which is initially zero.

[0103] S42. According to the pre-processed historical electricity consumption record table, the pre-processed historical new energy power generation record table, the setting values ​​of the multiple free parameters required for the simulation and the current value of the total power of the energy storage cabinet, a charging and discharging strategy corresponding to the i-th simulation moment is generated based on the first cost safety control requirement, and then step S43 is executed, wherein the charging and discharging strategy is a charging strategy, a discharging strategy or a static strategy.

[0104] In step S42, the physical relationship between the power consumption of the load equipment of the industrial and commercial entity, the power sales and purchase of the power grid, the power generation of the new energy power generation equipment and the charging and discharging of the energy storage cabinet is as follows: Figure 2As shown, the charging strategy refers to the strategy for charging the energy storage cabinet; the discharging strategy refers to the strategy for discharging the energy storage cabinet; and the static strategy refers to the strategy for neither charging nor discharging the energy storage cabinet. Specifically, when the multiple free parameters required for simulation also include but are not limited to the rated power of the industrial and commercial entity, the rated capacity of the energy storage cabinet, the maximum allowable charging depth of the energy storage cabinet, the minimum allowable discharge depth of the energy storage cabinet, and the number of energy storage cabinets, etc., according to the pre-processed historical electricity consumption record table, the pre-processed historical new energy power generation record table, the set values ​​of the multiple free parameters required for simulation, and the current value of the total power of the energy storage cabinet, a charging and discharging strategy corresponding to the i-th simulation moment is generated based on the first cost safety control requirement, including but not limited to the following steps S421 to S424.

[0105] S421. Determine whether the ith simulation moment belongs to the off-peak power consumption period of the power grid.

[0106] In step S421, the off-peak period of the power grid is exemplified as 22:00 to 8:00 the next day. This period is regarded as a period of low power demand, so the off-peak electricity price is applied; of course, it can also be flexibly configured as a free parameter required for the simulation.

[0107] S422. If it is determined that the i-th simulation moment belongs to the off-peak power consumption period of the power grid, it is further determined whether the load of the industrial and commercial entity at the i-th simulation moment is less than the rated power and whether the current value of the total power of the energy storage cabinet is less than the maximum allowable power. If so, the charge and discharge strategy corresponding to the i-th simulation moment is generated as a charging strategy, otherwise the charge and discharge strategy corresponding to the i-th simulation moment is generated as a static strategy, wherein the load is equal to the power consumption of the energy storage cabinet management and cooling system plus the instantaneous power of the historical power consumption corresponding to the same power consumption moment in the pre-processed historical power consumption record table, and the same power consumption moment refers to a historical power consumption record moment that is the same as the i-th simulation moment, and the maximum allowable power is equal to the multiplication result of the rated capacity of the energy storage cabinet, the number of the energy storage cabinets and the maximum allowable charging depth of the energy storage cabinet.

[0108] In step S422, for example, if the i-th simulation time is 10:00 on December 1, 2023, then the same power consumption time is also 10:00 on December 1, 2023, and the load is equal to the power consumption of the energy storage cabinet management and cooling system plus the historical instantaneous power consumption in the pre-processed historical power consumption record table corresponding to 10:00 on December 1, 2023.

[0109] S423. If it is determined that the i-th simulation moment does not belong to the off-peak power consumption period of the power grid, it is further determined whether the load of the industrial and commercial entity at the i-th simulation moment is greater than the power generation power of the industrial and commercial entity at the i-th simulation moment and whether the current value of the total power of the energy storage cabinet is greater than the minimum allowable power. If so, the charge and discharge strategy corresponding to the i-th simulation moment is generated as a discharge strategy, wherein the power generation power is equal to the historical new energy power generation instantaneous power corresponding to the same power generation time in the historical new energy power generation record table after preprocessing, and the same power generation time refers to a historical power generation record time that is the same as the i-th simulation moment, and the minimum allowable power is equal to the multiplication result of the rated capacity of the energy storage cabinet, the number of the energy storage cabinets and the minimum allowable discharge depth of the energy storage cabinet.

[0110] In the step S423, for example, if the i-th simulation time is 10:00 on December 1, 2023, then the same power generation time is also 10:00 on December 1, 2023, and the power generation power is equal to the historical new energy power generation instantaneous power corresponding to 10:00 on December 1, 2023 in the historical new energy power generation record table after preprocessing.

[0111] S424. If it is determined that the load of the industrial and commercial entity at the i-th simulation moment is less than or equal to the power generation power of the industrial and commercial entity at the i-th simulation moment and / or the current value of the total power of the energy storage cabinet is less than or equal to the minimum allowable power, then it is further determined whether the load of the industrial and commercial entity at the i-th simulation moment is less than the power generation power of the industrial and commercial entity at the i-th simulation moment and whether the current value of the total power of the energy storage cabinet is less than the maximum allowable power. If so, the charge and discharge strategy corresponding to the i-th simulation moment is generated as the charging strategy; otherwise, the charge and discharge strategy corresponding to the i-th simulation moment is generated as the static strategy.

[0112] S43. If the charge and discharge strategy corresponding to the i-th simulation moment is a charging strategy, execute step S44; if the charge and discharge strategy corresponding to the i-th simulation moment is a discharging strategy, execute step S45; and if the charge and discharge strategy corresponding to the i-th simulation moment is a static strategy, execute step S46.

[0113] S44. According to the pre-processed historical electricity consumption record table, the pre-processed historical new energy power generation record table, the setting values ​​of the multiple free parameters required for the simulation and the current value of the total power of the energy storage cabinet, the charging amount corresponding to the i-th simulation moment is calculated based on the second cost safety control requirement, and the discharge amount corresponding to the i-th simulation moment is set to 0, and the current value of the total power of the energy storage cabinet is added with the charging amount corresponding to the i-th simulation moment, and then step S47 is executed.

[0114] In step S44, the second cost safety control requirement specifically includes but is not limited to: (a2) industrial and commercial entities cannot operate at a power exceeding the rated power, (b2) energy storage cabinets cannot be charged at a power exceeding the rated power, (c2) energy storage cabinets need to have a certain conversion efficiency due to heat generation when charging, (d2) energy storage cabinets cannot be overcharged, (e2) energy storage cabinet management and cooling systems require electricity, and the entity load needs to be increased accordingly. Specifically, when the multiple free parameters required for simulation also include but are not limited to the rated power of the industrial and commercial entity, the rated power of the energy storage cabinet, the rated capacity of the energy storage cabinet, the energy conversion efficiency of energy storage cabinet charging, the maximum allowable charging depth of the energy storage cabinet and the number of energy storage cabinets, etc., according to the pre-processed historical power consumption record table, the pre-processed historical new energy power generation record table, the set values ​​of the multiple free parameters required for simulation and the current value of the total power of the energy storage cabinet, the charging amount corresponding to the i-th simulation moment is calculated based on the second cost safety control requirement, including but not limited to the following steps S441 to S442.

[0115] S441. Calculate the charging power P corresponding to the i-th simulation moment according to the following formula: ch,i :

[0116] P ch,i =min(P rat -P use,i -P esc +P gen,i ,P rat,esc ×M)

[0117] Where P rat Indicates the rated power, P use,i represents the instantaneous power of historical power consumption in the preprocessed historical power consumption record table and corresponding to the same power consumption time, wherein the same power consumption time refers to a certain historical power consumption record time that is the same as the i-th simulation time, P esc represents the power consumption of the energy storage cabinet management and cooling system, P gen,i represents the instantaneous power of historical renewable energy power generation in the preprocessed historical renewable energy power generation record table and corresponding to the same power generation time, wherein the same power generation time refers to a historical power generation record time that is the same as the i-th simulation time, Prat,esc represents the rated power of the energy storage cabinet, M represents the number of energy storage cabinets, and min() represents the minimum value function.

[0118] S442. Calculate the charge amount E corresponding to the i-th simulation moment according to the following formula: ch,i :

[0119] E ch,i =min(P ch,i ×t×η ch ,E max -E esc )

[0120] Wherein, t represents the simulation time step, η ch represents the charging energy conversion efficiency of the energy storage cabinet, E max represents the maximum allowable power and is equal to the product of the rated capacity of the energy storage cabinet, the number of energy storage cabinets and the maximum allowable charging depth of the energy storage cabinet, E esc Indicates the current value of the total power of the energy storage cabinet.

[0121] S45. According to the pre-processed historical electricity consumption record table, the pre-processed historical new energy power generation record table, the setting values ​​of the multiple free parameters required for the simulation and the current value of the total power of the energy storage cabinet, the discharge amount corresponding to the i-th simulation moment is calculated based on the third cost safety control requirement, and the charge amount corresponding to the i-th simulation moment is set to 0, and the current value of the total power of the energy storage cabinet is subtracted by the discharge amount corresponding to the i-th simulation moment, and then step S47 is executed.

[0122] In step S45, the third cost safety control requirement specifically includes but is not limited to: (a3) ​​the energy storage cabinet needs to discharge appropriately according to the load demand, (b3) the energy storage cabinet cannot discharge beyond the rated power, (c3) the energy storage cabinet needs to have a certain conversion efficiency due to heat generation when discharging, (d3) the energy storage cabinet cannot be over-discharged, (e3) the energy storage cabinet management and cooling system needs electricity, and the physical load needs to be increased accordingly. Specifically, when the multiple free parameters required for simulation also include but are not limited to the rated power of the energy storage cabinet, the rated capacity of the energy storage cabinet, the energy storage cabinet discharge energy conversion efficiency, the minimum allowable discharge depth of the energy storage cabinet and the number of energy storage cabinets, according to the pre-processed historical power consumption record table, the pre-processed historical new energy power generation record table, the set values ​​of the multiple free parameters required for simulation and the current value of the total power of the energy storage cabinet, the discharge amount corresponding to the i-th simulation moment is calculated based on the third cost safety control requirement, including but not limited to the following steps S451 to S452.

[0123] S451. Calculate the discharge power P corresponding to the i-th simulation moment according to the following formula:disch,i :

[0124] P disch,i =min(P use,i +P esc -P gen,i ,P rat,esc ×M)

[0125] Where P use,i represents the instantaneous power of historical power consumption in the preprocessed historical power consumption record table and corresponding to the same power consumption time, wherein the same power consumption time refers to a certain historical power consumption record time that is the same as the i-th simulation time, P esc represents the power consumption of the energy storage cabinet management and cooling system, P gen,i represents the instantaneous power of historical renewable energy power generation in the preprocessed historical renewable energy power generation record table and corresponding to the same power generation time, wherein the same power generation time refers to a historical power generation record time that is the same as the i-th simulation time, P rat,esc represents the rated power of the energy storage cabinet, M represents the number of energy storage cabinets, and min() represents the minimum value function.

[0126] S452. Calculate the discharge amount E corresponding to the i-th simulation moment according to the following formula: disch,i :

[0127]

[0128] Wherein, t represents the simulation time step, η disch It represents the energy conversion efficiency of the energy storage cabinet, E esc Indicates the current value of the total power of the energy storage cabinet, E min It represents the minimum allowable power and is equal to the product of the rated capacity of the energy storage cabinet, the number of the energy storage cabinets and the minimum allowable discharge depth of the energy storage cabinet.

[0129] S46. Set the charge amount and discharge amount corresponding to the i-th simulation moment to 0 respectively, and then execute step S47.

[0130] In the step S46, when it is necessary to output and display the charging power and / or discharging power corresponding to the i-th simulation moment, it is also necessary to set the charging power and / or discharging power corresponding to the i-th simulation moment to 0 respectively.

[0131] S47. Calculate the power consumption E of the industrial and commercial entity corresponding to the i-th simulation moment use,i 、Power Purchase E buy,i And electricity purchase fee F buy,i Then, step S48 is executed, wherein the power consumption E use,iThe amount of electricity purchased E buy,i and the electricity purchase fee F buy,i The calculation formula is as follows:

[0132]

[0133] Where P use,i represents the instantaneous power of historical power consumption in the preprocessed historical power consumption record table and corresponding to the same power consumption time, wherein the same power consumption time refers to a certain historical power consumption record time that is the same as the i-th simulation time, P esc represents the power consumption of the energy storage cabinet management and cooling system, t represents the simulation time step, E ch,i represents the charge amount corresponding to the i-th simulation moment, E disch,i represents the discharge amount corresponding to the i-th simulation moment, P gen,i represents the instantaneous power of historical renewable energy power generation in the preprocessed historical renewable energy power generation record table and corresponding to the same power generation time, wherein the same power generation time refers to a certain historical power generation record time that is the same as the i-th simulation time, C i represents the time-of-use electricity price of the power grid corresponding to the i-th simulation moment.

[0134] In step S47, for example, if the i-th simulation time is 10:00 on December 1, 2023, and the electricity price from 8:00 to 12:00 every day is 7 cents / degree, then C i Specifically, it is 7 angles / degrees.

[0135] S48. If the i-th simulation moment is the last recorded moment in the pre-processed historical electricity consumption record table and the pre-processed historical new energy power generation record table, the simulation is terminated; otherwise, according to the i-th simulation moment and the simulation time step, the i+1-th simulation moment is determined, and the simulation moment sequence number i is incremented by 1, and then the execution of step S42 is returned.

[0136] In step S48, for example, if the i-th simulation time is 10:00 on December 1, 2023, and the simulation time step is 15 minutes, it can be determined that the i+1-th simulation time is 10:15 on December 1, 2023.

[0137] In the step S4, considering that the industrial and commercial entity energy storage charging and discharging simulation task involves a simulation calculation task under the input of multiple parameter combinations, and some simulation calculation steps can be executed independently and in parallel, in order to speed up the simulation process to quickly obtain simulation results, preferably, the pre-processed historical electricity consumption record table, the pre-processed historical new energy power generation record table and the setting values ​​of the multiple free parameters required for the simulation are applied to complete the industrial and commercial entity energy storage charging and discharging simulation task, including but not limited to the following steps S401 to S402.

[0138] S401. Split the industrial and commercial entity energy storage charging and discharging simulation task into multiple subtasks that can be executed in parallel.

[0139] In the step S401, for example, the aforementioned steps S42, S44, S45 and S46 can be used as multiple subtasks that can be executed in parallel, and then based on their execution results, combined with step S43, the data required for step S47 can be obtained.

[0140] S402. Apply the pre-processed historical electricity consumption record table, the pre-processed historical new energy power generation record table and the setting values ​​of the multiple free parameters required for the simulation, and use a distributed computing solution based on a big data cluster and using the spark computing engine to complete the multiple subtasks in parallel.

[0141] In step S402, the spark computing engine is a fast and general computing engine designed specifically for large-scale data processing.

[0142] S5. Output and display the charging and discharging strategy, charging amount, discharging amount, power consumption, power purchase amount, power purchase fee and / or total power of the energy storage cabinet corresponding to each simulation moment.

[0143] In step S5, the charging and discharging strategies, charging amount, discharging amount, power consumption, power purchase amount, power purchase fee and / or total power of energy storage cabinets corresponding to each simulation moment are the simulation results of industrial and commercial entity storage allocation, and thus, in the process of industrial and commercial entity storage allocation calculation, it can provide refined data analysis and statistical support for the test tasks of energy storage capacity, electricity expenditure, operating cost and investment income, etc., to improve their accuracy. In addition, the power purchase fee corresponding to each simulation moment can be accumulated to obtain a total power purchase fee, and then the total power purchase fee is used as the optimization target, and an optimization algorithm such as the gray wolf algorithm is used to determine a set of free parameters required for simulation with the lowest total power purchase fee, and finally, the power consumption of the energy storage cabinet management and cooling system, the rated power of the energy storage cabinet, the rated capacity of the energy storage cabinet, the charging energy conversion efficiency of the energy storage cabinet, the discharging energy conversion efficiency of the energy storage cabinet, the maximum allowable charging depth of the energy storage cabinet, the minimum allowable discharge depth of the energy storage cabinet and / or the number of energy storage cabinets are extracted from the free parameters required for the simulation to form the optimal storage allocation scheme of the industrial and commercial entity.

[0144] Therefore, based on the industrial and commercial entity energy storage charging and discharging simulation method described in the aforementioned steps S1 to S5, a new energy storage charging and discharging simulation scheme suitable for commercial entity storage measurement scenarios is provided, that is, the historical electricity consumption and new energy power generation record table is first subjected to data preprocessing including data cleaning processing, null value filling processing, abnormal value exclusion processing and / or two-table record time alignment processing to obtain the preprocessed historical electricity consumption and new energy power generation record table, and then the data of these two tables and the setting values ​​of multiple free parameters required for simulation are applied to complete the industrial and commercial entity energy storage charging and discharging simulation task including the following steps: the corresponding charging and discharging strategy generation step at each simulation moment and the corresponding The calculation steps of the charging amount, discharging amount, power consumption, power purchase amount and power purchase fee should be followed, and finally the charging and discharging strategy, charging amount, discharging amount, power consumption, power purchase amount, power purchase fee and / or total power of the energy storage cabinet corresponding to each simulation moment should be output and displayed as the simulation results of industrial and commercial entity storage distribution. In this way, since the historical power consumption and power generation data of industrial and commercial entities are applied to simulate the charging and discharging scenarios after being equipped with energy storage cabinets, it can provide refined data analysis and statistical support for the test tasks of energy storage capacity, electricity expenditure, operating cost and investment income in the process of industrial and commercial entity storage distribution calculation, improve their accuracy, and facilitate practical application and promotion.

[0145] like Figure 3 As shown, the second aspect of this embodiment provides a virtual device for implementing the industrial and commercial entity energy storage charging and discharging simulation method described in the first aspect, including a historical data acquisition unit, a data preprocessing unit, a free parameter acquisition unit, a charging and discharging simulation unit and a simulation result display unit;

[0146] The historical data acquisition unit is used to acquire a historical electricity consumption record table and a historical new energy power generation record table of an industrial and commercial entity, wherein the historical electricity consumption record table periodically records a plurality of historical electricity consumption record moments and a plurality of historical electricity consumption instantaneous powers corresponding to the plurality of historical electricity consumption record moments, and the historical new energy power generation record table periodically records a plurality of historical power generation record moments and a plurality of historical new energy power generation instantaneous powers corresponding to the plurality of historical power generation record moments;

[0147] The data preprocessing unit is communicatively connected to the historical data acquisition unit, and is used to perform data preprocessing on the historical electricity consumption record table and the historical renewable energy power generation record table to obtain a preprocessed historical electricity consumption record table and a preprocessed historical renewable energy power generation record table, wherein the data preprocessing includes data cleaning processing, null value filling processing, abnormal value exclusion processing and / or two-table record time alignment processing;

[0148] The free parameter acquisition unit is used to acquire the setting values ​​of multiple free parameters required for simulation, wherein the multiple free parameters required for simulation include the power consumption of energy storage cabinet management and cooling system, the time-of-use electricity price of the power grid and the simulation time step;

[0149] The charging and discharging simulation unit is respectively connected to the data preprocessing unit and the free parameter acquisition unit for communication, and is used to apply the preprocessed historical electricity consumption record table, the preprocessed historical new energy power generation record table and the set values ​​of the plurality of free parameters required for the simulation to complete the industrial and commercial entity energy storage charging and discharging simulation task, and specifically includes an initialization subunit, a strategy generation subunit, a strategy response subunit, a charging strategy execution subunit, a discharging strategy execution subunit, a static strategy execution subunit, a calculation subunit and a simulation time update subunit;

[0150] The initialization subunit is communicatively connected to the strategy generation subunit, and is used to initialize the simulation time sequence number i to 1, and initialize the first simulation time to the first recorded time in the pre-processed historical power consumption record table and the pre-processed historical new energy power generation record table, and also initialize the total power of the energy storage cabinet to 0, and then start the strategy generation subunit;

[0151] The strategy generation subunit is communicatively connected to the strategy response subunit, and is used to generate a charge and discharge strategy corresponding to the i-th simulation moment based on the first cost safety control requirement according to the pre-processed historical electricity consumption record table, the pre-processed historical new energy power generation record table, the set values ​​of the plurality of free parameters required for the simulation, and the current value of the total power of the energy storage cabinet, and then start the strategy response subunit, wherein the charge and discharge strategy is a charging strategy, a discharging strategy, or a static strategy;

[0152] The strategy response subunit is respectively communicatively connected to the charging strategy execution subunit, the discharging strategy execution subunit and the static strategy execution subunit, and is used to start the charging strategy execution subunit if the charging and discharging strategy corresponding to the i-th simulation moment is the charging strategy, start the discharging strategy execution subunit if the charging and discharging strategy corresponding to the i-th simulation moment is the discharging strategy, and start the static strategy execution subunit if the charging and discharging strategy corresponding to the i-th simulation moment is the static strategy;

[0153] The charging strategy execution subunit is communicatively connected to the calculation subunit, and is used to calculate the charge amount corresponding to the i-th simulation moment based on the second cost safety control requirement according to the pre-processed historical power consumption record table, the pre-processed historical new energy power generation record table, the set values ​​of the plurality of free parameters required for the simulation, and the current value of the total power of the energy storage cabinet, and to set the discharge amount corresponding to the i-th simulation moment to 0, and to add the charge amount corresponding to the i-th simulation moment to the current value of the total power of the energy storage cabinet, and then start the calculation subunit;

[0154] The discharge strategy execution subunit is communicatively connected to the calculation subunit, and is used to calculate the discharge amount corresponding to the i-th simulation moment based on the third cost safety control requirement according to the pre-processed historical electricity consumption record table, the pre-processed historical new energy power generation record table, the set values ​​of the plurality of free parameters required for the simulation, and the current value of the total power of the energy storage cabinet, and to set the charge amount corresponding to the i-th simulation moment to 0, and to decrement the current value of the total power of the energy storage cabinet by the discharge amount corresponding to the i-th simulation moment, and then start the calculation subunit;

[0155] The static strategy execution subunit is communicatively connected to the calculation subunit, and is used to set the charge amount and discharge amount corresponding to the i-th simulation moment to 0 respectively, and then start the calculation subunit;

[0156] The calculation subunit is communicatively connected to the simulation time updating subunit, and is used to calculate the power consumption E of the industrial and commercial entity corresponding to the i-th simulation time. use,i 、Power Purchase E buy,i And electricity purchase fee F buy,i , and then start the simulation time update subunit, where the power consumption E use,i The amount of electricity purchased E buy,i and the electricity purchase fee F buy,i The calculation formula is as follows:

[0157]

[0158] Where P use,irepresents the instantaneous power of historical power consumption in the preprocessed historical power consumption record table and corresponding to the same power consumption time, wherein the same power consumption time refers to a certain historical power consumption record time that is the same as the i-th simulation time, P esc represents the power consumption of the energy storage cabinet management and cooling system, t represents the simulation time step, E ch,i represents the charge amount corresponding to the i-th simulation moment, E disch,i represents the discharge amount corresponding to the i-th simulation moment, P gen,i represents the instantaneous power of historical renewable energy power generation in the preprocessed historical renewable energy power generation record table and corresponding to the same power generation time, wherein the same power generation time refers to a certain historical power generation record time that is the same as the i-th simulation time, C i represents the time-of-use electricity price of the power grid corresponding to the i-th simulation moment;

[0159] The simulation time updating subunit is communicatively connected to the strategy generating subunit, and is used to terminate the simulation if the i-th simulation time is the last recorded time in the pre-processed historical electricity consumption record table and the pre-processed historical new energy power generation record table, otherwise, determine the i+1-th simulation time according to the i-th simulation time and the simulation time step, and increment the simulation time sequence number i by 1, and then restart the strategy generating subunit;

[0160] The simulation result display unit is communicatively connected to the charge and discharge simulation unit, and is used to output and display the charge and discharge strategy, charge amount, discharge amount, power consumption, power purchase amount, power purchase fee and / or total power of the energy storage cabinet corresponding to each simulation moment.

[0161] The working process, working details and technical effects of the aforementioned device provided in the second aspect of this embodiment can be referred to the industrial and commercial entity energy storage charging and discharging simulation method described in the first aspect, and will not be repeated here.

[0162] like Figure 4As shown, the third aspect of this embodiment provides a computer device for executing the industrial and commercial entity energy storage charge and discharge simulation method as described in the first aspect, including a memory, a processor and a transceiver that are sequentially connected in communication, wherein the memory is used to store a computer program, the transceiver is used to send and receive messages, and the processor is used to read the computer program to execute the industrial and commercial entity energy storage charge and discharge simulation method as described in the first aspect. For example, the memory may include, but is not limited to, a random access memory (Random-Access Memory, RAM), a read-only memory (Read-Only Memory, ROM), a flash memory (Flash Memory), a first-in-first-out memory (First Input First Output, FIFO) and / or a first-in-last-out memory (First Input Last Output, FILO), etc.; the processor may include, but is not limited to, a microprocessor of the STM32F105 series. In addition, the computer device may also include, but is not limited to, a power module, a display screen and other necessary components.

[0163] The working process, working details and technical effects of the aforementioned computer equipment provided in the third aspect of this embodiment can be found in the industrial and commercial entity energy storage charging and discharging simulation method described in the first aspect, and will not be repeated here.

[0164] In a fourth aspect of this embodiment, there is provided a computer-readable storage medium storing instructions including the industrial and commercial entity energy storage charge and discharge simulation method as described in the first aspect, that is, the computer-readable storage medium stores instructions, and when the instructions are executed on a computer, the industrial and commercial entity energy storage charge and discharge simulation method as described in the first aspect is executed. Wherein, the computer-readable storage medium refers to a carrier for storing data, which may include but is not limited to computer-readable storage media such as floppy disks, optical disks, hard disks, flash memory, USB flash drives and / or memory sticks, and the computer may be a general-purpose computer, a special-purpose computer, a computer network or other programmable devices.

[0165] The working process, working details and technical effects of the aforementioned computer-readable storage medium provided in the fourth aspect of this embodiment can be referred to the industrial and commercial entity energy storage charging and discharging simulation method described in the first aspect, and will not be repeated here.

[0166] In a fifth aspect, the present embodiment provides a computer program product, including a computer program or instructions, which, when executed by a computer, implements the industrial and commercial entity energy storage charging and discharging simulation method as described in the first aspect. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device.

[0167] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for simulating the charging and discharging of energy storage for industrial and commercial entities, characterized in that: include: Obtaining a historical electricity consumption record table and a historical new energy power generation record table of an industrial and commercial entity, wherein the historical electricity consumption record table periodically records a plurality of historical electricity consumption record moments and a plurality of historical electricity consumption instantaneous powers corresponding to the plurality of historical electricity consumption record moments, and the historical new energy power generation record table periodically records a plurality of historical power generation record moments and a plurality of historical new energy power generation instantaneous powers corresponding to the plurality of historical power generation record moments; Performing data preprocessing on the historical electricity consumption record table and the historical renewable energy power generation record table to obtain a preprocessed historical electricity consumption record table and a preprocessed historical renewable energy power generation record table, wherein the data preprocessing includes data cleaning processing, null value filling processing, abnormal value exclusion processing and / or two-table record time alignment processing; Obtaining setting values ​​of multiple free parameters required for simulation, wherein the multiple free parameters required for simulation include power consumption of energy storage cabinet management and cooling system, time-of-use electricity price of power grid and simulation time step; The preprocessed historical electricity consumption record table, the preprocessed historical new energy power generation record table and the set values ​​of the plurality of free parameters required for the simulation are applied to complete the industrial and commercial entity energy storage charging and discharging simulation task according to the following steps S41 to S48: S41. Initialize the simulation time sequence number i to 1, and initialize the first simulation time to the first recorded time in the pre-processed historical power consumption record table and the pre-processed historical new energy power generation record table, and also initialize the total power of the energy storage cabinet to 0, and then execute step S42; S42. According to the pre-processed historical electricity consumption record table, the pre-processed historical new energy power generation record table, the set values ​​of the plurality of free parameters required for the simulation, and the current value of the total power of the energy storage cabinet, a charge and discharge strategy corresponding to the i-th simulation moment is generated based on the first cost safety control requirement, and then step S43 is executed, wherein the charge and discharge strategy is a charging strategy, a discharging strategy, or a static strategy; S43. If the charge and discharge strategy corresponding to the i-th simulation moment is a charge strategy, execute step S44; if the charge and discharge strategy corresponding to the i-th simulation moment is a discharge strategy, execute step S45; and if the charge and discharge strategy corresponding to the i-th simulation moment is a static strategy, execute step S46; S44. According to the pre-processed historical electricity consumption record table, the pre-processed historical new energy power generation record table, the setting values ​​of the plurality of free parameters required for the simulation and the current value of the total power of the energy storage cabinet, the charging amount corresponding to the i-th simulation moment is calculated based on the second cost safety control requirement, and the discharge amount corresponding to the i-th simulation moment is set to 0, and the current value of the total power of the energy storage cabinet is added with the charging amount corresponding to the i-th simulation moment, and then step S47 is executed; S45. According to the pre-processed historical electricity consumption record table, the pre-processed historical new energy power generation record table, the setting values ​​of the plurality of free parameters required for the simulation and the current value of the total power of the energy storage cabinet, the discharge amount corresponding to the i-th simulation moment is calculated based on the third cost safety control requirement, and the charge amount corresponding to the i-th simulation moment is set to 0, and the current value of the total power of the energy storage cabinet is subtracted by the discharge amount corresponding to the i-th simulation moment, and then step S47 is executed; S46. The charge amount and discharge amount corresponding to the i-th simulation moment are respectively set to 0, and then step S47 is executed; S47. Calculate the power consumption E of the industrial and commercial entity corresponding to the i-th simulation moment use,i 、Power Purchase E buy,i And electricity purchase fee F buy,i Then, step S48 is executed, wherein the power consumption E use,i The amount of electricity purchased E buy,i and the electricity purchase fee F buy,i The calculation formula is as follows: Where P use,i represents the instantaneous power of historical power consumption in the preprocessed historical power consumption record table and corresponding to the same power consumption time, wherein the same power consumption time refers to a certain historical power consumption record time that is the same as the i-th simulation time, P esc represents the power consumption of the energy storage cabinet management and cooling system, t represents the simulation time step, E ch,i represents the charge amount corresponding to the i-th simulation moment, E disch,i represents the discharge amount corresponding to the i-th simulation moment, P gen,i represents the instantaneous power of historical renewable energy power generation in the preprocessed historical renewable energy power generation record table and corresponding to the same power generation time, wherein the same power generation time refers to a certain historical power generation record time that is the same as the i-th simulation time, C i represents the time-of-use electricity price of the power grid corresponding to the i-th simulation moment; S48. If the i-th simulation time is the last recorded time in the pre-processed historical electricity consumption record table and the pre-processed historical new energy power generation record table, then the simulation is terminated; otherwise, the i+1-th simulation time is determined according to the i-th simulation time and the simulation time step, and the simulation time sequence number i is incremented by 1, and then the execution returns to step S42; The output displays the charging and discharging strategies, charging amount, discharging amount, power consumption, power purchase amount, power purchase fee and / or total power of the energy storage cabinet corresponding to each simulation moment.

2. The method for simulating the charging and discharging of energy storage for industrial and commercial entities according to claim 1, characterized in that: When the data preprocessing includes aligning the recording time of the two tables, data preprocessing is performed on the historical electricity consumption record table and the historical new energy power generation record table to obtain the preprocessed historical electricity consumption record table and the preprocessed historical new energy power generation record table, including: The recording time of any one of the historical electricity consumption record table and the historical new energy power generation record table is shifted as a whole, so that each shifted recording time corresponds to and is aligned with each recording time of the other table in the historical electricity consumption record table and the historical new energy power generation record table; For each recorded moment after translation, the corresponding instantaneous power is calculated according to the following formula: P n =c 3,n ×(t n ) 3 +c 2,n ×(t n ) 2 +c 1,n ×t n +c 0,n In the formula, n represents a positive integer, P n represents the instantaneous power corresponding to the nth post-translation recording time, t n represents the time difference between the nth recorded time after translation and the first recorded time of the other table, c 3,n 、c 2,n 、c 1,n and c 0,n Respectively represent coefficients of a local area cubic polynomial for realizing cubic spline interpolation, obtained by using the least square method according to K instantaneous powers in any one of the tables and corresponding to the K adjacent recording moments, K represents a positive integer greater than or equal to 4, and the K adjacent recording moments refer to the first K recording moments closest to the nth shifted recording moment; Summarize the various recorded moments after the translation and the instantaneous powers corresponding to the various recorded moments after the translation to obtain a preprocessing table corresponding to any one of the tables, and summarize the various recorded moments and the instantaneous powers in the other table that correspond to the various recorded moments to obtain a preprocessing table corresponding to the other table.

3. The method for simulating charging and discharging of energy storage for industrial and commercial entities according to claim 1, characterized in that: When the plurality of free parameters required for simulation further include the rated power of the industrial and commercial entity, the rated capacity of the energy storage cabinet, the maximum allowable charging depth of the energy storage cabinet, the minimum allowable discharging depth of the energy storage cabinet, and the number of energy storage cabinets, generating a charging and discharging strategy corresponding to the i-th simulation moment based on the first cost safety control requirement according to the preprocessed historical electricity consumption record table, the preprocessed historical new energy power generation record table, the set values ​​of the plurality of free parameters required for simulation, and the current value of the total power of the energy storage cabinet, including: Determine whether the i-th simulation moment belongs to the off-peak power consumption period of the power grid; If it is determined that the i-th simulation moment belongs to the off-peak power consumption period of the power grid, it is further determined whether the load of the industrial and commercial entity at the i-th simulation moment is less than the rated power and whether the current value of the total power of the energy storage cabinet is less than the maximum allowable power. If so, the charge and discharge strategy corresponding to the i-th simulation moment is generated as a charging strategy, otherwise the charge and discharge strategy corresponding to the i-th simulation moment is generated as a static strategy, wherein the load is equal to the power consumption of the energy storage cabinet management and cooling system plus the historical power consumption instantaneous power corresponding to the same power consumption moment in the pre-processed historical power consumption record table, and the same power consumption moment refers to a certain historical power consumption record moment that is the same as the i-th simulation moment, and the maximum allowable power is equal to the multiplication result of the rated capacity of the energy storage cabinet, the number of the energy storage cabinets and the maximum allowable charging depth of the energy storage cabinet; If it is determined that the i-th simulation moment does not belong to the off-peak power consumption period of the power grid, it is further determined whether the load of the industrial and commercial entity at the i-th simulation moment is greater than the power generation power of the industrial and commercial entity at the i-th simulation moment and whether the current value of the total power of the energy storage cabinet is greater than the minimum allowable power. If so, the charge and discharge strategy corresponding to the i-th simulation moment is generated as a discharge strategy, wherein the power generation power is equal to the historical new energy power generation instantaneous power corresponding to the same power generation time in the pre-processed historical new energy power generation record table, and the same power generation time refers to a historical power generation record time that is the same as the i-th simulation moment, and the minimum allowable power is equal to the multiplication result of the rated capacity of the energy storage cabinet, the number of the energy storage cabinets and the minimum allowable discharge depth of the energy storage cabinet; If it is determined that the load of the industrial and commercial entity at the i-th simulation moment is less than or equal to the power generation power of the industrial and commercial entity at the i-th simulation moment and / or the current value of the total power of the energy storage cabinet is less than or equal to the minimum allowable power, then it is further determined whether the load of the industrial and commercial entity at the i-th simulation moment is less than the power generation power of the industrial and commercial entity at the i-th simulation moment and whether the current value of the total power of the energy storage cabinet is less than the maximum allowable power. If so, the charging and discharging strategy corresponding to the i-th simulation moment is generated as the charging strategy; otherwise, the charging and discharging strategy corresponding to the i-th simulation moment is generated as the static strategy.

4. The method for simulating charging and discharging of energy storage for industrial and commercial entities according to claim 1, characterized in that: When the plurality of free parameters required for simulation further include the rated power of the industrial and commercial entity, the rated power of the energy storage cabinet, the rated capacity of the energy storage cabinet, the charging energy conversion efficiency of the energy storage cabinet, the maximum allowable charging depth of the energy storage cabinet, and the number of energy storage cabinets, the charging amount corresponding to the i-th simulation time is calculated based on the second cost safety control requirement according to the pre-processed historical electricity consumption record table, the pre-processed historical new energy power generation record table, the set values ​​of the plurality of free parameters required for simulation, and the current value of the total power of the energy storage cabinet, including: The charging power P corresponding to the i-th simulation moment is calculated according to the following formula: ch,i : P ch,i =min(P rat -P use,i -P esc +P gen,i ,P rat,esc ×M) Where P rat Indicates the rated power, P use,i represents the instantaneous power of historical power consumption in the preprocessed historical power consumption record table and corresponding to the same power consumption time, wherein the same power consumption time refers to a certain historical power consumption record time that is the same as the i-th simulation time, P esc represents the power consumption of the energy storage cabinet management and cooling system, P gen,i represents the instantaneous power of historical renewable energy power generation in the preprocessed historical renewable energy power generation record table and corresponding to the same power generation time, wherein the same power generation time refers to a historical power generation record time that is the same as the i-th simulation time, P rat,esc represents the rated power of the energy storage cabinet, M represents the number of energy storage cabinets, and min() represents the minimum value function; The charge amount E corresponding to the i-th simulation moment is calculated according to the following formula: ch,i : E ch,i =min(P ch,i ×t×η ch ,E max -E esc ) Wherein, t represents the simulation time step, η ch It represents the charging energy conversion efficiency of the energy storage cabinet, E max represents the maximum allowable power and is equal to the product of the rated capacity of the energy storage cabinet, the number of energy storage cabinets and the maximum allowable charging depth of the energy storage cabinet, E esc Indicates the current value of the total power of the energy storage cabinet.

5. The method for simulating charging and discharging of energy storage for industrial and commercial entities according to claim 1, characterized in that: When the multiple free parameters required for simulation further include the rated power of the energy storage cabinet, the rated capacity of the energy storage cabinet, the discharge energy conversion efficiency of the energy storage cabinet, the minimum allowable discharge depth of the energy storage cabinet, and the number of energy storage cabinets, the discharge amount corresponding to the i-th simulation moment is calculated based on the third cost safety control requirement according to the pre-processed historical electricity consumption record table, the pre-processed historical new energy power generation record table, the set values ​​of the multiple free parameters required for simulation, and the current value of the total power of the energy storage cabinet, including: The discharge power P corresponding to the i-th simulation moment is calculated according to the following formula: disch,i : P disch,i =min(P use,i +P esc -P gen,i ,P rat,esc ×M) Where P use,i represents the instantaneous power of historical power consumption in the preprocessed historical power consumption record table and corresponding to the same power consumption time, wherein the same power consumption time refers to a certain historical power consumption record time that is the same as the i-th simulation time, P esc represents the power consumption of the energy storage cabinet management and cooling system, P gen,i represents the instantaneous power of historical renewable energy power generation in the preprocessed historical renewable energy power generation record table and corresponding to the same power generation time, wherein the same power generation time refers to a historical power generation record time that is the same as the i-th simulation time, P rat,esc represents the rated power of the energy storage cabinet, M represents the number of energy storage cabinets, and min() represents the minimum value function; The discharge amount E corresponding to the i-th simulation moment is calculated according to the following formula: disch,i : Wherein, t represents the simulation time step, η disch It represents the energy conversion efficiency of the energy storage cabinet, E esc Indicates the current value of the total power of the energy storage cabinet, E min It represents the minimum allowable power and is equal to the product of the rated capacity of the energy storage cabinet, the number of the energy storage cabinets and the minimum allowable discharge depth of the energy storage cabinet.

6. The method for simulating charging and discharging of energy storage for industrial and commercial entities according to claim 1, characterized in that: The preprocessed historical electricity consumption record table, the preprocessed historical new energy power generation record table and the set values ​​of the plurality of free parameters required for the simulation are used to complete the industrial and commercial entity energy storage charging and discharging simulation task, including: Split the industrial and commercial entity energy storage charging and discharging simulation task into multiple subtasks that can be executed in parallel; The preprocessed historical electricity consumption record table, the preprocessed historical new energy power generation record table and the setting values ​​of the multiple free parameters required for the simulation are applied, and a distributed computing solution based on a big data cluster and using a spark computing engine is adopted to complete the multiple subtasks in parallel.

7. An industrial and commercial entity energy storage charging and discharging simulation device, characterized in that: It includes a historical data acquisition unit, a data preprocessing unit, a free parameter acquisition unit, a charge and discharge simulation unit and a simulation result display unit; The historical data acquisition unit is used to acquire a historical electricity consumption record table and a historical new energy power generation record table of an industrial and commercial entity, wherein the historical electricity consumption record table periodically records a plurality of historical electricity consumption record moments and a plurality of historical electricity consumption instantaneous powers corresponding to the plurality of historical electricity consumption record moments, and the historical new energy power generation record table periodically records a plurality of historical power generation record moments and a plurality of historical new energy power generation instantaneous powers corresponding to the plurality of historical power generation record moments; The data preprocessing unit is communicatively connected to the historical data acquisition unit, and is used to perform data preprocessing on the historical electricity consumption record table and the historical renewable energy power generation record table to obtain a preprocessed historical electricity consumption record table and a preprocessed historical renewable energy power generation record table, wherein the data preprocessing includes data cleaning processing, null value filling processing, abnormal value exclusion processing and / or two-table record time alignment processing; The free parameter acquisition unit is used to acquire the setting values ​​of multiple free parameters required for simulation, wherein the multiple free parameters required for simulation include the power consumption of energy storage cabinet management and cooling system, the time-of-use electricity price of the power grid and the simulation time step; The charging and discharging simulation unit is respectively connected to the data preprocessing unit and the free parameter acquisition unit for communication, and is used to apply the preprocessed historical electricity consumption record table, the preprocessed historical new energy power generation record table and the set values ​​of the plurality of free parameters required for the simulation to complete the industrial and commercial entity energy storage charging and discharging simulation task, and specifically includes an initialization subunit, a strategy generation subunit, a strategy response subunit, a charging strategy execution subunit, a discharging strategy execution subunit, a static strategy execution subunit, a calculation subunit and a simulation time update subunit; The initialization subunit is communicatively connected to the strategy generation subunit, and is used to initialize the simulation time sequence number i to 1, and initialize the first simulation time to the first recorded time in the pre-processed historical power consumption record table and the pre-processed historical new energy power generation record table, and also initialize the total power of the energy storage cabinet to 0, and then start the strategy generation subunit; The strategy generation subunit is communicatively connected to the strategy response subunit, and is used to generate a charge and discharge strategy corresponding to the i-th simulation moment based on the first cost safety control requirement according to the pre-processed historical electricity consumption record table, the pre-processed historical new energy power generation record table, the set values ​​of the plurality of free parameters required for the simulation, and the current value of the total power of the energy storage cabinet, and then start the strategy response subunit, wherein the charge and discharge strategy is a charging strategy, a discharging strategy, or a static strategy; The strategy response subunit is respectively communicatively connected to the charging strategy execution subunit, the discharging strategy execution subunit and the static strategy execution subunit, and is used to start the charging strategy execution subunit if the charging and discharging strategy corresponding to the i-th simulation moment is the charging strategy, start the discharging strategy execution subunit if the charging and discharging strategy corresponding to the i-th simulation moment is the discharging strategy, and start the static strategy execution subunit if the charging and discharging strategy corresponding to the i-th simulation moment is the static strategy; The charging strategy execution subunit is communicatively connected to the calculation subunit, and is used to calculate the charge amount corresponding to the i-th simulation moment based on the second cost safety control requirement according to the pre-processed historical power consumption record table, the pre-processed historical new energy power generation record table, the set values ​​of the plurality of free parameters required for the simulation, and the current value of the total power of the energy storage cabinet, and to set the discharge amount corresponding to the i-th simulation moment to 0, and to add the charge amount corresponding to the i-th simulation moment to the current value of the total power of the energy storage cabinet, and then start the calculation subunit; The discharge strategy execution subunit is communicatively connected to the calculation subunit, and is used to calculate the discharge amount corresponding to the i-th simulation moment based on the third cost safety control requirement according to the pre-processed historical electricity consumption record table, the pre-processed historical new energy power generation record table, the set values ​​of the plurality of free parameters required for the simulation, and the current value of the total power of the energy storage cabinet, and to set the charge amount corresponding to the i-th simulation moment to 0, and to decrement the current value of the total power of the energy storage cabinet by the discharge amount corresponding to the i-th simulation moment, and then start the calculation subunit; The static strategy execution subunit is communicatively connected to the calculation subunit, and is used to set the charge amount and discharge amount corresponding to the i-th simulation moment to 0 respectively, and then start the calculation subunit; The calculation subunit is communicatively connected to the simulation time updating subunit, and is used to calculate the power consumption E of the industrial and commercial entity corresponding to the i-th simulation time. use,i 、Power Purchase E buy,i And electricity purchase fee F buy,i , and then start the simulation time update subunit, where the power consumption E use,i The amount of electricity purchased E buy,i and the electricity purchase fee F buy,i The calculation formula is as follows: Where P use,i represents the instantaneous power of historical power consumption in the preprocessed historical power consumption record table and corresponding to the same power consumption time, wherein the same power consumption time refers to a certain historical power consumption record time that is the same as the i-th simulation time, P esc represents the power consumption of the energy storage cabinet management and cooling system, t represents the simulation time step, E ch,i represents the charge amount corresponding to the i-th simulation moment, E disch,i represents the discharge amount corresponding to the i-th simulation moment, P gen,i represents the instantaneous power of historical renewable energy power generation in the preprocessed historical renewable energy power generation record table and corresponding to the same power generation time, wherein the same power generation time refers to a certain historical power generation record time that is the same as the i-th simulation time, C i represents the time-of-use electricity price of the power grid corresponding to the i-th simulation moment; The simulation time updating subunit is communicatively connected to the strategy generating subunit, and is used to terminate the simulation if the i-th simulation time is the last recorded time in the pre-processed historical electricity consumption record table and the pre-processed historical new energy power generation record table, otherwise, determine the i+1-th simulation time according to the i-th simulation time and the simulation time step, and increment the simulation time sequence number i by 1, and then restart the strategy generating subunit; The simulation result display unit is communicatively connected to the charge and discharge simulation unit, and is used to output and display the charge and discharge strategy, charge amount, discharge amount, power consumption, power purchase amount, power purchase fee and / or total power of the energy storage cabinet corresponding to each simulation moment.

8. A computer device, characterized in that: It includes a memory, a processor and a transceiver which are communicatively connected in sequence, wherein the memory is used to store a computer program, the transceiver is used to send and receive messages, and the processor is used to read the computer program to execute the industrial and commercial entity energy storage charging and discharging simulation method as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores instructions, and when the instructions are executed on the computer, the industrial and commercial entity energy storage charging and discharging simulation method as described in any one of claims 1 to 6 is executed.

10. A computer program product comprising a computer program or instructions, characterized in that When the computer program or the instruction is executed by a computer, the industrial and commercial entity energy storage charging and discharging simulation method as described in any one of claims 1 to 6 is implemented.