Power control method and device, equipment, storage medium and program product
By determining the offset in the energy management system and determining the allocated power based on the target power control strategy, the system instability problem caused by inaccurate power control in the existing technology is solved, and higher power control accuracy and system stability are achieved. .
Patent Information
- Application Number
- CN202411347595.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-25
- Publication Date
- 2025-01-14
AI Technical Summary
In power control, the existing energy management system issuing instructions frequently and the system is unstable due to inaccurate power control instructions.
By introducing an offset determination module into the energy management system, if the power error of the current control cycle is less than the set threshold, the offset of the current control cycle is determined, and the current allocation is determined based on the set target power control strategy and offset. power.
It improves the accuracy of power control of the energy management system, reduces the number of frequent power control instructions issued, and thereby improves the stability of the system.
Smart Images

Figure CN119315557A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of energy control technology, and in particular to a power control method, device, equipment, storage medium and program product. Background Art
[0002] With the development of virtual power plants, demand-side response and spot trading often require dispatching and controlling the controllable loads in the park to execute the target power curve. The existing technology implementation method is to issue power control instructions to different types of controllable loads distributed at multiple points through the Energy Management System (EMS), and then wait for the controllable loads to execute according to the power. During the control process of the EMS system, due to inaccurate power control instructions issued, it is easy to issue power control instructions frequently, resulting in instability of the EMS system. Summary of the invention
[0003] The present invention provides a power control method, device, equipment, storage medium and program product, which can improve the accuracy of power control of an energy management system, thereby improving the stability of the energy management system.
[0004] In the first aspect, an embodiment of the present disclosure provides a power control method, including: if a current power error corresponding to a current control cycle is less than a set power error threshold, determining the offset of the current control cycle; wherein the current power error is the power error between the target total power of the energy management system and the actual total power fed back by each load corresponding to the previous control cycle; determining the current allocated power corresponding to the current control cycle based on the set target power control strategy and the offset of the current control cycle; wherein the current allocated power is the power allocated to each load, and the power of each load is the current allocated power; determining the power error between the actual total power corresponding to the current allocated power and the target total power, and using it as the power error for the next control cycle.
[0005] In the second aspect, the embodiment of the present disclosure also provides a power control device, including: an offset determination module, used to determine the offset of the current control cycle if the current power error corresponding to the current control cycle is less than the set power error threshold; wherein the current power error is the power error between the target total power of the energy management system and the actual total power fed back by each load corresponding to the previous control cycle; a current allocated power determination module, used to determine the current allocated power corresponding to the current control cycle based on the set target power control strategy and the offset of the current control cycle; wherein the current allocated power is the power allocated to each load, and the power of each load is the current allocated power; a power error determination module, used to determine the power error between the actual total power corresponding to the current allocated power and the target total power, and use it as the power error for the next control cycle.
[0006] In a third aspect, an embodiment of the present disclosure further provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the power control method as described in the embodiment of the present disclosure.
[0007] In a fourth aspect, an embodiment of the present disclosure further provides a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute the power control method as described in the embodiment of the present disclosure.
[0008] In a fifth aspect, an embodiment of the present disclosure further provides a computer program product, including a computer program, which implements the power control method as described in the embodiment of the present disclosure when executed by a processor.
[0009] The technical solution of the disclosed embodiment is as follows: if the current power error corresponding to the current control cycle is less than the set power error threshold, then the offset of the current control cycle is determined; wherein the current power error is the power error between the target total power of the energy management system and the actual total power fed back by each load corresponding to the previous control cycle; the current allocated power corresponding to the current control cycle is determined based on the set target power control strategy and the offset of the current control cycle; wherein the current allocated power is the power allocated to each load, and the power of each load is the current allocated power; the power error between the actual total power corresponding to the current allocated power and the target total power is determined, and used as the power error for the next control cycle. The disclosed embodiment can solve the problem of low power control accuracy of the energy management system in the prior art by determining the current allocated power corresponding to the current control cycle based on the set target power control strategy and the offset of the current control cycle, and can improve the accuracy of determining the current allocated power, thereby improving the accuracy of power control of the energy management system, and further improving the stability of the energy management system. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0011] Figure 1 A schematic diagram of a power control method provided by an embodiment of the present invention;
[0012] Figure 2 A physical topology diagram provided for an embodiment of the present invention;
[0013] Figure 3 A time domain topology diagram provided by an embodiment of the present invention;
[0014] Figure 4 An initial frequency domain control block diagram provided by an embodiment of the present invention;
[0015] Figure 5 A block diagram of target frequency domain control of load i provided in an embodiment of the present invention;
[0016] Figure 6 A schematic flow chart of another power control method provided by an embodiment of the present invention;
[0017] Figure 7 A schematic diagram of the structure of a power control device provided by an embodiment of the present disclosure;
[0018] Figure 8The present invention is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0019] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0020] It should be understood that the various steps recorded in the method implementation of the present disclosure can be performed in different orders and / or in parallel. In addition, the method implementation may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect. The term "including" and its variations used herein are open inclusions, that is, "including but not limited to". It should be noted that the concepts of "first", "second", etc. mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units. It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative and not restrictive, and those skilled in the art should understand that unless otherwise clearly stated in the context, it should be understood as "one or more". It is understandable that the data involved in the present technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of the corresponding laws, regulations and relevant provisions.
[0021] Figure 1 The present invention provides a flow chart of a power control method. The present invention is applicable to the case where an energy management system performs power control on each load. The method can be executed by a power control device, which can be implemented in the form of software and / or hardware. Optionally, it can be implemented by an electronic device, which can be a mobile terminal, a PC or a server, an EMS system, etc. Figure 1 As shown, the method includes:
[0022] S110: If the current power error corresponding to the current control cycle is less than the set power error threshold, determine the offset of the current control cycle.
[0023] The current power error is the power error between the target total power of the energy management system and the actual total power fed back by each load corresponding to the previous control cycle. In this embodiment, there is no specific restriction on setting the power error threshold, for example, it can be 0.2, 0.1, etc.
[0024] The target total power can be understood as the sum of the power required by all loads. The actual total power can be understood as the sum of the actual power of all loads. There are many types of loads, which are not limited in this implementation, such as energy storage, charging piles, air conditioning, cold storage, heat storage, electric vehicles, etc.
[0025] In this embodiment, the offset of the current control cycle can be determined by a variety of optimization algorithms. This embodiment does not limit the specific optimization algorithm, for example, it can be a particle swarm algorithm introducing Gaussian distribution, a genetic algorithm combined with Gaussian mutation, an ant colony algorithm, a machine learning algorithm, etc.
[0026] Optionally, determining the offset of the current control cycle includes: initializing a particle swarm, an individual target offset corresponding to each particle, a global target offset corresponding to the particle swarm, and particle parameters; updating the position information, speed information, individual target offset, and global target offset of each particle according to the following iterative process: determining the current fitness value of each particle; for the individual target offset of any particle, if the current fitness value of the particle is greater than the fitness value of the corresponding individual target offset, updating the position information corresponding to the current fitness value to the individual target offset corresponding to the particle; updating the position information corresponding to the highest fitness value among all updated individual target offsets to the global target offset; updating the position information and speed information of each particle according to the set Gaussian distribution term, the updated individual target offset, the updated global target offset, and the particle parameters; if the number of iterations meets the termination condition, using the global target offset as the offset of the current control cycle.
[0027] Among them, particle parameters can be understood as relevant parameters in the particle swarm algorithm, such as inertia weight, individual learning factor, global learning factor, two random numbers and constraint factor.
[0028] The particle swarm is composed of a plurality of particles, each of which carries corresponding position information and speed information. The plurality of particles in the particle swarm represent a plurality of different loads. The position information represents an offset. In this embodiment, there is no restriction on the termination condition, for example, the number of iterations may be greater than 1000 times, the number of iterations may be greater than 2000 times, etc.
[0029] The current fitness value is a value calculated by a fitness function (i.e., an objective function) for each particle under the current position information, and is used to measure the quality of the current position information. In this embodiment, there is no restriction on the specific calculation method for determining the current fitness value, and any fitness function can be used for calculation to obtain a fitness value, such as a linear function, a quadratic function, a polynomial function, a nonlinear function, etc.
[0030] In this embodiment, in each iteration, each particle needs to update its own individual target offset according to its own current fitness value, and update the global target offset according to the updated individual target offsets of all particles. Each particle updates the position information and speed information of each particle according to its corresponding set Gaussian distribution item, updated individual target offset, updated global target offset and the particle parameters.
[0031] Exemplarily, initially, a particle swarm, an individual target offset corresponding to each particle, a global target offset corresponding to the particle swarm, and particle parameters are initialized.
[0032] For the first iteration: determine the current fitness value of each particle; the individual target offset of each particle is updated as follows: if the current fitness value of the particle is greater than the fitness value of the corresponding individual target offset, then update the position information corresponding to the current fitness value to the individual target offset corresponding to the particle; update the position information corresponding to the highest fitness value among all updated individual target offsets to the global target offset; update the position information and speed information of each particle in the next iteration according to the set Gaussian distribution item, the updated individual target offset, the updated global target offset and the particle parameters; since the number of iterations is 1 and the maximum number of iterations is not reached, continue to iterate.
[0033] When updating the position and velocity information of each particle, the set Gaussian distribution item and the updated individual target offset of each particle are different, and each particle has its own set Gaussian distribution item and individual target offset. The global target offset and particle parameters of each particle are the same.
[0034] For the second iteration: determine the current fitness value of each particle; the individual target offset of each particle is updated as follows: if the current fitness value of the particle is greater than the fitness value of the corresponding individual target offset, then update the position information corresponding to the current fitness value to the individual target offset corresponding to the particle; update the position information corresponding to the highest fitness value among all updated individual target offsets to the global target offset; update the position information and speed information of each particle in the next iteration according to the set Gaussian distribution item, the updated individual target offset, the updated global target offset and the particle parameters; since the number of iterations is 2, the maximum number of iterations has not been reached, and the iteration continues.
[0035] And so on, until the number of iterations reaches the maximum number of iterations, the iterations are stopped, and the global target offset corresponding to the maximum number of iterations is used as the offset of the current control cycle.
[0036] In this embodiment, when the particle algorithm is used to perform optimization calculation on the offset of the current control cycle, the position information and speed information of each particle are updated according to the set Gaussian distribution items, the updated individual target offset, the updated global target offset and the particle parameters, so that the offset can be taken according to the Gaussian distribution, thereby improving the optimization efficiency and the global search capability.
[0037] Optionally, the position information and speed information of each particle are updated according to the set Gaussian distribution item, the updated individual target offset, the updated global target offset and the particle parameters, including: for the current iteration, determining the speed factor of each particle for the current iteration according to the set Gaussian distribution item, the speed information of each particle for the current iteration and the initial offset of the current control cycle; updating the speed information of each particle for the next iteration according to the speed factor, the position information of each particle for the current iteration, the updated individual target offset, the updated global target offset and the particle parameters; updating the position information of each particle for the next iteration according to the position information of each particle for the current iteration and the speed information of each particle for the next iteration.
[0038] Exemplarily, for the current iteration, the calculation formula for updating the position information and velocity information of each particle in the next iteration is as follows:
[0039]
[0040] Wherein, f(x) represents the Gaussian distribution term, μ represents the initial offset of the current control cycle, and μ=τ p-i ,σ=1; where τ p-i =τ i ca +τ j sc ; μ remains unchanged during the iteration process. i represents the load, j represents the communication mode. Each particle in the particle swarm represents a different load, d represents the search target space in the particle swarm algorithm, d = 1, is the velocity information of particle i corresponding to the current iteration, represents the speed factor, Represents the velocity information of particle i corresponding to the next iteration, is the position information of particle i corresponding to the current iteration, represents the position information of particle i corresponding to the next iteration, is the updated global target offset corresponding to the current iteration, represents the updated individual target offset of particle i corresponding to the current iteration, w represents the inertia weight, c1 represents the individual learning factor, and c2 represents the global learning factor. r1 and r2 represent random numbers in (0,1), and α is called the constraint factor.
[0041] The number of i is 6, and the number of j is 5. Table 1 shows τ i ca Load execution delay table, Table 2 is τ j sc Network transmission delay table. For example, τ1 ca Indicates that the energy storage load execution delay is 50 milliseconds; τ1 sc Indicates that the Ethernet switch network transmission delay is 1 millisecond.
[0042] Table 1 τ i ca Load execution delay
[0043] Serial number Load Type Execution delay unit 1 Energy Storage 50 millisecond 2 Electric Vehicles 1 Second 3 Central air conditioning 1 minute 4 Thermal storage 5 minute 5 Cold storage 5 minute 6 other 10 minute
[0044] Table 2 τ j sc Network transmission delay
[0045] Serial number Communication Network transmission delay unit 1 Ethernet Switch 1 millisecond 2 Fiber Optic Switches 1 millisecond 3 4G Gateway 100 millisecond 4 485 Gateway 100 millisecond 5 other 1 Second
[0046] In this embodiment, the speed factor of each particle is determined according to the set Gaussian distribution item and the initial offset of the current control cycle; the speed information of each particle for the next iteration is updated according to the speed factor; the position information of each particle for the next iteration is updated according to the position information of each particle in the current iteration and the updated speed information of each particle, so that the offset can be taken according to the Gaussian distribution, thereby improving the efficiency of optimization and the global search capability.
[0047] S120: Determine the current allocated power corresponding to the current control period based on the set target power control strategy and the offset of the current control period.
[0048] The target power control strategy is set to determine the power to be allocated to each load. The currently allocated power is the power allocated to each load, and the power of each load is the currently allocated power.
[0049] In this embodiment, the specific implementation process of setting the target power control strategy is as follows: the target estimated value of the target control cycle is determined by using the current control cycle and the offset of the current control cycle. Subsequently, the current estimated value of the current control cycle is obtained by combining the historical allocated power of the previous control cycle, the historical estimated value, and the target estimated value. Finally, the current allocated power of the current control cycle is determined by combining the historical allocated power of the previous control cycle, the historical power error of the previous control cycle, the historical estimated value of the previous control cycle, and the current power error of the current control cycle, so as to achieve accurate adjustment of the power grid.
[0050] Optionally, a method for determining a target power control strategy includes: obtaining a time domain topology diagram in response to a conversion operation on a physical topology diagram; wherein the physical topology diagram is composed of multiple loads, multiple measuring points, an energy management system, and a power grid; the power grid is used to deliver power to the multiple loads, and the energy management system is used to control the power sent by the power grid to each load; the measuring points are used to detect the power of the corresponding loads; wherein the time domain topology diagram is a topology diagram constructed according to the time dimension for the multiple loads, the multiple measuring points, the energy management system, and the power grid; in response to a conversion operation on the time domain topology diagram, obtaining an initial frequency domain control block diagram; in response to an addition operation on a target estimator of the initial frequency domain control block diagram, obtaining a target frequency domain control block diagram corresponding to each load; wherein the target estimator includes a network transmission delay for the energy management system to transmit the allocated power to each load and an execution delay for the corresponding load to consume the allocated power; in response to a superposition operation on the target frequency domain control block diagram corresponding to each load, obtaining a target frequency domain control strategy; in response to a discrete operation on the target frequency domain control strategy, obtaining a set target power control strategy.
[0051] Exemplarily, the physical topology diagram is composed of multiple loads, multiple measuring points, an energy management system, and a power grid; the power grid is used to transmit power to the multiple loads, the energy management system is used to control the power sent by the power grid to each load; and the measuring points are used to detect the power of the corresponding load. Figure 2 As shown, Figure 2 A physical topology diagram provided for an embodiment of the present invention. Figure 2 The system includes N+1 measuring points, and the corresponding loads include N. The measuring points can be understood as electric meters or measurement and control devices.
[0052] Exemplarily, in response to the conversion operation of the physical topology diagram, a time domain topology diagram is obtained; wherein the time domain topology diagram is a topology diagram constructed according to the time dimension for the multiple loads, the multiple measurement points, the energy management system, and the power grid. Figure 3 As shown, Figure 3 This is a time domain topology diagram provided by an embodiment of the present invention. It can be seen that each load has a corresponding execution delay and network transmission delay. 实际 -i is the actual power of load i, P 目标 -i is the target power of load i, T 执行 -i is the execution delay of the load to execute the power instruction; T 网络 -i is the network transmission delay of the control command.
[0053] Exemplarily, in response to the conversion operation of the time domain topology diagram, an initial frequency domain control block diagram is obtained. The initial frequency domain control block diagram can be understood as control block diagram modeling, specifically, control block diagram modeling of a single control loop based on the time domain topology diagram. Figure 4 As shown, Figure 4 This is a block diagram of initial frequency domain control provided by an embodiment of the present invention.
[0054] Figure 4 Medium R i (s) is P 目标-i Mathematical expression in frequency domain, Y i (s) is P 实际 -i is the mathematical expression in the frequency domain, E(s) and U(s) represent the frequency domain representation of the power error and the control signal respectively, G C-i (s) is the initial EMS control algorithm corresponding to load i, G p-i (s) is the modeling transfer function of load i. 网络 -i Model (convert) to e -τsc-is , T 执行-i Modeling (conversion) to e -τca-is .
[0055] At this time, the closed-loop transfer function of the EMS system is:
[0056]
[0057] In actual projects, the load is mostly manifested as a first-order system in terms of control characteristics, so the transfer function of the actuator G p (s ) It is expressed as follows:
[0058]
[0059] Since the goal of the EMS system is to follow the target total power, the control effect requires a short balanced control cycle and small overshoot. C (s) can use (ProportionIntegral Differential, PID algorithm), with K p 、T d 、T i They correspond to the proportional gain, differential time constant and integral time constant respectively, and the transfer function is as follows: After simulation calculation and empirical parameter adjustment based on first-order control system modeling, K can be selected. p =23.74, T d =0.28, T i =2.02.
[0060] Exemplarily, in response to the operation of adding the target predictor to the initial frequency domain control block diagram, the target frequency domain control block diagram corresponding to each load is obtained; wherein the target predictor includes the network transmission delay of the energy management system to transmit the allocated power to each load and the execution delay of the corresponding load consuming the allocated power. Since the load and network environment may cause changes in the delay link due to equipment aging and other reasons during actual operation, and the traditional Smith Predictor (compensation) control (Smith Predictor, Smith Predictor) has high modeling requirements and cannot be applied to changing dynamic models, it is necessary to perform dynamic performance tuning on the traditional predictor. Assume τ p-i =τ ca-i +τ sc-i Represents the total system delay (also known as the initial offset of the current control cycle). The control block diagram of adding the target estimator in this embodiment is equivalent to Figure 5 As shown, Figure 5 The target frequency domain control block diagram of load i provided by the embodiment of the present invention. C(s) represents the transfer function of the EMS system. Different from the traditional estimator τ p-i For quantitative analysis, in this embodiment, τ p-i is a variable and needs to be calculated by optimization. Therefore, the closed-loop transfer function of the EMS system with the target estimator added is:
[0061]
[0062] Exemplarily, in response to the superposition operation of the target frequency domain control block diagram corresponding to each load, the target frequency domain control strategy is obtained. For the entire EMS system, it can be equivalent to the superposition of the control loops (target frequency domain control block diagrams) of N loads. That is, the overall control closed-loop transfer function of the EMS system (which can be understood as the target frequency domain control strategy) is:
[0063]
[0064] Exemplarily, in response to the discrete operation of the target frequency domain control strategy, the target power control strategy is set. In the above formula, the overall control closed-loop transfer function of the EMS system is the frequency domain expression of the EMS system, and the EMS system actually operates in a discrete control strategy, so the transfer function needs to be discretized. Based on the first-order backward difference method in control theory, the control algorithm in the EMS in the embodiment of the present invention (that is, the calculation formula corresponding to the target power control strategy) is obtained as follows:
[0065] u(k)=u(k-1)+0.076e(k)-0.21e(k-1)-0.097c(k)+0.005c(k-1)
[0066] The calculation formula corresponding to the target power control strategy is set to determine the calculation formula for the current allocated power corresponding to the current control period.
[0067] In this embodiment, a target power control strategy for setting a target estimator is added so that the target power control strategy takes into account network transmission delay and load execution delay, which can improve the accuracy of determining the current estimated value corresponding to the current control cycle and the accuracy of determining the current allocated power corresponding to the current control cycle.
[0068] Optionally, the current allocated power corresponding to the current control cycle is determined based on the set target power control strategy and the offset of the current control cycle, including: obtaining the historical power error corresponding to each load in the previous control cycle, the historical allocated power corresponding to the previous control cycle, and the historical estimated value corresponding to the previous control cycle; the estimated value is the estimated value output by the target estimator, which is used to adjust the current allocated power; determining the target estimated value corresponding to each load in the target control cycle according to the current control cycle and the offset of the current control cycle; determining the current estimated value corresponding to each load in the current control cycle based on the historical allocated power corresponding to each load, the historical estimated value, and the target estimated value; determining the current allocated power corresponding to the current control cycle based on the historical allocated power, the current power error, the historical power error, the current estimated value, and the historical estimated value.
[0069] The target estimator can be used to estimate and compensate for the delay in the energy management system, that is, to solve the delay problem in the energy management system. The delay includes network transmission delay and load execution delay.
[0070] For network transmission delay, the control instructions (carrying allocated power) sent by the energy management system to each load may be transmitted through multiple transmission media such as Ethernet and optical fiber, and the data transmission rates of different media vary greatly. In addition, the gateways, switches and other devices that the control instructions may pass through also have different degrees of delay. Network transmission delay can also be understood as the network transmission delay of the energy management system to transmit the allocated power to each load. For load execution delay, the time to respond to the control instructions of the energy management system is different. For example, the response time of the energy storage load can reach milliseconds, the response time of electric vehicles can reach seconds, and the response time of air conditioning loads can reach minutes. Load execution delay can also be understood as the delay of the load responding to the control instruction to consume the allocated power. Among them, the control instruction carries the allocated power of the corresponding load and the specific instructions of the corresponding load. The specific instructions may include start, stop, adjust, etc. This embodiment does not limit this and can be determined according to the specific load.
[0071] The historical power error is the power error between the target total power of the energy management system and the actual total power fed back by each load corresponding to the previous control cycle (the second control cycle before the current control cycle).
[0072] In this embodiment, the core of the energy management system controlling power is to reduce the gap between the actual total power and the target total power by continuously adjusting the allocated power in each control cycle.
[0073] In this embodiment, the historical power error corresponding to each load in the previous control cycle, the historical allocated power corresponding to the previous control cycle, and the historical estimated value corresponding to the previous control cycle are obtained; wherein the estimated value is the estimated value output by the target estimator, which is used to adjust the current allocated power. The historical estimated value is the historical estimated value output by the target estimator when calculating the allocated power of the previous control cycle.
[0074] In this embodiment, the target control cycle can be obtained according to the current control cycle and the offset of the current control cycle. For example, the current control cycle is k. If the offset of the current control cycle is 1, the target control cycle can be k-1. If the offset of the current control cycle is 2, the target control cycle can be k-2. After obtaining the target control cycle, the target estimated value corresponding to the target control cycle can be obtained through the target estimator.
[0075] In this embodiment, the target estimator specifically calculates the current estimated value corresponding to the current control cycle as follows: for each load, the estimated value of the corresponding load is calculated based on the corresponding historical allocated power, the historical estimated value and the target estimated value, the estimated value of each load is accumulated and summed, and the accumulated sum value is used as the current estimated value corresponding to the current control cycle.
[0076] In this embodiment, calculation is performed based on the historical allocated power, the current power error, the historical power error, the current estimated value and the historical estimated value in combination with corresponding weight parameters, and the final calculation result is the current allocated power corresponding to the current control period.
[0077] In this embodiment, the target estimated value corresponding to each load in the target control cycle is determined based on the current control cycle and the offset of the current control cycle; the current estimated value corresponding to each load in the current control cycle is determined based on the historical allocated power, the historical estimated value and the target estimated value corresponding to each load; the current allocated power corresponding to the current control cycle is determined based on the historical allocated power, the current power error, the historical power error, the current estimated value and the historical estimated value, which takes into account the network transmission delay and the load execution delay, so that the power allocated by the energy management system can be more accurate, thereby reducing the number of times the energy management system issues control instructions and improving the stability of the energy management system.
[0078] Optionally, the current estimated value corresponding to each load in the current control cycle is determined based on the historical allocated power, the historical estimated value and the target estimated value corresponding to each load, including: for each load, determining the estimated value corresponding to the load based on the historical allocated power corresponding to the load and the corresponding first parameter, the historical estimated value corresponding to the load and the corresponding second parameter, the target estimated value corresponding to the load and the corresponding third parameter; and accumulating and summing the estimated values corresponding to all loads to obtain the current estimated value corresponding to the current control cycle.
[0079] The first parameter is the coefficient of the historical allocated power, the second parameter is the coefficient of the historical estimated value, and the third parameter is the coefficient of the target estimated value.
[0080] Exemplarily, the first parameter is 1.82, the second parameter is 0.09, and the third parameter is 0.33. The formula for calculating the current estimated value corresponding to the current control period by the target estimator is:
[0081]
[0082] Among them, k-τ p-i represents the target control period, 3c(k-τ p-i ) represents the target estimated value, c(k-1) represents the historical estimated value, and u(k-1) represents the historical allocated power. i represents the load, and N is the total number of loads. c(k) represents the current estimated value.
[0083] In this embodiment, the accuracy of determining the current estimated value corresponding to the current control period can be improved by calculating the current estimated value corresponding to the current control period by a target estimator that takes into account network transmission delay and load execution delay.
[0084] Optionally, the current allocated power corresponding to the current control cycle is determined based on the historical allocated power, the current power error, the historical power error, the current estimated value and the historical estimated value, including: determining the current allocated power corresponding to the current control cycle based on the historical allocated power, the current power error and the corresponding fourth parameter, the historical power error and the corresponding fifth parameter, the current estimated value and the corresponding sixth parameter, the historical estimated value and the corresponding seventh parameter.
[0085] Among them, the fourth parameter is the coefficient of the current power error, the fifth parameter is the coefficient of the historical power error, the sixth parameter is the coefficient of the current estimated value, and the seventh parameter is the coefficient of the historical estimated value.
[0086] Exemplarily, the fourth parameter is 0.076, the fifth parameter is 0.21, the sixth parameter is 0.097, and the seventh parameter is 0.005. The calculation formula for determining the current allocated power corresponding to the current control period is:
[0087] u(k)=u(k-1)+0.076e(k)-0.21e(k-1)-0.097c(k)+0.005c(k-1)
[0088] Among them, u(k) represents the current allocated power corresponding to the current control cycle, which can also be understood as the power instruction output by setting the target power control strategy combined with the offset of the current control cycle, u(k-1) represents the historical allocated power, e(k) represents the current power error, e(k-1) represents the historical power error, c(k) represents the current estimated value, and c(k-1) represents the historical estimated value.
[0089] In this embodiment, the method of determining the current allocated power corresponding to the current control cycle is based on the historical allocated power, the current power error and the corresponding fourth parameter, the historical power error and the corresponding fifth parameter, the current estimated value and the corresponding sixth parameter, and the historical estimated value and the corresponding seventh parameter. Since the current estimated value takes into account the network transmission delay and the load execution delay, the accuracy of determining the current allocated power can be improved, thereby making the power allocated by the energy management system more accurate.
[0090] S130: Determine a power error between the actual total power corresponding to the currently allocated power and the target total power, and use the error as the power error for the next control cycle.
[0091] In this embodiment, the energy management system can allocate the current allocated power to each load, and can collect the actual total power of each load in the current control cycle through the gateway meter, and then calculate the power error between the actual total power corresponding to the current control cycle and the target total power, and use it as the power error of the next control cycle. If the power error is less than the set power error threshold, the next control cycle can be used as the current control cycle, and the execution returns to step S110 to continue. If the power error is greater than or equal to the set power error threshold, the entire process ends.
[0092] The technical solution of the disclosed embodiment is as follows: if the current power error corresponding to the current control cycle is less than the set power error threshold, then the offset of the current control cycle is determined; wherein the current power error is the power error between the target total power of the energy management system and the actual total power fed back by each load corresponding to the previous control cycle; the current allocated power corresponding to the current control cycle is determined based on the set target power control strategy and the offset of the current control cycle; the power error between the actual total power corresponding to the current allocated power and the target total power is determined and used as the power error for the next control cycle. The disclosed embodiment can solve the problem of low power control accuracy of the energy management system in the prior art by determining the current allocated power corresponding to the current control cycle based on the set target power control strategy and the offset of the current control cycle, and can improve the accuracy of determining the current allocated power, thereby improving the accuracy of power control of the energy management system, and further improving the stability of the energy management system.
[0093] Figure 6 This is a flow chart of another power control method provided by an embodiment of the present invention. The embodiment of the present invention is a specific embodiment based on the above-mentioned embodiment of the invention, see Figure 6 The method provided in the embodiment of the present invention specifically includes the following steps:
[0094] S610: If the current power error corresponding to the current control cycle is less than the set power error threshold, determine the offset of the current control cycle.
[0095] The current power error is the power error between the target total power of the energy management system and the actual total power fed back by each load corresponding to the previous control cycle.
[0096] S620, obtaining the historical power error corresponding to each load in the previous control cycle, the historical allocated power corresponding to the previous control cycle, and the historical estimated value corresponding to the previous control cycle.
[0097] The estimated value is an estimated value output by a target estimator and is used to adjust the current allocated power.
[0098] S630: Determine a target estimated value corresponding to each load in a target control cycle according to the current control cycle and the offset of the current control cycle.
[0099] S640. For each load, determine the estimated value corresponding to the load based on the historical allocated power corresponding to the load and the corresponding first parameter, the historical estimated value corresponding to the load and the corresponding second parameter, the target estimated value corresponding to the load and the corresponding third parameter.
[0100] S650. Accumulate and sum the estimated values corresponding to all loads to obtain a current estimated value corresponding to the current control period.
[0101] S660. Determine the current allocated power corresponding to the current control cycle based on the historical allocated power, the current power error and the corresponding fourth parameter, the historical power error and the corresponding fifth parameter, the current estimated value and the corresponding sixth parameter, and the historical estimated value and the corresponding seventh parameter.
[0102] S670: Determine a power error between the actual total power corresponding to the currently allocated power and the target total power, and use the error as the power error for the next control cycle.
[0103] In the disclosed embodiments, a target estimated value corresponding to each load in the target control cycle is determined based on the current control cycle and the offset of the current control cycle; a current estimated value corresponding to each load in the current control cycle is determined based on the historical allocated power, the historical estimated value and the target estimated value corresponding to each load; a current allocated power corresponding to the current control cycle is determined based on the historical allocated power, the current power error and the corresponding fourth parameter, the historical power error and the corresponding fifth parameter, the current estimated value and the corresponding sixth parameter, and the historical estimated value and the corresponding seventh parameter. Since the current estimated value takes into account the network transmission delay and the load execution delay, the power allocated by the energy management system can be made more accurate, thereby reducing the number of control instructions issued by the energy management system and improving the stability of the energy management system.
[0104] Figure 7 A schematic diagram of the structure of a power control device provided by an embodiment of the present disclosure is shown in FIG. Figure 7 As shown, the device includes: an offset determination module 710, a current allocated power determination module 720, and a power error determination module 730;
[0105] The offset determination module 710 is used to determine the offset of the current control cycle if the current power error corresponding to the current control cycle is less than the set power error threshold; wherein the current power error is the power error between the target total power of the energy management system and the actual total power fed back by each load corresponding to the previous control cycle;
[0106] The current allocated power determination module 720 is used to determine the current allocated power corresponding to the current control period based on the set target power control strategy and the offset of the current control period; wherein the current allocated power is the power allocated to each load, and the power of each load is the current allocated power;
[0107] The power error determination module 730 is used to determine the power error between the actual total power corresponding to the current allocated power and the target total power, and use it as the power error for the next control cycle.
[0108] The technical solution of the disclosed embodiment is to determine the offset of the current control cycle through an offset determination module if the current power error corresponding to the current control cycle is less than the set power error threshold; wherein the current power error is the power error between the target total power of the energy management system and the actual total power fed back by each load corresponding to the previous control cycle; determine the current allocated power corresponding to the current control cycle through a current allocated power determination module based on the set target power control strategy and the offset of the current control cycle; determine the power error between the actual total power corresponding to the current allocated power and the target total power through a power error determination module, and use it as the power error for the next control cycle. The disclosed embodiment can solve the problem of low power control accuracy of the energy management system in the prior art by determining the current allocated power corresponding to the current control cycle based on the set target power control strategy and the offset of the current control cycle, and can improve the accuracy of determining the current allocated power, thereby improving the accuracy of power control of the energy management system, and further improving the stability of the energy management system.
[0109] Optionally, the offset determination module is specifically used to: initialize a particle swarm, an individual target offset corresponding to each particle, a global target offset corresponding to the particle swarm, and particle parameters; wherein the particle swarm is composed of multiple particles, each particle carries corresponding position information and speed information; the position information represents the offset; the position information, speed information, individual target offset, and global target offset of each particle are updated according to the following iterative process: determine the current fitness value of each particle; wherein the current fitness value is a value calculated by a fitness function for each particle under the current position information, and is used to measure the quality of the current position information; for the individual target offset of any particle, if the current fitness value of the particle is greater than the fitness value of the corresponding individual target offset, the position information corresponding to the current fitness value is updated to the individual target offset corresponding to the particle; the position information corresponding to the highest fitness value among all individual target offsets is updated to the global target offset; the position information and speed information of each particle are updated according to the set Gaussian distribution term, the updated individual target offset, the updated global target offset, and the particle parameters;
[0110] If the number of iterations meets the termination condition, the global target offset is used as the offset of the current control cycle.
[0111] Optionally, the offset determination module is also used to: for the current iteration, determine the speed factor of each particle in the current iteration according to the set Gaussian distribution item, the speed information of each particle in the current iteration, and the initial offset of the current control cycle; update the speed information of each particle in the next iteration according to the speed factor, the position information of each particle in the current iteration, the updated individual target offset, the updated global target offset, and the particle parameters; update the position information of each particle in the next iteration according to the position information of each particle in the current iteration and the speed information of each particle in the next iteration.
[0112] Optionally, the current allocated power determination module is specifically used to: obtain the historical power error corresponding to each load in the previous control cycle, the historical allocated power corresponding to the previous control cycle, and the historical estimated value corresponding to the previous control cycle; the estimated value is the estimated value output by the target estimator, which is used to adjust the current allocated power; determine the target estimated value corresponding to each load in the target control cycle according to the current control cycle and the offset of the current control cycle; determine the current estimated value corresponding to each load in the current control cycle based on the historical allocated power corresponding to each load, the historical estimated value, and the target estimated value; determine the current allocated power corresponding to the current control cycle based on the historical allocated power, the current power error, the historical power error, the current estimated value, and the historical estimated value.
[0113] Optionally, the current allocated power determination module is also used to: for each load, determine the estimated value corresponding to the load based on the historical allocated power corresponding to the load and the corresponding first parameter, the historical estimated value corresponding to the load and the corresponding second parameter, the target estimated value corresponding to the load and the corresponding third parameter; add and sum the estimated values corresponding to all loads to obtain the current estimated value corresponding to the current control cycle; wherein the first parameter is the coefficient of the historical allocated power, the second parameter is the coefficient of the historical estimated value; and the third parameter is the coefficient of the target estimated value.
[0114] Optionally, the current allocated power determination module is also used to determine the current allocated power corresponding to the current control cycle based on the historical allocated power, the current power error and the corresponding fourth parameter, the historical power error and the corresponding fifth parameter, the current estimated value and the corresponding sixth parameter, the historical estimated value and the corresponding seventh parameter; wherein the fourth parameter is the coefficient of the current power error, the fifth parameter is the coefficient of the historical power error, the sixth parameter is the coefficient of the current estimated value, and the seventh parameter is the coefficient of the historical estimated value.
[0115] Optionally, the target power control strategy determination module is specifically used to: obtain a time domain topology diagram in response to a conversion operation on a physical topology structure diagram; wherein the physical topology structure diagram is composed of multiple loads, multiple measuring points, an energy management system and a power grid; the power grid is used to transmit power to the multiple loads, and the energy management system is used to control the power sent by the power grid to each load; the measuring points are used to detect the power of the corresponding loads; wherein the time domain topology diagram is a topology diagram constructed according to the time dimension for the multiple loads, the multiple measuring points, the energy management system and the power grid; in response to the conversion operation on the time domain topology diagram, obtain an initial frequency domain control block diagram; in response to the addition operation of the target estimator of the initial frequency domain control block diagram, obtain the target frequency domain control block diagram corresponding to each load; wherein the target estimator includes the network transmission delay of the energy management system transmitting the allocated power to each load and the execution delay of the corresponding load consuming the allocated power; in response to the superposition operation of the target frequency domain control block diagram corresponding to each load, obtain the target frequency domain control strategy; in response to the discrete operation of the target frequency domain control strategy, obtain the set target power control strategy.
[0116] The power control device provided in the embodiments of the present disclosure can execute the power control method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
[0117] Figure 8A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0118] like Figure 8 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0119] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0120] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as method power control.
[0121] In some embodiments, the method power control may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method power control described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the method power control in any other appropriate manner (e.g., by means of firmware).
[0122] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0123] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0124] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0125] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0126] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0127] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0128] An embodiment of the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements a power control method as provided in any embodiment of the present application.
[0129] In the process of implementation, the computer program product can be written in one or more programming languages or a combination thereof to perform the computer program code of the present invention, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).
[0130] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A power control method, characterized in that: include: If the current power error corresponding to the current control cycle is less than the set power error threshold, the offset of the current control cycle is determined; wherein the current power error is the power error between the target total power of the energy management system and the actual total power fed back by each load corresponding to the previous control cycle; Determine the current allocated power corresponding to the current control cycle based on the set target power control strategy and the offset of the current control cycle; wherein the current allocated power is the power allocated to each load, and the power of each load is the current allocated power; A power error between the actual total power corresponding to the currently allocated power and the target total power is determined and used as the power error for the next control cycle.
2. The method according to claim 1, characterized in that Determining the offset of the current control cycle includes: Initialize a particle swarm, an individual target offset corresponding to each particle, a global target offset corresponding to the particle swarm, and particle parameters; wherein the particle swarm is composed of a plurality of particles, each particle carries corresponding position information and velocity information; the position information represents the offset; The position information, velocity information, individual target offset and global target offset of each particle are updated according to the following iterative process: Determine the current fitness value of each particle; wherein the current fitness value is a value calculated by a fitness function for each particle under the current position information, and is used to measure the quality of the current position information; For the individual target offset of any particle, if the current fitness value of the particle is greater than the fitness value of the corresponding individual target offset, the position information corresponding to the current fitness value is updated to the individual target offset corresponding to the particle; Update the position information corresponding to the highest fitness value among all individual target offsets as the global target offset; Update the position information and velocity information of each particle according to the set Gaussian distribution item, the updated individual target offset, the updated global target offset and the particle parameters; If the number of iterations meets the termination condition, the global target offset is used as the offset of the current control cycle.
3. The method according to claim 2, characterized in that The position information and velocity information of each particle are updated according to the set Gaussian distribution item, the updated individual target offset, the updated global target offset and the particle parameters, including: For the current iteration, determining the speed factor of each particle in the current iteration according to the set Gaussian distribution item, the speed information of each particle in the current iteration, and the initial offset of the current control cycle; Update the speed information of each particle for the next iteration according to the speed factor, the position information of each particle in the current iteration, the updated individual target offset, the updated global target offset and the particle parameter; The position information of each particle in the next iteration is updated according to the position information of each particle in the current iteration and the speed information of each particle in the next iteration.
4. The method according to claim 1, characterized in that: Determining the current allocated power corresponding to the current control period based on the set target power control strategy and the offset of the current control period includes: Obtaining the historical power error corresponding to each load in the previous control cycle, the historical allocated power corresponding to the previous control cycle, and the historical estimated value corresponding to the previous control cycle; the estimated value is the estimated value output by the target estimator, which is used to adjust the current allocated power; Determining a target estimated value corresponding to each load under a target control cycle according to the current control cycle and the offset of the current control cycle; wherein the target control cycle of each load is different; Determine a current estimated value corresponding to each load in the current control cycle based on the historical allocated power, the historical estimated value, and the target estimated value corresponding to each load; wherein the current estimated value of each load is the same; The current allocated power corresponding to the current control cycle is determined based on the historical allocated power, the current power error, the historical power error, the current estimated value, and the historical estimated value.
5. The method according to claim 4, characterized in that Determining a current estimated value corresponding to each load in the current control cycle based on the historical allocated power, the historical estimated value, and the target estimated value corresponding to each load includes: For each load, an estimated value corresponding to the load is determined based on the historical allocated power corresponding to the load and the corresponding first parameter, the historical estimated value corresponding to the load and the corresponding second parameter, the target estimated value corresponding to the load and the corresponding third parameter; wherein the first parameter is a coefficient of the historical allocated power, the second parameter is a coefficient of the historical estimated value; and the third parameter is a coefficient of the target estimated value; The estimated values corresponding to all loads are accumulated and summed to obtain a current estimated value corresponding to the current control period.
6. The method according to claim 4, characterized in that Determining the current allocated power corresponding to the current control period based on the historical allocated power, the current power error, the historical power error, the current estimated value, and the historical estimated value includes: The current allocated power corresponding to the current control cycle is determined based on the historical allocated power, the current power error and the corresponding fourth parameter, the historical power error and the corresponding fifth parameter, the current estimated value and the corresponding sixth parameter, the historical estimated value and the corresponding seventh parameter; wherein the fourth parameter is the coefficient of the current power error, the fifth parameter is the coefficient of the historical power error, the sixth parameter is the coefficient of the current estimated value, and the seventh parameter is the coefficient of the historical estimated value.
7. The method according to claim 1, characterized in that The method for determining the target power control strategy is set, including: In response to the conversion operation of the physical topology diagram, a time domain topology diagram is obtained; wherein the physical topology diagram is composed of a plurality of loads, a plurality of measuring points, an energy management system and a power grid; the power grid is used to transmit power to the plurality of loads, the energy management system is used to control the power sent by the power grid to each load; the measuring points are used to detect the power of the corresponding loads; wherein the time domain topology diagram is a topology diagram constructed according to the time dimension for the plurality of loads, the plurality of measuring points, the energy management system and the power grid; In response to the conversion operation on the time domain topology diagram, an initial frequency domain control block diagram is obtained; In response to the operation of adding a target estimator to the initial frequency domain control block diagram, a target frequency domain control block diagram corresponding to each load is obtained; wherein the target estimator includes a network transmission delay of the energy management system transmitting the allocated power to each load and an execution delay of the corresponding load consuming the allocated power; In response to the superposition operation of the target frequency domain control block diagram corresponding to each load, a target frequency domain control strategy is obtained; In response to discrete operations on the target frequency domain control strategy, a set target power control strategy is obtained.
8. A power control device, characterized in that: include: An offset determination module, used to determine the offset of the current control cycle if the current power error corresponding to the current control cycle is less than a set power error threshold; wherein the current power error is the power error between the target total power of the energy management system and the actual total power fed back by each load corresponding to the previous control cycle; A current allocated power determination module, used to determine the current allocated power corresponding to the current control period based on the set target power control strategy and the offset of the current control period; wherein the current allocated power is the power allocated to each load, and the power of each load is the current allocated power; The power error determination module is used to determine the power error between the actual total power corresponding to the currently allocated power and the target total power, and use it as the power error for the next control cycle.
9. An electronic device, characterized in that: The electronic device comprises: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the power control method as described in any one of claims 1 to 7.
10. A storage medium comprising computer executable instructions, wherein the computer executable instructions are used to perform the power control method according to any one of claims 1 to 7 when executed by a computer processor.
11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the computer program implements the power control method according to any one of claims 1 to 7.