Energy bidding scheduling method and system based on graph theory
Through the energy bidding dispatching method based on graph theory, the problem of the volatility of distributed energy supply equipment and renewable energy in the integrated energy system is solved, the flexible dispatching and multi-energy matching of the system are realized, the dispatching process is simplified, the system expansion is adapted and the reduction is reduced. to calculate pressure.
Patent Information
- Application Number
- CN202111257700.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-27
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-10-27
AI Technical Summary
Existing integrated energy system dispatching methods are difficult to effectively adapt to the volatility and randomness of distributed energy supply equipment and renewable energy, resulting in the system being unable to operate as planned and the dispatch center being under heavy computational pressure.
Using an energy bidding scheduling method based on graph theory, matrix correction is performed to calculate Scheduling instructions realize flexible scheduling of the system.
It achieves flexible matching of multiple energy supply and demand within the integrated energy system, meets the transaction needs of multiple loads, simplifies the dispatch process, adapts to system expansion, and reduces computing pressure.
Smart Images

Figure CN114066019B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of energy scheduling, and in particular relates to an energy bidding scheduling method and system based on graph theory. Background Art
[0002] The current optimization scheduling methods for integrated energy systems can be divided into two categories, namely centralized methods and distributed methods. Centralized algorithms mainly include analytical algorithms and heuristic algorithms, such as genetic algorithms, Newton's method, iterative methods, etc. Distributed scheduling methods can utilize the communication network within the system to achieve joint collaboration and have become a research hotspot in recent years. Commonly used scheduling methods include local equality or inequality constraint methods, consistent distributed algorithms, etc.
[0003] In addition, the existing integrated energy system often adopts a day-ahead optimization scheduling method centered on the power grid. Although this scheduling method can achieve economic operation of systems involving some types of equipment to a certain extent, with the access of distributed energy supply equipment and a large number of renewable energy sources, the volatility, randomness and differences of different types of energy on the power supply side have gradually become prominent. The traditional centralized scheduling method often cannot achieve the system operation according to the day-ahead plan, and the computing pressure of the scheduling center will be greatly increased.
[0004] Therefore, there is a need for a more concise integrated energy system scheduling method that can effectively adapt to the expansion of the integrated energy system. Summary of the invention
[0005] In response to the above problems, the present invention establishes an energy bidding scheduling method and system based on graph theory on the basis of the comprehensive energy system bidding model. Compared with traditional centralized and distributed scheduling methods, this method is simpler and can effectively adapt to the expansion of the energy system.
[0006] A graph-theory-based energy bidding scheduling method, the method comprising:
[0007] S1: Classify all transaction users in the energy system according to device type and obtain input and output power limit data of all transaction users in a cycle;
[0008] S2: Obtain energy transaction quotations of all participating transaction users in the energy system within the above period;
[0009] S3: sorting the energy trading quotations by trading priorities and building a priority sorting list;
[0010] S4: judging transaction feasibility and constructing an initial matrix according to the priority ranking list and the input and output power limit data;
[0011] S5: Find a feasible energy path according to the transaction feasibility, create a path tree according to the feasible energy path, and then generate a path tree sorting list;
[0012] S6: sequentially traverse the path tree sorting list, perform matrix correction, and calculate the scheduling instruction;
[0013] S7: According to the energy system operation cycle, loop S1-S6 to obtain the dispatching instructions for the whole cycle.
[0014] Furthermore, the specific method for determining the feasibility of a transaction includes:
[0015] When the i-th device and the j-th device in the priority sorting list satisfy the following transaction rules at the same time, It means that energy transactions among users in the energy system are feasible; The set of energy types supplied to device i, represents the set of energy types required by equipment j;
[0016] is the supply energy price of device i, is the demand energy price of equipment j;
[0017] The energy flow supplied to the i device, is the energy flow required by device j.
[0018] Further,
[0019] The initial matrix includes an initial traffic matrix, an initial price matrix and an initial scheduling matrix;
[0020] The matrix correction includes correcting the initial traffic matrix and the initial scheduling matrix;
[0021] The matrix correction includes a forward propagation process and a reverse correction process.
[0022] Furthermore, the specific method of constructing the initial matrix includes:
[0023] Define the initial scheduling matrix A dispatch =0 l×l , l is the length of the priority sorted list;
[0024] Initial price matrix A price and the initial traffic matrix A flow Generate according to the following rules: Starting from the first device in the priority sorting list, determine whether the transaction rules are met between the i-th device and the j-th device. If the transaction rules are met, the initial traffic matrix A flow The device in row i and column j is a i,j , expressed as And the initial price matrix A price The i-th row and j-th column of i,j , expressed as And for the initial traffic matrix A flow The row and column labels of , the number of labels for the i-th row is It represents the energy supply of the i-th device in the priority sorting list, and the number of marks in the j-th column is represents the energy demand of the jth device in the priority sorting list;
[0025] Traverse the priority sorted list backward sequentially to obtain the complete initial price matrix A with dimension l×l price and the initial traffic matrix A flow .
[0026] Furthermore, the step of searching for a feasible energy path and creating a path tree specifically includes the following steps:
[0027] Find the path tree from start to end, where start∈P∪N∪S, end∈L∪N∪S, P is the set of power supply devices, L is the set of load devices, N is the set of power grid and energy pipeline network devices, and S is the set of energy storage devices;
[0028] Define the operation 1 of the i-th row: From the initial price matrix A price Search the i-th row of A, starting from the first column, and ending at the i-th row and the l-th column, where l is the length of the priority sorted list. If there is no non-zero element, there is no feasible energy path, that is, there is no feasible energy path from i to e; if there is a non-zero element, for all non-zero positions, enter the column corresponding to the largest numerical element among the non-zero elements, and record the column number as c1, and enter A price Execute operation 2 of row c1, where i is any row from s to e;
[0029] Define operation 2 for row c1: If there is a non-zero element in row c1, perform operation 1 on row c1. If there is no non-zero element in row c1, return to row i and enter the column corresponding to the second largest numerical element in row i among the non-zero elements. The column number is recorded as c2 and enter A. price In line c2 of , execute operation 1 of line c2;
[0030] Starting from the sth row, execute operation 1 of the sth row until reaching the eth column, or all the rows entered cannot reach e; if e can be reached, there is a feasible path from s to e, and the path is recorded; if e cannot be reached, there is no feasible path; where s is the sequence number of any device node in start in the priority sorting list, and e is the sequence number of any device node in end in the priority sorting list;
[0031] For all feasible paths, sort them according to the order in which they reach e during the execution of the above steps to obtain the path tree tree s.e ,tree s.e ={path1,path2...}, the starting number of each path branch is the serial number of the energy supply device in the priority list, the end number is the serial number of the demand device in the priority list, and the intermediate node is the serial number of the conversion device or follower device in the priority list;
[0032] The devices in the start and end are traversed in the order in which they are in the priority sorting list, and path trees are generated in sequence. A complete path tree sorting list is obtained in the order in which the path trees are generated.
[0033] Further,
[0034] The matrix correction process includes:
[0035] Sequentially traverse the sorted list of path trees, and perform forward propagation and reverse correction processes on each path branch of each path tree in sequence to obtain a complete scheduling matrix within this cycle.
[0036] An energy bidding and dispatching system based on graph theory, the system comprising:
[0037] Obtain power units, classify all transaction users in the energy system according to device type, and obtain input and output power limit data of all transaction users in a cycle;
[0038] A quotation obtaining unit is used to obtain energy transaction quotations of all participating transaction users in the energy system within the above period;
[0039] A sorting unit, used to sort the energy trading quotations by trading priorities and construct a priority sorting list;
[0040] A judging and constructing unit, configured to judge the feasibility of a transaction and construct an initial matrix according to the priority sorting list and the input and output power limit data;
[0041] A search unit, used to search for a feasible energy path according to transaction feasibility, create a path tree according to the feasible energy path, and then generate a path tree sorting list;
[0042] A calculation unit, used for sequentially traversing the path tree sorting list, performing matrix correction, and calculating a scheduling instruction;
[0043] The instruction unit is used to obtain the full-cycle dispatching instructions according to the energy system operation cycle.
[0044] Furthermore, the specific method for judging the feasibility of a transaction in the judging and constructing unit includes:
[0045] When the i-th device and the j-th device in the priority sorting list satisfy the following transaction rules at the same time,
[0046] This means that energy transactions among users in the energy system are feasible;
[0047] in The set of energy types supplied to device i, represents the set of energy types required by equipment j;
[0048] is the supply energy price of device i, is the demand energy price of equipment j;
[0049] The energy flow supplied to the i device, is the energy flow required by device j.
[0050] Furthermore, the initial matrix includes an initial traffic matrix, an initial price matrix and an initial scheduling matrix;
[0051] The matrix correction includes correcting the initial traffic matrix and the initial scheduling matrix;
[0052] The matrix correction includes a forward propagation process and a reverse correction process.
[0053] Furthermore, the specific method of constructing the initial matrix in the judgment and construction unit includes:
[0054] Define the initial scheduling matrix A dispatch =0 l×l , l is the length of the priority sorted list;
[0055] Initial price matrix A price and the initial traffic matrix A flow Generate according to the following rules: Starting from the first device in the priority sorting list, determine whether the transaction rules are met between the i-th device and the j-th device. If the transaction rules are met, the initial traffic matrix A flow The element in the i-th row and j-th column of is a i,j , expressed as And the initial price matrix A price The i-th row and j-th column of i,j , expressed as And for the initial traffic matrix A flow The row and column labels of , the number of labels for the i-th row is represents the energy supply of the i-th element in the priority sorting list, and the number of marks in the j-th column is represents the energy demand of the jth element in the priority sorting list;
[0056] Traverse the priority sorted list backward sequentially to obtain the complete initial price matrix A with dimension l×l price and the initial traffic matrix A flow .
[0057] Furthermore, the searching unit is used to search for feasible energy paths and create a path tree, specifically comprising the following steps:
[0058] Find the path tree from start to end, where start∈P∪N∪S, end∈L∪N∪SP is the set of power supply devices, L is the set of load devices, N is the set of power grid and energy pipeline network devices, and S is the set of energy storage devices;
[0059] Define the operation 1 of the i-th row: From the initial price matrix A price Search the i-th row of A, starting from the first column, and ending at the i-th row and the l-th column, where l is the length of the priority sorted list. If there is no non-zero element, there is no feasible energy path, that is, there is no feasible energy path from i to e; if there is a non-zero element, for all non-zero positions, enter the column corresponding to the largest numerical element among the non-zero elements, and record the column number as c1, and enter A price In line c1 of , execute operation 2 of line c1;
[0060] Define operation 2 for row c1: If there is a non-zero element in row c1, perform operation 1 on row c1. If there is no non-zero element in row c1, return to row i and enter the column corresponding to the second largest numerical element in row i among the non-zero elements. The column number is recorded as c2 and enter A. price In line c2 of , execute operation 1 of line c2;
[0061] Starting from the sth row, execute operation 1 of the sth row until reaching the eth column, or all the rows entered cannot reach e; if e can be reached, there is a feasible path from s to e, and the path is recorded; if e cannot be reached, there is no feasible path; where s is the sequence number of any device node in start in the priority sorting list, and e is the sequence number of any device node in end in the priority sorting list;
[0062] For all feasible paths, sort them according to the order in which they reach e during the execution of the above steps to obtain the path tree tree s.e ,tree s.e ={path1,path2…} The starting number of each path branch is the serial number of the energy supply device in the priority list, the end number is the serial number of the demand device in the priority list, and the intermediate node is the serial number of the conversion device or follower device in the priority list;
[0063] The devices in the start and end are traversed in the order in which they are in the priority sorting list, and path trees are generated in sequence. A complete path tree sorting list is obtained in the order in which the path trees are generated.
[0064] Furthermore, the matrix correction process in the calculation unit includes:
[0065] Traverse the sorted list of path trees sequentially, and perform forward propagation and reverse correction processes on each path branch of each path tree in sequence to obtain a complete scheduling matrix within this cycle.
[0066] The present invention determines the energy supply and demand priority according to the quotation information of distributed users, and can realize flexible matching of multiple energy supply and demand in the integrated energy system to meet the trading needs of the subject of multiple loads. Other features and advantages of the present invention will be described in the subsequent description, and partly become obvious from the description, or be understood by practicing the present invention. The objects and other advantages of the present invention can be realized and obtained by the structures indicated in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0068] Figure 1 A flow chart of an energy bidding scheduling method based on graph theory according to an embodiment of the present invention is shown;
[0069] Figure 2 The results of classification according to equipment type in the energy system according to an embodiment of the present invention are shown;
[0070] Figure 3 A schematic diagram showing a process of determining transaction feasibility and creating an initial matrix according to a priority sorting list according to an embodiment of the present invention;
[0071] Figure 4 A schematic diagram showing searching for a feasible energy path according to transaction feasibility and creating a path tree according to the feasible energy path according to an embodiment of the present invention is shown;
[0072] Figure 5 A schematic diagram of the process of forward propagation and reverse correction according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0073] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are 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.
[0074] The present invention provides a graph-theory-based energy bidding scheduling method and system, which are more concise and can effectively adapt to the expansion of energy systems. The embodiments of the present invention are illustrated by taking a comprehensive energy system as an example, but are not limited to the comprehensive energy system. Any system containing multiple energy sources can be applied to the present invention.
[0075] The integrated energy system includes many energy systems, such as wind turbines, photovoltaics, gas turbines, gas boilers, electric refrigerators, electric hydrogen production equipment, absorption refrigerators, electric boilers, heat pumps, waste heat boilers, energy storage batteries, hydrogen storage tanks, electrical loads, heat loads, cold loads, power grids, natural gas pipelines, etc.
[0076] The energy bidding scheduling method based on graph theory provided by the present invention is as follows: Figure 1 As shown, Figure 1 The flowchart of the energy bidding scheduling method based on graph theory according to an embodiment of the present invention is shown. Specifically, it includes:
[0077] S1: Classify all transaction users in the energy system according to device type and obtain input and output power limit data of all transaction users in a cycle;
[0078] S2: Obtain energy transaction quotations of all participating transaction users in the energy system within the above period;
[0079] S3: sorting the energy trading quotations by trading priorities and building a priority sorting list;
[0080] S4: judging transaction feasibility and constructing an initial matrix according to the priority ranking list and the input and output power limit data;
[0081] S5: Find a feasible energy path according to the transaction feasibility, create a path tree according to the feasible energy path, and then generate a path tree sorting list;
[0082] S6: sequentially traverse the path tree sorting list, perform matrix correction, and calculate the scheduling instruction;
[0083] S7: According to the energy system operation cycle, loop S1-S6 to obtain the dispatching instructions for the whole cycle.
[0084] Specifically, in S1, the participating users in system C are classified according to the device type, the power supply device set is set to P, the energy storage device set is set to S, the intermediate conversion device set is set to T, the follower device set is set to F, the energy pipe network and power grid equipment is set to N, and the load device set is set to L. The system is represented as C = {P, S, T, F, L, N}.
[0085] Exemplarily, the integrated energy system of an embodiment of the present invention is illustrated by taking several common energy systems as examples. For example, the integrated energy system includes wind turbines, photovoltaics, gas turbines, gas boilers, electric refrigerators, electric hydrogen production equipment, absorption refrigerators, electric boilers, heat pumps, waste heat boilers, energy storage batteries, hydrogen storage tanks, electrical loads, heat loads, cold loads, power grids, and natural gas pipelines.
[0086] Then P = {wind turbine, photovoltaic}
[0087] S={energy storage battery, hydrogen storage tank}
[0088] T={gas turbine, gas boiler, electric refrigerator, electric hydrogen production equipment, heat pump absorption refrigerator, electric boiler}
[0089] F={waste heat boiler}
[0090] N = {power grid, natural gas pipeline network}
[0091] L = {electric load, heat load, cooling load}
[0092] C = {P, F, S, T, L, N}, such as Figure 2 As shown, Figure 2 The result of classification by equipment type in the integrated energy system according to the embodiment of the present invention is shown.
[0093] Obtain the output data of the power supply equipment set P, the demand data of the load equipment set L, the energy storage stock data of the energy storage equipment set S, the output and input power limit data of each intermediate conversion equipment set T within the system, the data of the power grid and energy pipeline equipment set N, the input and output limit data of the follower equipment set F, and the energy quotation of the above equipment.
[0094] The energy system obtains the output data of the power supply equipment set P at the current moment, in the format of "Name: XXX, Supply: (Energy type: XXX, Energy quantity: power output of the power supply during this period, Unit quotation: XXX), Demand: None".
[0095] The demand data of the load equipment set L has the format of "Name: XXX, Supply: None, Demand: (Energy type: XXX, Energy quantity: Load demand power for this period, Unit quotation: XXX)".
[0096] The energy storage inventory data of the energy storage device set S has the format of "Name: XXX, Demand: (Energy type: XXX, Energy amount: (min(Remaining uncharged capacity, Maximum charging power, Unit price: XXX))), Supply: (Energy type: XXX, Energy amount: (min(Storage capacity, Maximum supply power, Unit price: XXX)))".
[0097] The output and input power limits of each intermediate conversion device set T within the system are in the format of "(name: XXX, demand: (energy type: XXX, energy amount: maximum input power, unit price: XXX), supply: (energy type: XXX, energy amount: maximum output power, unit price: XXX))".
[0098] The data format of the power grid and energy pipeline network equipment set N is: "Name: XXX, Supply: (Energy type: XXX, Energy quantity: ∞, Unit price: XXX), Demand: (Energy type: XXX, Energy quantity: ∞, Unit price: XXX)".
[0099] The input and output restriction format of the follower device set F is “name: XXX, demand: (energy type: XXX, energy amount: maximum input power, unit price: XXX), supply: (energy type: XXX, energy amount: maximum output power, unit price: XXX))”.
[0100] In S3, the specific method of constructing the priority sorting list includes: arranging in the order of power supply equipment set P, energy storage equipment set S, intermediate conversion equipment set T, follower equipment set F, load equipment set L and energy pipe network and power grid equipment N. In the power supply equipment set P, sort from low to high according to the energy supply quotation; for other types of equipment, sort from high to low according to the energy purchase quotation to construct a transaction priority sorting list;
[0101] In S4, the transaction feasibility is determined based on the priority sorting list and the input and output power limits of the participating transaction users, and an initial matrix is created. The specific process of determining the transaction feasibility includes:
[0102] After constructing the transaction priority list, the length of the priority list is l, and the initial price matrix A is constructed based on the priority list price =0 l×l and the initial traffic matrix A flow =0 l×l , and for the initial traffic matrix A flow The number of marks in the i-th row is represents the energy supply of the i-th element in the priority sorting list, and the number of marks in the j-th column is represents the energy demand of the jth element in the priority sorting list, and the scheduling matrix A dispatch =0 l×l .
[0103] When the i-th device and the j-th device in the priority sorting list satisfy the following transaction rules at the same time, It means that energy transactions among users in the energy system are feasible; The set of energy types supplied to device i, represents the set of energy types required by equipment j;
[0104] is the supply energy price of device i, is the demand energy price of equipment j;
[0105] The energy flow supplied to the i device, is the energy flow required by device j.
[0106] The specific process of constructing the initial matrix includes:
[0107] Starting from the first device in the priority sorting list, determine whether the transaction rules are met between the two devices. If the transaction rules are met, the i-th row and j-th column of the initial traffic matrix are expressed as and the i-th row and j-th column of the initial price matrix, expressed as
[0108] Traverse the priority sorted list backwards in order to obtain the complete initial price matrix A price (where the position (x, y) of the non-zero element p indicates that the energy purchase price from the xth device to the yth device is p) and the initial flow matrix A flow (The position (x, y) where the non-zero element q is located represents the maximum amount of energy that can be supplied from the x-th device to the y-th device, q). Where p and q refer to any non-zero values.
[0109] For example, the schematic diagram of determining transaction feasibility and creating a matrix is as follows: Figure 3 As shown, Figure 3 A schematic diagram of determining transaction feasibility and creating an initial matrix process based on a priority sorting list according to an embodiment of the present invention is shown. In the figure, the order of the transaction priority sorting list is {user 1, user 2...user n}. When traversing the transaction priority sorting list, if user 1 and user 2 are tradable, the maximum tradable flow and the energy purchaser's quotation between the two are written in the first row and second column of the flow matrix and the price matrix. If user 2 and user n are tradable, the maximum tradable flow and the energy purchaser's quotation between the two are written in the second row and nth column of the flow matrix.
[0110] It should be noted that the initial traffic matrix or initial price matrix is the matrix that is just created, and the traffic matrix or price matrix under modification is the traffic matrix or price matrix.
[0111] In S5, taking the path tree from start to end as an example, the specific process of finding a feasible energy path is explained: where start∈P∪N∪S, end∈L∪N∪S, P is the set of power supply devices, L is the set of load devices, N is the set of power grid and energy pipeline devices, and S is the set of energy storage devices; define the operation 1 of the i-th row: from the initial price matrix A price Search the i-th row of A, starting from the first column, and ending at the i-th row and the l-th column, where l is the length of the priority sorted list. If there is no non-zero element, there is no feasible energy path, that is, there is no feasible energy path from i to e; if there is a non-zero element, for all non-zero positions, enter the column corresponding to the largest numerical element among the non-zero elements, and record the column number as c1, and enter A price Execute operation 2 of row c1, where i is any row from s to e;
[0112] Define operation 2 for row c1: If there is a non-zero element in row c1, perform operation 1 on row c1. If there is no non-zero element in row c1, return to row i and enter the column corresponding to the second largest numerical element in row i among the non-zero elements. The column number is recorded as c2 and enter A. price In line c2 of , execute operation 1 of line c2;
[0113] Starting from the sth row, execute operation 1 of the sth row until reaching the eth column, or all the rows entered cannot reach e; if e can be reached, there is a feasible path from s to e, and the path is recorded; if e cannot be reached, there is no feasible path; where s is the sequence number of any device node in start in the priority sorting list, and e is the sequence number of any device node in end in the priority sorting list;
[0114] For all feasible paths, sort them according to the order in which they reach e during the execution of the above steps to obtain the path tree trees.e ,tree s.e ={path1,path2...}, the starting number of each path branch is the serial number of the energy supply device in the priority list, the end number is the serial number of the demand device in the priority list, and the intermediate node is the serial number of the conversion device or follower device in the priority list;
[0115] Traverse the elements in start and end in the order in which they appear in the priority sorted list, generate path trees one by one, and obtain a complete path tree sorted list in the order in which the path trees are generated.
[0116] It should be noted that column e is not the last column. e represents one-way energy-demand nodes such as pure load users and charging piles, and is the last position in the energy supply path.
[0117] For example, Figure 4 As shown, Figure 4 A schematic diagram of finding a feasible energy path according to transaction feasibility and creating a path tree according to the feasible energy path according to an embodiment of the present invention is shown. In the figure, the order of the transaction priority sorting list is {user 1, user 2...user 5}, user 1 belongs to the power supply device set P, and user 5 belongs to the load device set L, wherein the price matrix between users constructed according to the transaction priority sorting list, for example, the number in the first row and second column of the price matrix is 0.4, indicating that the transaction price between user 1 and user 2 is 0.4, and two paths are found between user 1 and user 5 according to the price matrix, namely path 1 {1, 2, 4, 5} and path 2 {1, 3, 5}, and the constructed path tree is {path 1, path 2}.
[0118] In S6, the forward propagation process includes:
[0119] Path tree s.e The i-th path tree branch path i Take the forward propagation process on the branch of the path as an example;
[0120] Let the i-th path branch be path i (path i ∈tree s,e ), let path from tree branch i There are m nodes from the starting point to the end point of the branch. The number of the kth node in the priority sorting list is defined as P k , P k The output function corresponding to the input of the device is expressed as Y pk =f Pk (X pk ), X pk Describe the priority list Pk Input power of each device, Y pk Indicates that in X pk The output power corresponding to the input power, its inverse function Right now Traffic Matrix A flow The element in row P1 and column P2 of p1,p2 (a p1,p2 ∈A flow ), the traffic matrix A flow P m-2 Row P m-1 The column elements are represented by a pm-1,pm-2 (a pm-1,pm-2 ∈A flow ), a p1,p2 is the initial maximum energy flow from P1 to P2, according to min(f p2 (a p1,p2 ),a p2,p3 ) determines the initial maximum energy flow from P2 to P3, according to min(f p3 (min(f p2 (a p1,p2 ),a p2,p3 )),a p3,p4 ) Determine the initial maximum energy flow from P3 to P4, calculate in sequence, and determine the energy flow from P m-1 To P m The initial maximum energy flow forward:
[0121] In S6, the reverse correction process includes:
[0122] and Represent the traffic matrix A respectively flow The number of labels in the i-th column of the traffic matrix A flow The initial values of the number of markers in the i-th row are the maximum energy demand and maximum energy supply of the corresponding device in the acquired power limit data. Modify the scheduling matrix A dispatch P m-1 The element in the row and column e is back1, back1 = min(forward, a Pm-1,e )(a Pm-1,e ∈A flow ), corrected traffic matrix A flow The number of marks in the eth column The value is: the original value is reduced by back1, and the Pth m-1 Number of markers for the row The value is: the original value is reduced by back1, and all non-zero elements in the e-th column are corrected to the value of the element itself and The minimum of the two values, P m-1 All non-zero elements in the row are corrected to the value of the element itself and The minimum of two values;
[0123] calculate P m-2 , P m-1 Modify the Pth node of the scheduling matrix to the numbers of the m-2th and m-1th nodes in the priority sorted list m-2 Row P m-1 The column element is back2, the modified traffic matrix A flow The number of marks in the m-1th column of The value is: the original value minus back2, correct the P m-2 Number of markers for the row The value is: the original value is reduced by back2, the P m-1 All non-zero elements of the column are corrected to the value of the element itself and The minimum of the two values, P m-2 All non-zero elements in the row are corrected to the value of the element itself and The minimum of the two values,
[0124] Calculate back in sequence m-1 , And each time the row and column marking numbers of the modified scheduling matrix and the modified traffic matrix are changed and the non-zero elements are modified.
[0125] In S6, the matrix correction process includes:
[0126] Sequentially traverse the sorted list of path trees, and perform forward propagation and reverse correction processes on each path branch of each path tree in sequence to obtain a complete scheduling matrix within this cycle.
[0127] Specifically, the S5 operation is performed in the order of start∈F, start∈P, start∈S, start∈N, end∈L, end∈S, and end∈N. The root node P1 of the path tree in S5 starts from the first tree path where P1 is located, and the matrix correction operation in S6 is performed. If there are still non-zero elements in the P1th row of the subsequent flow matrix, the next path branch path is entered. i+1 (path i+1 ∈tree s,e ) Execute the matrix correction operation in S6 until all the elements in the P1th row of the traffic matrix are zero, or traverse all branch paths of the path tree.
[0128] Let the non-zero element a x,y ∈A dispatch, indicating that the xth device in this period supplies a to the yth device x,y Energy dispatching instructions for energy quantity. After receiving the dispatching instructions, the dispatching matrix and flow matrix are cleared.
[0129] According to the energy system operation cycle, cycle S1-S6 to obtain the dispatching instructions for the entire cycle.
[0130] For example, Figure 5 A flow chart of forward propagation and reverse correction according to an embodiment of the present invention is shown, wherein the path of the forward propagation and reverse correction operation is {1, 2, 4, 5}, wherein the traffic matrix and the scheduling matrix calculate forward after three forward propagations, the first reverse correction (4th row and 5th column) calculates back1, the 4th row and 5th column of the scheduling matrix increases back1, the value of the elements in the 4th row and 5th column of the traffic matrix decreases back1, the value of the number of marks in the 5th column decreases back1, and the value of the non-zero elements in the 5th column (the elements in the 3rd row and 5th column) is corrected to: min(100-back1, 40), similarly, back2 and back3 are calculated in sequence, and the traffic matrix and the scheduling matrix are modified accordingly.
[0131] Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent substitutions for some of the technical features therein; and these modifications or substitutions do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. An energy bidding scheduling method based on graph theory, characterized in that: The method comprises: S1: Classify all transaction users in the energy system according to device type and obtain input and output power limit data of all transaction users in a cycle; S2: Obtain energy transaction quotations of all participating transaction users in the energy system within the above period; S3: sorting the energy trading quotations by trading priorities and building a priority sorting list; S4: judging transaction feasibility and constructing an initial matrix according to the priority ranking list and the input and output power limit data; S5: Find a feasible energy path according to the transaction feasibility, create a path tree according to the feasible energy path, and then generate a path tree sorting list; S6: sequentially traverse the path tree sorting list, perform matrix correction, and calculate the scheduling instruction; S7: According to the operation cycle of the energy system, loop S1-S6 to obtain the dispatching instructions for the whole cycle; The specific method for determining the feasibility of a transaction includes: When the i-th device and the j-th device in the priority sorting list satisfy the following transaction rules at the same time, It means that energy transactions among users in the energy system are feasible; The set of energy types supplied to device i, represents the set of energy types required by equipment j; is the supply energy price of device i, is the demand energy price of equipment j; The energy flow supplied to the i device, is the required energy flow of equipment j; The initial matrix includes an initial traffic matrix, an initial price matrix and an initial scheduling matrix; The matrix correction includes correcting the initial traffic matrix and the initial scheduling matrix; The matrix correction includes a forward propagation process and a reverse correction process; The specific method of constructing the initial matrix includes: Define the initial scheduling matrix A dispatch =0 l×l , l is the length of the priority sorted list; Initial price matrix A price and the initial traffic matrix A flow Generate according to the following rules: Starting from the first device in the priority sorting list, determine whether the transaction rules are met between the i-th device and the j-th device. If the transaction rules are met, the initial traffic matrix A flow The device in row i and column j is a i,j , expressed as And the initial price matrix A price The i-th row and j-th column of i,j , expressed as And for the initial traffic matrix A flow The row and column labels of , the number of labels for the i-th row is It represents the energy supply of the i-th device in the priority sorting list, and the number of marks in the j-th column is represents the energy demand of the jth device in the priority sorting list; Traverse the priority sorted list backward sequentially to obtain the complete initial price matrix A with dimension l×l price and the initial traffic matrix A flow ; The method of finding a feasible energy path and creating a path tree specifically includes the following steps: Find the path tree from start to end, where start∈P∪N∪S, end∈L∪N∪S, P is the set of power supply devices, L is the set of load devices, N is the set of power grid and energy pipeline network devices, and S is the set of energy storage devices; Define the operation 1 of the i-th row: From the initial price matrix A price Search the i-th row of A, starting from the first column, and ending at the i-th row and the l-th column, where l is the length of the priority sorted list. If there is no non-zero element, there is no feasible energy path, that is, there is no feasible energy path from i to e; if there is a non-zero element, for all non-zero positions, enter the column corresponding to the largest numerical element among the non-zero elements, and record the column number as c1, and enter A price Execute operation 2 of row c1, where i is any row from s to e; Define operation 2 for row c1: If there is a non-zero element in row c1, perform operation 1 on row c1. If there is no non-zero element in row c1, return to row i and enter the column corresponding to the second largest numerical element in row i among the non-zero elements. The column number is recorded as c2 and enter A. price In line c2 of , execute operation 1 of line c2; Starting from the sth row, execute operation 1 of the sth row until reaching the eth column, or all the rows entered cannot reach e; if e can be reached, there is a feasible path from s to e, and the path is recorded; if e cannot be reached, there is no feasible path; where s is the sequence number of any device node in start in the priority sorting list, and e is the sequence number of any device node in end in the priority sorting list; For all feasible paths, sort them according to the order in which they reach e during the execution of the above steps to obtain the path tree tree s.e ,tree s.e ={path1,path2...}, the starting number of each path branch is the serial number of the energy supply device in the priority list, the end number is the serial number of the demand device in the priority list, and the intermediate node is the serial number of the conversion device or follower device in the priority list; Traverse the devices in the priority sorting list in the start and end sections in order, generate path trees in sequence, and obtain a complete path tree sorting list in the order in which the path trees are generated; The matrix correction process includes: Sequentially traverse the sorted list of path trees, and perform forward propagation and reverse correction processes on each path branch of each path tree in sequence to obtain a complete scheduling matrix within this cycle.
2. An energy bidding and scheduling system based on graph theory, characterized in that: The system comprises: Obtain power units, classify all transaction users in the energy system according to device type, and obtain input and output power limit data of all transaction users in a cycle; A quotation obtaining unit is used to obtain energy transaction quotations of all participating transaction users in the energy system within the above period; A sorting unit, used to sort the energy trading quotations by trading priorities and construct a priority sorting list; A judging and constructing unit, configured to judge the feasibility of a transaction and construct an initial matrix according to the priority sorting list and the input and output power limit data; A search unit, used to search for a feasible energy path according to transaction feasibility, create a path tree according to the feasible energy path, and then generate a path tree sorting list; A calculation unit, used for sequentially traversing the path tree sorting list, performing matrix correction, and calculating a scheduling instruction; The instruction unit is used to obtain the full-cycle dispatching instructions according to the energy system operation cycle; The specific method for judging the feasibility of a transaction in the judging and constructing unit includes: When the i-th device and the j-th device in the priority sorting list satisfy the following transaction rules at the same time, This means that energy transactions among users in the energy system are feasible; in The set of energy types supplied to device i, represents the set of energy types required by equipment j; is the supply energy price of device i, is the demand energy price of equipment j; The energy flow supplied to the i device, is the required energy flow of equipment j; The initial matrix includes an initial traffic matrix, an initial price matrix and an initial scheduling matrix; The matrix correction includes correcting the initial traffic matrix and the initial scheduling matrix; The matrix correction includes a forward propagation process and a reverse correction process; The specific method of constructing the initial matrix in the judgment and construction unit includes: Define the initial scheduling matrix A dispatch =0 l×l , l is the length of the priority sorted list; Initial price matrix A price and the initial traffic matrix A flow Generate according to the following rules: Starting from the first device in the priority sorting list, determine whether the transaction rules are met between the i-th device and the j-th device. If the transaction rules are met, the initial traffic matrix A flow The element in the i-th row and j-th column of is a i,j , expressed as And the initial price matrix A price The i-th row and j-th column of i,j , expressed as And for the initial traffic matrix A flow The row and column labels of , the number of labels for the i-th row is represents the energy supply of the i-th element in the priority sorting list, and the number of marks in the j-th column is represents the energy demand of the jth element in the priority sorting list; Traverse the priority sorted list backward sequentially to obtain the complete initial price matrix A with dimension l×l price and the initial traffic matrix A flow ; The searching unit is used to search for feasible energy paths and create a path tree, and specifically comprises the following steps: Find the path tree from start to end, where start∈P∪N∪S, end∈L∪N∪SP is the set of power supply devices, L is the set of load devices, N is the set of power grid and energy pipeline network devices, and S is the set of energy storage devices; Define the operation 1 of the i-th row: From the initial price matrix A price Search the i-th row of A, starting from the first column, and ending at the i-th row and the l-th column, where l is the length of the priority sorted list. If there is no non-zero element, there is no feasible energy path, that is, there is no feasible energy path from i to e; if there is a non-zero element, for all non-zero positions, enter the column corresponding to the largest numerical element among the non-zero elements, and record the column number as c1, and enter A price In line c1 of , execute operation 2 of line c1; Define operation 2 for row c1: If there is a non-zero element in row c1, perform operation 1 on row c1. If there is no non-zero element in row c1, return to row i and enter the column corresponding to the second largest numerical element in row i among the non-zero elements. The column number is recorded as c2 and enter A. price In line c2 of , execute operation 1 of line c2; Starting from the sth row, execute operation 1 of the sth row until reaching the eth column, or all the rows entered cannot reach e; if e can be reached, there is a feasible path from s to e, and the path is recorded; if e cannot be reached, there is no feasible path; where s is the sequence number of any device node in start in the priority sorting list, and e is the sequence number of any device node in end in the priority sorting list; For all feasible paths, sort them according to the order in which they reach e during the execution of the above steps to obtain the path tree tree s.e ,tree s.e ={path1,path2...} The starting number of each path branch is the serial number of the energy supply device in the priority list, the end number is the serial number of the demand device in the priority list, and the intermediate node is the serial number of the conversion device or follower device in the priority list; Traverse the devices in the priority sorting list in the start and end sections in order, generate path trees in sequence, and obtain a complete path tree sorting list in the order in which the path trees are generated; The matrix correction process in the calculation unit includes: Traverse the sorted list of path trees sequentially, and perform forward propagation and reverse correction processes on each path branch of each path tree in sequence to obtain a complete scheduling matrix within this cycle.
Citation Information
Patent Citations
Monthly centralized matchmaking tradeoff clearing method in consideration of power plant group trading electricity constraints
CN107886214A
Distributed optimal scheduling method and system for integrated energy system
CN111062598A
