A charging and discharging voltage stabilization control method and system for acquisition terminal backup power supply

Through the reinforcement learning model and DQN model, the voltage and current of the power supply and backup power supply of the collection terminal are adjusted in real time, which solves the problem of poor voltage stability during the charging and discharging process and ensures the voltage stability of the collection terminal and the continuity of data collection.

CN118523465BActive Publication Date: 2024-10-18WUHAN ZHONGYUAN ELECTRONICS INFORMATION
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410993368.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-10-18
Estimated Expiration
2044-07-24

AI Technical Summary

Technical Problem

Existing charge and discharge control methods lead to poor voltage stability of the collection terminal during the charge and discharge process, affecting the working status of the collection terminal.

Method used

The reinforcement learning model is used, combined with the DQN model, to input the discharge and charging parameters of the power supply and backup power supply, output the voltage adjustment amount and current adjustment amount, and adjust the working status of the power supply and backup power supply in real time to ensure voltage stability.

Benefits of technology

It realizes the voltage stability of the backup power supply of the collection terminal, avoids damage to the power supply and backup power supply, and ensures continuous data collection of the collection terminal.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118523465B_ABST
    Figure CN118523465B_ABST
Patent Text Reader

Abstract

The present application relates to the field of charge and discharge control technology, and in particular to a charge and discharge voltage stabilization control method and system for a collection terminal backup power supply, wherein the collection terminal includes a power supply and a backup power supply, and the control method includes: collecting the discharge parameters of the power supply and the charging parameters of the backup power supply at the current moment, wherein the discharge parameters include the discharge current, the discharge voltage, and the remaining power supply, and the charging parameters include the charging current, the charging voltage, and the remaining charge; inputting the discharge parameters and the charging parameters into a reinforcement learning model to output the control parameters of the power supply and the backup power supply, wherein the control parameters include the voltage adjustment amount and the current adjustment amount; and adjusting the discharge parameters and the charging parameters based on the control parameters. Through the technical solution of the present application, the voltage stability of the collection terminal backup power supply during the charging and discharging process can be ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of charge and discharge control, and in particular to a charge and discharge voltage stabilization control method and system for a backup power supply of a collection terminal. Background Art

[0002] In today's era of information explosion, data collection terminals play a vital role and are widely used in the industrial and power fields. In the power field, data collection terminals are deployed near each power node in the power system to collect information such as environmental parameters and operating status of power nodes in real time, realizing real-time monitoring of the power system. In order to ensure that the data collection terminal can continuously and stably collect data, it is crucial to provide continuous and stable power supply to the data collection terminal.

[0003] At present, the patent application document with the authorization announcement number CN108565907B discloses a charging and discharging control method, device, equipment and system, wherein the method includes: when the charging device charges the power storage device, the battery voltage and charging current of the power storage device are monitored and the charging amount is calculated; when the preset trigger condition is reached, the storage amount in the power storage device is determined according to the charging amount; and power is supplied to the outside with the target parameters corresponding to the storage amount. Among them, supplying power to the outside with the target parameters corresponding to the storage amount includes: when supplying power to the outside, monitoring the power supply voltage and power supply current of the power storage device to correct the storage amount; when the corrected target parameter corresponding to the corrected storage amount is inconsistent with the value of the target parameter, the value corresponding to the target parameter is corrected to the value corresponding to the corrected target parameter, and power is supplied to the outside with the corrected target parameter.

[0004] The above method determines the power supply parameters of the energy storage device according to the storage capacity. Although it can reduce the power supply power and extend the power supply time of the energy storage device when the storage capacity is small, the change in power supply power will cause the change in power supply voltage, resulting in poor voltage stability of the storage capacity during the charging and discharging process, which in turn causes the voltage of the collection terminal to change, affecting the working state of the collection terminal. Summary of the invention

[0005] In order to solve the technical problem of inaccurate transmission network expansion planning results, the present application provides a charging and discharging voltage stabilization control method and system for a collection terminal backup power supply, which can ensure the voltage stability of the collection terminal backup power supply during the charging and discharging process.

[0006] In a first aspect of the present application, a method for controlling charging and discharging voltage stabilization of a backup power supply of an acquisition terminal is provided, wherein the acquisition terminal includes a power supply and a backup power supply, and the control method includes: acquiring discharge parameters of the power supply and charging parameters of the backup power supply at a current moment, wherein the discharge parameters include discharge current, discharge voltage and remaining power supply, and the charging parameters include charging current, charging voltage and remaining charge; inputting the discharge parameters and charging parameters into a reinforcement learning model to output control parameters of the power supply and the backup power supply, wherein the control parameters include voltage regulation amount and current regulation amount; wherein the reinforcement learning model adopts a DQN model.

[0007] In one embodiment, the acquisition terminal includes at least two power supplies. Before acquiring the discharge state of the power supply and the charging state of the backup power supply, the control method also includes: obtaining the discharge voltage of each power supply at the current moment, and in response to the discharge voltage being not 0, the power supply is the power supply, and in response to the discharge voltage being 0, the power supply is the backup power supply.

[0008] The beneficial effect is that the acquisition terminal includes multiple power supplies, and according to the discharge voltage of each power supply, the power supply and backup power supply at the current moment can be accurately located.

[0009] In one embodiment, adjusting the discharge parameter and the charging parameter based on the control parameter includes: for the control parameters of the power supply, adjusting the discharge voltage according to the voltage adjustment amount in the control parameters, and adjusting the discharge current according to the current adjustment amount; for the control parameters of the backup power supply, adjusting the charging voltage according to the voltage adjustment amount in the control parameters, and adjusting the charging current according to the current adjustment amount.

[0010] In one embodiment, the reinforcement learning model includes a first fully connected sub-model, a second fully connected sub-model and a classification sub-model; the first fully connected sub-model is used to perform dimensional transformation on discharge parameters to obtain discharge features; the second fully connected sub-model is used to perform dimensional transformation on charging parameters to obtain charging features; the discharge features and the charging features are concatenated and input into the classification sub-model to obtain predicted reward values ​​for each control scheme, and the control scheme corresponding to the maximum predicted reward value corresponds to the control parameters of the power supply and the backup power supply; among the control parameters, the voltage adjustment amount is any one of a plurality of allowable voltage adjustment amounts, and the current adjustment amount is any one of a plurality of allowable current adjustment amounts.

[0011] The beneficial effects are: the discharge feature is used to characterize the working state of the power supply at the current moment, the charging feature is used to characterize the working state of the backup power supply at the current moment, and the splicing result of the discharge feature and the charging feature can comprehensively reflect the working state of the power supply and the backup power supply at the current moment. Furthermore, the classification sub-model can determine the predicted reward value of each control scheme according to the working state of the power supply and the backup power supply. Each control scheme is a different combination of the allowable voltage adjustment amount and the allowable current adjustment amount, which ensures the executability of the control parameters and avoids the situation where the power supply and the backup power supply are damaged due to the execution of the control parameters.

[0012] In one embodiment, the training method of the reinforcement learning model includes: after executing the control parameters, collecting the future discharge parameters and the future charging parameters at the next moment; calculating the stability of the discharge voltage and the charging voltage in the future discharge parameters respectively, and calculating the average stability of the discharge voltage and the charging voltage to obtain the real reward value; inputting the future discharge parameters and the future charging parameters into the preset reinforcement learning model, and taking the maximum predicted reward value output by the preset reinforcement learning model as the future reward value; calculating the loss function, the loss function for ; is the predicted reward value corresponding to the control parameter, is the actual reward value, is the future reward value, To set the coefficients; back propagation is performed according to the loss function to update the reinforcement learning model to complete one training.

[0013] In one embodiment, calculating the stability of the discharge voltage in the future discharge parameters includes: performing Gaussian function fitting based on the discharge voltage of the power supply in the historical time to obtain a discharge Gaussian model, wherein the discharge Gaussian model includes a discharge voltage mean value. and discharge voltage standard deviation ; Determine the normal interval of discharge voltage according to the criterion of 3 times the standard deviation, and the normal interval is In response to the discharge voltage in the future discharge parameter being in the normal range, the stability of the discharge voltage is 1, otherwise, the stability of the discharge voltage is 0.

[0014] In one embodiment, the method for calculating the real reward value further includes: in response to the discharge current in the future discharge parameter being not greater than the minimum rated current, setting the rationality of the discharge current to 1, otherwise, setting the rationality of the discharge current to 0, wherein the minimum rated current is the minimum value of the rated discharge current of the backup power supply and the rated working current of the acquisition terminal; in response to the charging current in the future charging parameter being not greater than the rated charging current of the backup power supply, setting the rationality of the charging current to 1, otherwise, setting the rationality of the charging current to 0; the real reward value satisfies the relationship: ,in, For the stability of the discharge voltage, For the stability of charging voltage, For the reasonable setting of discharge current, For the rationality of charging current, Representation and operation, is the actual reward value.

[0015] The beneficial effect is that when the rationality of the discharge current is 1, it means that the discharge current in the future discharge parameters does not exceed the rated discharge current of the backup power supply and the rated working current of the acquisition terminal, and the backup power supply and the acquisition terminal are in a safe state; therefore, the real reward value can simultaneously reflect the safety of the power supply, the backup power supply and the acquisition terminal, as well as the stability of the discharge voltage and the charging voltage. The larger the real reward value is, the more stable the discharge voltage and the charging voltage are after the control parameters are executed, and the higher the safety of the power supply, the backup power supply and the acquisition terminal.

[0016] In one embodiment, the method for calculating the real reward value further includes: in the future discharge parameters, calculating the power difference between the remaining power supply and the power threshold, and calculating the quotient of the power difference and the product of the discharge current and the discharge voltage to obtain the power supply time. ; In the future charging parameters, calculate the quotient of the remaining charge capacity and the product of the charging current and the charging voltage to get the charging time ; The real reward value satisfies the relationship: ,in, For the stability of the discharge voltage, For the stability of charging voltage, For the reasonable setting of discharge current, For the rationality of charging current, Representation and operation, is the actual reward value.

[0017] The beneficial effects are: It means that before the remaining power of the power supply is less than the power threshold, the backup power supply has been fully charged, and seamless switching between the power supply and the backup power supply can be achieved to ensure that the data collection terminal continuously collects data. The real reward value at this time can simultaneously reflect the safety of the power supply, the backup power supply and the data collection terminal, as well as the stability of the discharge voltage and the charging voltage; It means that seamless switching between the power supply and the backup power supply cannot be achieved based on the future discharge parameters and future charging parameters at the next moment, and the real reward value is directly set to 0; in this way, the real reward value reflects the safety of the power supply, backup power supply and acquisition terminal, as well as the stability of the discharge voltage and charging voltage, while also reflecting whether seamless switching between the power supply and the backup power supply can be achieved.

[0018] In one embodiment, after each preset number of trainings are completed, the network parameters of the reinforcement learning model are copied to the preset reinforcement learning model to update the preset reinforcement learning model.

[0019] In a second aspect of the present application, a charge and discharge voltage stabilization control system for a backup power supply of a collection terminal is provided, comprising a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, a charge and discharge voltage stabilization control method for a backup power supply of a collection terminal is implemented according to the first aspect of the present application.

[0020] The technical solution of this application has the following beneficial technical effects:

[0021] The discharge parameters of the power supply at the current moment and the charging parameters of the backup power supply are used as the working state at the current moment; the working state is input into the end-to-end reinforcement learning model, which can directly output the discharge current adjustment amount, the discharge voltage adjustment amount, the charging current adjustment amount and the charging voltage adjustment amount, and accurately and quickly adjust the working state of the power supply and the backup power supply; the working state of the power supply and the backup power supply is adjusted in real time through the reinforcement learning model, so that the power supply and the backup power supply are in a stable voltage state after adjustment. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present application will become easy to understand. In the accompanying drawings, several embodiments of the present application are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein:

[0023] Figure 1 It is a flow chart of a method for controlling charging and discharging voltage stabilization of a backup power supply of a collection terminal according to an embodiment of the present application;

[0024] Figure 2 is a flowchart of a training method for a reinforcement learning model according to an embodiment of the present application;

[0025] Figure 3 It is a structural block diagram of a charge and discharge voltage stabilization control system for a collection terminal backup power supply according to an embodiment of the present application. DETAILED DESCRIPTION

[0026] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0027] It should be understood that when the terms "first", "second", etc. are used in the claims, specification and drawings of the present application, they are only used to distinguish different objects, rather than to describe a specific order. The terms "include" and "comprise" used in the specification and claims of the present application indicate the presence of the described features, wholes, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or their collections.

[0028] According to the first aspect of the present application, the present application provides a charge-discharge voltage stabilization control method for a backup power supply of a collection terminal, the collection terminal includes at least two power supplies; in order to ensure that the collection terminal can continuously collect data and avoid data omissions, at least two power supplies can be divided into a power supply and a backup power supply at the same time, wherein the power supply is in a discharging state, used to provide power to the collection terminal, and the backup power supply is in a charging state, used to store power; when the remaining power of the power supply is less than the power threshold, the power supply is switched to the backup power supply, and the backup power supply is switched to the power supply, and the power supply is continuously provided to the collection terminal. The power threshold is 10% of the maximum storage power of the power supply.

[0029] Figure 1 1 is a flow chart of a method for controlling the charging and discharging voltage stabilization of a backup power supply of a collection terminal according to an embodiment of the present application. Figure 1 As shown, the charging and discharging voltage stabilization control method 100 for acquiring the terminal backup power supply includes steps S101 to S103, which are described in detail below.

[0030] S101, collecting discharge parameters of the power supply and charging parameters of the backup power supply at the current moment, wherein the discharge parameters include discharge current, discharge voltage and remaining power supply, and the charging parameters include charging current, charging voltage and remaining charge.

[0031] In one embodiment, the acquisition terminal includes at least two power supplies. Before acquiring the discharge state of the power supply and the charging state of the backup power supply, the control method also includes: obtaining the discharge voltage of each power supply at the current moment, and in response to the discharge voltage being not 0, the power supply is the power supply, and in response to the discharge voltage being 0, the power supply is the backup power supply.

[0032] It can be understood that if the discharge voltage of a power supply is not 0, it means that the power supply is in a discharging state, and if the discharge voltage of a power supply is not 0, the power supply is in a charging state, or in a state of neither charging nor discharging, and does not provide power to the acquisition terminal, and the power supply is used as a backup power supply. The backup power supply can be used as a power supply to provide power to the acquisition terminal when the remaining power supply of the power supply is less than the power threshold.

[0033] Collect the discharge parameters of the power supply, which include the discharge current, discharge voltage and remaining power supply, and the remaining power supply is the maximum amount of power that the power supply can provide; collect the charging parameters of the backup power supply, which include the charging current, charging voltage and remaining charge, and the remaining charge is the amount of power required when the storage capacity of the backup power supply reaches the maximum storage capacity.

[0034] It can be understood that ensuring the stability of discharge voltage and charging voltage means that the discharge voltage and charging voltage do not exceed the reasonable voltage range; the discharge current and charging current can be adjusted, and then the discharge power and charging power can be adjusted to ensure the stability of discharge voltage and charging voltage while meeting the discharge and charging requirements.

[0035] S102, inputting the discharge parameter and the charge parameter into a reinforcement learning model to output control parameters of the power supply and the backup power supply, wherein the control parameters include a voltage adjustment amount and a current adjustment amount.

[0036] In one embodiment, the reinforcement learning model adopts a DQN model. DQN is a deep Q network (DeepQ-network), which is a Q-Learing algorithm based on deep learning. Specifically, the reinforcement learning model includes a first fully connected sub-model, a second fully connected sub-model and a classification sub-model; the first fully connected sub-model is used to perform a dimensional transformation on the discharge parameter to obtain a discharge feature; the second fully connected sub-model is used to perform a dimensional transformation on the charging parameter to obtain a charging feature; after splicing the discharge feature and the charging feature, the classification sub-model is input to obtain the predicted reward value of each control scheme, and the control scheme corresponding to the maximum predicted reward value corresponds to the control parameters of the power supply and the backup power supply; among the control parameters, the voltage adjustment amount is any one of a plurality of allowable voltage adjustment amounts, and the current adjustment amount is any one of a plurality of allowable current adjustment amounts.

[0037] Among them, the first fully connected sub-model and the second fully connected sub-model can adopt BP neural network, and the classification sub-model can adopt classification models such as logistic regression model, decision tree or Softmax function; the result after splicing the discharge characteristics and the charging characteristics can comprehensively reflect the charging and discharging status of each power supply of the acquisition terminal at the current moment.

[0038] The voltage adjustment amount can ensure that the discharge voltage and the charging voltage do not change dramatically at adjacent moments. Similarly, the current adjustment amount can ensure that the discharge current and the charging current do not change dramatically at adjacent moments, avoiding damage to the power supply and the backup power supply. For example, the voltage adjustment amount includes 5 types: 1V, 0.5V, 0V, -0.5V, and -1V, and the current adjustment amount includes 5 types: 1A, 0.5A, 0A, -0.5A, and -1A.

[0039] It should be noted that the output result of the classification sub-model includes 4 values, namely, the voltage regulation amount of the power supply, the current regulation amount of the power supply, the voltage regulation amount of the backup power supply, and the current regulation amount of the backup power supply; the control scheme is a different combination of the 4 values, the number of current allowable regulation amounts is recorded as a, the number of voltage allowable regulation amounts is recorded as b, then the classification sub-model can output A control scheme.

[0040] S103: Adjust the discharge parameter and the charge parameter based on the control parameter.

[0041] In one embodiment, adjusting the discharge parameter and the charging parameter based on the control parameter includes: for the control parameters of the power supply, adjusting the discharge voltage according to the voltage adjustment amount in the control parameters, and adjusting the discharge current according to the current adjustment amount; for the control parameters of the backup power supply, adjusting the charging voltage according to the voltage adjustment amount in the control parameters, and adjusting the charging current according to the current adjustment amount.

[0042] At this point, the charging and discharging voltage stabilization control of the acquisition terminal power supply and backup power supply is realized.

[0043] In one embodiment, in order to ensure voltage stability and achieve better voltage stabilization control effect after executing the control parameters of the power supply and the backup power supply, the reinforcement learning model needs to be trained to constrain the reinforcement learning model to output accurate control parameters. Figure 2 is a flow chart of a training method for a reinforcement learning model according to an embodiment of the present application. Figure 2 As shown, the training method 200 includes steps S201 to S205, which are described in detail below.

[0044] S201, after executing the control parameters, collecting future discharge parameters and future charge parameters at the next moment.

[0045] In one embodiment, after executing the control parameters, the future discharge parameters of the power supply and the future charging parameters of the backup power supply at the next moment are collected. The future discharge parameters include the discharge current, discharge voltage and remaining power supply of the power supply at the next moment, and the future charging parameters include the charging current, charging voltage and remaining charge of the backup power supply at the next moment.

[0046] S202, respectively calculating the stability of the discharge voltage and the charge voltage in the future discharge parameters, and calculating the average stability of the discharge voltage and the charge voltage to obtain a real reward value.

[0047] In one embodiment, calculating the stability of the discharge voltage in the future discharge parameters includes: performing Gaussian function fitting based on the discharge voltage of the power supply in the historical time to obtain a discharge Gaussian model, wherein the discharge Gaussian model includes a discharge voltage mean value. and discharge voltage standard deviation ; Determine the normal interval of discharge voltage according to the criterion of 3 times the standard deviation, and the normal interval is In response to the discharge voltage in the future discharge parameter being in the normal range, the stability of the discharge voltage is 1, otherwise, the stability of the discharge voltage is 0.

[0048] It can be understood that the method for calculating the stability of the charging voltage in the future charging parameters is the same as the method for "calculating the stability of the discharge voltage in the future discharge parameters", which will not be repeated here. The value range of the stability of the discharge voltage in the future discharge parameters and the stability of the charging voltage in the future charging parameters are both 0-1.

[0049] Wherein, the real reward value satisfies the relationship: ,in, For the stability of the discharge voltage, For the stability of charging voltage, is the actual reward value.

[0050] In another embodiment, while ensuring the stability of the discharge voltage and the charging voltage, in order to ensure the safety of the power supply and the acquisition terminal, it is also necessary to limit the discharge current in the future discharge parameters to not be greater than the rated current of the acquisition terminal and the backup power supply, and the charging current in the future charging parameters to not be greater than the rated current of the backup power supply. Specifically, the method for calculating the real reward value also includes: in response to the discharge current in the future discharge parameters being not greater than the minimum rated current, the rationality of the discharge current is set to 1, otherwise, the rationality of the discharge current is set to 0, and the minimum rated current is the minimum of the rated discharge current of the backup power supply and the rated working current of the acquisition terminal; in response to the charging current in the future charging parameters being not greater than the rated charging current of the backup power supply, the rationality of the charging current is set to 1, otherwise, the rationality of the charging current is set to 0; the real reward value satisfies the relationship: ,in, For the stability of the discharge voltage, For the stability of charging voltage, For the reasonable setting of discharge current, For the rationality of charging current, Representation and operation, is the actual reward value.

[0051] It can be understood that the real reward value reflects the safety of the power supply, backup power supply and acquisition terminal, as well as the stability of the discharge voltage and the charge voltage.

[0052] In other optional embodiments, since the collection terminal includes a power supply and a backup power supply, when the remaining power of the power supply is less than the power threshold, the backup power supply needs to be switched to the power supply to continuously supply power to the collection terminal. Therefore, to ensure that the backup power supply can continuously supply power to the collection terminal, in the charging and discharging voltage stabilization control of the power supply and the backup power supply, it is also necessary to meet the following requirements: before the remaining power of the power supply is less than the power threshold, the backup power supply has been fully charged (that is, the remaining charge of the backup power supply is 0).

[0053] Specifically, the method for calculating the real reward value also includes: in the future discharge parameters, calculating the power difference between the remaining power supply and the power threshold, and calculating the quotient of the power difference and the product of the discharge current and the discharge voltage to obtain the power supply time ; In the future charging parameters, calculate the quotient of the remaining charge capacity and the product of the charging current and the charging voltage to get the charging time ; The real reward value satisfies the relationship: ,in, For the stability of the discharge voltage, For the stability of charging voltage, For the reasonable setting of discharge current, For the rationality of charging current, Representation and operation, is the actual reward value.

[0054] Among them, the power threshold is 10% of the maximum storage power of the power supply; the product of the discharge current and the discharge voltage is the discharge power, and the product of the charging current and the charging voltage is the charging power.

[0055] Understandably, It means that before the remaining power of the power supply is less than the power threshold, the backup power supply has been fully charged, and seamless switching between the power supply and the backup power supply can be achieved to ensure that the data collection terminal continuously collects data. The real reward value at this time also reflects the safety of the power supply, backup power supply and data collection terminal, as well as the stability of the discharge voltage and charging voltage; It means that it is impossible to achieve seamless switching between the power supply and the backup power supply based on the future discharge parameters and future charging parameters at the next moment, and the real reward value is directly set to 0.

[0056] In this way, the real reward value is calculated based on the future discharge parameters and future charging parameters at the next moment. The real reward value can accurately quantify the quality of the output results of the reinforcement learning model (i.e., the control parameters of the power supply and backup power supply). The larger the real reward value, the better the voltage stability after the control parameters of the power supply and backup power supply are executed.

[0057] S203: Input the future discharging parameter and the future charging parameter into a preset reinforcement learning model, and use the maximum predicted reward value output by the preset reinforcement learning model as the future reward value.

[0058] In one embodiment, the future discharge parameters and the future charging parameters are the states of the power supply and the backup power supply at the next moment after the control parameters of the power supply and the backup power supply are executed at the current moment. After the future discharge parameters and the future charging parameters are input into the preset reinforcement learning model, the preset reinforcement learning model can output the predicted reward values ​​of each control scheme, and the maximum predicted reward value is used as the future reward value.

[0059] The preset reinforcement learning model has the same model structure as the reinforcement learning model, but different model parameters. The model parameters of the preset reinforcement learning model are continuously updated during the training process of the reinforcement learning model. Specifically, after each preset number of trainings are completed, the network parameters of the reinforcement learning model are copied to the preset reinforcement learning model to update the preset reinforcement learning model. The value of the preset number of times is 10.

[0060] S204, calculating the loss function.

[0061] Among them, the value of the loss function for ; is the predicted reward value corresponding to the control parameters of the power supply and backup power supply, is the actual reward value, is the future reward value, is the setting coefficient; where, the setting coefficient The value of is 0.5.

[0062] S205, performing back propagation according to the loss function to update the reinforcement learning model, and completing one training.

[0063] In one embodiment, the loss function is back-propagated to update the reinforcement learning model and complete a training, so that the reinforcement learning model can accurately output the predicted reward value of each control scheme under the discharge parameters and the charging parameters, thereby obtaining accurate control parameters.

[0064] During the charge and discharge voltage stabilization control process, each time the control parameters of the power supply and backup power supply are executed, the reinforcement learning model will be trained once, so that the control parameters output by the reinforcement learning model can adapt to the environmental changes of the acquisition terminal and improve the voltage stability of the backup power supply of the acquisition terminal during the charge and discharge process.

[0065] The above introduces the technical principles and implementation details of the charge-discharge voltage stabilization control method for the terminal backup power supply of the present application through specific embodiments. The discharge parameters of the power supply at the current moment and the charging parameters of the backup power supply at the current moment are used as the working state at the current moment; the working state is input into the end-to-end reinforcement learning model, which can directly output the discharge current adjustment amount, the discharge voltage adjustment amount, the charging current adjustment amount and the charging voltage adjustment amount, and accurately and quickly adjust the working state of the power supply and the backup power supply; the working state of the power supply and the backup power supply is adjusted in real time through the reinforcement learning model, so that the power supply and the backup power supply are in a voltage stabilization state after adjustment.

[0066] According to the second aspect of the present application, the present application also provides a charging and discharging voltage stabilization control system for a backup power supply of a collection terminal. Figure 3 1 is a structural block diagram of a charge and discharge voltage stabilization control system for a collection terminal backup power supply according to an embodiment of the present application. Figure 3 As shown, the system 50 includes a processor and a memory, the memory stores computer program instructions, and when the computer program instructions are executed by the processor, a charging and discharging voltage stabilization control method for a backup power supply of a collection terminal according to the first aspect of the present application is implemented. The system also includes other components well known to those skilled in the art, such as a communication bus and a communication interface, whose settings and functions are known in the art, so they are not described here.

[0067] In the present application, the aforementioned memory may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. For example, a computer-readable storage medium may be any suitable magnetic storage medium or magneto-optical storage medium, such as a resistive random access memory RRAM (Resistive Random Access Memory), a dynamic random access memory DRAM (Dynamic Random Access Memory), a static random access memory SRAM (Static Random-Access Memory), an enhanced dynamic random access memory EDRAM (Enhanced Dynamic Random Access Memory), a high-bandwidth memory HBM (High-Bandwidth Memory), a hybrid memory cube HMC (Hybrid Memory Cube), etc., or any other medium that can be used to store the required information and can be accessed by an application, a module, or both. Any such computer storage medium may be part of a device or accessible or connectable to a device. Any application or module described in this application may be implemented using computer-readable / executable instructions that may be stored or otherwise maintained by such a computer-readable medium.

[0068] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0069] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the patent application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent application shall be subject to the attached claims.

Claims

1. A charging and discharging voltage stabilization control method for a backup power supply of a collection terminal, It is characterized in that The acquisition terminal includes a power supply and a backup power supply, and the control method includes: Collecting the discharge parameters of the power supply and the charging parameters of the backup power supply at the current moment, wherein the discharge parameters include the discharge current, the discharge voltage and the remaining power supply, and the charging parameters include the charging current, the charging voltage and the remaining charge; Inputting the discharge parameter and the charge parameter into the reinforcement learning model to output the control parameters of the power supply and the backup power supply, wherein the control parameters include the voltage regulation amount and the current regulation amount; adjusting the discharge parameter and the charge parameter based on the control parameter; The reinforcement learning model adopts a DQN model, and the reinforcement learning model includes a first fully connected sub-model, a second fully connected sub-model and a classification sub-model; the first fully connected sub-model is used to perform a dimension transformation on a discharge parameter to obtain a discharge feature; the second fully connected sub-model is used to perform a dimension transformation on a charging parameter to obtain a charging feature; the discharge feature and the charging feature are spliced ​​and input into the classification sub-model to obtain a predicted reward value for each control scheme, and the control scheme corresponding to the maximum predicted reward value corresponds to the control parameters of the power supply and the backup power supply; among the control parameters, the voltage adjustment amount is any one of a plurality of allowable voltage adjustment amounts, and the current adjustment amount is any one of a plurality of allowable current adjustment amounts; The training method of the reinforcement learning model includes: after executing the control parameters, collecting future discharge parameters and future charging parameters; calculating the stability of the discharge voltage and the charging voltage in the future discharge parameters respectively, and calculating the average stability of the discharge voltage and the charging voltage to obtain a real reward value; inputting the future discharge parameters and the future charging parameters into a preset reinforcement learning model, and taking the maximum predicted reward value output by the preset reinforcement learning model as the future reward value; calculating the loss function, the loss function for ; is the predicted reward value corresponding to the control parameter, is the actual reward value, is the future reward value, To set the coefficients; back propagation is performed according to the loss function to update the reinforcement learning model to complete one training.

2. According to claim 1, a charge and discharge voltage stabilization control method for a backup power supply of a collection terminal, It is characterized in that The acquisition terminal includes at least two power supplies. Before acquiring the discharge state of the power supply and the charge state of the backup power supply, the control method further includes: The discharge voltage of each power supply at the current moment is obtained. In response to the discharge voltage not being 0, the power supply is a power supply. In response to the discharge voltage being 0, the power supply is a backup power supply.

3. A method for controlling the charging and discharging voltage stabilization of a backup power supply for a collection terminal according to claim 1, It is characterized in that Adjusting the discharge parameter and the charge parameter based on the control parameter includes: For the control parameters of the power supply, the discharge voltage is adjusted according to the voltage adjustment amount in the control parameters, and the discharge current is adjusted according to the current adjustment amount; For the control parameters of the backup power supply, the charging voltage is adjusted according to the voltage adjustment amount in the control parameters, and the charging current is adjusted according to the current adjustment amount.

4. A method for controlling the charging and discharging voltage stabilization of a backup power supply for a collection terminal according to claim 1, It is characterized in that Calculation of the stability of the discharge voltage in future discharge parameters includes: A Gaussian function is fitted based on the discharge voltage of the power supply in the historical time to obtain a discharge Gaussian model, wherein the discharge Gaussian model includes the discharge voltage mean and discharge voltage standard deviation ; The normal range of discharge voltage is determined according to the criterion of three times standard deviation, and the normal range is ; In response to the discharge voltage in the future discharge parameter being in the normal range, the stability of the discharge voltage is 1, otherwise, the stability of the discharge voltage is 0.

5. A method for controlling the charging and discharging voltage stabilization of a backup power supply for a collection terminal according to claim 4, It is characterized in that The method for calculating the real reward value also includes: In response to the discharge current in the future discharge parameter being not greater than the minimum rated current, the rationality of the discharge current is set to 1, otherwise, the rationality of the discharge current is set to 0, and the minimum rated current is the minimum value of the rated discharge current of the backup power supply and the rated working current of the acquisition terminal; In response to the charging current in the future charging parameter being not greater than the rated charging current of the backup power source, the charging current rationality is set to 1, otherwise, the charging current rationality is set to 0; The real reward value satisfies the relationship: ,in, For the stability of the discharge voltage, For the stability of charging voltage, For the reasonable setting of discharge current, For the rationality of charging current, Representation and operation, is the actual reward value.

6. A method for controlling the charging and discharging voltage stabilization of a backup power supply for a collection terminal according to claim 5, It is characterized in that The method for calculating the real reward value also includes: In the future discharge parameters, the power difference between the remaining power supply and the power threshold is calculated, and the quotient of the power difference and the product of the discharge current and the discharge voltage is calculated to obtain the power supply time. ; In the future charging parameters, calculate the quotient of the remaining charge capacity and the product of the charging current and the charging voltage to get the charging time ; The actual reward value satisfies the relationship: ,in, For the stability of the discharge voltage, For the stability of charging voltage, For the reasonable setting of discharge current, For the rationality of charging current, Representation and operation, is the actual reward value.

7. A method for controlling the charging and discharging voltage stabilization of a backup power supply for a collection terminal according to claim 1, It is characterized in that After each preset number of trainings are completed, the network parameters of the reinforcement learning model are copied to the preset reinforcement learning model to update the preset reinforcement learning model.

8. A charging and discharging voltage stabilization control system for the backup power supply of the acquisition terminal, It is characterized in that It comprises a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, a charging and discharging voltage stabilization control method for a backup power supply of a collection terminal according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • A charging and discharging control method, device, equipment and system

    CN108565907B

  • Backup battery redundancy management system and method for feeder terminal

    CN117477743A

  • Energy storage power supply, energy storage power supply system and control method of energy storage power supply

    CN117614055A

  • Protection method for backup power supply of power utilization information acquisition terminal

    CN117650611A

  • Control method and control device of energy storage system, energy storage system and storage medium

    CN117674218A