Power distribution network load transfer decision-making method and system
By combining the large language model and deep reinforcement learning, we build a large language model and load transfer model of the distribution network, and use text and topological structure information to make decisions, which solves the problem of reliability and accuracy of the load transfer scheme of the distribution network in the existing technology. solve the problem of insufficient power and achieve more efficient load transfer decisions.
Patent Information
- Application Number
- CN202410820184.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-06-24
AI Technical Summary
The existing distribution network load transfer scheme cannot effectively cope with the complex operation mode of the power system, resulting in poor reliability and accuracy, and fails to fully utilize the text data of the power system.
Using a solution that combines large language models and deep reinforcement learning, by obtaining text information and work information of the distribution network, a large language model and a load transfer model of the distribution network are constructed to make real-time decisions and use text data and topological structure information to make supplementary decisions. Qihe reward value setting enables load transfer decisions.
It improves the reliability and accuracy of load transfer decisions in the distribution network and can better adapt to the dynamic changes and complex operating modes of the power system.
Smart Images

Figure CN118735299A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of electrical automation, and in particular relates to a load transfer decision method and system for a distribution network. Background Art
[0002] With the development of economy and technology and the improvement of people's living standards, electricity has become an indispensable secondary energy source in people's production and life, bringing endless convenience to people's production and life. Therefore, ensuring the stable and reliable supply of electricity has become one of the most important tasks of the power system.
[0003] As environmental problems become increasingly serious, more and more new energy power generation systems are being integrated into the power system and generating electricity; the openness, dynamism and interactivity of power system operation are gradually becoming more prominent. As an important guarantee for the safe and stable operation of the power system, the distribution network load transfer plan will have a greater role and significance.
[0004] At present, the load transfer scheme of the power system distribution network generally adopts the method of formulating transfer rules in advance, that is, according to the simulation data of the power system, the load transfer rules are formulated in advance, and when the power system encounters abnormal conditions and load transfer is required, the load transfer is carried out according to the pre-set rules. However, this type of load transfer scheme cannot cope with the extremely complex operation mode of the actual power system.
[0005] Currently, some researchers have proposed solutions based on artificial intelligence methods such as deep learning, reinforcement learning, and large models to assist in the load transfer of distribution networks; however, such solutions only use the working data of the power system and do not use the large amount of text data of the power system. Therefore, such solutions cannot fit the model according to the requirements of the regulation, resulting in poor reliability and accuracy of such solutions. Summary of the invention
[0006] One of the purposes of the present invention is to provide a distribution network load transfer decision method with high reliability and good accuracy.
[0007] A second objective of the present invention is to provide a system for implementing the distribution network load transfer decision method.
[0008] The load transfer decision method for a distribution network provided by the present invention comprises the following steps:
[0009] S1. Obtain data information of the target distribution network;
[0010] S2. Based on the data information obtained in step S1, a large language model of the distribution network is constructed to assist decision-making on load transfer of the distribution network;
[0011] S3. Constructing the operation scenario data information of the target distribution network according to the data information obtained in step S1;
[0012] S4. Construct and train a distribution network load transfer model;
[0013] S5. Acquire data information of the target distribution network in real time, and use the distribution network large language model obtained in step S2 and the distribution network load transfer model obtained in step S4 to complete the load transfer decision of the target distribution network.
[0014] The step S1 of acquiring the data information of the target distribution network specifically includes the following steps:
[0015] Acquire text information of the target distribution network; the text information includes fault plan data information, emergency plan data information, maintenance plan data information and dispatching procedure text information;
[0016] The target distribution network operation information is obtained; the operation information includes the distribution network topology information, the distribution network generation data information and the distribution network load data information.
[0017] Step S2, according to the data information obtained in step S1, constructs a large language model of the distribution network, specifically including the following steps:
[0018] Extracting information from text data: extracting text information from fault plans, emergency plans, maintenance plans and dispatching procedures; the text information from emergency plans includes plant and station names, fault causes and emergency operation switch names; the text information from dispatching procedures includes plan preparation requirements and decision-making restriction information;
[0019] The extracted text data information is input into the large language model, and the prompt template is constructed using the layout;
[0020] Add explanation and qualification sentences in the large language model to improve the prompt words;
[0021] Finally, a large language model of the distribution network is constructed.
[0022] The step S3 described in which the operation scenario data information of the target distribution network is constructed according to the data information obtained in the step S1 specifically includes the following steps:
[0023] According to the obtained distribution network topology information, distribution network generation data information and distribution network load data information, the physical node information of different components in the target distribution network is extracted to obtain a bus-node form: the physical nodes of all components are summarized and added to the bus form, and the bus and nodes are marked;
[0024] Connect different components according to physical nodes;
[0025] For power generation data and load data, missing data are supplemented through interpolation and state estimation algorithms;
[0026] Set the reward value of the distribution network load transfer model:
[0027] The large language model of the distribution network is adopted, and the concept of token is used to model the dispatching procedure text, which is expressed as
[0028]
[0029] Where Pr(t 1 ,t 2 ,...,t n ) is the generated regulation text model; n is the number of tokens used in this generation; t 1 ~t n is a sequence of tokens obtained from the vocabulary by applying the probabilistic chain rule;
[0030] The distribution network language model is used to generate new text about rewards based on the prompt words composed of the dispatching regulations text, and the generated new text is parsed into reward values, which are expressed as
[0031] R(text)=parse{t 1 ,t 2 ,...,t n |a,s,c,q}
[0032] Where R(text) is the reward value generated by the dispatching procedure text; parse{} is the parsing function; a is the action of the distribution network load transfer model; s is the environment of the target distribution network system, c is the prompt word context, and q is the load transfer;
[0033] Finally, the reward value is expressed as
[0034] R epc =R f +R(text)-ΣwP
[0035] Where R epc is the total reward for this round of training, R f is the reward for completing power restoration, P is the penalty generated by the action, and w is the weight of the penalty.
[0036] The construction and training of the distribution network load transfer model described in step S4 specifically includes the following steps:
[0037] Based on the deep reinforcement learning model, a distribution network load transfer model is constructed;
[0038] The load transfer model of the distribution network reads environmental parameters; the environmental parameters include network topology, unit output, load power data and network component data;
[0039] The load transfer model of the distribution network randomly generates exploration actions;
[0040] Create a fault in the target distribution network and obtain the corresponding action output by the distribution network load transfer model;
[0041] According to the corresponding action output by the distribution network load transfer model, the state of the target distribution network is changed;
[0042] Repeat the above steps until the training termination conditions are met; the training termination conditions include power supply recovery, voltage exceeding the limit, number of actions exceeding the limit, consecutive same actions, fault switch action or duration exceeding the limit;
[0043] The voltage over-limit value and load loss amount are calculated using the following formula:
[0044] V over =∑(V h.pu -V max.pu )+∑(V l.pu -V min.pu )
[0045] P loss =∑(P load -P gen )
[0046] Where V over The voltage exceeds the limit; V h.pu V is the node voltage standard value exceeding the voltage upper limit; l.pu V is the node voltage per unit value below the voltage lower limit; max.pu is the voltage upper limit; V min.pu is the voltage lower limit; P loss P is the load loss; load P is the load power of the electrical island that cannot fully restore power; gen is the power generation;
[0047] The reward value is calculated based on the voltage over-limit value and the load loss amount; the parameters of the distribution network load transfer model are changed according to the reward value; the network structure of the target distribution network is restored, the fault is re-created, and the next round of training is carried out.
[0048] The data information of the real-time target distribution network described in step S5 uses the distribution network large language model obtained in step S2 and the distribution network load transfer model obtained in step S4 to complete the load transfer decision of the target distribution network, which specifically includes the following steps:
[0049] Obtain data information of the target distribution network in real time;
[0050] The data information obtained in step S1 is input into the constructed distribution network large language model for judgment:
[0051] If the distribution network large language model determines that the input data information meets the scenario described by the set fault / maintenance plan and there is a corresponding load transfer plan, the load transfer plan is directly output to complete the load transfer decision of the target distribution network;
[0052] Otherwise, proceed to the next step;
[0053] The data information obtained in step S1 is input into the constructed distribution network load transfer model, and the data output by the distribution network load transfer model is obtained as the load transfer decision of the target distribution network.
[0054] The present invention also provides a system for implementing the distribution network load transfer decision method, comprising a data acquisition module, a model construction module, a data construction module, a model training module and a transfer decision module; the data acquisition module, the model construction module, the data construction module, the model training module and the transfer decision module are connected in series in sequence; the data acquisition module is used to acquire data information of the target distribution network, and upload the data information to the model construction module; the model construction module is used to construct a distribution network large language model according to the received data information, which is used for auxiliary decision-making of distribution network load transfer, and upload the data information to the data construction module; the data construction module is used to construct operation scenario data information of the target distribution network according to the received data information, and upload the data information to the model training module; the model training module is used to construct and train a distribution network load transfer model according to the received data information, and upload the data information to the transfer decision module; the transfer decision module is used to acquire data information of the target distribution network in real time according to the received data information, and adopt the obtained distribution network large language model and distribution network load transfer model to complete the load transfer decision of the target distribution network.
[0055] The distribution network load transfer decision method and system provided by the present invention adopts a solution combining a large language model and deep reinforcement learning to make decisions on distribution network load transfer. Therefore, the present invention can not only realize the decision on distribution network load transfer, but also has higher reliability and better accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1 The figure is a schematic diagram of the method flow of the present invention.
[0057] Figure 2 Schematic diagram of the functional modules of the system of the present invention. DETAILED DESCRIPTION
[0058] like Figure 1The method flow chart of the method of the present invention is shown as follows: the load transfer decision method of the distribution network disclosed in the present invention comprises the following steps:
[0059] S1. Obtaining data information of the target distribution network; specifically including the following steps:
[0060] Acquire text information of the target distribution network; the text information includes fault plan data information, emergency plan data information, maintenance plan data information and dispatching procedure text information;
[0061] Acquire the working information of the target distribution network; the working information includes the distribution network topology information, the distribution network power generation data information and the distribution network load data information;
[0062] S2. Based on the data information obtained in step S1, a large language model of the distribution network is constructed for auxiliary decision-making of load transfer in the distribution network; specifically, the steps include:
[0063] Extracting information from text data: extracting text information from fault plans, emergency plans, maintenance plans and dispatching procedures; the text information from emergency plans includes plant and station names, fault causes and emergency operation switch names; the text information from dispatching procedures includes plan preparation requirements and decision-making restriction information;
[0064] The extracted text data information is input into the large language model, and the prompt template is constructed using the layout;
[0065] Add explanation and qualification sentences in the large language model to improve the prompt words;
[0066] Finally, a large language model of the distribution network is constructed;
[0067] S3. Based on the data information obtained in step S1, construct the operation scenario data information of the target distribution network; specifically comprising the following steps:
[0068] According to the obtained distribution network topology information, distribution network generation data information and distribution network load data information (which can be obtained in the power system D5000 dispatching system), the physical node information of different components in the target distribution network is extracted to obtain the bus-node form: the physical nodes of all components are summarized and added to the bus form, and the bus and nodes are marked;
[0069] Connect different components according to physical nodes;
[0070] For power generation data and load data, missing data can be supplemented through interpolation and state estimation algorithms. If the power data of a generator or load is missing, it can be interpolated through the data of the previous and next time nodes, or estimated through current measurement data, or estimated through state estimation methods.
[0071] Set the reward value of the distribution network load transfer model:
[0072] The large language model of the distribution network is adopted, and the concept of token is used to model the dispatching procedure text, which is expressed as
[0073]
[0074] Where Pr(t 1 ,t 2 ,...,t n ) is the generated regulation text model; n is the number of tokens used in this generation; t 1 ~t n is a sequence of tokens obtained from the vocabulary by applying the probabilistic chain rule;
[0075] The distribution network language model is used to generate new text about rewards based on the prompt words composed of the dispatching regulations text, and the generated new text is parsed into reward values, which are expressed as
[0076] R(text)=parse{t 1 ,t 2 ,...,t n |a,s,c,q}
[0077] Where R(text) is the reward value generated by the dispatching procedure text; parse{} is the parsing function; a is the action of the distribution network load transfer model; s is the environment of the target distribution network system, c is the prompt word context, and q is the load transfer;
[0078] Finally, the reward value is expressed as
[0079] R epc =R f +R(text)-∑wP
[0080] Where R epc is the total reward for this round of training, R f is the reward for completing power restoration, P is the penalty for the action, and w is the weight of the penalty;
[0081] S4. Construct and train a distribution network load transfer model; specifically, the following steps are included:
[0082] Based on the deep reinforcement learning model, a distribution network load transfer model is constructed;
[0083] The load transfer model of the distribution network reads environmental parameters; the environmental parameters include network topology, unit output, load power data and network component data;
[0084] The load transfer model of the distribution network randomly generates exploration actions;
[0085] Create a fault in the target distribution network and obtain the corresponding action output by the distribution network load transfer model;
[0086] According to the corresponding action output by the distribution network load transfer model, the state of the target distribution network is changed;
[0087] Repeat the above steps until the training termination conditions are met; the training termination conditions include power supply recovery, voltage exceeding the limit, number of actions exceeding the limit, consecutive same actions, fault switch action or duration exceeding the limit;
[0088] The voltage over-limit value and load loss amount are calculated using the following formula:
[0089] V over =∑(V h.pu -V max.pu )+Σ(V l.pu -V min.pu )
[0090] P loss =∑(P load -P gen )
[0091] Where V over The voltage exceeds the limit; V h.pu V is the voltage per unit value of the node that exceeds the voltage upper limit; l.pu V is the node voltage per unit value below the voltage lower limit; max.pu is the voltage upper limit; V min.pu is the voltage lower limit; P loss P is the load loss; load P is the load power of the electrical island that cannot fully restore power; gen is the power generation;
[0092] The reward value is calculated based on the voltage over-limit value and the load loss amount; the parameters of the distribution network load transfer model are changed according to the reward value; the network structure of the target distribution network is restored, the fault is re-created, and the next round of training is carried out;
[0093] S5. Real-time acquisition of target distribution network data information, using the distribution network large language model obtained in step S2 and the distribution network load transfer model obtained in step S4 to complete the load transfer decision of the target distribution network; specifically comprising the following steps:
[0094] Obtain data information of the target distribution network in real time;
[0095] The data information obtained in step S1 is input into the constructed distribution network large language model for judgment:
[0096] If the distribution network large language model determines that the input data information meets the scenario described by the set fault / maintenance plan and there is a corresponding load transfer plan, the load transfer plan is directly output to complete the load transfer decision of the target distribution network;
[0097] Otherwise, proceed to the next step;
[0098] The data information obtained in step S1 is input into the constructed distribution network load transfer model, and the data output by the distribution network load transfer model is obtained as the load transfer decision of the target distribution network.
[0099] like Figure 2 The functional module schematic diagram of the system of the present invention is shown as follows: the system for realizing the load transfer decision method of the distribution network disclosed in the present invention comprises a data acquisition module, a model construction module, a data construction module, a model training module and a transfer decision module; the data acquisition module, the model construction module, the data construction module, the model training module and the transfer decision module are connected in series in sequence; the data acquisition module is used to acquire data information of the target distribution network, and upload the data information to the model construction module; the model construction module is used to construct a large language model of the distribution network according to the received data information, which is used for auxiliary decision-making of the load transfer of the distribution network, and upload the data information to the data construction module; the data construction module is used to construct the operation scenario data information of the target distribution network according to the received data information, and upload the data information to the model training module; the model training module is used to construct and train the distribution network load transfer model according to the received data information, and upload the data information to the transfer decision module; the transfer decision module is used to acquire the data information of the target distribution network in real time according to the received data information, and adopt the obtained large language model of the distribution network and the load transfer model of the distribution network to complete the load transfer decision of the target distribution network.
Claims
1. A load transfer decision method for a distribution network, comprising the following steps: S1. Obtain data information of the target distribution network; S2. Based on the data information obtained in step S1, a large language model of the distribution network is constructed to assist decision-making on load transfer of the distribution network; S3. Constructing the operation scenario data information of the target distribution network according to the data information obtained in step S1; S4. Construct and train a distribution network load transfer model; S5. Acquire data information of the target distribution network in real time, and use the distribution network large language model obtained in step S2 and the distribution network load transfer model obtained in step S4 to complete the load transfer decision of the target distribution network.
2. The load transfer decision method for distribution network according to claim 1, Features The step S1 of acquiring the data information of the target distribution network specifically includes the following steps: Acquire text information of the target distribution network; the text information includes fault plan data information, emergency plan data information, maintenance plan data information and dispatching procedure text information; The target distribution network operation information is obtained; the operation information includes the distribution network topology information, the distribution network generation data information and the distribution network load data information.
3. The load transfer decision method for distribution network according to claim 2, Features Step S2, according to the data information obtained in step S1, constructs a large language model of the distribution network, specifically including the following steps: Extracting information from text data: extracting text information from fault plans, emergency plans, maintenance plans and dispatching procedures; the text information from emergency plans includes plant and station names, fault causes and emergency operation switch names; the text information from dispatching procedures includes plan preparation requirements and decision-making restriction information; The extracted text data information is input into the large language model, and the prompt template is constructed using the layout; Add explanation and qualification sentences in the large language model to improve the prompt words; Finally, a large language model of the distribution network is constructed.
4. The load transfer decision method for distribution network according to claim 3, Features The step S3 described in which the operation scenario data information of the target distribution network is constructed according to the data information obtained in the step S1 specifically includes the following steps: According to the obtained distribution network topology information, distribution network generation data information and distribution network load data information, the physical node information of different components in the target distribution network is extracted to obtain a bus-node form: the physical nodes of all components are summarized and added to the bus form, and the bus and nodes are marked; Connect different components according to physical nodes; For power generation data and load data, missing data are supplemented through interpolation and state estimation algorithms; Set the reward value of the distribution network load transfer model: The large language model of the distribution network is adopted, and the concept of token is used to model the dispatching procedure text, which is expressed as Where Pr(t 1 ,t 2 ,...,t n ) is the generated regulation text model; n is the number of tokens used in this generation; t 1 ~t n is a sequence of tokens obtained from the vocabulary by applying the probabilistic chain rule; The distribution network language model is used to generate new text about rewards based on the prompt words composed of the dispatching regulations text, and the generated new text is parsed into reward values, which are expressed as R(text)=parse{t 1 ,t 2 ,...,t n |a,s,c,q} Where R(text) is the reward value generated by the dispatching procedure text; parse{} is the parsing function; a is the action of the distribution network load transfer model; s is the environment of the target distribution network system, c is the prompt word context, and q is the load transfer; Finally, the reward value is expressed as R epc =R f +R(text)-ΣwP Where R epc is the total reward for this round of training, R f is the reward for completing power restoration, P is the penalty generated by the action, and w is the weight of the penalty.
5. The load transfer decision method for distribution network according to claim 4, Features The construction and training of the distribution network load transfer model described in step S4 specifically includes the following steps: Based on the deep reinforcement learning model, a distribution network load transfer model is constructed; The load transfer model of the distribution network reads environmental parameters; the environmental parameters include network topology, unit output, load power data and network component data; The load transfer model of the distribution network randomly generates exploration actions; Create a fault in the target distribution network and obtain the corresponding action output by the distribution network load transfer model; According to the corresponding action output by the distribution network load transfer model, the state of the target distribution network is changed; Repeat the above steps until the training termination conditions are met; Conditions for training termination include completion of power supply restoration, voltage exceeding the limit, number of actions exceeding the limit, consecutive identical actions, fault switch action or duration exceeding the limit; The voltage over-limit value and load loss amount are calculated using the following formula: V over =Σ(V h.pu -V max.pu )+Σ(V l.pu -V min.pu ) P loss =∑(P load -P gen ) Where V over The voltage exceeds the limit; V h.pu V is the node voltage standard value exceeding the voltage upper limit; l.pu V is the node voltage per unit value below the voltage lower limit; max.pu is the voltage upper limit; V min.pu is the voltage lower limit; P loss P is the load loss; load P is the load power of the electrical island that cannot fully restore power; gen is the power generation; The reward value is calculated based on the voltage over-limit value and the load loss amount; Changing the parameters of the load transfer model of the distribution network according to the reward value; Restore the network structure of the target distribution network, recreate the fault, and conduct the next round of training.
6. The load transfer decision method for distribution network according to claim 5, Features The data information of the real-time target distribution network described in step S5 uses the distribution network large language model obtained in step S2 and the distribution network load transfer model obtained in step S4 to complete the load transfer decision of the target distribution network, which specifically includes the following steps: Obtain data information of the target distribution network in real time; The data information obtained in step S1 is input into the constructed distribution network large language model for judgment: If the distribution network large language model determines that the input data information meets the scenario described by the set fault / maintenance plan and there is a corresponding load transfer plan, the load transfer plan is directly output to complete the load transfer decision of the target distribution network; Otherwise, proceed to the next step; The data information obtained in step S1 is input into the constructed distribution network load transfer model, and the data output by the distribution network load transfer model is obtained as the load transfer decision of the target distribution network.
7. A system for implementing the load transfer decision method of a distribution network as claimed in any one of claims 1 to 6, Features It includes a data acquisition module, a model construction module, a data construction module, a model training module and a transfer decision module; the data acquisition module, the model construction module, the data construction module, the model training module and the transfer decision module are connected in series in sequence; the data acquisition module is used to obtain data information of the target distribution network, and upload the data information to the model construction module; the model construction module is used to construct a large language model of the distribution network according to the received data information, which is used for auxiliary decision-making on the transfer of the distribution network load, and upload the data information to the data construction module; The data construction module is used to construct the operation scenario data information of the target distribution network according to the received data information, and upload the data information to the model training module; The model training module is used to construct and train the distribution network load transfer model based on the received data information, and upload the data information to the transfer decision module; The transfer decision module is used to obtain the data information of the target distribution network in real time according to the received data information, and use the obtained distribution network large language model and distribution network load transfer model to complete the load transfer decision of the target distribution network.
Citation Information
Patent Citations
Power distribution network load transfer method based on deep reinforcement learning
CN112149347A
Generation method, system and equipment of power grid fault handling aid decision and medium
CN117709461A
Comprehensive energy system operation and maintenance decision agent model construction method based on large language model
CN117973537A
Heat supply system operation and maintenance strategy optimization method based on large language model agent
CN118153758A
Transmission-distribution integrated load transfer method facing high-quality power supply service
WO2022037234A1
Cited By
Transfer scheme generation method, model training method, device, equipment and medium
CN119362452A
Transfer plan generation method, model training method, device, equipment and medium
CN119362452B
Power grid thermal stability dynamic adjustment method and system based on combination of large and small models
CN119401435A
Power grid thermal stability dynamic adjustment method and system based on size model combination
CN119401435B
Distribution network large-area fault auxiliary decision generation method and electronic equipment
CN119831571A
