Power system unit commitment optimization method and device, computer equipment, readable storage medium and program product
By using graph neural network and long-short-term memory network to extract topological structure and time series features in the power system, and constructing a spatio-temporal feature matrix, it solves the problem of difficulty in efficiently processing big data in the power system unit combination optimization in the existing technology, and achieves a more consistent Optimal combination scheme of grid constraints.
Patent Information
- Application Number
- CN202410846424.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-10-01
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing technology is difficult to efficiently obtain optimized unit combination results when processing large amounts of power system data, and fails to fully consider the grid topology and time characteristics, resulting in unit combination solutions that do not comply with grid power flow constraints and safety constraints.
Using a unit combination solution model including a spatial feature extraction layer and a temporal feature extraction layer, the topological structure features and time series features of the power system are extracted through graph neural networks and long-short-term memory networks, a spatio-temporal feature information matrix is constructed, and optimized unit combination information is output. .
Process a large amount of data in a short period of time to meet the real-time requirements of the power market and obtain an optimized unit combination plan that is more in line with power grid power flow constraints and safety constraints.
Smart Images

Figure CN118735729A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of electrical engineering technology, and in particular to a method, device, computer equipment, computer-readable storage medium and computer program product for optimizing the combination of power system units. Background Art
[0002] The power system is an important infrastructure. In order to ensure its efficient operation, the unit combination scheme of the power system is usually determined by optimizing the dispatch. However, due to the rapid fluctuation of the power grid operation status, the timeliness of the analysis and decision-making of the optimized dispatch is required to be high. In addition, with the continuous development of the power system, the power grid data has increased dramatically. The current optimization dispatch analysis method is often difficult to efficiently obtain a better power system unit combination result when a large amount of data needs to be processed. Summary of the invention
[0003] Based on this, it is necessary to provide a method, device, computer equipment, computer-readable storage medium and computer program product for optimizing the combination of power system units in response to the above-mentioned technical problems.
[0004] In a first aspect, the present application provides a method for optimizing a power system unit combination, comprising:
[0005] Constructing a graph state matrix of the power system according to the operation state information and topology structure information of the power system;
[0006] Utilizing the spatial feature extraction layer of the unit commitment solution model, the topological structure features of the graph state matrix are extracted through a graph neural network to obtain a spatial feature information matrix of the power system;
[0007] Utilizing the time feature extraction layer of the unit commitment solution model, extracting the time series features of the spatial feature information matrix through a long short-term memory network, and obtaining the spatiotemporal feature information matrix of the power system;
[0008] The output layer of the unit commitment solution model is utilized to output the optimized unit commitment information of the power system at multiple future time points according to the spatiotemporal characteristic information matrix.
[0009] In one of the embodiments, constructing a graph state matrix of the power system based on the operating state information and topological structure information of the power system includes: obtaining a state feature vector corresponding to each subject in the power system based on the operating state information, and constructing the operating state matrix based on the state feature vector; obtaining a structural graph model including the connection relationship between each subject in the power system based on the topological structure information, and constructing an adjacency matrix corresponding to the structural graph model; and obtaining the graph state matrix of the power system based on the operating state matrix and the adjacency matrix.
[0010] In one of the embodiments, the subject of the power system includes a production subject; the state characteristic vector corresponding to the production subject includes a production cost parameter vector and an operation constraint parameter vector of the production subject.
[0011] In one of the embodiments, the main body of the power system includes a bus; the state characteristic vector corresponding to the bus includes a load parameter vector of the bus.
[0012] In one of the embodiments, the unit combination solution model is trained through the following steps: obtaining multiple graph state matrix samples of the power system, the optimal unit combination samples corresponding to each of the graph state matrix samples, and the operating constraints of each subject in the power system; constructing a network model including a spatial feature extraction layer, a temporal feature extraction layer and an output layer; inputting each of the graph state matrix samples into the network model to obtain the unit combination information output by the network model; training the network model according to the differences between each of the unit combination information and the corresponding each of the optimal unit combination samples, and the satisfaction of each of the unit combination information with the operating constraints to obtain the unit combination solution model.
[0013] In one of the embodiments, the network model is trained according to the difference between each of the unit combination information and the corresponding each of the optimal unit combination samples, and the satisfaction of each of the unit combination information for the operating constraints, to obtain the unit combination solution model, including: obtaining a first model loss of the network model according to the difference between each of the unit combination information and the corresponding each of the optimal unit combination samples; obtaining a second model loss of the network model according to the satisfaction of each of the unit combination information for the operating constraints; wherein the operating constraints include the minimum continuous start and stop time constraints, maximum and minimum output constraints, and climbing constraints of each of the entities; obtaining a comprehensive model loss of the network model according to the first model loss and the second model loss; when the comprehensive model loss does not meet the preset conditions, cyclically adjusting the model parameters of the network model based on the back propagation algorithm until the comprehensive model loss of the adjusted network model meets the preset conditions; and using the adjusted network model as the unit combination solution model.
[0014] In a second aspect, the present application also provides a power system unit combination optimization device, comprising:
[0015] A construction module, used for constructing a graph state matrix of the power system according to the operation state information and topology structure information of the power system;
[0016] A first extraction module is used to use the spatial feature extraction layer of the unit commitment solution model to extract the topological structure features of the graph state matrix through a graph neural network to obtain the spatial feature information matrix of the power system;
[0017] A second extraction module is used to use the time feature extraction layer of the unit combination solution model to extract the time series features of the spatial feature information matrix through a long short-term memory network to obtain the spatiotemporal feature information matrix of the power system;
[0018] An output module is used to utilize the output layer of the unit combination solution model to output the optimized unit combination information of the power system at multiple future time points according to the spatiotemporal characteristic information matrix.
[0019] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0020] Constructing a graph state matrix of the power system according to the operation state information and topology structure information of the power system;
[0021] Utilizing the spatial feature extraction layer of the unit commitment solution model, the topological structure features of the graph state matrix are extracted through a graph neural network to obtain a spatial feature information matrix of the power system;
[0022] Utilizing the time feature extraction layer of the unit commitment solution model, extracting the time series features of the spatial feature information matrix through a long short-term memory network, and obtaining the spatiotemporal feature information matrix of the power system;
[0023] The output layer of the unit commitment solution model is utilized to output the optimized unit commitment information of the power system at multiple future time points according to the spatiotemporal characteristic information matrix.
[0024] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
[0025] Constructing a graph state matrix of the power system according to the operation state information and topology structure information of the power system;
[0026] Utilizing the spatial feature extraction layer of the unit commitment solution model, the topological structure features of the graph state matrix are extracted through a graph neural network to obtain a spatial feature information matrix of the power system;
[0027] Utilizing the time feature extraction layer of the unit commitment solution model, extracting the time series features of the spatial feature information matrix through a long short-term memory network, and obtaining the spatiotemporal feature information matrix of the power system;
[0028] The output layer of the unit commitment solution model is utilized to output the optimized unit commitment information of the power system at multiple future time points according to the spatiotemporal characteristic information matrix.
[0029] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:
[0030] Constructing a graph state matrix of the power system according to the operation state information and topology structure information of the power system;
[0031] Utilizing the spatial feature extraction layer of the unit commitment solution model, the topological structure features of the graph state matrix are extracted through a graph neural network to obtain a spatial feature information matrix of the power system;
[0032] Utilizing the time feature extraction layer of the unit commitment solution model, extracting the time series features of the spatial feature information matrix through a long short-term memory network, and obtaining the spatiotemporal feature information matrix of the power system;
[0033] The output layer of the unit commitment solution model is utilized to output the optimized unit commitment information of the power system at multiple future time points according to the spatiotemporal characteristic information matrix.
[0034] The above-mentioned power system unit combination optimization method, device, computer equipment, computer-readable storage medium and computer program product first construct a graph state matrix of the power system according to the operation state information and topological structure information of the power system, then use the spatial feature extraction layer of the unit combination solution model to extract the topological structure features of the graph state matrix through the graph neural network to obtain the spatial feature information matrix of the power system, and then use the time feature extraction layer of the unit combination solution model to extract the time series features of the spatial feature information matrix through the long short-term memory network to obtain the spatiotemporal feature information matrix of the power system, and then use the output layer of the unit combination solution model to output the optimized unit combination information of the power system at multiple future time points according to the spatiotemporal feature information matrix. This scheme optimizes and solves the unit combination of the power system through the unit combination solution model, can process a large amount of power data of the power system in a short time, and obtain the optimized unit combination results efficiently and quickly. Moreover, in the process of optimizing and solving the unit combination of the power system, this scheme takes the operating status and topological structure of the power system into consideration, and extracts the topological structure characteristics and time series characteristics of the power system through the spatial feature extraction layer and the temporal feature extraction layer of the unit combination solution model in turn, thereby obtaining an optimized unit combination scheme that is more in line with the grid flow constraints and safety constraints of the power system. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0036] Figure 1 A schematic diagram of a flow chart of a method for optimizing a power system unit combination in one embodiment;
[0037] Figure 2 A schematic diagram of the structure of a unit combination solution model in an embodiment;
[0038] Figure 3 A schematic diagram of a process of obtaining a graph state matrix of a power system in one embodiment;
[0039] Figure 4 A schematic flow chart of a method for optimizing the unit combination of a power system in another embodiment;
[0040] Figure 5 A schematic diagram of a training process of a unit combination solving model in one embodiment;
[0041] Figure 6A schematic diagram of a process for adjusting a network model in one embodiment;
[0042] Figure 7 A structural block diagram of a power system unit combination optimization device in one embodiment;
[0043] Figure 8 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0044] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0045] In the process of solving the optimization problem of the unit combination of the power system, the unit combination is usually solved by a solver or a reinforcement learning method. However, the amount of calculation required to solve the unit combination usually increases exponentially with the scale of the problem. With the participation of various load-side flexible resources in the unit dispatch plan, the scale of the problem has also expanded dramatically. The solver mostly uses a branch-and-bound mixed integer programming algorithm, which has a slow solution speed when a large amount of data needs to be processed, and it is difficult to meet the real-time requirements of the power market. The current method using reinforcement learning fails to fully consider the grid topology information, which easily leads to the generation of unit combination schemes that do not meet the grid flow constraints. In addition, this method does not fully consider the time characteristic information of the load sequence, which may cause the obtained unit combination scheme to fail to meet the minimum continuous start-up / shutdown time constraints.
[0046] Based on this, the present application provides a method, apparatus, computer equipment, computer-readable storage medium and computer program product for optimizing the unit combination of a power system, which optimizes and solves the unit combination of a power system by using a unit combination solution model including a spatial feature extraction layer and a temporal feature extraction layer, and can complete the processing of a large amount of data in a short time to meet the real-time requirements of the power market, and can fully consider the power grid topology information and time characteristic information, so as to obtain a unit combination scheme that is more in line with the power grid flow constraints and safe operation constraints.
[0047] In one embodiment, Figure 1 As shown, a method for optimizing the unit combination of a power system is provided. This embodiment takes the method applied to a server as an example for illustration. It can be understood that the method can also be applied to a terminal, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps:
[0048] Step S101: constructing a graph state matrix of the power system according to the operation state information and topology structure information of the power system.
[0049] The power system may include various types of entities, such as busbars, thermal power units, hydropower units, wind farms, photovoltaic power stations, virtual power plants, energy storage power stations and other types of production entities. The operation status information of the power system may include the production cost parameters, operation constraint parameters and busbar load parameters of each production entity in the power system. The topological structure information of the power system may include the spatial connection relationship between the various entities in the power system.
[0050] In this step, a graph state matrix including the self-operation state of each subject in the power system and the spatial connection relationship between each subject can be constructed based on the operation state information and topological structure information of the power system. Exemplarily, the graph state matrix can include an operation state matrix and an adjacency matrix. The operation state matrix can include the self-operation state parameters of each subject in the power system, and the adjacency matrix can include the spatial connection relationship between each subject in the power system.
[0051] Step S102, using the spatial feature extraction layer of the unit combination solution model, extracting the topological structure features of the graph state matrix through the graph neural network, and obtaining the spatial feature information matrix of the power system.
[0052] Specifically, the present application can use the unit combination solution model to optimize the unit combination of the power system. The unit combination solution model can be a trained network model, and its structure can be as follows: Figure 2 As shown, it includes a spatial feature extraction layer, a temporal feature extraction layer and an output layer. The model can process the input graph state matrix of the power system and output the optimized unit combination information that reduces the production cost of the power system and meets the safety constraints.
[0053] Among them, in this step, the graph state matrix of the power system can be input into the unit combination solution model, and the model can use the spatial feature extraction layer to process the input graph state matrix, use the graph neural network (Graph Neural Network, GNN) to extract the topological structure characteristics of the graph state matrix, and obtain the spatial feature information matrix of the power system.
[0054] For example, taking the aforementioned graph state matrix including the running state matrix and the adjacency matrix as an example, the spatial feature extraction layer can perform graph convolution operations by considering the graph nodes and the first-order neighborhoods of the nodes, thereby capturing the spatial features of the graph, and can apply the hierarchical propagation rule to the superposition of multiple networks. Among them, for the running state matrix X, the graph convolution formula used by the model can be shown as follows:
[0055]
[0056] Where A is the adjacency matrix, is the activation function, and the input is the running state matrix and the adjacency matrix , is the characteristic dimension of each node, is the parameter matrix, , , is the number of neurons in the hidden layer of the graph convolutional network, is the output sequence length, is a symmetric normalized Laplace matrix. Through graph convolution transformation, the topological structure of the power grid and the operating status information of the nodes can be encoded to capture the spatial structure information. That is, the original operating status matrix Mapped into a new spatial feature information matrix containing topological structure information .
[0057] Step S103, using the time feature extraction layer of the unit commitment solution model, extracting the time series features of the spatial feature information matrix through the long short-term memory network, and obtaining the spatiotemporal feature information matrix of the power system.
[0058] Among them, in this step, the unit combination solution model can be used to input the aforementioned spatial feature information matrix into the time feature extraction layer of the model to extract the time series characteristics of the matrix, and obtain the spatiotemporal feature information matrix of the power system.
[0059] Specifically, the temporal feature extraction layer can use the Long Short-Term Memory (LSTM) network to process the input spatial feature information matrix. Its basic calculation formula can include:
[0060]
[0061]
[0062]
[0063]
[0064]
[0065] In the formula, is the output of the forget gate, is the output of the input gate, is the output of the output gate, is the memory cell state at time step t-1, is the state of the memory unit at time step t, is the output of the memory unit at time step t-1, is the output of the memory unit at time step t; is the forget gate weight matrix, is the hidden input gate weight matrix, is the memory unit weight matrix, is the output gate weight matrix; is the bias value of the current hidden layer forget gate, is the bias value of the current hidden layer input gate, is the bias value of the current hidden layer memory unit.
[0066] Step S104, using the output layer of the unit commitment solution model, outputting the optimized unit commitment information of the power system at multiple future time points according to the spatiotemporal characteristic information matrix.
[0067] In this step, the unit combination solution model can be used to input the spatiotemporal characteristic information matrix obtained above into the output layer of the model to obtain the optimized unit combination information of the power system at multiple future time points output by the model. Optionally, the output layer of the unit combination solution model may include a fully connected network, which can fuse and map the input spatiotemporal characteristic information matrix to the output space to obtain an output sequence corresponding to multiple future preset time points. Exemplarily, taking the optimization solution of the unit combination of N units in the power system at 24 future time points as an example, the length of the output sequence output by the model can be 24N, which can represent the unit combination scheme of N units at 24 future time points.
[0068] In the above-mentioned power system unit combination optimization method, the graph state matrix of the power system is first constructed according to the operation state information and topological structure information of the power system, and then the spatial feature extraction layer of the unit combination solution model is used to extract the topological structure characteristics of the graph state matrix through the graph neural network to obtain the spatial feature information matrix of the power system, and then the time feature extraction layer of the unit combination solution model is used to extract the time series characteristics of the spatial feature information matrix through the long short-term memory network to obtain the spatiotemporal feature information matrix of the power system, and then the output layer of the unit combination solution model is used to output the optimized unit combination information of the power system at multiple future time points according to the spatiotemporal feature information matrix. This scheme optimizes and solves the unit combination of the power system through the unit combination solution model, can process a large amount of power data of the power system in a short time, and obtain the optimized unit combination results efficiently and quickly. Moreover, in the process of optimizing and solving the unit combination of the power system, the scheme takes into account the operation state and topological structure of the power system, and extracts the topological structure characteristics and time series characteristics of the power system through the spatial feature extraction layer and the time feature extraction layer of the unit combination solution model in turn, so as to obtain an optimized unit combination scheme that is more in line with the power grid flow constraints and safety constraints of the power system.
[0069] In an exemplary embodiment, Figure 3 As shown, according to the operation status information and topology structure information of the power system, a graph state matrix of the power system is constructed, which may include:
[0070] Step S301: According to the operation status information, a state characteristic vector corresponding to each subject in the power system is obtained, and an operation status matrix is constructed according to the state characteristic vector.
[0071] Specifically, in this embodiment, the operation state matrix and adjacency matrix of the power system can be constructed respectively according to the operation state information and topological structure information of the power system, and then the graph state matrix of the power system can be obtained according to the operation state matrix and the adjacency matrix.
[0072] Among them, in this step, according to the operating status information of the power system, the operating status parameters corresponding to each subject in the power system can be determined respectively, and then according to these parameters, the state characteristic vector corresponding to each subject can be obtained respectively, and then the operating status matrix of the power system is constructed according to multiple state characteristic vectors.
[0073] In some exemplary embodiments, the subject of the power system may include a production subject, and the state characteristic vector corresponding to the production subject may include a production cost parameter vector and an operation constraint parameter vector of the production subject. The operation constraint parameter vector may include operation constraint parameters such as the maximum and minimum output of the production subject, the minimum continuous operation time, and the upward and downward climbing constraints.
[0074] In some exemplary embodiments, the main body of the power system may include a bus, and the state characteristic vector corresponding to the bus may include a load parameter vector of the bus.
[0075] Based on this, the operating state matrix of the power system can be expressed as , which can include the state feature vectors corresponding to N subjects .in, is the production cost parameter vector of the ith entity, is the running constraint parameter vector of the ith subject, is the load parameter vector of the ith subject at time t. It can be understood that when the subject is a production subject, the value of the load parameter vector in its corresponding state characteristic vector can be zero; and when the subject is a bus, the values of the production cost parameter vector and the operation constraint parameter vector in its corresponding state characteristic vector can be zero.
[0076] Step S302: obtaining a structural graph model including connection relationships between entities in the power system according to the topological structure information, and constructing an adjacency matrix corresponding to the structural graph model.
[0077] In this step, based on the topological structure information of the power system, the connection relationship between the subjects in the power system can be determined, and then the structural graph model of the power system can be obtained. Exemplarily, the structural graph model may include multiple nodes corresponding to the subjects in the power system, and the lines between the nodes corresponding to the connection relationship between the subjects. Based on the structural graph model of the power system, its corresponding adjacency matrix can be constructed. Exemplarily, the adjacency matrix can be shown as follows:
[0078]
[0079] Among them, if is not zero, it means that there is a connection relationship between nodes i and j, and if This means that there is no connection between nodes i and j.
[0080] Step S303, obtaining a graph state matrix of the power system according to the operation state matrix and the adjacency matrix.
[0081] like Figure 4 As shown, according to the operating state matrix and adjacency matrix obtained in the previous steps, the graph state matrix of the power system can be further obtained in this step, which is used in the subsequent unit combination optimization solution.
[0082] In this embodiment, an operating status matrix and an adjacency matrix are constructed respectively according to the operating status information and topological structure information of the power system, and then a graph state matrix of the power system is obtained by combining the operating status matrix and the adjacency matrix. The graph state matrix can more accurately reflect the operating status of each entity in the power system and the connection relationship between each other, so that the graph state matrix can be used for subsequent unit combination optimization solution, and unit combination information that is more in line with the actual operating conditions of the power system can be obtained, effectively improving the accuracy of the results.
[0083] In an exemplary embodiment, Figure 5 As shown in the figure, the unit commitment solution model can be trained through the following steps:
[0084] Step S501, obtaining a plurality of graph state matrix samples of the power system, an optimal unit combination sample corresponding to each graph state matrix sample, and operation constraints of each subject in the power system.
[0085] Among them, the multiple graph state matrix samples of the power system may include samples of the graph state matrix corresponding to different operating states and spatial connection states of each subject in the power system. Among them, for each graph state matrix sample, its corresponding optimal unit combination sample can be obtained. Among them, the optimal unit combination sample can be a unit combination scheme at multiple future time points obtained based on the corresponding power system operating state and spatial connection state, which can minimize the production cost of the power system while satisfying the operating constraints of each subject in the power system. Among them, the operating constraints of each subject in the power system may include that the power generated by the unit is within the maximum and minimum output range, the continuous start-up time of the unit is greater than or equal to the minimum continuous operation time, the continuous shutdown time is greater than or equal to the minimum continuous shutdown time, and the change of power meets the upward and downward climbing constraints.
[0086] Step S502, constructing a network model including a spatial feature extraction layer, a temporal feature extraction layer and an output layer.
[0087] In this step, a network model including a spatial feature extraction layer, a temporal feature extraction layer and an output layer can be constructed. Exemplarily, the spatial feature extraction layer can include a graph neural network, the temporal feature extraction layer can include a long short-term memory network, and the output layer can include a fully connected network. Among them, the connection relationship and data processing method of each layer in the network model are similar to the aforementioned unit combination solution model, and will not be repeated here.
[0088] Step S503: input the state matrix samples of each graph into the network model to obtain the unit combination information output by the network model.
[0089] Based on the network model constructed above, in this step, each graph state matrix sample can be input into the model respectively, and the model processes each graph state matrix sample respectively to obtain the corresponding unit combination information. The unit combination information may include the unit combination schemes of each subject in the power system at multiple set future time points.
[0090] Step S504: training the network model according to the differences between each unit combination information and the corresponding optimal unit combination samples, and the satisfaction of each unit combination information with the operation constraint conditions, to obtain a unit combination solution model.
[0091] In this step, the unit combination information corresponding to each graph state matrix sample and the optimal unit combination sample can be compared to determine the difference between the two. At the same time, it is also possible to determine whether the unit combination information corresponding to each graph state matrix sample meets the operating constraints based on the operating constraints of each subject in the power system. Among them, according to the difference between each unit combination information and the corresponding optimal unit combination samples and the satisfaction of each unit combination information with the operating constraints, the difference can be reduced, and the unit combination information can be made to meet the operating constraints as a training goal, and the network model is trained, so that the unit combination solution model used in this application can be obtained.
[0092] In this embodiment, during the model training process, the model is trained by combining the differences between each unit combination information and the corresponding optimal unit combination samples, as well as the satisfaction of each unit combination information with the operating constraints. This allows physical rules to be integrated into the model training process, thereby ensuring that the model not only learns the patterns in the data, but also ensures that the output unit combination plan complies with the operating constraints of the units.
[0093] In an exemplary embodiment, the effect of the network model can be quantified by constructing a loss function, and the network model can be trained based on the calculated model loss. Figure 6 As shown, according to the difference between each unit combination information and the corresponding optimal unit combination samples, and the satisfaction of each unit combination information with the operation constraint conditions, the network model is trained to obtain the unit combination solution model, which may include:
[0094] Step S601, obtaining the first model loss of the network model according to the difference between each unit combination information and each corresponding optimal unit combination sample.
[0095] For example, in this step, for the difference between each unit combination information and the corresponding optimal unit combination samples, a basic loss function based on binary cross entropy can be constructed: , and its calculation formula is as follows:
[0096]
[0097] in, is the true label, i.e., the optimal unit combination scheme in the sample, is the unit combination plan output by the model, and n is the number of samples.
[0098] According to the basic loss function, the first model loss of the network model can be calculated in this step.
[0099] Step S602, according to the satisfaction of the operation constraint conditions of each unit combination information, the second model loss of the network model is obtained. The operation constraint conditions include the minimum continuous start and stop time constraint conditions of each subject, the maximum and minimum output constraint conditions, and the climbing constraint conditions.
[0100] For example, according to the satisfaction of each unit combination information with the operating constraints, a physical rule loss can be constructed. , and its calculation formula is as follows:
[0101]
[0102] Exemplarily, the operation constraints of each subject in the power system may include minimum continuous start and stop time constraints, maximum and minimum output constraints, and climbing constraints. Among them, when the power emitted by the unit is within the maximum and minimum output range, it can be considered that it meets the maximum and minimum output constraints, when the continuous start time of the unit is greater than or equal to the minimum continuous operation time, and the continuous shutdown time is greater than or equal to the minimum continuous shutdown time, it can be considered that it meets the minimum continuous start and stop time constraints, and when the power change of the unit meets the upward and downward climbing constraints, it can be considered that it meets the climbing constraints. Exemplarily, when all units in the unit combination information meet all conditions in the operation constraints, it can be considered that the unit combination information meets the operation constraints, and when there are units in the unit combination information that do not meet one or more conditions in the operation constraints, it can be considered that the unit combination information does not meet the operation constraints.
[0103] The aforementioned minimum continuous start-stop time constraint can be described as:
[0104]
[0105]
[0106] in, Indicates the unit In the period Start and stop status; , Respectively represent the minimum continuous start time and minimum continuous shutdown time of the unit; , Indicates the unit In the period The continuous startup time and continuous shutdown time can be expressed as state variables. To express:
[0107]
[0108]
[0109] Where N is the number of units and T is the number at a future time point.
[0110] Based on the above formula, the second model loss of the network model can be calculated in this step.
[0111] Step S603, obtaining a comprehensive model loss of the network model according to the first model loss and the second model loss.
[0112] In this step, the comprehensive model loss of the network model can be obtained according to the first model loss and the second model loss. Exemplarily, the comprehensive model loss of the network model can be the sum of the first model loss and the second model loss, which can be expressed as:
[0113]
[0114] Among them, L is the comprehensive model loss of the network model, is the first model loss of the network model, is the second model loss of the network model, It is the unit combination information output by the network model.
[0115] Step S604, when the comprehensive model loss does not meet the preset conditions, the model parameters of the network model are cyclically adjusted based on the back propagation algorithm until the comprehensive model loss of the adjusted network model meets the preset conditions.
[0116] Exemplarily, when training the model, a preset condition that the comprehensive model loss should meet can be pre-set, for example, the preset condition can be that the comprehensive model loss is less than a certain value. Wherein, in the case where the comprehensive model loss does not meet the preset condition, in this step, the model parameters of the network model can be adjusted based on the back propagation algorithm to obtain a new network model, and then the new network model can be used to process the state matrix samples of each graph, and the corresponding unit combination information can be re-output, and then the comprehensive model loss of the new network model can be calculated based on the new unit combination information and the corresponding optimal unit combination sample and the operating constraints of the power system. Wherein, if the new comprehensive model loss does not meet the preset condition, the model parameters of the network model can be cyclically adjusted according to the above process until the comprehensive model loss of the network model meets the preset condition, and then the execution of step S605 is transferred.
[0117] Step S605: Using the adjusted network model as a unit commitment solution model.
[0118] After adjusting the network model through the aforementioned steps to obtain a network model whose comprehensive model loss meets the preset conditions, the adjusted network model can be used as a unit combination solution model in this step, so that it can be applied to the optimization solution of the power system unit combination.
[0119] In this embodiment, by quantifying the loss of the model and training the model based on the back propagation algorithm, the efficiency of model training can be effectively improved and the accuracy of the model can be improved.
[0120] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0121] Based on the same inventive concept, the embodiment of the present application also provides a power system unit combination optimization device for implementing the power system unit combination optimization method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more power system unit combination optimization device embodiments provided below can refer to the limitations of the power system unit combination optimization method above, and will not be repeated here.
[0122] In an exemplary embodiment, Figure 7 As shown, a power system unit combination optimization device 700 is provided, comprising:
[0123] A construction module 701 is used to construct a graph state matrix of the power system according to the operation state information and topology structure information of the power system;
[0124] The first extraction module 702 is used to use the spatial feature extraction layer of the unit commitment solution model to extract the topological structure features of the graph state matrix through a graph neural network to obtain the spatial feature information matrix of the power system;
[0125] The second extraction module 703 is used to use the time feature extraction layer of the unit commitment solution model to extract the time series features of the spatial feature information matrix through a long short-term memory network to obtain the spatiotemporal feature information matrix of the power system;
[0126] The output module 704 is used to utilize the output layer of the unit commitment solution model to output the optimized unit commitment information of the power system at multiple future time points according to the spatiotemporal characteristic information matrix.
[0127] In an exemplary embodiment, the construction module 701 is also used to: obtain the state characteristic vector corresponding to each subject in the power system according to the operating status information, and construct the operating status matrix according to the state characteristic vector; obtain a structural graph model containing the connection relationship between each subject in the power system according to the topological structure information, and construct an adjacency matrix corresponding to the structural graph model; obtain the graph state matrix of the power system according to the operating status matrix and the adjacency matrix.
[0128] In an exemplary embodiment, the subject of the power system includes a production subject; the state characteristic vector corresponding to the production subject includes a production cost parameter vector and an operation constraint parameter vector of the production subject.
[0129] In an exemplary embodiment, the main body of the power system includes a bus; the state characteristic vector corresponding to the bus includes a load parameter vector of the bus.
[0130] In an exemplary embodiment, the unit combination solution model is trained through the following steps: obtaining multiple graph state matrix samples of the power system, the optimal unit combination samples corresponding to each of the graph state matrix samples, and the operating constraints of each subject in the power system; constructing a network model including a spatial feature extraction layer, a temporal feature extraction layer and an output layer; inputting each of the graph state matrix samples into the network model to obtain the unit combination information output by the network model; training the network model according to the differences between each of the unit combination information and the corresponding each of the optimal unit combination samples, and the satisfaction of each of the unit combination information with the operating constraints to obtain the unit combination solution model.
[0131] In an exemplary embodiment, the network model is trained according to the difference between each unit combination information and the corresponding optimal unit combination samples, and the satisfaction of each unit combination information for the operating constraints, to obtain the unit combination solution model, including: obtaining a first model loss of the network model according to the difference between each unit combination information and the corresponding optimal unit combination samples; obtaining a second model loss of the network model according to the satisfaction of each unit combination information for the operating constraints; wherein the operating constraints include minimum continuous start and stop time constraints, maximum and minimum output constraints, and climbing constraints of each of the entities; obtaining a comprehensive model loss of the network model according to the first model loss and the second model loss; when the comprehensive model loss does not meet the preset conditions, cyclically adjusting the model parameters of the network model based on the back propagation algorithm until the comprehensive model loss of the adjusted network model meets the preset conditions; and using the adjusted network model as the unit combination solution model.
[0132] Each module in the above-mentioned power system unit combination optimization device can be implemented in whole or in part by software, hardware and their combination. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of each of the above modules.
[0133] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 8As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as the operating status information and topological structure information of the power system. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for optimizing the combination of power system units is implemented.
[0134] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0135] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0136] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0137] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0138] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0139] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0140] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for optimizing the unit combination of a power system, characterized in that: The method comprises: Constructing a graph state matrix of the power system according to the operation state information and topology structure information of the power system; Utilizing the spatial feature extraction layer of the unit commitment solution model, the topological structure features of the graph state matrix are extracted through a graph neural network to obtain a spatial feature information matrix of the power system; Utilizing the time feature extraction layer of the unit commitment solution model, extracting the time series features of the spatial feature information matrix through a long short-term memory network, and obtaining the spatiotemporal feature information matrix of the power system; The output layer of the unit commitment solution model is utilized to output the optimized unit commitment information of the power system at multiple future time points according to the spatiotemporal characteristic information matrix.
2. The method according to claim 1, characterized in that: The step of constructing a graph state matrix of the power system according to the operation state information and topology structure information of the power system includes: According to the operation status information, a state characteristic vector corresponding to each subject in the power system is obtained, and an operation status matrix is constructed according to the state characteristic vector; According to the topological structure information, a structural graph model including connection relationships between the subjects in the power system is obtained, and an adjacency matrix corresponding to the structural graph model is constructed; The graph state matrix of the power system is obtained according to the operating state matrix and the adjacency matrix.
3. The method according to claim 2, characterized in that The subjects of the power system include production subjects; The state feature vector corresponding to the production entity includes a production cost parameter vector and an operation constraint parameter vector of the production entity.
4. The method according to claim 2, characterized in that: The main body of the power system includes a busbar; The state characteristic vector corresponding to the bus includes a load parameter vector of the bus.
5. The method according to any one of claims 1 to 4, characterized in that: The unit commitment solution model is trained by the following steps: Acquire multiple graph state matrix samples of the power system, optimal unit combination samples corresponding to each of the graph state matrix samples, and operation constraints of each subject in the power system; Construct a network model including a spatial feature extraction layer, a temporal feature extraction layer and an output layer; Inputting each of the graph state matrix samples into the network model to obtain unit combination information output by the network model; According to the differences between each unit combination information and each corresponding optimal unit combination sample, and the satisfaction of each unit combination information with the operation constraint condition, the network model is trained to obtain the unit combination solution model.
6. The method according to claim 5, characterized in that The training of the network model according to the difference between each unit combination information and each corresponding optimal unit combination sample, and the satisfaction of each unit combination information with the operation constraint condition to obtain the unit combination solution model includes: Obtaining a first model loss of the network model according to a difference between each of the unit commitment information and each of the corresponding optimal unit commitment samples; According to the satisfaction of the operation constraint conditions by each of the unit combination information, a second model loss of the network model is obtained; wherein the operation constraint conditions include the minimum continuous start and stop time constraint conditions, the maximum and minimum output constraint conditions, and the climbing constraint conditions of each of the main bodies; Obtaining a comprehensive model loss of the network model according to the first model loss and the second model loss; When the comprehensive model loss does not meet the preset conditions, the model parameters of the network model are cyclically adjusted based on the back propagation algorithm until the comprehensive model loss of the adjusted network model meets the preset conditions; The adjusted network model is used as the unit combination solution model.
7. A power system unit combination optimization device, characterized in that: The device comprises: A construction module, used for constructing a graph state matrix of the power system according to the operation state information and topology structure information of the power system; A first extraction module is used to use the spatial feature extraction layer of the unit commitment solution model to extract the topological structure features of the graph state matrix through a graph neural network to obtain the spatial feature information matrix of the power system; A second extraction module is used to use the time feature extraction layer of the unit combination solution model to extract the time series features of the spatial feature information matrix through a long short-term memory network to obtain the spatiotemporal feature information matrix of the power system; An output module is used to utilize the output layer of the unit combination solution model to output the optimized unit combination information of the power system at multiple future time points according to the spatiotemporal characteristic information matrix.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Transient stability evaluation method and device considering topological structure characteristics of power system
CN114004155A
Power distribution network optimization scheduling method and device, computer equipment and storage medium
CN116207739A
Power transmission line operation control method, device, equipment, medium and program product
CN116316537A
Short-term power load space-time prediction method based on time graph convolution
CN117767258A
Unit commitment solving method and device for reinforcement learning based on graph convolutional network
CN118100134A
Cited By
Unmanned aerial vehicle electrical system simulation verification method based on digital twinning
CN122713084A
