Method and device for controlling rapid charging and discharging of mobile power source and mobile power source

The charging and discharging process of the mobile power supply is optimized through the two-layer model prediction control method, which solves the problem of unstable power control, improves the charging rate and equipment life, and realizes the efficient and long-term use of the mobile power supply.

CN118677067BActive Publication Date: 2024-12-17SHENZHEN CAGER DIGITAL TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410880344.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-12-17
Estimated Expiration
2044-07-02

AI Technical Summary

Technical Problem

The power control of the mobile power supply is unstable during the charging and discharging process, resulting in a decrease in the charging rate, affecting the durability and service life of the equipment.

Method used

The two-layer model predictive control (MPC) method is used to obtain the charging and discharging state amounts, construct the objective functions and constraints, perform rolling optimization solutions, and iteratively adjust the power control parameters to ensure the stability and efficiency of the charging and discharging process.

Benefits of technology

It improves the accuracy and accuracy of charge and discharge control, extends the service life of the equipment, and maintains the long-term fast charge and discharge rate of the mobile power supply.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118677067B_ABST
    Figure CN118677067B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a method and device for controlling rapid charging and discharging of a mobile power source, and the mobile power source, comprising: when the mobile power source is respectively connected to an electric device and an external power source, obtaining charging state quantities at different times and discharging state quantities at different times; constructing a charging objective function, a discharging objective function and charging and discharging constraints; inputting the charging state quantity and the discharging state quantity at the current time into the first layer MPC in a double-layer MPC model to obtain a predicted charging power and a predicted discharging power; performing charging and discharging objective functions and constraints related to charging and discharging on each layer of MPC, respectively, to improve the accuracy of the prediction, obtain the charging and discharging control power that meets the requirements, improve the accuracy of the power simulation, achieve the effect of accurately controlling the external power supply power, the electric device power and the mobile power supply power at different times, improve the standard life and service life of the equipment, and effectively maintain the long-term rapid charging and discharging rate of the mobile power source.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a fast charging and discharging control method of a mobile power source, a fast charging and discharging control device of a mobile power source, a mobile power source and a computer-readable storage medium. Background Art

[0002] A mobile power bank is a portable charger that can be carried by an individual and can store electrical energy. It is mainly used to charge handheld mobile devices and other consumer electronic products (such as wireless phones and laptops), especially in situations where there is no external power supply. Its main components include: batteries for storing electrical energy, circuits for stabilizing output voltage (DC-DC converters), and most mobile power banks come with chargers to charge the built-in batteries.

[0003] Generally, a smart mobile device, such as a portable computer, is used in pair with a mobile power bank. The mobile power bank and the smart mobile device are connected via a specific interface and wires. In one application scenario, when the mobile power bank provides power to the smart mobile device, it can also receive charging operations from a certain power source, so that the mobile power bank can perform charging operations or discharging operations at the same time. The mobile power bank that performs charging operations or discharging operations at the same time has higher power requirements. The voltage, current or power control of the mobile power bank is not stable, which puts forward certain requirements on the durability of the device, resulting in a decrease in the charging rate of the mobile power bank in the later stage of use. Summary of the invention

[0004] In view of the above problems, embodiments of the present invention are proposed to provide a method for quickly charging and discharging a mobile power source, a device for quickly charging and discharging a mobile power source, a mobile power source, and a computer-readable storage medium that overcome the above problems or at least partially solve the above problems.

[0005] In order to solve the above problems, an embodiment of the present invention discloses a method for controlling rapid charging and discharging of a mobile power source, wherein the mobile power source is connected to an electric device and an external power source respectively; the method comprises:

[0006] When the mobile power source is connected to the power-consuming device and the external power source respectively, the charging state quantity at different times and the discharging state quantity at different times are obtained;

[0007] Construct charging objective function, discharging objective function and charging and discharging constraints;

[0008] The current state of charge and state of discharge are input into the first layer MPC in the double-layer MPC model to obtain the predicted charging power and the predicted discharging power;

[0009] According to the charging objective function and the discharging objective function, the predicted charging power and the predicted discharging power are constrained under charging and discharging constraint conditions, and a rolling optimization solution is performed in the time domain to obtain a plurality of first power control parameter vectors;

[0010] Determine whether the multiple power control parameter vectors meet the preset threshold range. When the multiple power control parameter vectors meet the preset threshold range, input the predicted charging power and the predicted discharging power into the second layer MPC in the double-layer MPC model, perform rolling optimization in the time domain, obtain multiple second power control parameter vectors, iterate the charging objective function and the discharging objective function until convergence, and obtain the third charging and discharging control parameter.

[0011] The charging and discharging power of the mobile power source is controlled by the third charging and discharging control parameter.

[0012] Preferably, the construction of the charging objective function, the discharging objective function and the charging and discharging constraint conditions includes:

[0013] Obtaining the external power supply power, the first predicted time length, and the remaining power of the mobile power supply at different times;

[0014] A charging objective function is established according to the external power source power at different times, the first predicted time length, and the remaining power of the mobile power source, and the charging objective function is as follows;

[0015] ;

[0016] in, is the charging objective function, is the first prediction time length, for External power supply power at the moment, for External power supply power at the moment, for The remaining power of the mobile power bank at the moment, for The remaining power of the mobile power bank at the moment, is the number of power values ​​at different times, is the number of moment values, is an integer.

[0017] Preferably, the construction of the charging objective function, the discharging objective function and the charging and discharging constraint conditions includes:

[0018] Obtain the external power supply power, power of the power-consuming device, power of the mobile power supply, the second predicted time length, and the remaining power of the power-consuming device at different times;

[0019] A discharge target function is established according to the external power supply power, the power of the power-consuming device, the power of the mobile power supply, the second predicted time length, and the remaining power of the power-consuming device at different times. The discharge target function is as follows;

[0020] ;

[0021] in, is the discharge objective function, for External power supply power at the moment, for The power of electrical equipment at the moment, for The mobile power supply power at the moment; L is the second predicted time length, and S is the remaining power of the power-consuming equipment.

[0022] Preferably, the construction of the charging objective function, the discharging objective function and the charging and discharging constraint conditions includes:

[0023] Obtain the rated charging power of the external power supply, the upper limit of the charging power fluctuation value of the user equipment, the lower limit of the charging power fluctuation value of the user equipment, the power of the power-consuming equipment, the total power change of the power-consuming equipment, the upper limit of the instantaneous power of the mobile power supply, and the total power change of the external power supply;

[0024] Establishing a first charging constraint condition, a second discharging constraint condition, and a third charging and discharging constraint condition according to the rated charging power of the external power source, the upper limit of the charging power fluctuation value of the user equipment, the lower limit of the charging power fluctuation value of the user equipment, the power of the power-consuming device, the total power change of the power-consuming device, the upper limit of the instantaneous power of the mobile power source, and the total power change of the external power source;

[0025] Among them, the first charging constraint condition is:

[0026] ;

[0027] in, Refers to the rated charging power of the external power source;

[0028] The first discharge constraint is:

[0029]

[0030] in, Indicates the lower limit of the charging power fluctuation value of the user device. Indicates the upper limit of the charging power fluctuation value of the user device. for The power of electrical equipment at the moment, for The total power change of electrical equipment at the moment, for The total power change of electrical equipment at the moment, is an integer;

[0031] The second discharge constraint condition includes:

[0032] ;

[0033] in, Indicates the upper limit of the instantaneous power of the mobile power supply; express The total power change of the external power supply at the moment.

[0034] Preferably, the step of inputting the current state of charge and state of discharge into the first layer MPC in the double-layer MPC model to obtain the predicted charging power and the predicted discharging power includes:

[0035] Performing simulation generation processing on the charge state quantity and discharge state quantity at the current moment to generate multiple sets of simulated charge state quantities and simulated discharge state quantities at different moments;

[0036] The simulated charging state quantity and the simulated discharging state quantity are input into the first layer MPC in the double-layer MPC model to obtain the predicted charging power and the predicted discharging power.

[0037] Preferably, the power control parameter vector includes a charge and discharge voltage parameter and a charge and discharge current parameter; the step of judging whether the multiple power control parameter vectors meet a preset threshold range, and when the multiple power control parameter vectors meet the preset threshold range, inputting the predicted charging power and the predicted discharging power into the second layer MPC in the double-layer MPC model to obtain multiple second power control parameter vectors, iterating the charging objective function and the discharging objective function until convergence, and obtaining the third charge and discharge control parameter includes:

[0038] The discharge voltage parameter and the charge and discharge current parameter are compared with the corresponding voltage threshold and current threshold. When the discharge voltage parameter and the charge and discharge current parameter are less than the corresponding voltage threshold and current threshold, the predicted charging power and the predicted discharge power are input into the second layer MPC in the double-layer MPC model to obtain multiple second power control parameter vectors, and the charging objective function and the discharging objective function are iterated until convergence to obtain the third charge and discharge control parameter.

[0039] The embodiment of the present invention discloses a fast charge and discharge control device for a mobile power source, wherein the mobile power source is connected to an electric device and an external power source respectively; the device comprises:

[0040] The state quantity acquisition module is used to obtain the charging state quantity at different times and the discharging state quantity at different times when the mobile power supply is connected to the power-consuming device and the external power supply respectively;

[0041] A construction module is used to construct a charging objective function, a discharging objective function and charging and discharging constraints;

[0042] The first input module is used to input the current state of charge and the state of discharge into the first layer MPC in the double-layer MPC model to obtain the predicted charging power and the predicted discharging power;

[0043] A first solving module, configured to constrain the predicted charging power and the predicted discharging power under charging and discharging constraint conditions according to the charging objective function and the discharging objective function, perform rolling optimization solving in the time domain, and obtain a plurality of first power control parameter vectors;

[0044] A second input module is used to determine whether the multiple power control parameter vectors meet the preset threshold range. When the multiple power control parameter vectors meet the preset threshold range, the predicted charging power and the predicted discharging power are input into the second layer MPC in the double-layer MPC model, and a rolling optimization solution is performed in the time domain to obtain multiple second power control parameter vectors, and the charging objective function and the discharging objective function are iterated until convergence to obtain a third charging and discharging control parameter;

[0045] The control module is used to control the charging and discharging power of the mobile power supply through the third charging and discharging control parameter.

[0046] Preferably, the building blocks include:

[0047] A first acquisition submodule is used to acquire the external power supply power, the first predicted time length, and the remaining power of the mobile power supply at different times;

[0048] The first construction submodule is used to establish a charging objective function according to the external power supply power at different times, the first predicted time length, and the remaining power of the mobile power supply. The charging objective function is as follows;

[0049] ;

[0050] in, is the charging objective function, is the first prediction time length, for External power supply power at the moment, for External power supply power at the moment, for The remaining power of the mobile power bank at the moment, for The remaining power of the mobile power bank at the moment, is the number of power values ​​at different times, is the number of moment values, Can be an integer.

[0051] The embodiment of the present invention discloses a mobile power supply, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above-mentioned method for controlling rapid charge and discharge of the mobile power supply when executing the computer program.

[0052] The embodiment of the present invention discloses a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned method for controlling rapid charging and discharging of a mobile power source are implemented.

[0053] The embodiments of the present invention include the following advantages:

[0054] In the embodiment of the present invention, the charging and discharging objective functions and constraints related to charging and discharging are respectively performed on each layer of MPC, so as to improve the accuracy of prediction, obtain the charging and discharging control power that meets the requirements, improve the accuracy of power simulation, achieve the effect of accurately controlling the external power supply power, the power of the electrical equipment, and the power of the mobile power supply at different times, improve the standard life and service life of the equipment, and effectively maintain the long-term rapid charging and discharging rate of the mobile power supply. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0056] Figure 1 is a schematic diagram of an embodiment of a fast charge and discharge control method of a mobile power source according to an embodiment of the present invention;

[0057] Figure 2 is a schematic diagram of a structural system of a mobile power source, power-consuming equipment and an external power source in an embodiment of the present invention;

[0058] Figure 3 It is a structural block diagram of an embodiment of a fast charge and discharge control device of a mobile power source according to an embodiment of the present invention;

[0059] Figure 4 The figure is a diagram of the internal structure of a mobile power supply according to an embodiment. DETAILED DESCRIPTION

[0060] In order to make the technical problems, technical solutions and beneficial effects solved by the embodiments of the present invention more clearly understood, the embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0061] In a core concept of an embodiment of the present invention, in an application scenario where a mobile power supply is respectively connected to a user device and an external power supply, the charging power data and the discharging power data of the mobile power supply are respectively obtained by using simulated data to obtain multiple simulated charging power data and discharging power data, and the double-layer MPC prediction is performed using the multiple simulated charging power data and the discharging power data. Through the improved double-layer MPC, the charging and discharging objective functions and constraints related to charging and discharging are respectively performed on each layer of MPC, so as to improve the accuracy of the prediction, obtain the charging and discharging control power that meets the requirements, improve the accuracy of the power simulation, and achieve the effect of accurately controlling the external power supply power, the power of the electrical equipment, and the mobile power supply power at different times, thereby improving the standard life and service life of the equipment, and effectively maintaining the long-term rapid charging and discharging rate of the mobile power supply.

[0062] Reference Figure 1 , showing a schematic diagram of an embodiment of a fast charge and discharge control method of a mobile power supply according to an embodiment of the present invention, wherein the mobile power supply is connected to an electric device and an external power supply respectively; specifically, the following steps may be included:

[0063] Step S101, when the mobile power supply is connected to the power-consuming device and the external power supply respectively, the charging state quantity and the discharging state quantity of the mobile power supply at different times are obtained;

[0064] Specifically, the power-consuming device can be various computers. The embodiments of the present invention do not limit the specific types of power-consuming devices. The operating system of the terminal can include Android, Harmony OS, IOS, Windows Phone, Windows, etc. The present invention does not impose too many restrictions on this. The mobile power source refers to a portable charging device with various capacities that users can carry with them, which can store electric energy and is mainly used to charge consumer electronic products such as handheld mobile devices (such as mobile phones and laptops). It is especially used in occasions where there is no external power supply. Its main components include: a battery for storing electric energy, a circuit for stabilizing the output voltage (DC-DC converter); and the external power source refers to an AC interface with a voltage of 100V to 380V, and the frequency value can be 50Hz and 60Hz.

[0065] In the embodiment of the present invention, when one end of the mobile power supply is connected to the power-consuming device and the other end is connected to the external power supply, the charging state quantity of the mobile power supply at different times and the discharging state quantity at different times are obtained; wherein, in the embodiment of the present invention, the charging state quantity and the discharging state quantity may be the external power supply power, the power of the power-consuming device, and the power of the mobile power supply, that is, the charging state quantity and the discharging state quantity may be the charging power or discharging power of the external power supply, the charging power or discharging power of the power-consuming device, and the charging power or discharging power of the mobile power supply, with reference to Figure 2 , shows a schematic diagram of the structural system of a mobile power source, a power-consuming device and an external power source in an embodiment of the present invention, and the equation group of the entire structural system is as follows:

[0066] ;

[0067] ;

[0068] ;

[0069] for External power supply power at the moment, for The power of electrical equipment at the moment, for The power of the mobile power supply at the moment, express The power change of the mobile power supply at the moment, express The external power supply power change at the moment, express The power change of electrical equipment at each moment, for The remaining power of the mobile power bank at the moment, represents the circulation coefficient, is the total capacity of the mobile power supply; it should be noted that the charge and discharge management system can run on the chip of the mobile power supply or on the chip of the power-consuming device, and the embodiment of the present invention does not impose too many restrictions on this.

[0070] Step S102, constructing a charging objective function, a discharging objective function and charging and discharging constraint conditions;

[0071] In the embodiment of the present invention, the construction of the charging objective function, the discharging objective function and the charging and discharging constraint conditions includes: obtaining the external power supply power at different times, the first predicted time length, and the remaining power of the mobile power supply; and establishing the charging objective function according to the external power supply power at different times, the first predicted time length, and the remaining power of the mobile power supply, as follows:

[0072] ;

[0073] in, is the charging objective function, is the first prediction time length, for External power supply power at the moment, for External power supply power at the moment, for The remaining power of the mobile power bank at the moment, for The remaining power of the mobile power bank at the moment, is the number of power values ​​at different times, is the number of moment values, Can be an integer;

[0074] Further applied to the present invention, a discharge objective function can also be established. The construction of the charging objective function, the discharging objective function and the charging and discharging constraints includes: obtaining the external power supply power, the power of the power consumer, the mobile power supply power, the second predicted time length, and the remaining power of the power consumer at different times; and establishing the discharge objective function according to the external power supply power, the power of the power consumer, the mobile power supply power, the second predicted time length, and the remaining power of the power consumer at different times.

[0075] ;

[0076] in, is the discharge objective function, for External power supply power at the moment, for The power of electrical equipment at the moment, for The mobile power supply power at the moment; L is the second predicted time length, and S is the remaining power of the power-consuming equipment.

[0077] In a preferred embodiment of the embodiments of the present invention, the construction of the charging objective function, the discharging objective function and the charging and discharging constraint conditions includes: obtaining the rated charging power of the external power supply, the upper limit of the charging power fluctuation value of the user equipment, the lower limit of the charging power fluctuation value of the user equipment, the power of the power-consuming equipment, the total power change of the power-consuming equipment, the upper limit of the instantaneous power of the mobile power supply, and the total power change of the external power supply; establishing a first charging constraint condition, a second discharging constraint condition, and a third charging and discharging constraint condition according to the rated charging power of the external power supply, the upper limit of the charging power fluctuation value of the user equipment, the lower limit of the charging power fluctuation value of the user equipment, the power of the power-consuming equipment, the total power change of the power-consuming equipment, the upper limit of the instantaneous power of the mobile power supply, and the total power change of the external power supply.

[0078] The first charging constraint condition includes:

[0079] ;

[0080] In the embodiment of the present invention, the external power supply has a limit on the rated charging power, so its constraint is the rated charging power. Refers to the rated charging power of the external power source;

[0081] The first discharge constraint condition includes:

[0082] ;

[0083] Indicates the lower limit of the charging power fluctuation value of the user device. Indicates the upper limit of the charging power fluctuation value of the user device. for The power of electrical equipment at the moment, for The total power change of electrical equipment at the moment, is an integer.

[0084] The second discharge constraint condition includes:

[0085] ;

[0086] Indicates the upper limit of the instantaneous power of the mobile power supply; express The total power change of the external power supply at the moment;

[0087] Step S103, inputting the current state of charge and state of discharge into the first layer of the double-layer MPC (Model predictive control) model to obtain the predicted charging power and the predicted discharging power;

[0088] In a preferred embodiment of the embodiments of the present invention, the charging state quantity and the discharging state quantity at the current moment are input into the first layer MPC in the double-layer MPC model to obtain the predicted charging power and the predicted discharging power, including: simulating and generating the charging state quantity and the discharging state quantity at the current moment to generate multiple groups of simulated charging state quantities and simulated discharging state quantities at different moments; inputting the simulated charging state quantity and the simulated discharging state quantity into the first layer MPC in the double-layer MPC model to obtain the predicted charging power and the predicted discharging power.

[0089] Specifically, the upper and lower value ranges of the data can be set first, and then the upper and lower value ranges of the data are passed to the data generation plug-in, and the upper and lower value ranges are applied to the data generation plug-in, and the data generation plug-in is controlled to output the simulated charging state quantity and simulated discharge state quantity that meet the upper and lower value ranges, and the simulated charging state quantity and simulated discharge state quantity are bound to different moments to obtain the simulated charging state quantity and simulated discharge state quantity at different moments. The problem of lack of data samples is solved, data diversity is improved, and prediction accuracy is improved; it should be noted that the types of the data generation plug-in can include Python's random library module, numpy library module, pandas library module, etc., and the embodiments of the present invention do not impose too many restrictions on this.

[0090] Step S104: constraining the predicted charging power and the predicted discharging power under charging and discharging constraint conditions according to the charging objective function and the discharging objective function, performing rolling optimization in the time domain, and obtaining a plurality of first power control parameter vectors;

[0091] In an embodiment of the present invention, after obtaining the predicted charging power, the predicted discharging power, the charging and discharging constraints, and the charging objective function, the predicted charging power and the predicted discharging power at different times are subjected to rolling optimization in the time domain under the optimization objective function and the constraints to obtain multiple first power control parameter vectors.

[0092] Step S105, judging whether the multiple power control parameter vectors meet the preset threshold range, when the multiple power control parameter vectors meet the preset threshold range, inputting the predicted charging power and the predicted discharging power into the second layer MPC in the double-layer MPC model, obtaining multiple second power control parameter vectors, iterating the charging objective function and the discharging objective function until convergence, and obtaining the third charging and discharging control parameter;

[0093] The preset threshold range may be any value set by those skilled in the art, and the embodiments of the present invention do not impose excessive restrictions on this.

[0094] Specifically, the preset threshold range can be [0, Ps, w], Ps, w represents the theoretical rated power of the electrical equipment, and the rated power is limited. If the value of the power control parameter vector does not meet the preset threshold range, the corresponding power control parameter vector is discarded, and the process returns to the step of obtaining the charging state quantity of the mobile power supply at different times and the discharging state quantity at different times, and inputting the charging state quantity and the discharging state quantity at the current time into the first layer MPC in the double-layer MPC model to obtain the predicted charging power and the predicted discharging power.

[0095] On the other hand, in addition to the power parameters, the power control parameter vector can also be judged according to the voltage threshold and the current threshold, and the multiple power control parameter vectors are judged whether they meet the preset threshold range. When the multiple power control parameter vectors meet the preset threshold range, the predicted charging power and the predicted discharging power are input into the second layer MPC in the double-layer MPC model to obtain multiple second power control parameter vectors, and the charging objective function and the discharging objective function are iterated until convergence to obtain the third charging and discharging control parameters, including:

[0096] Specifically, the power control parameter vector includes charging and discharging voltage parameters, charging and discharging current parameters, wire size parameters, etc., and the embodiment of the present invention does not impose too many restrictions on this;

[0097] The discharge voltage parameter and the charge and discharge current parameter are compared with the corresponding voltage threshold and current threshold. When the discharge voltage parameter and the charge and discharge current parameter are less than the corresponding voltage threshold and current threshold, the predicted charging power and the predicted discharge power are input into the second layer MPC in the double-layer MPC model to obtain multiple second power control parameter vectors, and the charging objective function and the discharging objective function are iterated until convergence to obtain the third charge and discharge control parameter.

[0098] For example, the voltage threshold may be Vs,w, where Vs,w represents the voltage rated power of the electrical equipment; the current threshold may be Is,w, where Is,w represents the current rated power of the electrical equipment; the voltage parameter and the current parameter in the power control parameter vector are compared with the voltage threshold and the current threshold; when the voltage parameter and the current parameter are less than the threshold, the predicted charging power and the predicted discharging power are input into the second layer MPC in the double-layer MPC model; a rolling optimization solution is performed in the time domain to obtain multiple second power control parameter vectors; the charging objective function and the discharging objective function are iterated until convergence to obtain the third charging and discharging control parameter; when the voltage parameter and the current parameter are greater than the threshold, the corresponding power control parameter vector is discarded, and the process returns to the step of obtaining the charging state quantity and the discharging state quantity of the mobile power supply at different times, and the charging state quantity and the discharging state quantity at the current time are input into the first layer MPC in the double-layer MPC model to obtain the predicted charging power and the predicted discharging power.

[0099] It should be noted that the two-layer MPC model in the embodiment of the present invention is only an example of the present application. The accuracy of power simulation of the present application can also be improved by using two-layer MPC models of other types or other structures, so as to achieve the effect of accurately controlling the power of external power supplies, the power of electrical equipment, and the power of mobile power supplies at different times, reduce power fluctuations, and increase the standard life and service life of equipment.

[0100] Step S106: Control the charging and discharging power of the mobile power source by using the third charging and discharging control parameter.

[0101] Furthermore, after obtaining the third charge and discharge control parameter, the charge and discharge power of the mobile power source can be controlled by the third charge and discharge control parameter, thereby achieving the effect of accurately controlling the charge and discharge power and improving the standard life and service life of the equipment.

[0102] It should be noted that, for the method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that this embodiment is not limited by the order of the actions described, because according to this embodiment, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by this embodiment.

[0103] Reference Figure 3 , shows a structural block diagram of an embodiment of a fast charge and discharge control device of a mobile power supply of this embodiment, wherein the mobile power supply is connected to an electric device and an external power supply respectively; specifically, the following modules may be included:

[0104] The state quantity acquisition module 301 is used to acquire the charging state quantity at different times and the discharging state quantity at different times when the mobile power supply is connected to the power-consuming device and the external power supply respectively;

[0105] A construction module 302 is used to construct a charging objective function, a discharging objective function and charging and discharging constraints;

[0106] The first input module 303 is used to input the current state of charge and state of discharge into the first layer MPC in the double-layer MPC model to obtain the predicted charging power and the predicted discharging power;

[0107] A first solving module 304 is used to constrain the predicted charging power and the predicted discharging power under the charging and discharging constraint conditions according to the charging objective function and the discharging objective function, perform rolling optimization solving in the time domain, and obtain multiple first power control parameter vectors;

[0108] The second input module 305 is used to determine whether the multiple power control parameter vectors meet the preset threshold range. When the multiple power control parameter vectors meet the preset threshold range, the predicted charging power and the predicted discharging power are input into the second layer MPC in the double-layer MPC model, and a rolling optimization solution is performed in the time domain to obtain multiple second power control parameter vectors, and the charging objective function and the discharging objective function are iterated until convergence to obtain a third charging and discharging control parameter;

[0109] The control module 306 is used to control the charging and discharging power of the mobile power source through the third charging and discharging control parameter.

[0110] Preferably, the building blocks include:

[0111] A first acquisition submodule is used to acquire the external power supply power, the first predicted time length, and the remaining power of the mobile power supply at different times;

[0112] The first construction submodule is used to establish a charging objective function according to the external power supply power at different times, the first predicted time length, and the remaining power of the mobile power supply. The charging objective function is as follows;

[0113] ;

[0114] in, is the charging objective function, is the first prediction time length, for External power supply power at the moment, for External power supply power at the moment, for The remaining power of the mobile power bank at the moment, for The remaining power of the mobile power bank at the moment, is the number of power values ​​at different times, is the number of moment values, is an integer.

[0115] Preferably, the building blocks include:

[0116] The second acquisition submodule is used to acquire the external power supply power, the power of the power-consuming device, the power of the mobile power supply, the second predicted time length, and the remaining power of the power-consuming device at different times;

[0117] The second construction submodule is used to establish a discharge target function according to the external power supply power, the power of the power-consuming device, the power of the mobile power supply, the second predicted time length, and the remaining power of the power-consuming device at different times. The discharge target function is as follows;

[0118] ;

[0119] in, is the discharge objective function, for External power supply power at the moment, for The power of electrical equipment at the moment, for The mobile power supply power at the moment; L is the second predicted time length, and S is the remaining power of the power-consuming equipment.

[0120] Preferably, the building blocks include:

[0121] The third acquisition submodule is used to obtain the rated charging power of the external power supply, the upper limit of the charging power fluctuation value of the user equipment, the lower limit of the charging power fluctuation value of the user equipment, the power of the power-consuming equipment, the total power change of the power-consuming equipment, the upper limit of the instantaneous power of the mobile power supply, and the total power change of the external power supply;

[0122] The third construction submodule is used to establish a first charging constraint condition, a second discharging constraint condition, and a third charging and discharging constraint condition according to the rated charging power of the external power source, the upper limit of the charging power fluctuation value of the user equipment, the lower limit of the charging power fluctuation value of the user equipment, the power of the power-consuming device, the total power change of the power-consuming device, the upper limit of the instantaneous power of the mobile power source, and the total power change of the external power source;

[0123] Among them, the first charging constraint condition is:

[0124] ;

[0125] in, Refers to the rated charging power of the external power source;

[0126] The first discharge constraint is:

[0127]

[0128] in, Indicates the lower limit of the charging power fluctuation value of the user device. Indicates the upper limit of the charging power fluctuation value of the user device. for The power of electrical equipment at the moment, for The total power change of electrical equipment at the moment, for The total power change of electrical equipment at the moment, is an integer;

[0129] The second discharge constraint condition includes:

[0130] ;

[0131] in, Indicates the upper limit of the instantaneous power of the mobile power supply; express The total power change of the external power supply at the moment.

[0132] Preferably, the first input module comprises:

[0133] A simulation generation submodule, used for performing simulation generation processing on the charge state quantity and discharge state quantity at the current moment, and generating multiple groups of simulated charge state quantities and simulated discharge state quantities at different moments;

[0134] The input submodule is used to input the simulated charging state quantity and the simulated discharging state quantity into the first layer MPC in the double-layer MPC model to obtain the predicted charging power and the predicted discharging power.

[0135] Preferably, the power control parameter vector includes a charge and discharge voltage parameter and a charge and discharge current parameter; and the second input module includes:

[0136] The iterative submodule is used to compare the discharge voltage parameter and the charge and discharge current parameter with the corresponding voltage threshold and current threshold. When the discharge voltage parameter and the charge and discharge current parameter are less than the corresponding voltage threshold and current threshold, the predicted charging power and the predicted discharge power are input into the second layer MPC in the double-layer MPC model to obtain multiple second power control parameter vectors, and iterate the charging objective function and the discharging objective function until convergence to obtain the third charge and discharge control parameter.

[0137] Each module in the above-mentioned fast charge and discharge control device of the mobile power supply can be implemented in whole or in part by software, hardware or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the mobile power supply in the form of hardware, or can be stored in the memory in the mobile power supply in the form of software, so that the processor can call and execute the corresponding operations of each of the above modules.

[0138] The fast charge and discharge control device for a mobile power source provided above can be used to execute the fast charge and discharge control method for a mobile power source provided in any of the above embodiments, and has corresponding functions and beneficial effects.

[0139] In one embodiment, a mobile power supply is provided, and its internal structure diagram can be as follows: Figure 4 As shown. The mobile power supply includes a processor, a memory, and a charging interface connected through a system bus. Among them, the processor of the mobile power supply is used to provide computing and control capabilities. The memory of the mobile power supply includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. When the computer program is executed by the processor, a method for a fast charging and discharging control device of a mobile power supply is implemented.

[0140] Those skilled in the art will understand that Figure 4The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the mobile power supply to which the solution of the present application is applied. The specific mobile power supply may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0141] In one embodiment, a mobile power supply is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the steps of the above embodiment are implemented:

[0142] When the mobile power source is connected to the power-consuming device and the external power source respectively, the charging state quantity at different times and the discharging state quantity at different times are obtained;

[0143] Construct charging objective function, discharging objective function and charging and discharging constraints;

[0144] The current state of charge and state of discharge are input into the first layer MPC in the double-layer MPC model to obtain the predicted charging power and the predicted discharging power;

[0145] According to the charging objective function and the discharging objective function, the predicted charging power and the predicted discharging power are constrained under charging and discharging constraint conditions, and a rolling optimization solution is performed in the time domain to obtain a plurality of first power control parameter vectors;

[0146] Determine whether the multiple power control parameter vectors meet the preset threshold range. When the multiple power control parameter vectors meet the preset threshold range, input the predicted charging power and the predicted discharging power into the second layer MPC in the double-layer MPC model, perform rolling optimization in the time domain, obtain multiple second power control parameter vectors, iterate the charging objective function and the discharging objective function until convergence, and obtain the third charging and discharging control parameter.

[0147] The charging and discharging power of the mobile power source is controlled by the third charging and discharging control parameter.

[0148] Preferably, the construction of the charging objective function, the discharging objective function and the charging and discharging constraint conditions includes:

[0149] Obtaining the external power supply power, the first predicted time length, and the remaining power of the mobile power supply at different times;

[0150] A charging objective function is established according to the external power source power at different times, the first predicted time length, and the remaining power of the mobile power source, and the charging objective function is as follows;

[0151] ;

[0152] in, is the charging objective function, is the first prediction time length, for External power supply power at the moment, for External power supply power at the moment, for The remaining power of the mobile power bank at the moment, for The remaining power of the mobile power bank at the moment, is the number of power values ​​at different times, is the number of moment values, Can be an integer.

[0153] Preferably, the construction of the charging objective function, the discharging objective function and the charging and discharging constraint conditions includes:

[0154] Obtain the external power supply power, power of the power-consuming device, power of the mobile power supply, the second predicted time length, and the remaining power of the power-consuming device at different times;

[0155] A discharge target function is established according to the external power supply power, the power of the power-consuming device, the power of the mobile power supply, the second predicted time length, and the remaining power of the power-consuming device at different times. The discharge target function is as follows;

[0156] ;

[0157] in, is the discharge objective function, for External power supply power at the moment, for The power of electrical equipment at the moment, for The mobile power supply power at the moment; L is the second predicted time length, S is the remaining power of the power-consuming device

[0158] Preferably,

[0159] The construction of the charging objective function, the discharging objective function and the charging and discharging constraint conditions includes:

[0160] Obtain the rated charging power of the external power supply, the upper limit of the charging power fluctuation value of the user equipment, the lower limit of the charging power fluctuation value of the user equipment, the power of the power-consuming equipment, the total power change of the power-consuming equipment, the upper limit of the instantaneous power of the mobile power supply, and the total power change of the external power supply;

[0161] Establishing a first charging constraint condition, a second discharging constraint condition, and a third charging and discharging constraint condition according to the rated charging power of the external power source, the upper limit of the charging power fluctuation value of the user equipment, the lower limit of the charging power fluctuation value of the user equipment, the power of the power-consuming device, the total power change of the power-consuming device, the upper limit of the instantaneous power of the mobile power source, and the total power change of the external power source;

[0162] Among them, the first charging constraint condition is:

[0163] ;

[0164] in, Refers to the rated charging power of the external power source;

[0165] The first discharge constraint is:

[0166]

[0167] in, Indicates the lower limit of the charging power fluctuation value of the user device. Indicates the upper limit of the charging power fluctuation value of the user device. for The power of electrical equipment at the moment, for The total power change of electrical equipment at the moment, for The total power change of electrical equipment at the moment, is an integer;

[0168] The second discharge constraint condition includes:

[0169] ;

[0170] in, Indicates the upper limit of the instantaneous power of the mobile power supply; express The total power change of the external power supply at the moment.

[0171] Preferably,

[0172] The step of inputting the current state of charge and the current state of discharge into the first layer MPC in the double-layer MPC model to obtain the predicted charging power and the predicted discharging power includes:

[0173] Performing simulation generation processing on the charge state quantity and discharge state quantity at the current moment to generate multiple sets of simulated charge state quantities and simulated discharge state quantities at different moments;

[0174] The simulated charging state quantity and the simulated discharging state quantity are input into the first layer MPC in the double-layer MPC model to obtain the predicted charging power and the predicted discharging power.

[0175] Preferably,

[0176] The power control parameter vector includes a charge and discharge voltage parameter and a charge and discharge current parameter; the multiple power control parameter vectors are judged to be within a preset threshold range, and when the multiple power control parameter vectors are within the preset threshold range, the predicted charging power and the predicted discharging power are input into the second layer MPC in the double-layer MPC model to obtain multiple second power control parameter vectors, and the charging objective function and the discharging objective function are iterated until convergence to obtain a third charge and discharge control parameter, including:

[0177] The discharge voltage parameter and the charge and discharge current parameter are compared with the corresponding voltage threshold and current threshold. When the discharge voltage parameter and the charge and discharge current parameter are less than the corresponding voltage threshold and current threshold, the predicted charging power and the predicted discharge power are input into the second layer MPC in the double-layer MPC model to obtain multiple second power control parameter vectors, and the charging objective function and the discharging objective function are iterated until convergence to obtain the third charge and discharge control parameter.

[0178] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above embodiment are implemented:

[0179] When the mobile power source is connected to the power-consuming device and the external power source respectively, the charging state quantity at different times and the discharging state quantity at different times are obtained;

[0180] Construct charging objective function, discharging objective function and charging and discharging constraints;

[0181] The current state of charge and state of discharge are input into the first layer MPC in the double-layer MPC model to obtain the predicted charging power and the predicted discharging power;

[0182] According to the charging objective function and the discharging objective function, the predicted charging power and the predicted discharging power are constrained under charging and discharging constraint conditions, and a rolling optimization solution is performed in the time domain to obtain a plurality of first power control parameter vectors;

[0183] Determine whether the multiple power control parameter vectors meet the preset threshold range. When the multiple power control parameter vectors meet the preset threshold range, input the predicted charging power and the predicted discharging power into the second layer MPC in the double-layer MPC model, perform rolling optimization in the time domain, obtain multiple second power control parameter vectors, iterate the charging objective function and the discharging objective function until convergence, and obtain the third charging and discharging control parameter.

[0184] The charging and discharging power of the mobile power source is controlled by the third charging and discharging control parameter.

[0185] Preferably, the construction of the charging objective function, the discharging objective function and the charging and discharging constraint conditions includes:

[0186] Obtaining the external power supply power, the first predicted time length, and the remaining power of the mobile power supply at different times;

[0187] A charging objective function is established according to the external power source power at different times, the first predicted time length, and the remaining power of the mobile power source, and the charging objective function is as follows;

[0188] ;

[0189] in, is the charging objective function, is the first prediction time length, for External power supply power at the moment, for External power supply power at the moment, for The remaining power of the mobile power bank at the moment, for The remaining power of the mobile power bank at the moment, is the number of power values ​​at different times, is the number of moment values, is an integer.

[0190] Preferably,

[0191] The construction of the charging objective function, the discharging objective function and the charging and discharging constraint conditions includes:

[0192] Obtain the external power supply power, power of the power-consuming device, power of the mobile power supply, the second predicted time length, and the remaining power of the power-consuming device at different times;

[0193] A discharge target function is established according to the external power supply power, the power of the power-consuming device, the power of the mobile power supply, the second predicted time length, and the remaining power of the power-consuming device at different times. The discharge target function is as follows;

[0194] ;

[0195] in, is the discharge objective function, for External power supply power at the moment, for The power of electrical equipment at the moment, for The mobile power supply power at the moment; L is the second predicted time length, and S is the remaining power of the power-consuming equipment.

[0196] Preferably,

[0197] The construction of the charging objective function, the discharging objective function and the charging and discharging constraint conditions includes:

[0198] Obtain the rated charging power of the external power supply, the upper limit of the charging power fluctuation value of the user equipment, the lower limit of the charging power fluctuation value of the user equipment, the power of the power-consuming equipment, the total power change of the power-consuming equipment, the upper limit of the instantaneous power of the mobile power supply, and the total power change of the external power supply;

[0199] Establishing a first charging constraint condition, a second discharging constraint condition, and a third charging and discharging constraint condition according to the rated charging power of the external power source, the upper limit of the charging power fluctuation value of the user equipment, the lower limit of the charging power fluctuation value of the user equipment, the power of the power-consuming device, the total power change of the power-consuming device, the upper limit of the instantaneous power of the mobile power source, and the total power change of the external power source;

[0200] Among them, the first charging constraint condition is:

[0201] ;

[0202] in, Refers to the rated charging power of the external power source;

[0203] The first discharge constraint is:

[0204]

[0205] in, Indicates the lower limit of the charging power fluctuation value of the user device. Indicates the upper limit of the charging power fluctuation value of the user device. for The power of electrical equipment at the moment, for The total power change of electrical equipment at the moment, for The total power change of electrical equipment at the moment, is an integer;

[0206] The second discharge constraint condition includes:

[0207] ;

[0208] in, Indicates the upper limit of the instantaneous power of the mobile power supply; express The total power change of the external power supply at the moment.

[0209] Preferably,

[0210] The step of inputting the current state of charge and the current state of discharge into the first layer MPC in the double-layer MPC model to obtain the predicted charging power and the predicted discharging power includes:

[0211] Performing simulation generation processing on the charge state quantity and discharge state quantity at the current moment to generate multiple sets of simulated charge state quantities and simulated discharge state quantities at different moments;

[0212] The simulated charging state quantity and the simulated discharging state quantity are input into the first layer MPC in the double-layer MPC model to obtain the predicted charging power and the predicted discharging power.

[0213] Preferably,

[0214] The power control parameter vector includes a charge and discharge voltage parameter and a charge and discharge current parameter; the multiple power control parameter vectors are judged to be within a preset threshold range, and when the multiple power control parameter vectors are within the preset threshold range, the predicted charging power and the predicted discharging power are input into the second layer MPC in the double-layer MPC model to obtain multiple second power control parameter vectors, and the charging objective function and the discharging objective function are iterated until convergence to obtain a third charge and discharge control parameter, including:

[0215] The discharge voltage parameter and the charge and discharge current parameter are compared with the corresponding voltage threshold and current threshold. When the discharge voltage parameter and the charge and discharge current parameter are less than the corresponding voltage threshold and current threshold, the predicted charging power and the predicted discharge power are input into the second layer MPC in the double-layer MPC model to obtain multiple second power control parameter vectors, and the charging objective function and the discharging objective function are iterated until convergence to obtain the third charge and discharge control parameter.

[0216] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0217] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0218] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0219] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0220] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0221] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0222] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0223] The above is a detailed introduction to a fast charge and discharge control method of a mobile power supply, a fast charge and discharge control device of a mobile power supply, a mobile power supply and a computer-readable storage medium provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technicians in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A method for controlling rapid charge and discharge of a mobile power source, characterized in that: The mobile power source is connected to the power-consuming device and the external power source respectively; the method comprises: When the mobile power source is connected to the power-consuming device and the external power source respectively, the charging state quantity at different times and the discharging state quantity at different times are obtained; Construct charging objective function, discharging objective function and charging and discharging constraints; The current state of charge and state of discharge are input into the first layer MPC in the double-layer MPC model to obtain the predicted charging power and the predicted discharging power; According to the charging objective function and the discharging objective function, the predicted charging power and the predicted discharging power are constrained under charging and discharging constraint conditions, and a rolling optimization solution is performed in the time domain to obtain a plurality of first power control parameter vectors; Determine whether the multiple power control parameter vectors meet the preset threshold range. When the multiple power control parameter vectors meet the preset threshold range, input the predicted charging power and the predicted discharging power into the second layer MPC in the double-layer MPC model, perform rolling optimization in the time domain, obtain multiple second power control parameter vectors, iterate the charging objective function and the discharging objective function until convergence, and obtain the third charging and discharging control parameter. Controlling the charging and discharging power of the mobile power source by means of the third charging and discharging control parameter; The construction of the charging objective function, the discharging objective function and the charging and discharging constraint conditions includes: Obtaining the external power supply power, the first predicted time length, and the remaining power of the mobile power supply at different times; A charging objective function is established according to the external power source power at different times, the first predicted time length, and the remaining power of the mobile power source, and the charging objective function is as follows; Where D1 is the charging objective function, M is the first prediction time length, P w (k+i) is the external power supply power at time k+i, P w (k+i+1) is the external power supply power at time k+i+1, SOE(k+i+1) is the remaining power of the mobile power supply at time k+i+1, SOE(k+i) is the remaining power of the mobile power supply at time k+i, N is the number of power values ​​at different times, k is the number of time values, and i is an integer; The construction of the charging objective function, the discharging objective function and the charging and discharging constraint conditions includes: Obtaining the external power supply power, the power of the power-consuming device, the power of the mobile power supply, the second predicted time length, and the remaining power of the power-consuming device at different times; A discharge target function is established according to the external power supply power, the power of the power-consuming device, the power of the mobile power supply, the second predicted time length, and the remaining power of the power-consuming device at different times. The discharge target function is as follows; Wherein, D2 is the discharge objective function, Pw(k+i) is the external power supply power at time k+i, Py(k+i) is the power of the power consumption device at time k+i, Pl(k+i) is the mobile power supply power at time k+i; L is the second prediction time length, S is the remaining power of the power consumption device; The construction of the charging objective function, the discharging objective function and the charging and discharging constraint conditions includes: Obtain the rated charging power of the external power supply, the upper limit of the charging power fluctuation value of the user equipment, the lower limit of the charging power fluctuation value of the user equipment, the power of the power-consuming equipment, the total power change of the power-consuming equipment, the upper limit of the instantaneous power of the mobile power supply, and the total power change of the external power supply; Establishing a first charging constraint condition, a second discharging constraint condition, and a third charging and discharging constraint condition according to the rated charging power of the external power source, the upper limit of the charging power fluctuation value of the user equipment, the lower limit of the charging power fluctuation value of the user equipment, the power of the power-consuming device, the total power change of the power-consuming device, the upper limit of the instantaneous power of the mobile power source, and the total power change of the external power source; Among them, the first charging constraint condition is: -Pb≤Pl(k+i)≤Pb; Among them, P b Refers to the rated charging power of the external power source; The first discharge constraint is: Wherein, Pmin represents the lower limit of the charging power fluctuation value of the user equipment, Pmax represents the upper limit of the charging power fluctuation value of the user equipment, Py(k+i) is the power of the electric device at time k+i, ΔPy(k+j) is the total power change of the electric device at time k+j, ΔPy(k+i) is the total power change of the electric device at time k+i, and j is an integer; The second discharge constraint condition includes: ΔPw(k+i)≤Ps-Pw(k+i); Wherein, Ps represents the upper limit of the instantaneous power of the mobile power supply; ΔPw(k+i) represents the total power change of the external power supply at time k+i; The step of inputting the current state of charge and the current state of discharge into the first layer MPC in the double-layer MPC model to obtain the predicted charging power and the predicted discharging power includes: Performing simulation generation processing on the charge state quantity and discharge state quantity at the current moment to generate multiple sets of simulated charge state quantities and simulated discharge state quantities at different moments; The simulated charging state quantity and the simulated discharging state quantity are input into the first layer MPC in the double-layer MPC model to obtain the predicted charging power and the predicted discharging power.

2. The rapid charge and discharge control method of a mobile power source according to claim 1, characterized in that: The power control parameter vector includes a charge and discharge voltage parameter and a charge and discharge current parameter; the multiple power control parameter vectors are judged to be within a preset threshold range, and when the multiple power control parameter vectors are within the preset threshold range, the predicted charging power and the predicted discharging power are input into the second layer MPC in the double-layer MPC model to obtain multiple second power control parameter vectors, and the charging objective function and the discharging objective function are iterated until convergence to obtain a third charge and discharge control parameter, including: The discharge voltage parameter and the charge and discharge current parameter are compared with the corresponding voltage threshold and current threshold. When the discharge voltage parameter and the charge and discharge current parameter are less than the corresponding voltage threshold and current threshold, the predicted charging power and the predicted discharge power are input into the second layer MPC in the double-layer MPC model to obtain multiple second power control parameter vectors, and the charging objective function and the discharging objective function are iterated until convergence to obtain the third charge and discharge control parameter.

3. A fast charge and discharge control device for executing the fast charge and discharge control method of a mobile power source according to any one of claims 1 to 2, characterized in that: The mobile power source is connected to the power-consuming equipment and the external power source respectively; the device comprises: The state quantity acquisition module is used to obtain the charging state quantity at different times and the discharging state quantity at different times when the mobile power supply is connected to the power-consuming device and the external power supply respectively; A construction module is used to construct a charging objective function, a discharging objective function and charging and discharging constraints; The first input module is used to input the current state of charge and the state of discharge into the first layer MPC in the double-layer MPC model to obtain the predicted charging power and the predicted discharging power; A first solving module, configured to constrain the predicted charging power and the predicted discharging power under charging and discharging constraint conditions according to the charging objective function and the discharging objective function, perform rolling optimization solving in the time domain, and obtain a plurality of first power control parameter vectors; A second input module is used to determine whether the multiple power control parameter vectors meet the preset threshold range. When the multiple power control parameter vectors meet the preset threshold range, the predicted charging power and the predicted discharging power are input into the second layer MPC in the double-layer MPC model, and a rolling optimization solution is performed in the time domain to obtain multiple second power control parameter vectors, and the charging objective function and the discharging objective function are iterated until convergence to obtain a third charging and discharging control parameter; The control module is used to control the charging and discharging power of the mobile power supply through the third charging and discharging control parameter.

4. A mobile power supply, comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method for controlling rapid charge and discharge of a mobile power source according to any one of claims 1 to 2 are implemented.

5. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for controlling rapid charge and discharge of a mobile power source according to any one of claims 1 to 2 are implemented.

Citation Information

Patent Citations

  • Independent energy storage charging and discharging method and device considering distributed photovoltaic bearing capacity

    CN117767365A