Electricity price analysis and prediction method and system for new energy power station
By encoding and mutating historical electricity price plans to generate an optimal coding tree, the problem of insufficient flexibility in peak and valley electricity price setting in the existing technology is solved, and a more flexible selection of electricity price plans is achieved.
Patent Information
- Application Number
- CN202410838295.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-10-29
AI Technical Summary
The existing technology lacks flexibility when formulating peak and valley electricity prices, making it difficult to formulate an optimal electricity price plan.
By obtaining historical electricity price plans and electricity period statistics, use the tree data structure to encode the electricity price plan, merge subtrees, fission root nodes and adjust electricity prices to generate multiple initial coding trees, and obtain the optimal coding tree based on these trees. , thereby predicting the electricity price plan.
It improves the flexibility when formulating peak and valley electricity prices, and can find electricity price plans for the quantity and duration of different peak and valley periods, solving the problem of difficulty in formulating the optimal electricity price plan.
Smart Images

Figure CN118864019A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of new energy power stations, and in particular to a method and system for analyzing and predicting electricity prices of new energy power stations. Background Art
[0002] Peak-valley electricity pricing refers to a method of electricity billing that is priced according to the peak and valley periods of electricity demand. In short, it determines the electricity price based on electricity consumption at different times of the day. Under this system, electricity prices tend to be higher during peak hours than during valley hours, which is also the core feature of peak-valley electricity pricing.
[0003] The peak-valley electricity price system has many advantages. First, it can encourage users to use electricity during non-peak hours, thereby dispersing the electricity load, reducing the pressure on the power system during peak hours, and helping to improve the stability and reliability of the power grid. Secondly, the peak-valley electricity price also provides users with more choices and control, allowing them to use the low-price period to carry out high-power consumption activities when appropriate, thereby saving electricity costs. In summary, the peak-valley electricity price system is of great significance in improving energy utilization efficiency and optimizing electricity consumption structure, especially in the field of new energy.
[0004] However, in the existing technology, when formulating peak-valley electricity prices, power stations often pre-select peak hours, valley hours, and normal hours, and then perform data analysis to obtain the electricity price. This greatly limits the flexibility of setting peak-valley electricity prices and makes it difficult to formulate the optimal electricity price plan. Summary of the invention
[0005] Therefore, the present invention provides a method and system for analyzing and predicting electricity prices of new energy power stations, so as to solve the problem of lack of flexibility in formulating peak and valley electricity prices and difficulty in formulating the optimal electricity price plan in the prior art.
[0006] The present invention provides a method for analyzing and predicting electricity prices of a new energy power station, comprising:
[0007] Obtain historical electricity price plans in the form of peak and valley electricity prices and historical electricity consumption period statistics;
[0008] Encode the historical electricity price scheme with a tree data structure to obtain a historical encoding tree;
[0009] According to the changing trend of the historical electricity consumption period statistics, the historical coding tree is merged into subtrees, the root node is fissioned, and the electricity price is adjusted to obtain multiple initial coding trees;
[0010] Based on the historical electricity consumption period statistics, an optimal coding tree is obtained according to multiple initial coding trees;
[0011] According to the optimal coding tree, the predicted electricity price scheme is obtained;
[0012] Among them, the historical coding tree, the initial coding tree and the optimal coding tree are all coding trees, and the coding tree is used to describe an electricity price plan.
[0013] In a preferred embodiment, the coding tree is a binary tree, each node in the coding tree corresponds to a time period, and each node in the coding tree includes the start time, duration, and electricity price of the corresponding time period; the historical electricity price scheme is encoded using the tree data structure to obtain a historical coding tree, including:
[0014] According to the historical electricity price plan, multiple basic time periods are divided starting from 0 o'clock;
[0015] A leaf node of a historical coding tree is established for each basic period, the start time corresponding to the leaf node of the historical coding tree is the start time of the corresponding basic period, the duration corresponding to the leaf node of the historical coding tree is the duration of the corresponding basic period, and the electricity price corresponding to the leaf node of the historical coding tree is the electricity price of the corresponding basic period;
[0016] Arrange the leaf nodes of the multiple historical coding trees from left to right according to the corresponding time sequence, and establish the parent nodes of two nodes in the historical coding trees layer by layer and from left to right in sequence according to the leaf nodes of the multiple historical coding trees to obtain the historical coding tree;
[0017] In the historical coding tree, the start time of the parent node is the start time of its left child node, the duration of the parent node is the sum of the durations of its child nodes, and the electricity price of the parent node is the average electricity price obtained based on its corresponding time period and the electricity prices corresponding to its child nodes.
[0018] In a preferred embodiment, according to the change trend of the historical electricity consumption period statistical graph, the historical coding tree is subjected to the mutation of merging subtrees, fissioning root nodes, and adjusting electricity prices to obtain multiple initial coding trees, including:
[0019] Randomly delete a pair of sibling nodes in the historical coding tree, and obtain the parent node of the sibling node as the target parent node;
[0020] The time period corresponding to the target parent node is obtained as the target time period, and the electricity price of the target parent node is adjusted according to the change trend within the target time period in the historical electricity consumption period statistics chart;
[0021] Starting from the target parent node, adjust the electricity prices of all nodes in the path from the target parent node to the root node in sequence;
[0022] The historical coding tree after deleting the sibling nodes and adjusting the electricity price is used as an initial coding tree.
[0023] In a preferred embodiment, the method of merging subtrees, splitting root nodes, and adjusting electricity prices of historical coding trees according to the change trend of the historical electricity consumption period statistics to obtain multiple initial coding trees also includes:
[0024] Randomly obtain a leaf node in the historical coding tree as the target parent node;
[0025] The time period corresponding to the target parent node is obtained as the target time period, and the electricity price of the target parent node is adjusted according to the change trend within the target time period in the historical electricity consumption period statistics chart;
[0026] Starting from the target parent node, adjust the electricity prices of all nodes in the path from the target parent node to the root node in sequence;
[0027] Obtain the moment with the largest rate of change in the historical electricity consumption period statistics as the splitting moment;
[0028] The splitting time is used as the starting time of the right child node of the target parent node, and the ratio of the average change rate before and after the splitting time in the target time period in the historical electricity consumption period statistics chart is used as the ratio of the electricity prices of the two child nodes. The two child nodes of the target parent node are established, and the electricity price of the target parent node is adjusted, as well as the historical coding tree after the two child nodes of the target parent node are established, as an initial coding tree.
[0029] In a preferred embodiment, the step of obtaining the time period corresponding to the target parent node as the target time period and adjusting the electricity price of the target parent node according to the change trend within the target time period in the historical electricity consumption time period statistics diagram includes:
[0030] The electricity price of the target parent node is adjusted by the following formula:
[0031] EP1=EP0+amp×r×R aver ;
[0032] Among them, EP1 is the electricity price of the target parent node after adjustment, EP0 is the electricity price of the target parent node before adjustment, amp is the preset change amplitude, r is a random number between 0 and 1, and R aver It is the average rate of change during the target time period in the historical electricity consumption period statistics chart.
[0033] In a preferred embodiment, the method of obtaining an optimal coding tree based on a plurality of initial coding trees based on a historical electricity consumption period statistical diagram includes:
[0034] Evaluation: Evaluate the economic value of multiple initial coding trees based on a preset evaluation function. The economic value is used to describe the economic degree of the electricity price scheme corresponding to a coding tree;
[0035] Screening: Select the initial coding tree whose economic value exceeds the preset threshold as the reserved coding tree;
[0036] Derivation: According to the changing trend of the historical electricity consumption period statistics, the retained coding tree is mutated by merging subtrees and fissioning root nodes to obtain multiple derived coding trees;
[0037] Iteration: The retained coding tree and the derived coding tree are reused as the initial coding tree;
[0038] The steps of evaluation, screening, derivation and iteration are repeated for the initial coding tree until a preset end condition is reached, and the retained coding tree and derived coding tree finally obtained are taken as the optimal coding tree.
[0039] In a preferred embodiment: the preset evaluation function is:
[0040]
[0041] Among them, EV is the economic value, height is the height of the coding tree, n leaf is the number of leaf nodes in the coding tree, n ex is the number of extreme values of the fitting curve obtained according to the historical electricity consumption period statistics, A is the electricity price in the root node of the coding tree, e is a natural constant, and a, b, c, d and s are different preset weight coefficients.
[0042] The present invention also provides an electricity price analysis and prediction system for a new energy power station, comprising:
[0043] An input module is used to obtain historical electricity price plans in the form of peak and valley electricity prices and historical electricity consumption period statistics;
[0044] An encoding module, used for encoding the historical electricity price scheme in a tree data structure to obtain a historical encoding tree;
[0045] The mutation module is used to mutate the historical coding tree by merging subtrees and fissioning root nodes according to the changing trend of the historical electricity consumption period statistics chart to obtain multiple initial coding trees;
[0046] An optimization module is used to obtain an optimal coding tree based on a historical electricity consumption period statistical diagram and multiple initial coding trees;
[0047] An output module is used to obtain a predicted electricity price scheme according to the optimal coding tree;
[0048] Among them, the historical coding tree, the initial coding tree and the optimal coding tree are all coding trees, and the coding tree is used to describe an electricity price plan.
[0049] The beneficial effects of adopting the above embodiment are:
[0050] The present invention provides an electricity price analysis and prediction method for a new energy power station, which first encodes the historical electricity price scheme to obtain a historical coding tree, then mutates the historical coding tree in combination with the change trend of the historical electricity consumption period statistical chart to obtain multiple initial coding trees, and then obtains the optimal coding tree based on the historical electricity consumption period statistical chart and the multiple initial coding trees, thereby obtaining the optimal predicted electricity price scheme. Compared with the prior art, the present invention represents the electricity price scheme in the form of a coding tree, so that other electricity price schemes with different numbers and durations of peak and valley periods can be found by merging subtrees, fissioning root nodes, and adjusting the variation of electricity prices, which greatly improves the flexibility in formulating peak and valley electricity prices and solves the problem of difficulty in formulating the optimal electricity price scheme. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 A method flow chart of the method for analyzing and predicting electricity prices of new energy power stations provided by the present invention;
[0052] Figure 2 A diagram of the process of establishing the historical coding tree;
[0053] Figure 3 It is a schematic diagram of the structure of an initial coding tree;
[0054] Figure 4 It is a schematic diagram of the structure of another initial coding tree;
[0055] Figure 5 This is a system architecture diagram of the electricity price analysis and prediction system for the new energy power station provided by the present invention. DETAILED DESCRIPTION
[0056] 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.
[0057] Combination Figure 1 As shown, a specific embodiment of the present invention discloses a method for analyzing and predicting electricity prices of a new energy power station, comprising:
[0058] S101, obtaining a historical electricity price plan in the form of peak and valley electricity prices and a historical electricity consumption period statistical chart;
[0059] S102, encoding the historical electricity price scheme in a tree data structure to obtain a historical encoding tree;
[0060] S103, according to the change trend of the historical electricity consumption period statistics, merge subtrees, split root nodes, and adjust electricity prices on the historical coding tree to obtain multiple initial coding trees;
[0061] S104, based on the historical electricity consumption period statistics, according to multiple initial coding trees, obtain the optimal coding tree;
[0062] S105, obtaining a predicted electricity price scheme according to the optimal coding tree;
[0063] Among them, the historical coding tree, the initial coding tree and the optimal coding tree are all coding trees, and the coding tree is used to describe an electricity price plan.
[0064] In the above process, the historical electricity price plan is the most recently formulated electricity price plan, which is specifically in the form of peak and valley. The historical electricity consumption period statistics chart is the statistical usage data of a peak and valley cycle in the recent period of time (such as a quarter, a year, etc.), such as the 24-hour average electricity consumption waveform curve.
[0065] In addition, all the coding trees mentioned in this article are trees. A tree is a nonlinear data structure that consists of a set of nodes connected in a specific way. The basic components of a tree include nodes and edges. Each node can have zero or more child nodes, which are connected to the parent node through edges. There is a special node in the tree structure called the root node, which is located at the top of the tree and has no parent node. Nodes without child nodes are called leaf nodes. In a tree structure, the relationship between nodes can be represented by the hierarchical structure of the tree. The direct child nodes of a node are located at the next level, and the child nodes of these child nodes are located at a lower level, and so on. The path between nodes refers to the sequence of edges passing from one node to another. Tree structures have many different application scenarios, including file systems, organizational structures, database indexes, etc. Common tree structures include binary trees, binary search trees, balanced binary trees, B-trees, etc. It is understandable that the relevant concepts of trees, as well as the tree-related directional words such as "left", "right", "up", and "down" mentioned later are all existing technologies that can be understood by people in this field, so they will not be explained in detail in this article.
[0066] Compared with the prior art, the present invention expresses the electricity price scheme in the form of a coding tree. The tree can not only express the electricity price scheme for peak and valley time, but also perform mutation optimization to obtain electricity price schemes with different peak and valley division methods, which is an effect that the prior art cannot achieve. Specifically, other electricity price schemes with different numbers and durations of peak and valley time periods can be found by merging subtrees and fissioning root nodes, which greatly improves the flexibility of formulating peak and valley electricity prices and solves the problem of difficulty in formulating the optimal electricity price scheme.
[0067] Specifically, in a preferred embodiment, the coding tree is a binary tree, each node in the coding tree corresponds to a time period, and each node in the coding tree includes the start time, duration and electricity price of the corresponding time period; the above step S102, encoding the historical electricity price scheme with the data structure of the tree to obtain the historical coding tree, specifically includes:
[0068] According to the historical electricity price plan, multiple basic time periods are divided starting from 0 o'clock;
[0069] A leaf node of a historical coding tree is established for each basic period, the start time corresponding to the leaf node of the historical coding tree is the start time of the corresponding basic period, the duration corresponding to the leaf node of the historical coding tree is the duration of the corresponding basic period, and the electricity price corresponding to the leaf node of the historical coding tree is the electricity price of the corresponding basic period;
[0070] Arrange the leaf nodes of the multiple historical coding trees from left to right according to the corresponding time sequence, and establish the parent nodes of two nodes in the historical coding trees layer by layer and from left to right in sequence according to the leaf nodes of the multiple historical coding trees to obtain the historical coding tree;
[0071] In the historical coding tree, the start time of the parent node is the start time of its left child node, the duration of the parent node is the sum of the durations of its child nodes, and the electricity price of the parent node is the average electricity price obtained based on its corresponding time period and the electricity prices corresponding to its child nodes.
[0072] The present invention also provides a more detailed embodiment to clearly illustrate the above process:
[0073] Assume that the current electricity price plan is known to be:
[0074] 15:00-21:00 is the peak period, and the electricity price is 1.0 yuan / kWh;
[0075] 21:00-8:00 is the normal period, and the electricity price is 0.8 yuan / kWh;
[0076] 8:00-15:00 is the off-peak period, and the electricity price is 0.5 yuan / kWh.
[0077] Then, the multiple basic time periods divided from 0 o'clock are: 0:00-8:00, 8:00-15:00, 15:00-21:00, 21:00-0:00. Then the process of establishing the historical coding tree is as follows Figure 2 shown. Figure 2 Each node in the tree is a triplet, the values of the first two elements in the node correspond to the start time and duration respectively, and the third element corresponds to the electricity price. It can be understood that in this embodiment, the first leaf nodes generated are 4, so a complete binary tree can be established. In practice, if the first leaf nodes generated are an odd number, there will be one leaf node left when the parent node is established for the first time. At this time, the leaf node can be directly moved up one level.
[0078] This embodiment uses a binary tree as the coding tree. First, the search operation of the binary tree is efficient. Since each node has at most two child nodes, it is only necessary to compare the target value and the value of the current node when searching. The target value can be quickly located by continuously moving to the left or right subtree. Secondly, the insertion and deletion operations of the binary tree are also relatively simple and efficient. It is only necessary to insert a new node or delete a specified node at the appropriate position, without the need to readjust the entire data structure like a linked list. In addition, the traversal operation of the binary tree is very flexible, and multiple traversal methods such as pre-order, in-order, post-order, and layer-order can be used, which is suitable for different problem-solving scenarios. In this way, the readability and computational efficiency of the electricity price analysis and prediction process can be greatly improved.
[0079] Further, in a preferred embodiment, the above step S103, according to the change trend of the historical electricity consumption period statistical graph, merges subtrees, fissions root nodes, and adjusts the electricity price of the historical coding tree to obtain multiple initial coding trees, specifically including:
[0080] Randomly delete a pair of sibling nodes in the historical coding tree, and obtain the parent node of the sibling node as the target parent node;
[0081] The time period corresponding to the target parent node is obtained as the target time period, and the electricity price of the target parent node is adjusted according to the change trend within the target time period in the historical electricity consumption period statistics chart;
[0082] Starting from the target parent node, adjust the electricity prices of all nodes in the path from the target parent node to the root node in sequence;
[0083] The historical coding tree after deleting the sibling nodes and adjusting the electricity price is used as an initial coding tree.
[0084] The above process of deleting brother nodes is the process of merging subtrees. Since the process of merging subtrees is implicit when the historical coding tree is established, it is only necessary to delete the brother nodes here to achieve the effect of merging subtrees. The two brother nodes in the above process can both be leaf nodes, or they can be two parent nodes at the same level and adjacent. When the parent node is deleted, the subtrees with these parent nodes as root nodes are deleted together. Similarly, in the above process, the electricity prices of all nodes in the path from the target parent node to the root node are adjusted in turn, which is the same as the process of determining the electricity price of the parent node when the historical coding tree was established before, so this article will not explain it in detail.
[0085] Figure 3 This is an example of an initial coding tree obtained by the variation method mentioned in this embodiment (based on the previous embodiment). It can be seen that the original four basic time periods are changed to three in this way, which reflects the flexibility of the method.
[0086] Furthermore, in a preferred embodiment, the above step S103, according to the change trend of the historical electricity consumption period statistical graph, the historical coding tree is mutated by merging subtrees and fissioning root nodes to obtain multiple initial coding trees, and further includes:
[0087] Randomly obtain a leaf node in the historical coding tree as the target parent node;
[0088] The time period corresponding to the target parent node is obtained as the target time period, and the electricity price of the target parent node is adjusted according to the change trend within the target time period in the historical electricity consumption period statistics chart;
[0089] Starting from the target parent node, adjust the electricity prices of all nodes in the path from the target parent node to the root node in sequence;
[0090] Obtain the moment with the largest rate of change in the historical electricity consumption period statistics as the splitting moment;
[0091] The splitting time is used as the starting time of the right child node of the target parent node, and the ratio of the average change rate before and after the splitting time in the target time period in the historical electricity consumption period statistics chart is used as the ratio of the electricity prices of the two child nodes. The two child nodes of the target parent node are established, and the electricity price of the target parent node is adjusted, as well as the historical coding tree after the two child nodes of the target parent node are established, as an initial coding tree.
[0092] In the above process, the rate of change can be the derivative of the curve corresponding to the historical electricity consumption period statistics chart. It can be understood that after determining the splitting time, the start time, duration, and electricity price of the two child nodes of the target parent node can be determined. Obviously, the duration of the two child nodes can be obtained by determining the splitting time. It is known that the electricity price of the target parent node is the average of the electricity prices of its two child nodes. Then, after determining the duration, the electricity prices of the two child nodes can be determined based on the electricity price and duration of the target parent node and the duration of the two child nodes.
[0093] Figure 4 This is another example of an initial coding tree obtained by the variation method mentioned in this embodiment (based on the previous embodiment). It can be seen that the original four basic time periods are changed to five in this way, which reflects the flexibility of the method.
[0094] It can be understood that, in addition to the above two variation methods of changing the number and time of basic time periods, it is also possible to adjust only the electricity price in the historical coding tree to obtain the initial coding tree. In addition, in the above two variation methods, the method of adjusting the electricity price of the target parent node is the same, specifically: in a preferred embodiment, the time period corresponding to the target parent node is obtained as the target time period, and the electricity price of the target parent node is adjusted according to the change trend in the target time period in the historical electricity consumption time period statistical diagram, including:
[0095] The electricity price of the target parent node is adjusted by the following formula:
[0096] EP1=EP0+amp×r×R aver ;
[0097] Among them, EP1 is the electricity price of the target parent node after adjustment, EP0 is the electricity price of the target parent node before adjustment, amp is the preset change amplitude, r is a random number between 0 and 1, and R aver It is the average rate of change during the target time period in the historical electricity consumption period statistics chart.
[0098] In the above formula, the preset change amplitude can be obtained based on experience and is a pre-set hyperparameter. The random number is used to increase the randomness of the variation, and the average change rate in the target time period in the historical electricity consumption period statistics chart is used to control the amplitude of the random variation. When the historical electricity consumption period statistics chart shows that the user's electricity consumption fluctuates greatly, the degree of variation of the electricity price can be increased to find more and better possibilities.
[0099] Further, in a preferred embodiment, the above step S104, based on the historical electricity consumption period statistics, obtains the optimal coding tree according to multiple initial coding trees, specifically includes:
[0100] Evaluation: Evaluate the economic value of multiple initial coding trees based on a preset evaluation function. The economic value is used to describe the economic degree of the electricity price scheme corresponding to a coding tree;
[0101] Screening: Select the initial coding tree whose economic value exceeds the preset threshold as the reserved coding tree;
[0102] Derivation: According to the changing trend of the historical electricity consumption period statistics, the retained coding tree is mutated by merging subtrees and fissioning root nodes to obtain multiple derived coding trees;
[0103] Iteration: The retained coding tree and the derived coding tree are reused as the initial coding tree;
[0104] The steps of evaluation, screening, derivation and iteration are repeated for the initial coding tree until a preset end condition is reached, and the retained coding tree and derived coding tree finally obtained are taken as the optimal coding tree.
[0105] In the above process, the preset end condition is that the loop iteration ends after a certain number of times, or it can end when the proportion of retained coding trees exceeds a preset threshold. In addition, the method of obtaining the derived coding tree in the above derivation process is the same as the method of obtaining the initial coding tree by mutating the historical coding tree in the previous text. It can be understood that the above process is an iterative optimization process, which can obtain a more accurate and reasonable electricity price plan. In practice, depending on the specific situation, it is also possible to choose not to perform iterative optimization and directly select the optimal coding tree from the initial coding tree.
[0106] Furthermore, in a preferred embodiment, the preset evaluation function in the above steps is:
[0107]
[0108] Among them, EV is the economic value, height is the height of the coding tree, n leaf is the number of leaf nodes in the coding tree, n ex is the number of extreme values of the fitting curve obtained according to the average change rate in the target time period in the historical electricity consumption period statistics diagram, A is the electricity price in the root node of the coding tree, e is a natural constant, and a, b, c, d and s are different preset weight coefficients respectively.
[0109] The above formula comprehensively evaluates the economic feasibility of the electricity price scheme from three perspectives: the rationality of the electricity price scheme corresponding to the coding tree, the similarity with the historical electricity consumption period statistics, and the degree of benefits that can be brought. Among them, the first item is evaluated from two perspectives: the height of the coding tree and the number of leaf nodes. Generally speaking, when the height of the coding tree is 3 layers, the corresponding peak and valley time division scheme is more easily accepted by people. When the height of the coding tree is too low, it means that it basically does not have the advantage of peak and valley division. When the height of the coding tree is too high or the number of leaf nodes is too large, it means that the peak and valley time division is too detailed, which brings trouble to users. The second item in the formula is the difference between the number of leaf nodes of the coding tree and the number of extreme values of the fitting curve obtained according to the average change rate in the target time period in the historical electricity consumption period statistics, to reflect the degree of consistency between the peak and valley division scheme corresponding to the coding tree and the user's electricity consumption peak and valley time period. The third item is the comprehensive electricity price level represented by the coding tree (that is, the electricity price in the root node, which can be directly obtained through the root node, eliminating the process of traversing the entire tree) to reflect the level of benefits that the electricity price scheme can bring. The economic value calculated by the above formula can quickly and accurately indicate the economic level of an electricity price plan.
[0110] It is understandable that in practice, other methods can be used to calculate the economic value according to specific needs. For example, according to the electricity price plan represented by the coding tree, an electricity price curve is fitted, and the electricity price curve is compared with the historical electricity consumption period statistics. The higher the similarity between the two, the more consistent the peak and valley time division in the current electricity price plan is with the user's electricity consumption habits, and the higher the economic value.
[0111] Combination Figure 5 As shown, the present invention also provides an electricity price analysis and prediction system for a new energy power station, comprising:
[0112] An input module 510 is used to obtain a historical electricity price plan in the form of peak and valley electricity prices and a historical electricity consumption period statistical chart;
[0113] The encoding module 520 is used to encode the historical electricity price scheme in a tree data structure to obtain a historical encoding tree;
[0114] The mutation module 530 is used to mutate the historical coding tree by merging subtrees and fissioning root nodes according to the change trend of the historical electricity consumption period statistical graph to obtain multiple initial coding trees;
[0115] The optimization module 540 is used to obtain an optimal coding tree based on a historical electricity consumption period statistical diagram and a plurality of initial coding trees;
[0116] An output module 550 is used to obtain a predicted electricity price scheme according to the optimal coding tree;
[0117] Among them, the historical coding tree, the initial coding tree and the optimal coding tree are all coding trees, and the coding tree is used to describe an electricity price plan.
[0118] It should be noted here that the corresponding system provided in the above embodiments can implement the technical solutions described in the above method embodiments. The specific implementation principles of the above modules or units can be found in the corresponding contents in the above method embodiments, which will not be repeated here.
[0119] The present invention provides an electricity price analysis and prediction method for a new energy power station, which first encodes the historical electricity price scheme to obtain a historical coding tree, then mutates the historical coding tree in combination with the change trend of the historical electricity consumption period statistical chart to obtain multiple initial coding trees, and then obtains the optimal coding tree based on the historical electricity consumption period statistical chart and the multiple initial coding trees, thereby obtaining the optimal predicted electricity price scheme. Compared with the prior art, the present invention represents the electricity price scheme in the form of a coding tree, so that other electricity price schemes with different numbers and durations of peak and valley periods can be found by merging subtrees, fissioning root nodes, and adjusting the variation of electricity prices, which greatly improves the flexibility in formulating peak and valley electricity prices and solves the problem of difficulty in formulating the optimal electricity price scheme.
[0120] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0121] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for analyzing and predicting electricity prices of new energy power stations, characterized in that: include: Obtain historical electricity price plans in the form of peak and valley electricity prices and historical electricity consumption period statistics; Encode the historical electricity price scheme with a tree data structure to obtain a historical encoding tree; According to the changing trend of the historical electricity consumption period statistics, the historical coding tree is merged into subtrees, the root node is fissioned, and the electricity price is adjusted to obtain multiple initial coding trees; Based on the historical electricity consumption period statistics, an optimal coding tree is obtained according to multiple initial coding trees; According to the optimal coding tree, the predicted electricity price scheme is obtained; Among them, the historical coding tree, the initial coding tree and the optimal coding tree are all coding trees, and the coding tree is used to describe an electricity price plan.
2. The method for analyzing and predicting electricity prices of new energy power stations according to claim 1, characterized in that: The coding tree is a binary tree. Each node in the coding tree corresponds to a time period. Each node in the coding tree includes the start time, duration and electricity price of the corresponding time period. The historical electricity price scheme is encoded using the tree data structure to obtain a historical coding tree, including: According to the historical electricity price plan, multiple basic time periods are divided starting from 0 o'clock; A leaf node of a historical coding tree is established for each basic period, the start time corresponding to the leaf node of the historical coding tree is the start time of the corresponding basic period, the duration corresponding to the leaf node of the historical coding tree is the duration of the corresponding basic period, and the electricity price corresponding to the leaf node of the historical coding tree is the electricity price of the corresponding basic period; Arrange the leaf nodes of the multiple historical coding trees from left to right according to the corresponding time sequence, and establish the parent nodes of two nodes in the historical coding trees layer by layer and from left to right in sequence according to the leaf nodes of the multiple historical coding trees to obtain the historical coding tree; In the historical coding tree, the start time of the parent node is the start time of its left child node, the duration of the parent node is the sum of the durations of its child nodes, and the electricity price of the parent node is the average electricity price obtained based on its corresponding time period and the electricity prices corresponding to its child nodes.
3. The method for analyzing and predicting electricity prices of new energy power stations according to claim 2, characterized in that: According to the change trend of the historical electricity consumption period statistics, the historical coding tree is merged into subtrees, the root node is fissioned, and the electricity price is adjusted to obtain multiple initial coding trees, including: Randomly delete a pair of sibling nodes in the historical coding tree, and obtain the parent node of the sibling node as the target parent node; The time period corresponding to the target parent node is obtained as the target time period, and the electricity price of the target parent node is adjusted according to the change trend within the target time period in the historical electricity consumption period statistics chart; Starting from the target parent node, adjust the electricity prices of all nodes in the path from the target parent node to the root node in sequence; The historical coding tree after deleting the sibling nodes and adjusting the electricity price is used as an initial coding tree.
4. The method for analyzing and predicting electricity prices of new energy power stations according to claim 3, characterized in that: According to the change trend of the historical electricity consumption period statistical graph, the historical coding tree is merged into subtrees, the root node is fissioned, and the electricity price is adjusted to obtain multiple initial coding trees, and the method also includes: Randomly obtain a leaf node in the historical coding tree as the target parent node; The time period corresponding to the target parent node is obtained as the target time period, and the electricity price of the target parent node is adjusted according to the change trend within the target time period in the historical electricity consumption period statistics chart; Starting from the target parent node, adjust the electricity prices of all nodes in the path from the target parent node to the root node in sequence; Obtain the moment with the largest rate of change in the historical electricity consumption period statistics as the splitting moment; The splitting time is used as the starting time of the right child node of the target parent node, and the ratio of the average change rate before and after the splitting time in the target time period in the historical electricity consumption period statistics chart is used as the ratio of the electricity prices of the two child nodes. The two child nodes of the target parent node are established, and the electricity price of the target parent node is adjusted, as well as the historical coding tree after the two child nodes of the target parent node are established, as an initial coding tree.
5. The method for analyzing and predicting electricity prices of new energy power stations according to claim 4, characterized in that: The step of obtaining a time period corresponding to the target parent node as the target time period, and adjusting the electricity price of the target parent node according to a change trend within the target time period in a historical electricity consumption time period statistical diagram, includes: The electricity price of the target parent node is adjusted by the following formula: EP1=EP0+amp×r×R aver ; Among them, EP1 is the electricity price of the target parent node after adjustment, EP0 is the electricity price of the target parent node before adjustment, amp is the preset change amplitude, r is a random number between 0 and 1, and R aver It is the average rate of change during the target time period in the historical electricity consumption period statistics chart.
6. The method for analyzing and predicting electricity prices of new energy power stations according to claim 2, characterized in that: The method of obtaining an optimal coding tree based on a plurality of initial coding trees based on a historical electricity consumption period statistical diagram includes: Evaluation: Evaluate the economic value of multiple initial coding trees based on a preset evaluation function. The economic value is used to describe the economic degree of the electricity price scheme corresponding to a coding tree; Screening: Select the initial coding tree whose economic value exceeds the preset threshold as the reserved coding tree; Derivation: According to the changing trend of the historical electricity consumption period statistics, the retained coding tree is mutated by merging subtrees and fissioning root nodes to obtain multiple derived coding trees; Iteration: The retained coding tree and the derived coding tree are reused as the initial coding tree; The steps of evaluation, screening, derivation and iteration are repeated for the initial coding tree until a preset end condition is reached, and the retained coding tree and derived coding tree finally obtained are taken as the optimal coding tree.
7. The method for analyzing and predicting electricity prices of a new energy power station according to claim 6, characterized in that: The preset evaluation function is: Among them, EV is the economic value, height is the height of the coding tree, n leaf is the number of leaf nodes in the coding tree, n ex is the number of extreme values of the fitting curve obtained according to the historical electricity consumption period statistics, A is the electricity price in the root node of the coding tree, e is a natural constant, and a, b, c, d and s are different preset weight coefficients.
8. A power price analysis and prediction system for a new energy power station, characterized in that: include: An input module is used to obtain historical electricity price plans in the form of peak and valley electricity prices and historical electricity consumption period statistics; An encoding module, used for encoding the historical electricity price scheme in a tree data structure to obtain a historical encoding tree; The mutation module is used to mutate the historical coding tree by merging subtrees and fissioning root nodes according to the changing trend of the historical electricity consumption period statistics chart to obtain multiple initial coding trees; An optimization module is used to obtain an optimal coding tree based on a historical electricity consumption period statistical diagram and multiple initial coding trees; An output module is used to obtain a predicted electricity price scheme according to the optimal coding tree; Among them, the historical coding tree, the initial coding tree and the optimal coding tree are all coding trees, and the coding tree is used to describe an electricity price plan.
Citation Information
Cited By
Household intelligent power consumption management method and system based on intelligent fusion terminal
CN120953009A
