Virtual power plant electric energy scheduling optimization algorithm
Through the combination of ant colony coordination algorithm and standardized protocols, the problem of lack of classification processing in the virtual power plant dispatching method is solved, more efficient processing of peak load tasks and the improvement of the operating efficiency of the virtual power plant are achieved, and the ability to adapt to changes in the power market is achieved.
Patent Information
- Application Number
- CN202410444001.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-15
- Publication Date
- 2024-08-23
AI Technical Summary
Existing virtual power plant electric energy dispatching methods lack classification of different dispatching requirements, and can only perform array processing, which affects processing efficiency.
The ant colony coordination algorithm is used to perform distributed matching optimization of the virtual power plant's scheduling tasks. Through distributed matching of the classification module and the peak load regulation task, a standardized protocol is established for two-way interaction, and reverse opposition learning is used to optimize the ant search path and preprocess the electricity market. information and power grid load data to perform multi-stage dispatch optimization.
It improves the processing efficiency and adaptability of peak shaving tasks, reduces waiting time, realizes real-time monitoring and optimization, improves the operational efficiency and flexibility of virtual power plants, can better coordinate distributed energy resources, and adapts to the power market and energy Changes in resources.
Smart Images

Figure CN118536642A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of power peak regulation, and in particular relates to an electric energy dispatch optimization algorithm for a virtual power plant. Background Art
[0002] Virtual power plant is a kind of distributed energy resource aggregation and coordinated optimization of distributed energy (DG), energy storage system, adjustable load, electric vehicle, etc. through advanced information and communication technology and software system. As a special power source, it participates in the operation of power market and power grid, and acts as a comprehensive power management system. The core concept of virtual power plant focuses on two aspects: "communication" and "aggregation". Key technologies include coordinated control technology, intelligent metering technology and information and communication technology. Its most attractive function is that it can integrate distributed energy resources, participate in the operation of power market and ancillary service market, and provide management and ancillary services for distribution network and transmission network. In China, the solution of virtual power plant has huge market potential, which is undoubtedly a beneficial choice for China facing the contradiction of "power shortage and low energy efficiency". With the large-scale access of distributed power sources to the power grid, the impact of its randomness and volatility on the power grid has become an important research direction. At present, in response to the volatility problem of distributed power sources, energy storage devices such as batteries and pumped storage units are mainly used to regulate the power fluctuation of distributed power sources. However, the use of energy storage to regulate wind power fluctuations requires a lot of investment.
[0003] The Chinese invention patent publication number: CN110135094A discloses a virtual power plant optimization scheduling method based on a contraction space harmony algorithm, the steps include: S1. Constructing a virtual power plant aggregated by a solar thermal power station, a thermal power plant and a clean energy power plant, and determining the scheduling optimization objective function and constraint conditions of the virtual power plant by maximizing the net income of the virtual power plant; S2. Using the scheduling optimization objective function as the evaluation function of the contraction space harmony algorithm, and using the constraint conditions as the harmony variable constraint interval of the contraction space harmony algorithm; S3. According to the evaluation function and the harmony variable constraint interval, using the contraction space harmony algorithm, obtain the maximum value of the evaluation function and the harmony variable that makes the evaluation function take the maximum value. The present invention has the advantages of simple implementation method and flexible application, can effectively improve the efficiency of solving the power dispatching scheme, and can obtain a more reasonable and economically efficient power dispatching scheme, but in actual use, the above method lacks the classification of different dispatching requirements, and can only perform array processing when optimizing, which affects the processing efficiency. Summary of the invention
[0004] The purpose of the present invention is to propose a virtual power plant electric energy scheduling optimization algorithm in order to solve the problem of lack of classification of different scheduling requirements and only being able to perform array processing during optimization.
[0005] In order to achieve the above object, the present invention adopts the following technical solutions:
[0006] A virtual power plant electric energy scheduling optimization algorithm specifically includes the following steps:
[0007] Collect the power market information of the virtual power plant and the grid load dispatch information, and pre-process the information to obtain training data;
[0008] Distributed coordination optimization: According to the power supply status of the virtual power plant's network-connected equipment and the load of the power plant's service objects, the scheduling problem is classified into multiple sub-peak-shaving tasks. A peak-shaving task classification module is established based on the peak-shaving model trained based on different peak-shaving tasks. The classification module and the peak-shaving task are distributedly matched and optimized through the ant colony coordination algorithm to schedule the classification module to the peak-shaving task within the appropriate power threshold;
[0009] Task establishment: establish a standardized protocol for the scheduling tasks of the virtual power plant, establish a two-way protocol through electricity market information and grid load, and schedule and process the established peak-shaving scheduling tasks through the optimized scheduling task module.
[0010] As a further description of the above technical solution:
[0011] The steps of optimizing the distributed matching between the classification module and the peak-shaving task by using the ant colony coordination algorithm include: in the task planning stage, the uploaded scheduling demand task is segmented by the task planning module, and it is split into several similar scheduling requests, and then the corresponding scheduling task is generated for each task block according to the scheduling peak value and segmentation strategy requested in each scheduling demand task, and these tasks are put into the task queue;
[0012] When several peak-shaving tasks are obtained, the system will schedule the tasks through the ant search algorithm according to the number of currently available classification modules;
[0013] Record the running time of the peak-shaving task on the classification module, which can be used to obtain the completion time of all peak-shaving tasks in the classification module. When all peak-shaving tasks are completed, the peak-shaving task of the entire stage is completed;
[0014] The total time to complete the entire peak-shaving task is the maximum time required to complete all peak-shaving tasks in each classification module. The unit time cost of executing the peak-shaving task on each classification module is analyzed to determine the time cost of the entire task scheduling.
[0015] Through repeated optimization, the scheduling plan with the lowest cost is obtained, thus achieving optimized scheduling.
[0016] As a further description of the above technical solution:
[0017] The quality of ant colony movement is improved through reverse adversarial learning, and the peak-shaving classification module is optimized. Specifically, the ant colony movement path is improved by calculating the opposite point of the current position in space. After the initial path is generated, the worker ant memory path with a high matching degree is selected to obtain its opposite position through reverse learning. After a new population is generated, it is iterated to avoid falling into the local optimum of the classification strategy.
[0018] As a further description of the above technical solution:
[0019] It also includes the forecast of electricity market information, which is specifically calculated by collecting multi-year electricity weather data to obtain the electricity market demand range for the next few days, and adjusting the power generation of multi-stage virtual power plants according to the demand range to meet the electricity supply and demand balance, power quality requirements and electricity market rules.
[0020] As a further description of the above technical solution:
[0021] The standardized protocol for establishing the scheduling tasks of the virtual power plant specifically includes: defining the peak-shaving tasks, adding data unit identifiers according to different peak-shaving tasks, locating the execution status of the peak-shaving tasks through the identifiers of the data units, and performing two-way protocol interaction on the power market and the load end of the power grid of the peak-shaving tasks through the execution status.
[0022] As a further description of the above technical solution:
[0023] It also includes the process of identifying and outputting the corresponding peak-shaving task agreement through a two-way protocol when the peak-shaving task is established, and queuing the same type of peak-shaving tasks when multiple peak-shaving tasks are running. After completing the first task in the queue, the next task queue is directly scheduled, and the grid load demand side and the power supply side automatically perform scheduling optimization according to the protocol requirements.
[0024] As a further description of the above technical solution:
[0025] It also includes weighted sorting in the queue according to preset priorities.
[0026] In summary, due to the adoption of the above technical solution, the beneficial effects of the present invention are:
[0027] 1. In the present invention, after the peak-shaving tasks are distributedly classified, different scheduling modules can be allocated according to different scheduling tasks, which is conducive to rapid search and judgment according to the load and supply conditions of different virtual power plants, and can improve and optimize the optimization ability through worker ant search when performing task scheduling, effectively consider the completion time and cost of the task, improve the processing efficiency of the peak-shaving tasks, and improve the adaptability to the peak-shaving scheduling tasks of virtual power plants.
[0028] 2. In the present invention, by calibrating the double-end protocol of the peak-shaving task, the peak-shaving task of the load end and the power market can be bidirectionally queued when the task is initiated, which is conducive to reducing waiting time and improving the peak-shaving processing efficiency of the message queue under different load environments. Through the designed optimization scheduling algorithm, the power market and energy resources can be monitored in real time, and scheduling and optimization can be performed according to real-time data to improve the operating efficiency and flexibility of the virtual power plant. By introducing a distributed coordination optimization method, coordination and optimization between multiple distributed energy resources in the virtual power plant can be achieved. This can make better use of various resources and improve overall benefits. Based on the training of a large amount of historical data and real-time data, it can better adapt to the changes in the power market and energy resources. The distributed coordination optimization model can be expanded according to the scale and needs of the virtual power plant. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 A schematic diagram of the process structure of a virtual power plant electric energy scheduling optimization algorithm proposed in the present invention. DETAILED DESCRIPTION
[0030] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0031] See also Figure 1 , the present invention provides a technical solution:
[0032] A virtual power plant electric energy scheduling optimization algorithm specifically includes the following steps:
[0033] Collect the power market information and grid load dispatch information of the virtual power plant, and pre-process the information to obtain training data. The collected information includes historical power market data, weather data, load data, and energy price data, etc. The data will be used for model training and verification;
[0034] The peak load regulation task of the virtual power plant includes protocol interaction between the load side, i.e., the power demand side, and the power supply side. The power supply side is connected with distributed energy resources, which include wind power (WT), micro gas turbine (MT), energy storage system (ESS) and controllable load (CL).
[0035] The cost of a virtual power plant consists of the revenue from electricity purchase and sale from the power grid, the revenue from electricity purchase and sale from other virtual power plants, the cost of load shedding compensation, and the operation and maintenance costs of various equipment.
[0036] In order to prevent virtual power plants from selling low and selling high, corresponding rules should be set to restrict the work of virtual power plants;
[0037] Distributed coordination optimization: According to the power supply status of the virtual power plant's network-connected equipment and the load of the power plant's service objects, the scheduling problem is classified into multiple sub-peak-shaving tasks. A peak-shaving task classification module is established based on the peak-shaving model trained based on different peak-shaving tasks. The classification module and the peak-shaving task are distributedly matched and optimized through the ant colony coordination algorithm to schedule the classification module to the peak-shaving task within the appropriate power threshold. The peak-shaving task is to perform peak-shaving control through the power control system of each distributed energy resource and to trade by being incorporated into the power grid;
[0038] Task establishment: establish a standardized protocol for the dispatching tasks of virtual power plants, and establish a two-way protocol through power market information and grid load;
[0039] The peak load-shaving task of the virtual power plant is dispatched and processed through the optimized dispatch task module to achieve distributed coordinated optimization;
[0040] Specifically, in the task planning stage, the uploaded scheduling demand tasks are subdivided through the task planning module and split into several similar scheduling requests. Then, according to the scheduling peak and splitting strategy requested in each scheduling demand task, corresponding scheduling tasks are generated for each task block and these tasks are placed in the task queue.
[0041] When several peak-shaving tasks are obtained, the system will schedule the tasks through the ant search algorithm based on the number of currently available classification modules.
[0042] Each classification module has the computing resources required for scheduling and can make corresponding classification judgments.
[0043] For the encoding task, it is converted into an N-dimensional vector, where the position of each worker ant represents a task allocation scheme, the i-th worker ant:
[0044] x i ={x i1 ,x i2 ,…,x ij ,…,x in} (1)
[0045] Where 1≤x ij ≤m, for any one-dimensional component x in the worker ant position vector ij , j represents the task number, x ijRepresents the classification module number assigned to task j.
[0046] For example, if there are 10 peak-shaving tasks that need to be matched to 4 classification modules, the system will assign the tasks to each module based on the optimal matching principle. In addition, we will also use the symbol CSE to record the running time of each peak-shaving task on each classification module. For tasks that are not assigned to a module, no peak-shaving task is assigned, and their running time is recorded as 0.
[0047] Use n×m-order CSE to record the running time of the peak-shaving task on the classification module. CSE(i,j) represents the running time of the peak-shaving task i on the classification module j. If the peak-shaving task i is not assigned to the classification module j, CSE(i,j) = 0. Thus, the completion time of all peak-shaving tasks on the classification module j can be obtained.
[0048]
[0049] When all the peak-shaving tasks are completed, the peak-shaving task of the entire video is completed. Therefore, the total time to complete the entire peak-shaving task can be determined as the longest time to complete the peak-shaving task on a certain classification module;
[0050] At this point, the total completion time of the entire peak-shaving task is the maximum value of the time required to complete all peak-shaving tasks in each classification module. The unit time cost of executing the peak-shaving task on each classification module is analyzed to determine the time cost of the entire task scheduling.
[0051] Through repeated optimization, the scheduling plan with the lowest cost can be found, thus achieving optimized scheduling.
[0052] Specific optimization includes balanced processing of task classes through load balancing. When performing classified scheduling, the importance of load balancing for classification modules cannot be ignored. With the continuous increase in the amount of tasks, good load balancing can efficiently process the amount of tasks without reducing
[0053] The load imbalance value D of the classification module is used to measure its load condition:
[0054]
[0055] Where T max and T min They represent the maximum completion time and minimum completion time of the task in the classification module, T avg Represents the average time to complete the task on the classification module;
[0056] When the worker ant search algorithm performs task optimization, reverse adversarial learning is introduced to improve the quality of ant colony movement. This strategy improves the ant colony movement path by calculating the opposite point of the current position in space. In N-dimensional space, based on the initial position of the worker ant as X, the position calculation method of its opposite point X is:
[0057] X=Lb+Ub-X
[0058] Where Ub and Lb are distributed as the upper and lower boundaries of the search space.
[0059] After the initial path is generated, the worker ant memory path with high matching degree is selected to obtain its opposite position through reverse learning, and a new population is generated and iterated to avoid falling into the local optimum of the classification strategy;
[0060] It also includes the prediction of power market information, specifically by collecting multi-year power weather data to infer the power market demand range for the next few days, and adjusting the power generation of multi-stage virtual power plants according to the demand range to meet the power supply and demand balance, power quality requirements and power market rules;
[0061] The standardized protocol for establishing the dispatching task of the virtual power plant specifically includes: defining the peak-shaving task, adding data unit identifiers according to different peak-shaving tasks, locating the execution status of the peak-shaving task through the identifier of the data unit, and performing two-way protocol interaction on the power market of the peak-shaving task and the load end of the power grid through the execution status;
[0062] It also includes, when performing peak-shaving tasks, outputting the corresponding peak-shaving task agreement through a two-way protocol when the peak-shaving task is established, and queuing the same type of peak-shaving tasks when multiple peak-shaving tasks are running. After completing the first task in the queue, the next task queue is directly scheduled. The grid load demand side and the power supply side automatically perform scheduling optimization according to the protocol requirements, and perform weighted arrangement and sorting in the queue according to preset priorities.
[0063] Through the designed optimization scheduling algorithm, the situation of the power market and energy resources can be monitored in real time, and scheduling and optimization can be carried out according to real-time data. This can improve the operational efficiency and flexibility of the virtual power plant, distributed coordination: by introducing distributed coordination optimization methods, coordination and optimization between multiple distributed energy resources in the virtual power plant can be achieved. This can make better use of individual resources and improve overall benefits, data-driven: based on the training of a large amount of historical data and real-time data, the model can better adapt to the changes in the power market and energy resources, and at the same time, it can learn the complex laws and correlations hidden in the data, and specific scalability: the distributed coordination optimization model can be expanded according to the scale and demand of the virtual power plant. By adding more distributed energy resources, the coverage and flexibility of the model can be improved, energy saving and emission reduction, through real-time optimization scheduling, the model can better coordinate electricity supply and demand, reduce energy waste, reduce carbon emissions, and achieve the goal of energy saving and emission reduction;
[0064] Furthermore, an embodiment of the present application also provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in the above embodiment when executing the program.
[0065] Furthermore, an embodiment of the present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the method described in the above embodiment.
[0066] The present invention is preferably implemented in software, but can also be implemented in hardware or a combination of hardware and software. The present invention can also be implemented as computer-readable code on a computer-readable medium. The computer-readable medium is any data storage device that can store data that can be read by a computer system. Examples of computer-readable media include read-only memory, random access memory, compact disks (CD-ROMs), digital versatile disks (DVDs), magnetic tapes, optical data storage devices, and carrier waves. The computer-readable medium can also be distributed among multiple computer systems connected via a network so that the computer-readable code will be stored and executed in a distributed manner;
[0067] In the present invention, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance; the term "plurality" refers to two or more, unless otherwise clearly defined. The terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense. For example, "connected" can be a fixed connection, a detachable connection, or an integral connection; "connected" can be a direct connection or an indirect connection through an intermediate medium. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0068] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims
1. A virtual power plant energy scheduling optimization algorithm, characterized in that: The specific steps include: Collect the power market information of the virtual power plant and the grid load dispatch information, and pre-process the information to obtain training data; Distributed coordination optimization: According to the power supply status of the virtual power plant's network-connected equipment and the load of the power plant's service objects, the scheduling problem is classified into multiple sub-peak-shaving tasks. A peak-shaving task classification module is established based on the peak-shaving model trained based on different peak-shaving tasks. The classification module and the peak-shaving task are distributedly matched and optimized through the ant colony coordination algorithm to schedule the classification module to the peak-shaving task within the appropriate power threshold; Task establishment: establish a standardized protocol for the scheduling tasks of the virtual power plant, establish a two-way protocol through electricity market information and grid load, and schedule and process the established peak-shaving scheduling tasks through the optimized scheduling task module.
2. The virtual power plant electric energy scheduling optimization algorithm according to claim 1 is characterized in that: The steps of optimizing the distributed matching between the classification module and the peak-shaving task by using the ant colony coordination algorithm include: in the task planning stage, the uploaded scheduling demand task is segmented by the task planning module, and it is split into several similar scheduling requests, and then the corresponding scheduling task is generated for each task block according to the scheduling peak value and segmentation strategy requested in each scheduling demand task, and these tasks are put into the task queue; When several peak-shaving tasks are obtained, the system will schedule the tasks through the ant search algorithm according to the number of currently available classification modules; Record the running time of the peak-shaving task on the classification module, which can be used to obtain the completion time of all peak-shaving tasks in the classification module. When all peak-shaving tasks are completed, the peak-shaving task of the entire stage is completed; The total time to complete the entire peak-shaving task is the maximum time required to complete all peak-shaving tasks in each classification module. The unit time cost of executing the peak-shaving task on each classification module is analyzed to determine the time cost of the entire task scheduling. Through repeated optimization, the scheduling plan with the lowest cost is obtained, thus achieving optimized scheduling.
3. The virtual power plant electric energy scheduling optimization algorithm according to claim 2 is characterized in that: The quality of ant colony movement is improved through reverse adversarial learning, and the peak-shaving classification module is optimized. Specifically, the ant colony movement path is improved by calculating the opposite point of the current position in space. After the initial path is generated, the worker ant memory path with a high matching degree is selected to obtain its opposite position through reverse learning. After a new population is generated, it is iterated to avoid falling into the local optimum of the classification strategy.
4. The virtual power plant electric energy scheduling optimization algorithm according to claim 1 is characterized in that: It also includes the forecast of electricity market information, which is specifically calculated by collecting multi-year electricity weather data to obtain the electricity market demand range for the next few days, and adjusting the power generation of multi-stage virtual power plants according to the demand range to meet the electricity supply and demand balance, power quality requirements and electricity market rules.
5. The virtual power plant electric energy scheduling optimization algorithm according to claim 1 is characterized in that: The standardized protocol for establishing the scheduling tasks of the virtual power plant specifically includes: defining the peak-shaving tasks, adding data unit identifiers according to different peak-shaving tasks, locating the execution status of the peak-shaving tasks through the identifiers of the data units, and performing two-way protocol interaction on the power market and the load end of the power grid of the peak-shaving tasks through the execution status.
6. The virtual power plant electric energy scheduling optimization algorithm according to claim 1 is characterized in that: It also includes the process of identifying and outputting the corresponding peak-shaving task agreement through a two-way protocol when the peak-shaving task is established, and queuing the same type of peak-shaving tasks when multiple peak-shaving tasks are running. After completing the first task in the queue, the next task queue is directly scheduled, and the grid load demand side and the power supply side automatically perform scheduling optimization according to the protocol requirements.
7. The virtual power plant electric energy scheduling optimization algorithm according to claim 6 is characterized in that: It also includes weighted sorting in the queue according to preset priorities.
8. A computer-readable storage medium, characterized in that: The readable storage medium stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by the processor to implement the virtual power plant electric energy scheduling optimization algorithm as described in any one of claims 1 to 7.
9. A computer device, characterized in that: The computer device includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, at least one program, a code set or an instruction set is loaded and executed by the processor to implement the virtual power plant electric energy scheduling optimization algorithm as described in any one of claims 1 to 7.
