UPS peak shifting charging method and device, electronic equipment and storage medium
By modeling the historical data of the power grid, predicting electricity prices and load data, and dynamically adjusting the charging strategy of the UPS system, the load pressure problem caused by the UPS system during peak load in the power grid is solved, and the stable operation of the power grid and the optimal utilization of power resources are achieved.
Patent Information
- Application Number
- CN202411892678.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-20
- Publication Date
- 2025-03-25
AI Technical Summary
The existing UPS system fails to take into account the real-time load situation of the power grid when charging, which further aggravates the load pressure of the power grid when the grid load peaks, and may even cause grid instability.
By obtaining historical data of the power grid, model training is carried out to predict electricity price and load data, preset charging strategies are determined, and charging strategies are dynamically adjusted according to real-time battery pack capacity and grid load data to achieve peak staggered charging.
It effectively reduces the load pressure of the power grid, optimizes the utilization of electricity resources, saves charging costs, and ensures the stable operation of the power grid.
Smart Images

Figure CN119696129A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of uninterruptible power supply, and in particular to a UPS peak-shifting charging method, device, electronic device and storage medium. Background Art
[0002] UPS (Uninterruptible Power Supply) is a power device used to provide temporary power supply when power is interrupted or voltage fluctuates to protect critical equipment or systems from power outages.
[0003] Existing UPS usually adopts constant current and constant voltage charging. In the constant current charging stage, the charger charges with a constant current until the charging voltage reaches the set threshold and enters the constant voltage charging stage. The charging mode will switch to the constant voltage charging stage. At this time, the charger will maintain the voltage of the battery pack at the set value, and the charging current will gradually decrease. When the charging current drops to zero, it is considered that the battery pack of the UPS system is fully charged, and the charging process is over. The UPS system is considered to be fully charged and charging is terminated. Although this constant current and constant voltage charging method is simple and easy to implement, it does not take into account the real-time load conditions of the power grid. During the peak load period of the power grid, if the UPS system is still charged with a constant high current, it will undoubtedly further increase the load pressure of the power grid and may even cause instability of the power grid.
[0004] Therefore, how to dynamically adjust the charging strategy of the UPS system according to the real-time load conditions of the power grid has become a problem that needs to be solved urgently. Summary of the invention
[0005] In view of this, the present application provides a UPS peak-shifting charging method, device, electronic device and storage medium for dynamically adjusting the charging strategy of the UPS system according to the real-time load conditions of the power grid.
[0006] In the first aspect, the present application provides a UPS peak-shifting charging method, which adopts the following technical solution: Acquire historical data of the power grid, wherein the historical data includes historical electricity price data and historical load data; Performing model training based on the electricity price historical data and the load historical data to obtain electricity price forecast data and load forecast data; Determine a preset charging strategy according to the electricity price forecast data and the load forecast data; Acquiring real-time battery capacity and real-time load data of the power grid; Acquire a real-time charging demand according to the real-time battery pack capacity and the real-time load data; The preset charging strategy is updated according to the real-time charging demand to obtain a target charging strategy.
[0007] In an optional implementation, determining a preset charging strategy according to the electricity price forecast data and the load forecast data includes: Acquire a first charging time period in which the predicted electricity price is less than a first preset electricity price threshold in the electricity price prediction data; Acquire a second charging time period in which the predicted load value in the load prediction data is less than a first preset load threshold; Determine a preset charging time period according to the first charging time period and the second charging time period; The preset charging strategy for the preset charging time period is determined according to the second preset electricity price threshold and the second preset load threshold.
[0008] In an optional implementation, determining the preset charging strategy for the preset charging time period according to the second preset electricity price threshold and the second preset load threshold includes: According to the second preset electricity price threshold, obtaining a first electricity price time period and a second electricity price time period in the preset charging time period; According to the second preset load threshold, obtaining a first load time period and a second load time period in the preset charging time period; Presetting a high-power charging strategy for a first overlapping time period of the first electricity price time period and the first load time period; Presetting a low-power charging strategy for a second overlapping time period of the second electricity price time period and the second load time period; For the third overlapping time period between the first electricity price time period and the second load time period, and the fourth overlapping time period between the second electricity price time period and the first load time period, a medium-power charging strategy is preset.
[0009] In an optional implementation, the acquiring the real-time charging demand according to the real-time battery pack capacity and the real-time load data includes: Obtaining a real-time load value in the real-time load data; When the real-time load value is greater than the first preset load threshold, determining a first real-time charging demand; When the real-time load value is less than the first preset threshold, a second real-time charging demand is determined according to the real-time load data and the real-time battery pack capacity.
[0010] In an optional implementation, the method of determining the second real-time charging requirement according to the real-time load data and the real-time battery pack capacity includes: When the real-time load value is less than the first preset load threshold and greater than the second preset load threshold, if the real-time battery pack capacity is less than the preset battery pack capacity, determining that the second real-time charging demand is a medium-power charging demand; If the real-time battery pack capacity is greater than the preset battery pack capacity, the second real-time charging requirement is determined to be a low-power charging requirement.
[0011] In an optional implementation, the determining the second real-time charging requirement according to the real-time load data and the real-time battery pack capacity, the method further includes: When the real-time load value is less than the second preset load threshold, If the real-time battery pack capacity is less than the preset battery pack capacity, determining that the second real-time charging demand is a high-power charging demand; If the real-time battery pack capacity is greater than the preset battery pack capacity, the second real-time charging demand is determined to be the medium-power charging demand.
[0012] In an optional embodiment, the method comprises: The target charging strategy is imported into a historical database of the power grid.
[0013] In a second aspect, the present application provides a UPS peak-shifting charging device, the device comprising: A first acquisition module is used to acquire historical data of the power grid, wherein the historical data includes historical electricity price data and historical load data; A data prediction module, used for performing model training according to the electricity price historical data and the load historical data to obtain electricity price prediction data and load prediction data; A preset strategy module, used to determine a preset charging strategy according to the electricity price prediction data and the load prediction data; A second acquisition module is used to acquire real-time battery pack capacity and real-time load data of the power grid; A data processing module, used for obtaining a real-time charging demand according to the real-time battery pack capacity and the real-time load data; A strategy update module is used to update the preset charging strategy according to the real-time charging demand to obtain a target charging strategy. In a third aspect, the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the UPS peak-shifting charging method when executing the computer program.
[0014] A third aspect of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the UPS peak-shifting charging method when executing the computer program.
[0015] In a fourth aspect, the present application provides a computer-readable storage medium, including a computer program, which, when executed by a processor, implements the steps of the UPS peak-shifting charging method.
[0016] The present application obtains electricity price forecast data and load forecast data by training a model on electricity price historical data and load historical data; determines a preset charging strategy for the UPS system based on the electricity price forecast data and load forecast data, and then determines the real-time charging demand based on the acquired real-time battery pack capacity and real-time load data of the power grid; updates the preset charging strategy based on the real-time charging demand to obtain a target charging strategy, thereby dynamically adjusting the charging strategy of the UPS system based on the real-time load conditions of the power grid, obtaining the optimal charging method for the UPS system, optimizing the utilization of electric energy resources and saving charging costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 A schematic diagram of a UPS peak-shift charging method according to an embodiment of the present application; Figure 2 This is a schematic diagram of the structure of a UPS peak-shifting charging device according to an embodiment of the present application; Figure 3 A schematic diagram of the structure of an electronic device shown in an embodiment of the present application. DETAILED DESCRIPTION
[0018] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations to the present application. As used in the specification of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear indication to the contrary in the context. It should also be understood that the term "and / or" used in the present application refers to any or all possible combinations comprising one or more of the listed items.
[0019] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.
[0020] In this application, the UPS system is mainly composed of a battery pack, a charger, an inverter, a static switch and a monitoring system. Based on the coordinated work of these components, the stable operation of the power system is maintained.
[0021] The battery pack is the core part of the UPS system, which is composed of multiple single-cell battery packs connected in series or in parallel to meet the needs of different capacities. The battery pack types can include lead-acid battery packs, nickel-cadmium battery packs and lithium-ion battery packs. The main function of the battery pack is to provide power when the power supply of the power grid is interrupted or abnormal, ensuring the normal operation of the load equipment.
[0022] The charger is used to provide a stable charging current and voltage for the battery pack to ensure that the battery pack can be fully charged when the power grid is normal. The charger usually adopts a constant current and constant voltage charging method to avoid overcharging or over-discharging of the battery pack and extend the service life of the battery pack.
[0023] The inverter is another key component in the UPS system. Its function is to convert DC power into AC power to meet the power demand of the load equipment. The inverter uses high-frequency switching technology and has the characteristics of high efficiency, low noise and low distortion.
[0024] The static switch is used to switch between the grid and the inverter output to ensure seamless connection during the power switching process. When the grid power supply is normal, the static switch connects the load equipment to the grid power supply; when the grid power supply is interrupted or abnormal, the static switch will quickly switch to the inverter output to ensure continuous power supply to the load equipment.
[0025] Finally, the monitoring system is responsible for real-time monitoring and recording of the working status of the UPS system. The monitoring system can display the voltage, current, temperature and other parameters of the battery pack, and promptly discover and deal with potential safety hazards. At the same time, the monitoring system can also perform quality analysis on the output power of the UPS to ensure that the load equipment has a stable and reliable power supply.
[0026] Based on the structural design of the UPS system described above, the UPS peak-shifting charging method of the embodiment of the present application is described.
[0027] See also Figure 1 As shown, the UPS peak-shifting charging method shown in an embodiment of the present application includes the following steps.
[0028] S11, obtaining historical data of the power grid.
[0029] The power grid refers to the power system used to generate, transmit and distribute electrical energy to various end users. The historical data of the power grid includes historical electricity price data and historical load data, which are stored in the historical database of the power grid and can cover 1 to 10 years of historical electricity price data and historical load data.
[0030] The electricity price history data reflects the daily fluctuation of electricity prices, which is affected by market demand and supply. For example, during the peak load period of the day, the electricity price may rise; during the night or early morning when the load is relatively low, the electricity price may fall. In addition, the fluctuation of electricity prices is also affected by the regional power market structure and policy regulations. The load history data reflects the load of the power grid every day. Similar to the fluctuation of electricity prices, the load data of the power grid is also affected by time period and region.
[0031] By obtaining the historical data of the power grid, the price trend, volatility and periodicity of the power market can be analyzed based on the historical electricity price data, so as to predict the time period of low electricity price and low load every day. The UPS system can be charged and stored during this time period, thereby saving costs and improving energy efficiency. At the same time, when the predicted high electricity price or high load is reached, the charging and energy storage of the UPS system can be stopped, and the UPS system can be called to supply power to reduce the load of the power grid and maintain the stability of the power supply of the power grid.
[0032] S12, performing model training according to the electricity price historical data and the load historical data to obtain electricity price prediction data and load prediction data.
[0033] Among them, the model used is the mature LSTM (Long Short-Term Memory) model in the prior art. Through the long short-term memory network model, dynamic change trend prediction can be carried out based on the time dependence of historical electricity price data in historical data, and the electricity price fluctuations in different time periods of the day can be predicted, as well as the load fluctuations of the power grid in different time periods of the day can be predicted based on the load historical data. To facilitate the subsequent explanation of the technical solution of this application, the electricity price prediction data and the load prediction data are in units of one day by default.
[0034] Using the long short-term memory network model to predict electricity prices and loads helps to achieve intelligent charging management. By analyzing the time dependency of historical data, the model can accurately predict the fluctuations in electricity prices and grid loads at different time periods every day. Based on the electricity price forecast data and load forecast data, the UPS system can flexibly set the corresponding charging strategy to charge during low electricity price and low load periods, thereby reducing costs, improving energy efficiency, and ensuring stable operation of the grid.
[0035] S13, determining a preset charging strategy according to the electricity price prediction data and the load prediction data.
[0036] The preset charging strategy refers to the charging strategy of high-power charging, medium-power charging, low-power charging or stopping charging for the UPS system in different time periods.
[0037] After obtaining the electricity price forecast data and load forecast data, the corresponding charging strategy can be determined by combining the electricity price forecast data and load forecast data at the same time node. For example, a high-power charging strategy is implemented for time periods with lower electricity price forecast data and lower load forecast data, and a low-power charging strategy is implemented or charging is stopped for time periods with higher electricity prices and higher loads.
[0038] By adopting the above technical solution, a preset charging strategy is formulated in advance according to electricity price forecast data and load forecast data. The system can perform more effective management based on the preset charging strategy in actual operation, and the preset charging strategy can be used to cope with the power supply needs of the power grid in various situations, thereby optimizing the charging performance of the UPS system and improving the reliability and stability of the system.
[0039] In an optional implementation, determining a preset charging strategy according to the electricity price forecast data and the load forecast data includes: Acquire a first charging time period in which the predicted electricity price is less than a first preset electricity price threshold in the electricity price prediction data; Acquire a second charging time period in which the predicted load value in the load prediction data is less than a first preset load threshold; Determine a preset charging time period according to the first charging time period and the second charging time period; The preset charging strategy for the preset charging time period is determined according to the second preset electricity price threshold and the second preset load threshold.
[0040] Among them, the first preset electricity price threshold is a specific threshold value preset to distinguish between high electricity prices and acceptable electricity prices. When the predicted electricity price exceeds the first preset electricity price threshold, it means that the predicted electricity price is high at this time and it is not suitable to charge the UPS; the first preset load threshold is a specific threshold value preset to distinguish the load degree of the power grid. When the predicted load value of the power grid is greater than the first preset load threshold, it means that the load pressure of the power grid is large at this time, and it does not support charging of the UPS system, and the UPS system needs to switch to discharge mode to provide support to the power grid and reduce the load on the power grid.
[0041] After obtaining the electricity price forecast data, obtain a time period in which the forecast electricity price is less than the first preset electricity price threshold, i.e., a first charging time period. In the first charging time period, the forecast electricity price is at a price acceptable to the UPS system for charging. After obtaining the load forecast data, obtain a time period in which the forecast load value is less than the first preset load threshold, i.e., a second charging time period. In the second charging time period, the power grid can support a certain degree of UPS system charging.
[0042] After determining the first charging time and the second charging time, the UPS system will mark the overlapping time period as a preset charging time period. In the preset charging time period, the predicted electricity price and the predicted load conditions meet the charging requirements of the UPS system.
[0043] After determining the preset charging time period, the UPS system will formulate a charging power strategy in the preset charging time period according to the second preset electricity price threshold and the second preset load threshold, wherein the second preset electricity price threshold refers to a preset threshold used to further divide the acceptable predicted electricity price in the preset charging time period. When the predicted electricity price is less than the second preset electricity price threshold, it means that the predicted electricity price is at a preferential price, and high-power charging can be performed at this stage; when the predicted electricity price is greater than the second preset electricity price threshold, it means that the predicted electricity price is at an ordinary electricity price level, and low-power charging can be performed at this stage. Similarly, when the predicted load value is less than the second preset load threshold, it means that the predicted load level of the power grid is low, and high-power charging can be performed at this stage; when the predicted load value is greater than the second preset threshold, it means that the load level of the power grid is at a general level, there is a certain load pressure, but the UPS system can still perform low-power charging.
[0044] By adopting the above technical solution, after obtaining the electricity price forecast data and the load forecast data, the preset charging time period suitable for the UPS system to charge can be obtained through the first preset electricity price threshold and the first preset load threshold, ensuring that in the preset charging time period, the predicted electricity price and the predicted load value are within the range of the charging strategy that the UPS system can execute, saving energy costs. Further division of the predicted electricity price and the predicted load value in the preset charging time period according to the second preset electricity price threshold and the second preset load threshold can further determine the charging power strategy in the predicted charging time period, further optimize the charging resource configuration, and ensure that the UPS system can charge in the best way within the appropriate time period, reducing energy costs and improving the charging efficiency of the UPS system.
[0045] In an optional implementation, determining the preset charging strategy for the preset charging time period according to the second preset electricity price threshold and the second preset load threshold includes: According to the second preset electricity price threshold, obtaining a first electricity price time period and a second electricity price time period in the preset charging time period; According to the second preset load threshold, obtaining a first load time period and a second load time period in the preset charging time period; Presetting a high-power charging strategy for a first overlapping time period of the first electricity price time period and the first load time period; Presetting a low-power charging strategy for a second overlapping time period of the second electricity price time period and the second load time period; For the third overlapping time period between the first electricity price time period and the second load time period, and the fourth overlapping time period between the second electricity price time period and the first load time period, a medium-power charging strategy is preset.
[0046] Among them, the first electricity price time period refers to the time period in the preset charging time period when the predicted electricity price is less than the second preset electricity price threshold. In the first electricity price time period, the predicted electricity price is lower than the normal electricity price level, and a high-power charging strategy can be preset in the first electricity price time period; the second electricity price time period refers to the time period in the preset charging time period when the predicted electricity price is greater than the second preset electricity price threshold. In the second electricity price time period, the predicted electricity price is at the normal electricity price level, and a low-power or medium-power charging strategy can be preset in the second electricity price time period.
[0047] Similarly, the first load time period refers to a time period in the preset charging time period during which the predicted load value is less than the second preset load threshold value; in the first load time period, the load is predicted to be at a low load level, and a high-power charging strategy can be preset in the first load time period; the second load time period refers to a time period in the preset charging time period during which the predicted load value is greater than the second preset load threshold value; in the second load time period, the load is predicted to be at a normal load level, and a low-power or medium-power charging strategy can be preset in the second load time period.
[0048] Specifically, after obtaining the first charging time period, the second charging time period, the first load time period, and the second load time period, a first overlapping time period in the first electricity price time period and the first load time period is obtained. In the first overlapping time period, the predicted electricity price is low and the predicted load level is low, and the UPS system can be preset to execute a high-power charging strategy; a second overlapping time period in the second electricity price time period and the second load time period is obtained. In the second overlapping time period, the predicted electricity price and the predicted load level are both at normal levels, and the charging cost-effectiveness is relatively general. The UPS system can be preset to execute a low-power charging strategy; a third overlapping time period in the first electricity price time period and the second load time period is obtained. In the third overlapping time period, the predicted electricity price is low but the predicted load level is at a normal level, and there is a discount on the predicted electricity price. The UPS system can be preset to execute a medium-power charging strategy; a fourth overlapping time period in the second electricity price time period and the first load time period is obtained. In the fourth overlapping time period, the predicted electricity price is at a normal level but the predicted load level is low, and the UPS system can also be preset to execute a medium-power charging strategy.
[0049] By adopting the above technical solution, flexible charging strategies are pre-formulated for different predicted electricity prices and load levels, achieving effective resource utilization and cost savings. By setting high-power charging during periods when the predicted electricity price is low and the predicted load level is low, preferential electricity resources can be used to the greatest extent and charging costs can be reduced; when the electricity price is at a normal level and the preset load level is at a normal level, a low-power or medium-power charging strategy is selected to avoid high-cost electricity consumption and ensure stable operation of the load. Improving the formulation of preset charging strategies can not only optimize the utilization of power resources, but also improve the efficiency and reliability of the UPS system, reduce operating costs, and provide more intelligent control methods.
[0050] S14, acquiring real-time battery capacity and real-time load data of the power grid.
[0051] When the UPS system is running, it will first execute based on the preset charging strategy, and during the operation, it will obtain the battery pack capacity data and the real-time load data of the power grid through the monitoring system in real time. The real-time battery pack capacity is expressed as a percentage data, showing the real-time battery pack capacity status. The real-time load data reflects the real-time power consumption of the power grid, which can include information such as power consumption, power generation, and power supply capacity.
[0052] By adopting the above technical solution, the real-time battery capacity of the battery pack and the real-time load data of the power grid can be obtained, so that the power supply and demand of the UPS system can be understood in real time. The power grid can optimize the strategy based on the actual situation based on the preset battery pack charging strategy.
[0053] S15, obtaining a real-time charging demand according to the real-time battery pack capacity and the real-time load data.
[0054] Real-time charging demand refers to the charging strategy required by the battery pack at the current moment, including high-power charging demand, medium-power charging demand, low-power charging demand and stop charging. The real-time charging demand can be the same as or different from the preset charging strategy, and the real-time changes are analyzed by comparing the acquired battery pack capacity with the real-time load data.
[0055] For example, when the preset charging strategy is a high-power charging strategy, when the real-time battery pack capacity is high and the real-time load data is low, the real-time charging demand is a medium-power or low-power charging strategy demand, and the preset charging demand needs to be changed in charging power. When the real-time battery pack capacity is high and the real-time load data is also high, the real-time charging demand is to stop charging, and the static switch will switch between the grid and the inverter, cutting off the charging and performing the power supply operation. The real-time charging demand is continuously and dynamically adjusted according to the dynamic changes of the current battery pack status and grid load conditions.
[0056] By adopting the above technical solutions, the system can adjust the charging strategy in time to meet power demand and maximize energy efficiency by real-time monitoring of battery pack capacity and grid load. This real-time data analysis and feedback mechanism is a key component of intelligent power system management, which helps to improve energy utilization, reduce costs, and ensure the reliability and safety of the power system.
[0057] Based on the real-time battery pack capacity and grid load, the real-time charging demand of dynamic changes can be obtained, and the preset charging strategy can be changed based on the real-time charging demand to achieve real-time adjustment of the charging power of the UPS system, which can effectively reduce the charging cost, increase the battery life, and switch to the stop charging state in time when necessary to ensure the stable operation of the grid. This dynamically adjusted real-time charging demand can enable the system to respond to complex power environment changes more intelligently and efficiently, and provide users with more reliable and economical charging services.
[0058] In an optional implementation, the acquiring the real-time charging demand according to the real-time battery pack capacity and the real-time load data includes: Obtaining a real-time load value in the real-time load data; When the real-time load value is greater than the first preset load threshold, determining a first real-time charging demand; When the real-time load value is less than the first preset threshold, a second real-time charging demand is determined according to the real-time load data and the real-time battery pack capacity.
[0059] Among them, the real-time charging demand refers to the charging and discharging strategy that the UPS needs to execute at the current moment. The first real-time charging demand refers to the strategy that the UPS needs to execute when the real-time load value obtained is greater than the first preset load threshold. The real-time load value is greater than the first preset load threshold, which means that the current power grid load is large and the power demand is high. The first real-time charging demand stops charging and switches to power supply, that is, immediately cancels charging and executes the power supply strategy. The second real-time charging demand refers to the strategy that the UPS needs to execute when the real-time load value obtained is less than the first preset load threshold, which may include high-power charging demand, medium-power charging demand, and low-power charging demand. It needs to be determined based on the real-time battery pack capacity.
[0060] By adopting the above technical solution, it is possible to distinguish whether the grid load at the current moment can support the UPS to perform charging operations. When the real-time load value is greater than the first preset load threshold, it is judged that the current grid load is large, and the UPS system executes a strategy of canceling charging and switching to power supply. When the real-time load value is less than the first preset load threshold, it means that the current grid can support the UPS system to perform charging operations to a certain extent, and the specific second real-time demand can be judged based on the real-time battery pack capacity. It helps to optimize the operation of the grid and ensure that the UPS system can provide reliable power supply under various circumstances. In an optional embodiment, the second real-time charging demand is determined based on the real-time load data and the real-time battery pack capacity, and the method includes: When the real-time load value is less than the first preset load threshold and greater than the second preset load threshold, if the real-time battery pack capacity is less than the preset battery pack capacity, determining that the second real-time charging demand is a medium-power charging demand; If the real-time battery pack capacity is greater than the preset battery pack capacity, the second real-time charging requirement is determined to be a low-power charging requirement.
[0061] Among them, the preset battery pack capacity is a distinction threshold for distinguishing whether the battery pack supports high-power charging. When the real-time load value is between the first preset load threshold and the second preset load threshold, it means that the load level at this time is at a normal load level. If the capacity of the battery pack at this time is greater than the preset battery pack capacity, it means that the battery pack has a small amount of power capacity at this time, and the real-time charging demand can be determined to be a low-power charging demand; if the capacity of the battery pack at this time is less than the preset battery pack capacity, it means that the battery pack has a large amount of power capacity at this time, and the real-time charging demand can be determined to be a medium-power charging demand.
[0062] Through the above technical solution, when the real-time load status is at a normal load level, the real-time charging demand can be judged based on the real-time battery capacity to determine whether it is medium-power charging or low-power charging, thereby realizing real-time dynamic charging strategy judgment for charging the battery pack. This can protect the health of the battery pack to the greatest extent and extend its service life, while also effectively reducing charging costs and improving energy utilization efficiency.
[0063] In an optional implementation, the determining the second real-time charging requirement according to the real-time load data and the real-time battery pack capacity, the method further includes: When the real-time load value is less than the second preset load threshold, If the real-time battery pack capacity is less than the preset battery pack capacity, determining that the second real-time charging demand is a high-power charging demand; If the real-time battery pack capacity is greater than the preset battery pack capacity, the second real-time charging demand is determined to be the medium-power charging demand.
[0064] When the real-time load value is less than the second preset load threshold, it means that the load level at this time is at a low load level. If the capacity of the battery pack at this time is less than the preset battery pack capacity, it means that the battery pack has a large amount of power capacity at this time, and the real-time charging demand can be determined to be a high-power charging demand; if the capacity of the battery pack at this time is greater than the preset battery pack capacity, it means that the battery pack has a small amount of power capacity at this time, and the real-time charging demand can be determined to be a medium-power charging demand.
[0065] Through the above technical solution, when the real-time load state is at a low load level, it is possible to judge whether the real-time charging demand is high-power charging or medium-power charging based on the real-time battery capacity, thereby realizing real-time dynamic charging strategy judgment for charging the battery pack. This can protect the health of the battery pack to the greatest extent and extend its service life, while also effectively reducing charging costs and improving energy utilization efficiency.
[0066] Achieve more efficient energy utilization and system operation.
[0067] S16, updating the preset charging strategy according to the real-time charging demand to obtain a target charging strategy.
[0068] When the real-time charging demand is the same as the preset charging strategy, the preset charging strategy is maintained, that is, the target charging strategy is the preset charging strategy. When the real-time charging demand is different from the preset charging strategy, the preset charging strategy is changed accordingly based on the real-time charging demand. For example, when the real-time charging demand is low-power charging and the preset charging strategy is high-power charging, the corresponding charging strategy is changed to low-power charging, and the preset charging strategy is updated. That is, the target charging strategy is obtained.
[0069] Through the above technical solution, the UPS system can dynamically adjust the charging strategy according to real-time demand. When the real-time charging demand is the same as the preset charging strategy, the preset charging strategy is maintained to ensure the optimal charging method. When the real-time charging demand is different from the preset charging strategy, the preset charging strategy is changed in time to meet the current power supply or charging demand, ensuring that the power grid has a stable and reliable power supply.
[0070] In an optional embodiment, the method further comprises: The target charging strategy is imported into a historical database of the power grid.
[0071] After the target charging strategy is determined according to the real-time charging demand, the target charging strategy is imported into the historical database of the power grid, the target charging strategy is associated with the corresponding time period and conditions in the historical database of the power grid, and the historical database is updated to reflect the latest power grid operation status and charging strategy effects.
[0072] By continuously importing the target charging strategy into the power grid historical database and updating the data, more accurate data support can be provided for the next data forecast, thereby achieving closed-loop optimization of historical data, obtaining more accurate forecast data, and more accurately determining the UPS charging strategy.
[0073] The present application obtains electricity price forecast data and load forecast data by training a model on electricity price historical data and load historical data; determines a preset charging strategy for the UPS system based on the electricity price forecast data and load forecast data, and then determines the real-time charging demand based on the acquired real-time battery pack capacity and real-time load data of the power grid; updates the preset charging strategy based on the real-time charging demand to obtain a target charging strategy, thereby dynamically adjusting the charging strategy of the UPS system based on the real-time load conditions of the power grid, obtaining the optimal charging method for the UPS system, optimizing the utilization of electric energy resources, saving charging costs, and ensuring a stable and reliable power supply to the power grid.
[0074] See also Figure 2 , which is a structural diagram of a UPS peak-shifting charging device according to an embodiment of the present application.
[0075] In some embodiments, the UPS peak-shifting charging device 20 may include multiple functional modules composed of computer program segments. The computer programs of the various program segments in the UPS peak-shifting charging device 20 may be stored in the memory of the battery management device and executed by at least one processor to perform (see Figure 1 Description) UPS peak-shift charging method.
[0076] In this embodiment, the UPS peak-shifting charging device 20 can be divided into multiple functional modules according to the functions it performs. The functional modules may include: a first acquisition module 201, a data prediction module 202, a preset strategy module 203, a second acquisition module 204, a data processing module 205, a strategy update module 206 and a data storage module 207. The module referred to in the present invention refers to a series of computer program segments that can be executed by at least one processor and can perform fixed functions, which are stored in a memory.
[0077] The first acquisition module 201 is used to acquire historical data of the power grid, and the historical data includes historical electricity price data and historical load data.
[0078] The data prediction module 202 is used to perform model training according to the electricity price historical data and the load historical data to obtain electricity price prediction data and load prediction data.
[0079] The preset strategy module 203 is used to determine a preset charging strategy according to the electricity price prediction data and the load prediction data.
[0080] The second acquisition module 204 is used to acquire real-time battery capacity and real-time load data of the power grid.
[0081] The data processing module 205 is used to obtain the real-time charging demand according to the real-time battery pack capacity and the real-time load data.
[0082] The strategy updating module 206 is used to update the preset charging strategy according to the real-time charging demand to obtain a target charging strategy.
[0083] The data storage module 207 is used to import the target charging strategy into the historical database of the power grid.
[0084] In a third aspect, the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the UPS peak-shifting charging method when executing the computer program.
[0085] An embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, all or part of the steps of the UPS peak-shifting charging method are implemented.
[0086] See also Figure 3 FIG. 2 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. In the embodiment of the present application, the electronic device 3 includes a memory 31 , at least one processor 32 and at least one communication bus 33 .
[0087] Those skilled in the art should understand that Figure 3 The structure of the electronic device shown does not constitute a limitation of the embodiments of the present application, and may be either a bus structure or a star structure. The electronic device 3 may also include more or less other hardware or software than shown in the figure, or a different component arrangement.
[0088] In some embodiments, the electronic device 3 is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application-specific integrated circuits, programmable gate arrays, digital processors, and embedded devices. The electronic device 3 may also include client devices, which include but are not limited to any electronic product that can interact with a client through a keyboard, mouse, remote control, touchpad, or voice-controlled device, such as a personal computer, tablet computer, smart phone, digital camera, etc.
[0089] It should be noted that the electronic device 3 is only an example, and other existing or future electronic products that are suitable for the present application should also be included in the protection scope of the present application and included here by reference.
[0090] In some embodiments, the memory 31 stores a computer program, and when the computer program is executed by the at least one processor 32, all or part of the steps in the UPS peak-shifting charging method are implemented. The memory 31 includes a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc memory, magnetic disk memory, magnetic tape memory, or any other computer-readable medium that can be used to carry or store data. Further, the computer-readable storage medium may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, and the like.
[0091] In some embodiments, the at least one processor 32 is the control core (ControlUnit) of the electronic device 3, and uses various interfaces and lines to connect various components of the entire electronic device 3, and executes various functions and processes data of the electronic device 3 by running or executing programs or modules stored in the memory 31, and calling data stored in the memory 31. For example, when the at least one processor 32 executes the computer program stored in the memory, it implements all or part of the steps of the UPS peak-shifting charging method described in the embodiment of the present application; or implements all or part of the functions of the UPS peak-shifting charging device. The at least one processor 32 can be composed of an integrated circuit, for example, it can be composed of a single packaged integrated circuit, or it can be composed of multiple integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and a combination of various control chips.
[0092] In some embodiments, the at least one communication bus 33 is configured to realize connection and communication between the memory 31 and the at least one processor 32, etc. The electronic device 3 may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.
[0093] The above-mentioned integrated unit implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions for enabling an electronic device (which can be a personal computer, electronic device, or network device, etc.) or a processor to execute part of the method described in each embodiment of the present application.
[0094] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0095] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, and may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
Claims
1. A UPS peak-shift charging method, characterized in that: include: Acquire historical data of the power grid, wherein the historical data includes historical electricity price data and historical load data; Performing model training based on the electricity price historical data and the load historical data to obtain electricity price forecast data and load forecast data; Determine a preset charging strategy according to the electricity price forecast data and the load forecast data; Acquiring real-time battery capacity and real-time load data of the power grid; Acquire a real-time charging demand according to the real-time battery pack capacity and the real-time load data; The preset charging strategy is updated according to the real-time charging demand to obtain a target charging strategy.
2. The UPS peak-shifting charging method according to claim 1, characterized in that: Determining a preset charging strategy according to the electricity price prediction data and the load prediction data includes: Acquire a first charging time period in which the predicted electricity price is less than a first preset electricity price threshold in the electricity price prediction data; Acquire a second charging time period in which the predicted load value in the load prediction data is less than a first preset load threshold; Determine a preset charging time period according to the first charging time period and the second charging time period; The preset charging strategy for the preset charging time period is determined according to the second preset electricity price threshold and the second preset load threshold.
3. The UPS peak-shift charging method according to claim 2, characterized in that: Determining the preset charging strategy for the preset charging time period according to the second preset electricity price threshold and the second preset load threshold includes: According to the second preset electricity price threshold, obtaining a first electricity price time period and a second electricity price time period in the preset charging time period; According to the second preset load threshold, obtaining a first load time period and a second load time period in the preset charging time period; Presetting a high-power charging strategy for a first overlapping time period of the first electricity price time period and the first load time period; Presetting a low-power charging strategy for a second overlapping time period of the second electricity price time period and the second load time period; For the third overlapping time period between the first electricity price time period and the second load time period, and the fourth overlapping time period between the second electricity price time period and the first load time period, a medium-power charging strategy is preset.
4. The UPS peak-shift charging method according to claim 3, characterized in that: The acquiring of the real-time charging demand according to the real-time battery pack capacity and the real-time load data comprises: Obtaining a real-time load value in the real-time load data; When the real-time load value is greater than the first preset load threshold, determining a first real-time charging demand; When the real-time load value is less than the first preset threshold, a second real-time charging demand is determined according to the real-time load data and the real-time battery pack capacity.
5. The UPS peak-shift charging method according to claim 4, characterized in that: The method of determining the second real-time charging requirement according to the real-time load data and the real-time battery pack capacity includes: When the real-time load value is less than the first preset load threshold and greater than the second preset load threshold, if the real-time battery pack capacity is less than the preset battery pack capacity, determining that the second real-time charging demand is a medium-power charging demand; If the real-time battery pack capacity is greater than the preset battery pack capacity, the second real-time charging requirement is determined to be a low-power charging requirement.
6. The UPS peak-shift charging method according to claim 5, characterized in that: The method of determining a second real-time charging requirement according to the real-time load data and the real-time battery pack capacity further comprises: When the real-time load value is less than the second preset load threshold, If the real-time battery pack capacity is less than the preset battery pack capacity, determining that the second real-time charging demand is a high-power charging demand; If the real-time battery pack capacity is greater than the preset battery pack capacity, the second real-time charging demand is determined to be the medium-power charging demand.
7. The UPS peak-shift charging method according to any one of claims 1 to 6, characterized in that: The method comprises: The target charging strategy is imported into a historical database of the power grid.
8. A UPS peak-shifting charging device, characterized in that: The device comprises: A first acquisition module is used to acquire historical data of the power grid, wherein the historical data includes historical electricity price data and historical load data; A data prediction module, used for performing model training according to the electricity price historical data and the load historical data to obtain electricity price prediction data and load prediction data; A preset strategy module, used to determine a preset charging strategy according to the electricity price prediction data and the load prediction data; A second acquisition module is used to acquire real-time battery pack capacity and real-time load data of the power grid; A data processing module, used for obtaining a real-time charging demand according to the real-time battery pack capacity and the real-time load data; The strategy updating module is used to update the preset charging strategy according to the real-time charging demand to obtain a target charging strategy.
9. An electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the UPS peak-shifting charging method as described in any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: An executable code is stored thereon, and when the executable code is executed by a processor of an electronic device, the processor is caused to execute the steps of the UPS peak-shifting charging method as described in any one of claims 1 to 7.
Citation Information
Cited By
Charging peak shifting recommendation and excitation method and system
CN120450321A
New energy emergency generator car control method and emergency generator car
CN120879890A
A new energy emergency power generation vehicle control method and emergency power generation vehicle
CN120879890B
Uninterruptible power supply scheduling method, system and equipment based on double-layer optimization and medium
CN121192844A
Uninterruptible power supply scheduling method, system, device and medium based on double-layer optimization
CN121192844B