Power-cut plan generation method, electronic device, storage medium and program product
By analyzing user power consumption and power outage data, and combining power grid planning to generate and evaluate power outage plans, the problem of low rationality of power outage plans in the existing technology is solved, a more reasonable power outage plan is achieved, and the user's convenience of power consumption is improved.
Patent Information
- Application Number
- CN202510285720.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-11
- Publication Date
- 2025-06-24
AI Technical Summary
When formulating a power outage plan, the existing technology only considers the maintenance needs of power grid equipment, which leads to inconvenience in production or life of users after power outage, and is less reasonable.
By analyzing the historical power consumption data and power outage data of the target user, extracting power consumption characteristics and power outage characteristics, combining feeder planning to generate multiple initial power outage plans, and using the pre-trained user power outage impact model to predict the impact scores of each initial power outage plan, and finally determine a reasonable target power outage plan.
It improves the rationality of the power outage plan, ensures that the plan not only meets the power grid equipment maintenance needs, but also meets the user's power consumption characteristics and power outage characteristics, and improves the user's power consumption convenience during the power outage.
Smart Images

Figure CN120197983A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of power systems, and in particular, to a power outage plan generation method, an electronic device, a storage medium, and a program product. Background Art
[0002] In scenarios where power grid equipment in the power system needs to be maintained, or when power demand exceeds power generation capacity, a power outage plan needs to be formulated.
[0003] In related technologies, a power outage plan can be determined based on the inspection and maintenance times of each power grid equipment.
[0004] However, since the above method only meets the maintenance requirements of each power grid equipment, power outages may cause inconvenience to users' production or life, or cause factories to stop work, etc. Therefore, the rationality of the power outage plan determined by the above method is relatively low. Summary of the Invention
[0005] Embodiments of this application provide a power outage plan generation method, an electronic device, a storage medium, and a program product, so as to achieve a relatively high rationality of the power outage plan determined based on this method.
[0006] In a first aspect, embodiments of this application provide a power outage plan generation method, including:
[0007] Analyze the power consumption characteristics of the target user according to the historical power consumption data of the target user, and determine the power outage characteristics according to the historical power outage data related to the target user;
[0008] Based on the power consumption characteristics of the target user, the power outage characteristics, and the feeder planning, determine multiple initial power outage plans for the target user;
[0009] Input the power consumption characteristics, power outage characteristics, and each of the initial power outage plans of the target user into a pre-trained user power outage impact model, and the user power outage impact model predicts the impact scores of each initial power outage plan according to the power consumption characteristics and power outage characteristics;
[0010] Determine the target power outage plan from multiple initial power outage plans according to the impact scores.
[0011] In a possible implementation manner, the analyzing the power consumption characteristics of the target user according to the historical power consumption data of the target user, and determining the power outage characteristics according to the historical power outage data related to the target user includes:
[0012] Based on a first preset feature extraction algorithm, perform feature extraction on the historical power consumption data to obtain power consumption characteristics including at least one of the following: power consumption time distribution, load characteristics, and power consumption behavior;
[0013] Extract features from historical power outage data based on a second preset feature algorithm to obtain power outage features including power outage time distribution and power outage factor distribution.
[0014] In a possible implementation, data of the faulty substation area at the current moment is also obtained;
[0015] And determine multiple initial power outage plans for the target user based on the power consumption features of the target user, the power outage features, and feeder planning, including:
[0016] Input the power consumption features of the target user, the power outage features, the feeder planning, and the data of the faulty substation area at the current moment into a power outage plan generation model to generate the multiple initial power outage plans.
[0017] In a possible implementation, the impact scores include user satisfaction score, power outage loss score, and social impact score;
[0018] And determine a target power outage plan from the multiple initial power outage plans according to the impact scores, including:
[0019] For each of the initial power outage plans, multiply the user satisfaction score, power outage loss score, and social impact score corresponding to the initial power outage plan by their respective preset weights, and add the obtained product results to obtain the target score of the initial power outage plan;
[0020] Determine the target power outage plan from the multiple initial power outage plans according to the target scores.
[0021] In a possible implementation, it further includes:
[0022] Optimize the target power outage plan based on a preset optimization algorithm to obtain an optimized target power outage plan.
[0023] In a possible implementation, the optimizing the target power outage plan based on a preset optimization algorithm to obtain an optimized target power outage plan includes:
[0024] Based on the preset optimization algorithm, adjust the power outage start time and duration of the target power outage plan to obtain an optimized target power outage plan.
[0025] In a possible implementation, it further includes:
[0026] Conduct a simulated power outage according to the optimized target power outage plan to obtain grid parameters during the power outage;
[0027] In response to determining that the optimized target power outage plan is feasible based on the grid parameters, perform a power outage operation according to the optimized target power outage plan;
[0028] In response to determining that the optimized target power outage plan is infeasible based on the grid parameters, re-determine the target power outage plan.
[0029] In a second aspect, an embodiment of the present application provides a power outage plan generation device, including:
[0030] An analysis module, configured to analyze the power consumption characteristics of the target user according to the historical power consumption data of the target user;
[0031] A first determination module, configured to determine the power outage characteristics according to the historical power outage data related to the target user;
[0032] A second determination module, configured to determine multiple initial power outage plans for the target user based on the power consumption characteristics, the power outage characteristics, and the feeder planning of the target user;
[0033] A prediction module, configured to input the power consumption characteristics, the power outage characteristics, and each of the initial power outage plans of the target user into a pre-trained user power outage impact model, and the user power outage impact model predicts the impact scores of each initial power outage plan according to the power consumption characteristics and the power outage characteristics;
[0034] A third determination module, configured to determine the target power outage plan from multiple initial power outage plans according to the impact scores.
[0035] In a possible implementation manner, the analysis module is specifically configured to:
[0036] Extract features from the historical power consumption data based on a first preset feature extraction algorithm to obtain power consumption characteristics including at least one of the following: power consumption time distribution, load characteristics, and power consumption behavior.
[0037] In a possible implementation manner, the first determination module is specifically configured to:
[0038] Extract features from the historical power outage data based on a second preset feature algorithm to obtain power outage characteristics including power outage time distribution and power outage factor distribution.
[0039] In a possible implementation manner, the device is further configured to obtain the data of the faulty substation area at the current moment;
[0040] In a possible implementation manner, the second determination module is specifically configured to:
[0041] Input the power consumption characteristics of the target user, the power outage characteristics, the feeder planning, and the fault substation area data at the current moment into the power outage plan generation model to generate the multiple initial power outage plans.
[0042] In a possible implementation manner, the impact score includes a user satisfaction score, a power outage loss score, and a social impact score;
[0043] In a possible implementation manner, the third determination module is specifically configured to:
[0044] For each of the initial power outage plans, multiply the user satisfaction score, the power outage loss score, and the social impact score corresponding to the initial power outage plan by their respective preset weights, and add the obtained product results to obtain the target score of the initial power outage plan;
[0045] Determine the target power outage plan from the multiple initial power outage plans according to the target score.
[0046] In a possible implementation manner, the device is further configured to:
[0047] Optimize the target power outage plan based on a preset optimization algorithm to obtain an optimized target power outage plan.
[0048] In a possible implementation manner, "optimize the target power outage plan based on a preset optimization algorithm to obtain an optimized target power outage plan" in the device is specifically configured to:
[0049] Based on the preset optimization algorithm, adjust the power outage start time and duration of the target power outage plan to obtain an optimized target power outage plan.
[0050] In a possible implementation manner, the device is further configured to:
[0051] Conduct a simulated power outage according to the optimized target power outage plan to obtain grid parameters during the power outage;
[0052] In response to determining that the optimized target power outage plan is feasible according to the grid parameters, perform a power outage operation according to the optimized target power outage plan;
[0053] In response to determining that the optimized target power outage plan is infeasible according to the grid parameters, re-determine the target power outage plan.
[0054] In a third aspect, an embodiment of the present application provides an electronic device, including: a memory, a processor;
[0055] The memory stores computer execution instructions;
[0056] The processor executes the computer-executable instructions stored in the memory, such that the processor performs the above first aspect and / or various possible implementation manners of the first aspect.
[0057] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are executed by a processor, they are used to implement the above first aspect and / or various possible implementation manners of the first aspect.
[0058] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, and when the computer program is executed by a processor, it implements the above first aspect and / or various possible implementation manners of the first aspect.
[0059] The power outage plan generation method, electronic device, storage medium, and program product provided by the embodiments of the present application first extract power consumption characteristics from the historical power consumption data of a target user, and extract power outage characteristics from the historical power outage data related to the target user; secondly, generate multiple initial power outage plans for the target user according to the power consumption characteristics, power outage characteristics, and feeder planning of the target user; then, input the power consumption characteristics, power outage characteristics, and each initial power outage plan of the target user into a pre-trained user power outage impact model for impact score prediction to obtain the impact score of each initial power outage plan; finally, determine a target power outage plan from multiple initial power outage plans based on the impact score, achieving that when determining the target power outage plan, it not only meets the maintenance requirements of grid equipment in the feeder planning as much as possible, but also conforms to the power consumption characteristics and power outage characteristics of the target user, and based on the impact score, it improves the power consumption convenience of the target user during the power outage process as much as possible. Therefore, the target power outage plan determined by the above method is relatively reasonable. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] The drawings here are incorporated into the description and form a part of this description, showing embodiments consistent with the present application, and are used together with the description to explain the principles of the present application.
[0061] Figure 1 It is a schematic flowchart of a power outage plan generation method provided by the present application;
[0062] Figure 2 It is a schematic flowchart of another power outage plan generation method provided by the present application;
[0063] Figure 3 It is a schematic structural diagram of a power outage plan generation device provided by the present application;
[0064] Figure 4 It is a schematic structural diagram of an electronic device provided by the present application.
[0065] Through the above-mentioned drawings, specific embodiments of the present application have been shown, and there will be more detailed descriptions hereinafter. These drawings and textual descriptions are not intended to limit the scope of the concept of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. Detailed Description of Specific Embodiments
[0066] Here, exemplary embodiments will be described in detail, and examples are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0067] In the power system, the formulation and execution of power outage plans are important links to ensure the stable power supply.
[0068] In one example, the power outage plan can be determined according to the time for inspecting and maintaining each power grid device.
[0069] However, the above-mentioned power outage plan is only determined based on the maintenance requirements of each power grid device. After the power outage, it may cause inconvenience to users' production or life, or cause factories to idle, etc. Therefore, the rationality of the power outage plan determined by the above method is relatively low.
[0070] The present application provides a power outage plan generation method, an electronic device, a storage medium, and a program product to solve the above technical problems.
[0071] The following uses specific embodiments to detail the technical solution of the present application and how the technical solution of the present application solves the above technical problems. These several specific embodiments below can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below with reference to the drawings.
[0072] Figure 1 It is a schematic flow chart of a power outage plan generation method provided by the present application, as Figure 1 shown, the method includes:
[0073] S101. Analyze the power consumption characteristics of the target user according to the historical power consumption data of the target user, and determine the power outage characteristics according to the historical power outage data related to the target user.
[0074] Exemplarily, the execution subject of this embodiment can be any device among a server, a distributed system, a terminal device, other electronic devices / computer devices, and other devices that can implement the solution of this application, and there is no limitation thereto. Among them, the server can be an independent server or a server cluster, such as any form including but not limited to cloud servers, distributed servers, blockchain servers, etc.
[0075] This embodiment will be introduced with the execution subject being a server.
[0076] Exemplarily, the target user can be the electricity users involved in the target power outage plan. At least one target user can be involved in a target power outage plan.
[0077] The target power outage plan includes the future power outage start time and duration, and within this period, the states of the power supply switches corresponding to each target user (such as the on state or off state). Among them, the power supply switch can be, for example, the power supply switch of the substation to the lower-level distribution line, the power supply switch of the substation or the power distribution cabinet to the feeder, the power supply switch of the superior power grid to a certain facility, etc., and there is no limitation thereto. Among them, the feeder refers to the line that starts from the substation and delivers electric energy to users or the next-level substation.
[0078] The historical electricity consumption data and historical power outage data can be obtained from the database of the power system.
[0079] Among them, the historical electricity consumption data represents the electricity consumption of the target user within the historical preset time period. For example, within the past year, it can be one or more of the hourly electricity consumption, daily electricity consumption, weekly electricity consumption, monthly electricity consumption, etc. of the target user.
[0080] The electricity consumption characteristics represent the electricity consumption patterns of the target user, including but not limited to one or several of the electricity consumption time distribution, load characteristics, and electricity consumption behaviors of the target user, etc. Among them, the electricity consumption time distribution is, for example, that the target user has peak electricity consumption periods from 7 am to 9 am and from 5 pm to 10 pm every day, and the rest of the time is the low electricity consumption period; the load characteristics are, for example, that the average load of the target user is relatively low, but there will be obvious peak loads during the peak periods; the electricity consumption behavior is, for example, that the target user has relatively high electricity consumption from 7 pm to 12 pm and on weekends.
[0081] The historical power outage data represents the historical power outage start time, duration, power outage reasons, etc. of the target user within the historical preset time period. Among them, the power outage in the historical power outage data refers to the power outage initiated by the power supply side or the power outage caused by accidental circuit failures.
[0082] The power outage characteristics characterize the patterns of power outages for target users, including but not limited to power outage time distribution, power outage factor distribution, etc. For example, in summer, due to the increased use of air conditioners, the power grid load rises, resulting in frequent circuit failures between 2 pm and 5 pm, which in turn causes power outages for target users; in winter, due to adverse weather conditions such as storms or freezing, the number of power outages for target users increases between 7 pm and 6 am the next morning; on the second Wednesday of each month, due to the regular power grid maintenance work of the power supply party, target users will experience power outages, etc.
[0083] In one example, for each target user, the power consumption characteristics of the target user can be parsed from the historical power consumption data of the target user, and the power outage characteristics can be extracted from the historical power outage data of the target user.
[0084] S102. Based on the power consumption characteristics, power outage characteristics, and feeder planning of the target user, determine multiple initial power outage plans for the target user.
[0085] Exemplarily, the feeder planning may include the time for inspecting and maintaining the power grid equipment in the feeder.
[0086] The feeder planning corresponding to each target user can be obtained from the power system. After obtaining the power consumption characteristics and power outage characteristics of each target user, based on different preset algorithms, according to the power consumption characteristics, power outage characteristics, and feeder planning of each target user, multiple initial power outage plans for each target user are determined. Among them, different preset algorithms, such as a preset algorithm to ensure the normal power consumption of more target users as much as possible, a preset algorithm to minimize the power grid load, a preset algorithm to conform to the feeder planning as much as possible, etc.
[0087] S103. Input the power consumption characteristics, power outage characteristics, and each initial power outage plan of the target user into a pre-trained user power outage impact model, and the user power outage impact model predicts the impact scores of each initial power outage plan according to the power consumption characteristics and power outage characteristics.
[0088] Exemplarily, an initial user power outage impact model can be pre-trained, that is, the historical power consumption characteristics, historical power outage characteristics, multiple historical power outage plans, and the calibrated impact scores of each historical power outage plan of the target user are input into the initial user power outage impact model for training and learning to obtain the pre-trained user power outage impact model. Among them, during the training process, training can be based on the decision tree algorithm.
[0089] Among them, the calibrated impact score can characterize the convenience of power consumption for the target user if the power outage operation is carried out according to the historical power outage plan. The calibrated impact score is positively correlated with the convenience of power consumption.
[0090] For example, if the power outage time period of the historical power outage plan is within the low electricity consumption time period in the historical electricity consumption characteristics of the target user, the calibrated impact score can be relatively high; if the power outage time period of the historical power outage plan is within the high electricity consumption time period in the historical electricity consumption characteristics of the target user, the calibrated impact score can be relatively low.
[0091] Then, after obtaining the electricity consumption characteristics, power outage characteristics of each target user and each initial power outage plan, for each target user, input the electricity consumption characteristics, power outage characteristics of the target user and each initial power outage plan into a pre-trained user power outage impact model to predict the impact score, and obtain the impact score of each initial power outage plan for the target user.
[0092] S104. Determine the target power outage plan from multiple initial power outage plans according to the impact score.
[0093] Exemplarily, if the target power outage plan involves one target user, the initial power outage plan with the highest value of the impact score can be used as the target power outage plan.
[0094] If the target power outage plan involves multiple target users, the average value of the impact scores of each initial power outage plan for each target user can be calculated first, and then the initial power outage plan with the highest average value can be used as the target power outage plan.
[0095] The power outage plan generation method provided by the embodiments of the present application first extracts the electricity consumption characteristics from the historical electricity consumption data of the target user, and extracts the power outage characteristics from the historical power outage data related to the target user; secondly, generates multiple initial power outage plans for the target user according to the electricity consumption characteristics, power outage characteristics of the target user, and feeder planning; then, inputs the electricity consumption characteristics, power outage characteristics of the target user and each initial power outage plan into a pre-trained user power outage impact model to predict the impact score, and obtains the impact score of each initial power outage plan; finally, determines the target power outage plan from multiple initial power outage plans based on the impact score, realizing that when determining the target power outage plan, it not only meets the maintenance requirements of grid equipment in the feeder planning as much as possible, but also conforms to the electricity consumption characteristics and power outage characteristics of the target user, and improves the convenience of electricity consumption of the target user during the power outage process as much as possible based on the impact score. Therefore, the target power outage plan determined by the above method has relatively high rationality.
[0096] Figure 2 It is a schematic flowchart of another power outage plan generation method provided by the present application. As Figure 2 shown, the method includes:
[0097] S201. Extract features from the historical electricity consumption data based on the first preset feature extraction algorithm to obtain electricity consumption characteristics including at least one of the following: electricity consumption time distribution, load characteristics, and electricity consumption behavior.
[0098] Exemplarily, the execution subject of this embodiment may be any device such as a server, a distributed system, a terminal device, other electronic devices / computer devices, and other devices that can implement the solution of this application, and there is no limitation thereto. Among them, the server may be an independent server or a server cluster, such as any form including but not limited to cloud servers, distributed servers, blockchain servers, etc.
[0099] This embodiment will be introduced with the execution subject being a server.
[0100] Exemplarily, the implementation manner of step S201 is similar to the implementation manner of "analyzing the power consumption characteristics of the target user according to the historical power consumption data of the target user" in step S101. For details, reference may be made to the description in step S101, and details will not be elaborated here.
[0101] Specifically, different first preset feature extraction algorithms may be set in advance for extracting different types of power consumption characteristics from historical power consumption data. The first preset feature extraction algorithm may be any algorithm for extracting power consumption characteristics from power consumption data, such as a pre-trained first regression analysis model, etc.
[0102] In one example, the historical power consumption data of the target user is respectively input into the first preset feature extraction algorithm corresponding to the power consumption time distribution, the first preset feature extraction algorithm corresponding to the load characteristics, and the first preset feature extraction algorithm corresponding to the power consumption behavior for feature extraction, so as to obtain the power consumption time distribution, load characteristics, and power consumption behavior of the target user.
[0103] By setting respective first preset feature extraction algorithms for extracting different types of power consumption characteristics from historical power consumption data, the accuracy of extracting different types of power consumption characteristics from historical power consumption data can be improved.
[0104] S202. Extract features from the historical power outage data based on the second preset feature algorithm to obtain power outage features including power outage time distribution and power outage factor distribution.
[0105] Exemplarily, the implementation manner of step S202 is similar to the implementation manner of "determining the power outage characteristics according to the historical power outage data related to the target user" in step S101. For details, reference may be made to the description in step S101, and details will not be elaborated here.
[0106] Specifically, the second preset feature extraction algorithm may be any algorithm for extracting power outage characteristics from power outage data, such as a pre-trained second regression analysis model, etc.
[0107] In one example, historical power outage data related to the target user can be input into a second preset feature algorithm for feature extraction to obtain the power outage features of the target user.
[0108] By performing feature extraction on the historical power outage data related to the target user based on the second preset feature algorithm, the accuracy of the power outage features extracted from the historical power outage data can be improved.
[0109] S203. Obtain the fault area data at the current moment, and input the power consumption features, power outage features, feeder planning, and fault area data at the current moment of the target user into the power outage plan generation model to generate multiple initial power outage plans.
[0110] Exemplarily, the fault area data related to the target user can be obtained from the power system, where the fault area represents the power outage area caused by an accidental circuit fault, and the power supply switch of the fault area is included in the fault area data.
[0111] An initial power outage plan generation model can be constructed first, and the fault area data at the start power outage moment of each calibrated power outage plan, the historical power consumption features, historical power outage features, historical feeder planning of each target user, and multiple calibrated power outage plans can be input into the initial power outage plan generation model for training to obtain the power outage plan generation model.
[0112] Among them, based on different preset algorithms, the historical power consumption features, historical power outage features, and historical feeder planning of each target user, multiple calibrated power outage plans for each target user can be determined, and the state of the power supply switch in the fault area data at the start power outage moment of each calibrated power outage plan is set to off and added to each calibrated power outage plan. The meaning of the preset algorithm can refer to the description in step S102 and will not be elaborated here.
[0113] Then, the fault area data at the current moment related to the target user can be obtained from the power system, and the power consumption features, power outage features, feeder planning, and fault area data at the current moment of the target user can be input into the power outage plan generation model to generate multiple initial power outage plans.
[0114] Since the calibrated power outage plans used in the training of the initial power outage plan generation model are determined based on different preset algorithms according to the historical power consumption features, historical power outage features, and historical feeder planning of each target user, the power outage plan generation model obtained after training can generate multiple initial power outage plans with different focuses, such as initial power outage plans that focus on ensuring the normal power consumption of more target users as much as possible, or initial power outage plans that focus on reducing the grid load as much as possible, or initial power outage plans that focus on conforming to the feeder planning, etc., thereby improving the diversity and rationality of the initial power outage plans.
[0115] Moreover, when training the initial power outage plan generation model, by setting the status of the power supply switch in the fault area data at the start power outage time of each calibrated power outage plan to off and adding it to each calibrated power outage plan, power outages caused by the maintenance requirements of the fault area are added to the calibrated power outage plans. Furthermore, among the multiple initial power outage plans generated based on the trained power outage plan generation model, power outages caused by the maintenance requirements of the current fault area can also be added. Therefore, the rationality of the multiple initial power outage plans can be improved.
[0116] S204. Input the power consumption characteristics, power outage characteristics of the target user, and each initial power outage plan into a pre-trained user power outage impact model. The user power outage impact model predicts the impact scores of each initial power outage plan based on the power consumption characteristics and power outage characteristics.
[0117] Exemplarily, the implementation method of step S204 is similar to that of step S103. For details, refer to the description in step S103 and will not be elaborated here.
[0118] By having the user power outage impact model predict the impact scores of each initial power outage plan on the target user based on the power consumption characteristics and power outage characteristics of each target user, it is possible to judge the convenience of power consumption for each target user if the power outage operation is carried out according to the initial power outage plan through the impact scores.
[0119] S205. Determine the target power outage plan from multiple initial power outage plans according to the impact scores.
[0120] In one example, the impact scores include user satisfaction scores, power outage loss scores, and social impact scores.
[0121] In one example, step S205 includes the following process:
[0122] For each initial power outage plan, multiply the corresponding user satisfaction score, power outage loss score, and social impact score of the initial power outage plan by their respective preset weights, and add the obtained product results to obtain the target score of the initial power outage plan;
[0123] Determine the target power outage plan from multiple initial power outage plans according to the target scores.
[0124] Exemplarily, the user satisfaction score can characterize the degree of satisfaction of the target user with the power consumption if the power outage operation is carried out according to the initial power outage plan. The user satisfaction score is positively correlated with the degree of satisfaction of the target user with the power consumption. The power outage loss score can characterize the degree of economic loss to the target user if the power outage operation is carried out according to the initial power outage plan. The power outage loss score is negatively correlated with the degree of economic loss to the target user. The social impact score can characterize the degree of adverse social impact on the target user if the power outage operation is carried out according to the initial power outage plan. The social impact score is negatively correlated with the degree of adverse social impact on the target user.
[0125] In one example, for each target user, after obtaining the user satisfaction score, power outage loss score, and social impact score of each initial power outage plan for the target user, the user satisfaction score, power outage loss score, and social impact score corresponding to the initial power outage plan are respectively multiplied by their respective preset weights, and the obtained product results are added together to obtain the target score of the initial power outage plan for the target user.
[0126] Subsequently, according to the target score, the method for determining the target power outage plan from multiple initial power outage plans is similar to the method in step S104. Just understand the target score as the impact score in step S104. For details, refer to the description in step S104 and will not be elaborated here.
[0127] By determining the target power outage plan from multiple initial power outage plans according to the user satisfaction score, power outage loss score, and social impact score of each target user, it can be ensured that after the power outage operation is carried out according to the target power outage plan, the user satisfaction of each target user is higher, the power outage loss is smaller, and the social impact is smaller. Therefore, the rationality of the target power outage plan can be improved.
[0128] S206. Optimize the target power outage plan based on a preset optimization algorithm to obtain an optimized target power outage plan.
[0129] In one example, based on a preset optimization algorithm, adjust the power outage start time and duration of the target power outage plan to obtain an optimized target power outage plan.
[0130] Exemplarily, the preset optimization algorithm can be a particle swarm optimization algorithm or a genetic algorithm, etc., without limitation.
[0131] In one example, an objective function can be established. This objective function correlates the power outage start time and duration of the target power outage plan with the user satisfaction scores and power outage loss scores of the target power outage plan for each target user to obtain an objective function value. The optimization objective of this objective function value is to find a target power outage plan that includes the target power outage start time and target duration, which can maximize the user satisfaction scores and power outage loss scores of each target user as much as possible, while also maximizing the sum of the user satisfaction scores and power outage loss scores of each target user.
[0132] One or more of the following conditions can also be used as constraints in the solution process of the objective function value: the power outage plan corresponding to the objective function meets the requirements of the feeder planning corresponding to each target user, conforms to the electricity consumption characteristics, conforms to the power outage characteristics, and does not exceed the maintenance resource information, etc. Among them, the maintenance resource information is, for example, the number of maintenance personnel equipped for maintaining power grid equipment in the feeder planning, the capital budget for power grid equipment used for maintenance, etc.
[0133] After establishing the objective function and determining the constraints, the power outage start time, duration, user satisfaction scores, and power outage loss scores of the target power outage plan for each target user can be input into a preset optimization algorithm. The preset optimization algorithm uses the objective function value calculated based on the target power outage plan as one of the initial solutions and randomly generates other initial solutions. By continuously adjusting the power outage start time and duration of the target power outage plan in multiple iterations, the optimal solution is searched. And in each iteration process, if the power outage plan corresponding to the objective function value does not meet the constraints, the power outage plan corresponding to the objective function value is discarded.
[0134] When the preset number of iterations is reached, the optimal solution is determined, and the power outage start time and duration corresponding to the optimal solution are respectively used as the target power outage start time and target duration. Furthermore, the power outage plan including the target power outage start time and target duration is used as the optimized target power outage plan.
[0135] By establishing an objective function whose optimization objective function value is to find a target power outage plan that includes the target power outage start time and target duration, which can maximize the user satisfaction scores and power outage loss scores of each target user as much as possible, while also maximizing the sum of the user satisfaction scores and power outage loss scores of each target user, and determining the constraints, and then adjusting the power outage start time and duration of the target power outage plan based on the preset optimization algorithm, an optimized target power outage plan that takes into account improving the user satisfaction of each target user and reducing the power outage loss of each target user can be obtained. Therefore, the rationality of the optimized target power outage plan can be improved.
[0136] S207. Perform simulated power outages according to the optimized target power outage plan to obtain grid parameters during the power outage process.
[0137] Exemplarily, after obtaining the optimized target power outage plan, based on a preset grid simulation tool, the actual operation of the grid where each target user is located can be simulated, and simulated power outage operations can be performed according to the optimized target power outage plan to obtain grid parameters during the simulated power outage process. Among them, the grid parameters may include, but are not limited to, one or more of the voltage change amplitude, load rate, etc. during the power outage process.
[0138] S208. In response to determining that the optimized target power outage plan is feasible based on the grid parameters, perform power outage operations according to the optimized target power outage plan; in response to determining that the optimized target power outage plan is not feasible based on the grid parameters, re-determine the target power outage plan.
[0139] Exemplarily, after obtaining the grid parameters during the simulated power outage process, if the grid parameters meet the preset conditions, it is determined that the optimized target power outage plan is feasible, and power outage operations can be performed according to the optimized target power outage plan, and the optimized target power outage plan can also be released to the target users.
[0140] If the grid parameters do not meet the preset conditions, it is determined that the optimized target power outage plan is not feasible, and steps S203 - S208 can be repeated to re-determine the optimized target power outage plan.
[0141] Among them, the preset conditions may include, for example, but are not limited to, one or more of the voltage change amplitude within the preset voltage change amplitude range, the load rate within the preset load rate range, etc.
[0142] By performing simulated power outages according to the optimized target power outage plan to obtain grid parameters during the power outage process. If the grid parameters meet the preset conditions, power outage operations are performed according to the optimized target power outage plan; if the grid parameters do not meet the preset conditions, the optimized target power outage plan is re-determined, which can ensure that the stability of the power system operation will not be affected after performing power outage operations according to the optimized target power outage plan.
[0143] Figure 3 The structural schematic diagram of the power outage plan generation device provided by this application is as Figure 3 shown. The power outage plan generation device 30 provided in this embodiment includes:
[0144] An analysis module 301, configured to analyze the power consumption characteristics of the target user according to the historical power consumption data of the target user;
[0145] A first determination module 302, configured to determine the power outage characteristics according to the historical power outage data related to the target user;
[0146] The second determination module 303 is configured to determine multiple initial power outage plans for the target user based on the power consumption characteristics, power outage characteristics, and feeder planning of the target user;
[0147] The prediction module 304 is configured to input the power consumption characteristics, power outage characteristics, and each initial power outage plan of the target user into a pre-trained user power outage impact model, and the user power outage impact model predicts the impact scores of each initial power outage plan according to the power consumption characteristics and power outage characteristics;
[0148] The third determination module 305 is configured to determine the target power outage plan from multiple initial power outage plans according to the impact scores.
[0149] In a possible implementation manner, the parsing module 301 is specifically configured to:
[0150] Extract features from the historical power consumption data based on the first preset feature extraction algorithm to obtain power consumption characteristics including at least one of the following: power consumption time distribution, load characteristics, and power consumption behavior.
[0151] In a possible implementation manner, the first determination module 302 is specifically configured to:
[0152] Extract features from the historical power outage data based on the second preset feature algorithm to obtain power outage characteristics including power outage time distribution and power outage factor distribution.
[0153] In a possible implementation manner, the device 30 is further configured to obtain the fault substation area data at the current moment;
[0154] In a possible implementation manner, the second determination module 303 is specifically configured to:
[0155] Input the power consumption characteristics, power outage characteristics, feeder planning, and the fault substation area data at the current moment of the target user into the power outage plan generation model to generate multiple initial power outage plans.
[0156] In a possible implementation manner, the impact scores include user satisfaction scores, power outage loss scores, and social impact scores;
[0157] In a possible implementation manner, the third determination module 305 is specifically configured to:
[0158] For each initial power outage plan, multiply the user satisfaction score, power outage loss score, and social impact score corresponding to the initial power outage plan by their respective preset weights, and add the obtained product results to obtain the target score of the initial power outage plan;
[0159] Determine the target power outage plan from multiple initial power outage plans according to the target scores.
[0160] In a possible implementation, the device 30 is further configured to:
[0161] Optimize the target power outage plan based on a preset optimization algorithm to obtain an optimized target power outage plan.
[0162] In a possible implementation, "Optimize the target power outage plan based on a preset optimization algorithm to obtain an optimized target power outage plan" in the device 30 is specifically configured to:
[0163] Adjust the power outage start time and duration of the target power outage plan based on a preset optimization algorithm to obtain an optimized target power outage plan.
[0164] In a possible implementation, the device 30 is further configured to:
[0165] Conduct a simulated power outage according to the optimized target power outage plan to obtain grid parameters during the power outage;
[0166] In response to determining that the optimized target power outage plan is feasible based on the grid parameters, perform a power outage operation according to the optimized target power outage plan;
[0167] In response to determining that the optimized target power outage plan is infeasible based on the grid parameters, re-determine the target power outage plan.
[0168] The power outage plan generation device provided in this embodiment can execute the method provided in the above method embodiment, and its implementation principle and technical effects are similar, which will not be elaborated here in this embodiment.
[0169] Figure 4 It is a schematic structural diagram of an electronic device provided in this application. As Figure 4 shown, the electronic device 40 provided in this embodiment includes: at least one processor 401 and a memory 402. Optionally, the device 40 further includes a communication component 403. Among them, the processor 401, the memory 402, and the communication component 403 are connected through a bus 404.
[0170] In a specific implementation process, at least one processor 401 executes computer-executable instructions stored in the memory 402, so that at least one processor 401 executes the above method.
[0171] The specific implementation process of the processor 401 can refer to the above method embodiment, and its implementation principle and technical effects are similar, which will not be elaborated here in this embodiment.
[0172] In the above embodiments, it should be understood that the processor may be a central processing unit (CPU for short), or other general-purpose processors, digital signal processors (DSP for short), application specific integrated circuits (ASIC for short), etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the method disclosed in combination with the invention can be directly implemented by the execution of the hardware processor, or implemented by the combination of hardware and software modules in the processor.
[0173] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (Non-volatile Memory, NVM), such as at least one disk memory.
[0174] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of representation, the buses in the drawings of this application are not limited to only one bus or one type of bus.
[0175] This application also provides a computer program product, including a computer program, which implements the above method when executed by a processor.
[0176] This application also provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the processor executes the computer-executable instructions, the above method is implemented.
[0177] The above-readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk or an optical disc. The readable storage medium can be any available medium accessible by a general-purpose or special-purpose computer.
[0178] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be part of the processor. The processor and the readable storage medium can be located in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the readable storage medium can also exist as discrete components in a device.
[0179] The division of units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Additionally, the couplings or direct couplings or communication connections shown or discussed among each other can be indirect couplings or communication connections through some interfaces, devices or units, and can be in electrical, mechanical or other forms.
[0180] The units described as separate components may or may not be physically separated. The components shown as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0181] Furthermore, in each embodiment of the present invention, the functional units can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit.
[0182] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods in each embodiment of the present invention. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks or optical discs that can store program codes.
[0183] Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments; and the aforementioned storage medium includes: various media such as ROM, RAM, magnetic disks, or optical discs that can store program codes.
[0184] Finally, it should be noted that: after considering the specification and practicing the invention disclosed herein, those skilled in the art will readily conceive of other embodiments of the present invention. The present invention is intended to cover any variations, uses, or adaptations of the present invention, which follow the general principles of the present invention and include known common knowledge or conventional technical means in the technical field not disclosed in the present invention. It is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present invention is only limited by the appended claims.
Claims
1. A method for generating a power outage plan, characterized in that: include: Analyzing the power consumption characteristics of the target user according to the historical power consumption data of the target user, and determining the power outage characteristics according to the historical power outage data related to the target user; Determining a plurality of initial power outage plans for the target user based on the power consumption characteristics of the target user, the power outage characteristics, and feeder planning; Inputting the target user's power consumption characteristics, power outage characteristics and each of the initial power outage plans into a pre-trained user power outage impact model, and using the user power outage impact model to predict the impact score of each initial power outage plan based on the power consumption characteristics and power outage characteristics; A target power outage plan is determined from the plurality of initial power outage plans according to the impact scores.
2. The method according to claim 1, characterized in that The step of analyzing the power usage characteristics of the target user according to the historical power usage data of the target user, and determining the power outage characteristics according to the historical power outage data related to the target user, includes: Extracting features from the historical power consumption data based on a first preset feature extraction algorithm to obtain power consumption features including at least one of the following: power consumption time distribution, load characteristics, and power consumption behavior; Based on a second preset feature algorithm, feature extraction is performed on the historical power outage data to obtain power outage features including power outage time distribution and power outage factor distribution.
3. The method according to claim 1, characterized in that Also obtain the fault area data at the current moment; And determining a plurality of initial power outage plans for the target user based on the power consumption characteristics of the target user, the power outage characteristics and the feeder planning, comprises: The target user's electricity consumption characteristics, the power outage characteristics, the feeder planning, and the fault area data at the current moment are input into a power outage plan generation model to generate the multiple initial power outage plans.
4. The method according to claim 1, characterized in that: The impact scores include user satisfaction score, power outage loss score, and social impact score; and determining a target power outage plan from a plurality of the initial power outage plans according to the impact score, including: For each of the initial power outage plans, the user satisfaction score, power outage loss score, and social impact score corresponding to the initial power outage plan are multiplied by their respective preset weights, and the obtained product results are added to obtain the target score of the initial power outage plan; The target power outage plan is determined from a plurality of the initial power outage plans according to the target score.
5. The method according to any one of claims 1 to 4, characterized in that Also includes: Based on a preset optimization algorithm, the target power outage plan is optimized to obtain an optimized target power outage plan.
6. The method according to claim 5, characterized in that The target power outage plan is optimized based on a preset optimization algorithm to obtain an optimized target power outage plan, including: Based on the preset optimization algorithm, the power outage start time and duration of the target power outage plan are adjusted to obtain the optimized target power outage plan.
7. The method according to claim 5, characterized in that Also includes: Perform a simulated power outage according to the optimized target power outage plan to obtain power grid parameters during the power outage; In response to determining that the optimized target power outage plan is feasible according to the power grid parameters, performing a power outage operation according to the optimized target power outage plan; In response to determining that the optimized target power outage plan is not feasible according to the power grid parameters, the target power outage plan is re-determined.
8. A power outage plan generating device, characterized in that: include: An analysis module, used to analyze the power consumption characteristics of the target user according to the historical power consumption data of the target user; A first determination module, configured to determine a power outage feature based on historical power outage data related to the target user; A second determination module is used to determine a plurality of initial power outage plans for the target user based on the power consumption characteristics of the target user, the power outage characteristics and the feeder planning; A prediction module, configured to input the target user's power consumption characteristics, power outage characteristics and each of the initial power outage plans into a pre-trained user power outage impact model, and the user power outage impact model predicts the impact score of each initial power outage plan based on the power consumption characteristics and power outage characteristics; A third determination module is used to determine a target power outage plan from the multiple initial power outage plans according to the impact score.
9. An electronic device, characterized in that: include: Memory, processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 7 when executed by a processor.
11. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 7 when being executed by a processor.