A new distribution network operation condition cloud simulation system and method
By constructing the transfer capacity guidance threshold and optimizing resource scheduling, combined with the backlog of the simulation event queue and the server connection relationship, the problems of low computing resource utilization and poor adaptability of the transfer capacity guidance threshold in the new distribution network operating conditions cloud simulation system are solved. Improved the efficiency and adaptability of the simulation system.
Patent Information
- Application Number
- CN202410085796.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-22
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-01-22
AI Technical Summary
The existing new distribution network operating condition cloud simulation system has low utilization of computing resources, resulting in too long simulation time and inability to adapt to complex and changeable application scenarios. Moreover, the adaptability of the transfer capacity guidance threshold is poor, which affects computing resource scheduling. of practicality.
Design a new distribution network operating condition cloud simulation system. By constructing the transfer capacity guidance threshold, combined with the backlog of the simulation event queue, computational complexity estimates and server connection relationships, the resource transfer gain and transfer cost are calculated to optimize resource scheduling; At the same time, the time window of multiple simulation time slots is used for simulation adjustment, and the transfer capacity guidance threshold is optimized to improve the flexibility and accuracy of scheduling.
It improves the computing resource utilization of the cloud simulation system and the cloud simulation rate of new distribution network operating conditions, enhances the real-time performance of the simulation and its adaptability to multiple simulation event requests, and solves the problems of long simulation time and poor adaptability.
Smart Images

Figure CN117971470B
Abstract
Description
Technical Field
[0001] The present invention provides a novel distribution network operation condition cloud simulation system and method, belonging to the technical field of power distribution. Background Art
[0002] The new distribution network is a modern power distribution system that integrates advanced information, communication, perception and control technologies. It promotes the integration and comprehensive deployment of power flow, information flow and value flow in power production, transmission, consumption and storage, thereby building a green, low-carbon, safe, controllable, economical and efficient, flexible and open, and digitally empowered power system. With the rapid development of new energy, energy Internet and other technologies, the operating conditions of the new distribution network have become very complex. Simulating the operating conditions of the new distribution network can effectively provide guidance for distribution network operations.
[0003] The cloud simulation system is a system that uses cloud computing resources to simulate, emulate, and analyze the behavior of complex systems. Its principle is to use the network and cloud simulation platform to organize various simulation resources on demand, decompose simulation tasks and process them in parallel, so as to provide users with a new simulation mode of various modeling and simulation services. As a new supercomputing method, it is widely used in distribution network simulation because of its advantages such as virtualization, dynamic scalability, on-demand deployment, high flexibility, high reliability, and high cost performance. It can effectively reduce the simulation time of new distribution network operating conditions and improve the accuracy and reliability of simulation.
[0004] However, due to the huge number of simulation events in the new distribution network, and the cloud simulation system may take a lot of time to transfer a large amount of data to or from the cloud server, higher requirements are placed on the computing resource scheduling of the cloud simulation system. Among them, resource scheduling refers to the dynamic allocation of computing resources of each simulation event queue in the cloud simulation system to meet the needs of different simulation tasks. The resources here mainly refer to computing resources. Resource scheduling is conducive to optimizing resource utilization and improving simulation efficiency. Since the operating conditions of the distribution network are complex and changeable, the computational complexity of the same simulation event under different operating conditions will also change accordingly. Therefore, the simulation event queue needs to reserve sufficient computing resources to cope with the fluctuation of computational complexity and construct a transfer capacity guidance threshold, that is, to set a threshold for the amount of computing resources transferred between each simulation event queue during computing resource scheduling for guidance. Therefore, it is urgent to design a new distribution network operating condition cloud simulation method and system. When designing a new distribution network operating condition cloud simulation method and system, it is necessary to take into account the limited transfer capacity and optimize resource scheduling, reasonably allocate computing resources of each simulation event queue, and improve the response speed and simulation performance of the entire system.
[0005] At present, there have been some studies on cloud simulation methods and systems for distribution network operation conditions:
[0006] Patent CN202310887642.7 proposes a traffic scheduling method based on a cloud computing platform. First, the traffic is initially scheduled based on the scheduling threshold; second, according to the principle of priority of the traffic rates corresponding to several IP addresses, the link corresponding to the optimal IP address is output; finally, the traffic greater than the upper scheduling threshold is dynamically scheduled to the link corresponding to the optimal IP address.
[0007] Patent CN202011608693.4 proposes a cloud computing resource allocation system and method based on multi-layer spatial scheduling. First, a cloud computing resource allocation model is established; second, the cloud computing data is balanced; finally, the cloud computing data is spatially mapped to complete resource allocation.
[0008] However, the existing cloud simulation method and system for new distribution network operation conditions still have the following two shortcomings: First, the computing resource scheduling method with limited transfer capacity is not considered, and the guidance threshold for transferring computing resources of each simulation event queue is not considered, which leads to low computing resource utilization of the cloud simulation system, causing the system simulation time to be too long, and unable to adapt to the application scenarios with variable new distribution network operation conditions. Second, the adjustment of the transfer capacity guidance threshold is not considered, resulting in poor adaptability of the transfer capacity guidance threshold, resulting in low practicality of the computing resource scheduling method of the cloud simulation system, and unable to adapt to the application scenarios of multiple simulation event requests of the cloud simulation system. Therefore, it is urgent to design a new cloud simulation method and system for distribution network operation conditions, study the computing resource scheduling method taking into account the limited transfer capacity, and propose a transfer capacity guidance threshold adjustment method based on transfer gain timing fitting to improve the efficiency of cloud simulation of new distribution network operation conditions. Summary of the invention
[0009] In view of the above technical problems, the present invention proposes a new distribution network operation condition cloud simulation system and method, which constructs the transfer capacity guidance threshold of each simulation event queue based on the backlog of the simulation event queue, the estimated value of the computational complexity, the number of servers connected to the server to which the simulation event queue belongs, and the communication rate between the servers, solves the resource transfer gain between the simulation event queues based on the change in the calculation completion time and the change in the degree of advancement or lag of each simulation event queue before and after the calculation resource scheduling, and solves the transfer cost between the simulation event queues based on the calculation resource transfer amount of the simulation event queue and the transfer capacity guidance threshold; on this basis, resource scheduling is performed in combination with the transfer capacity guidance threshold, resource transfer gain and transfer cost. It effectively solves the problem of long simulation time of the cloud simulation system caused by low computing resource utilization of the operation condition cloud simulation system under the condition of variable operation conditions of the new distribution network, improves the computing resource utilization of the cloud simulation system and the cloud simulation rate of the new distribution network operation condition, effectively improves the real-time performance of the simulation of the distribution network operation condition cloud simulation system, and is suitable for application scenarios with variable operation conditions of the new distribution network.
[0010] The present invention also proposes a novel cloud simulation system and method for distribution network operation conditions, constructs a time window including multiple simulation time slots, calculates the transfer capacity guidance threshold of the simulation event queue simulation based on the simulated guidance threshold adjustment parameters, and adjusts the transfer capacity guidance threshold based on the actual transfer gain mean, simulated positive adjustment transfer gain mean, and simulated negative adjustment transfer gain mean in the current time window by simulating the transfer gain time series evolution corresponding to the positive and negative adjustments of the transfer capacity guidance threshold in the time window. The poor adaptability caused by the poor flexibility of the transfer capacity guidance threshold adjustment is effectively solved, the practicality and operation accuracy of the computing resource scheduling of the cloud simulation system are improved, and the ability of the distribution network operation condition cloud simulation system to respond to multiple simulation event requests is enhanced, and it is suitable for application scenarios with multiple simulation event requests.
[0011] The complete technical solution provided by the present invention
[0012] A new distribution network operation condition cloud simulation system, including a simulation event controller and a resource scheduling controller;
[0013] The simulation event controller includes a computational complexity estimation module and a simulation event calculation module;
[0014] The resource scheduling controller includes a transfer capacity guidance threshold construction module, a data interaction module, a resource scheduling module, and a transfer capacity guidance threshold adjustment module;
[0015] Computational complexity estimation module: calculates the computational complexity estimation value of the simulation event queue;
[0016] Simulation event calculation module: calculates the computing resources allocated to the server after resource scheduling, the calculation completion time of the simulation event queue before and after resource scheduling, the leading or lagging completion time of each simulation event queue, and the actual data volume processed by the simulation event queue and the backlog data volume after processing;
[0017] Transfer capacity guidance threshold building module: calculates the transfer capacity guidance threshold of the server;
[0018] Data interaction module: controls the data interaction between the simulation event controller and the resource scheduling controller, and calculates the resource transfer gain and transfer cost between simulation event queues based on the interaction information;
[0019] Resource scheduling module: performs one-to-one resource transfer matching based on resource transfer gain and transfer cost and the degree of advancement or lag of the simulation event queue;
[0020] Transfer capacity guidance threshold adjustment module: Set the guidance threshold adjustment parameters simulated in the time window, calculate the transfer capacity guidance threshold simulated by each server in the time window, simulate the time series evolution of the transfer gain, obtain the average value of the simulated positive adjustment transfer gain and the average value of the simulated negative adjustment transfer gain in the current time window, and the actual transfer gain average, and complete the guidance threshold parameter update in the next time window.
[0021] A novel distribution network operation condition cloud simulation method adopts the novel distribution network operation condition cloud simulation system, and the method comprises the following steps:
[0022] S1: Computing resource scheduling method considering limited transfer capacity
[0023] Firstly, the simulation status of the simulation event queue is evaluated; secondly, the transfer capacity guidance threshold is constructed; then, the resource transfer gain and transfer cost are calculated; finally, a simulation event queue resource scheduling method is designed with transfer capacity constraints in mind;
[0024] S2: Transfer capacity guidance threshold adjustment method based on transfer gain time series fitting
[0025] First, the temporal evolution of the transfer gain corresponding to the positive and negative adjustments of the transfer capacity guidance threshold parameters is simulated; second, the transfer capacity guidance threshold parameters are adjusted based on the simulation results;
[0026] A time window containing d simulation time slots is constructed. While performing simulation in each time window, the resource scheduling controller simulates the time-series evolution of the transfer gain corresponding to the positive and negative adjustments of the transfer capacity guidance threshold parameter, and adjusts the transfer capacity guidance threshold parameter of the next time window according to the result of the simulated transfer gain time-series evolution, that is, the transfer capacity guidance threshold parameter of all simulation time slots in the w-1th time window is adjusted according to the result of the simulated transfer gain time-series evolution of the w-1th time window, and the transfer capacity guidance threshold parameters in the same time window are equal.
[0027] The S1 comprises the following sub-steps:
[0028] S1.1: Simulation Status Assessment of Simulation Event Queues
[0029] The new distribution network operation condition cloud simulation system contains multiple simulation event controllers and a resource scheduling controller. Each simulation event controller corresponds to a server and is responsible for managing the server simulation queue. The resource scheduling controller is responsible for optimizing the computing resource allocation between multiple simulation event controllers. Suppose there are J servers and N simulation event queues in the cloud simulation system. Each server contains multiple simulation event queues and can process multiple simulation events in parallel. The set of simulation event queues contained in the jth server is Ω j ;
[0030] Affected by the number of distribution network equipment, the number of power lines and the operating status of the substation involved in the simulation event; the estimated value of the computational complexity of the nth simulation event queue in the t time slot is χ n (t) is expressed as:
[0031]
[0032] Among them, f(·) is the computational complexity estimation function, which is proportional to the number of distribution network devices involved in the simulation event queue during simulation, proportional to the logarithm of the number of power lines involved in the simulation event queue during simulation, and inversely proportional to the operation status of the substation involved in the simulation event queue during simulation; is the number of network distribution devices involved in the simulation of the nth simulation event queue in the t time slot. The larger the number, the more data to be processed, resulting in increased computational complexity. is the number of power lines involved in the simulation of the nth simulation event queue in the t time slot. The larger the number, the more data to be processed and the greater the computational complexity. is the operation status of the substation involved in the simulation of the nth simulation event queue in the t time slot, The larger the value, the more complex the operation status of the substation. Complex operation status of the substation will lead to data loss, requiring more complex data processing methods, and the calculation complexity will also increase.
[0033] Under the existing resource scheduling, the calculation completion time of the nth simulation event queue in the t time slot is It is expressed as:
[0034]
[0035] Among them, Q n (t) is the amount of backlog data to be simulated in the nth simulation event queue in time slot t; U is the amount of simulation data added to the nth simulation event queue in time slot t; n (t-1) is the total computing resources after the transfer of the nth simulation event queue resource in the t-1 time slot;
[0036] Based on the difference between the calculation completion time of the simulation event queue and the average calculation completion time of all simulation event queues under the existing resource scheduling, the degree of advancement or lag of each simulation event queue is determined. If the difference is positive, it means that the calculation completion time of this simulation event queue is ahead of the average calculation completion time of all simulation event queues. If the difference is negative, it means that the calculation completion time of this simulation event queue is behind the average calculation completion time of all simulation event queues, which is expressed as:
[0037]
[0038] in, is the advanced completion time or delayed completion time of the nth simulation event queue in the t time slot under the existing resource scheduling; When , it means that the simulation event queue is completed ahead of schedule under the existing resource scheduling. When , it means that the simulation event queue is completed behind schedule under the existing resource scheduling;
[0039] S1.2: Construction of transfer capacity guidance thresholds
[0040] The transfer capacity guidance threshold refers to the resource transfer recommendation value provided by the resource scheduling controller to the simulation event queue in the advanced completion state in each time slot; the role of the transfer capacity guidance threshold is to provide a reference for determining the transfer amount of computing resources. When the transfer amount of computing resources is less than the transfer capacity guidance threshold, the simulation event queue that provides computing resources can cope with the fluctuation of computing complexity, and has little impact on the processing of its own backlog data volume; when the transfer amount of computing resources is greater than the transfer capacity guidance threshold, the simulation event queue that provides computing resources will not be able to effectively cope with the fluctuation of computing complexity, and will have a greater impact on the processing of its own backlog data volume.
[0041] The transfer capacity guidance threshold is constructed based on the backlog of the simulation event queue, the estimated value of the computational complexity, the number of simulation event queues in a delayed completion state that are connected to the simulation event queue, and the average communication rate between servers; the transfer capacity guidance threshold of the nth simulation event queue in time slot t It is expressed as:
[0042]
[0043] in, is the weight of the number of servers; is the communication rate weight; is the calculation complexity weight; is the queue backlog weight; κ n (t) is the transfer capacity guidance threshold adjustment parameter obtained by the nth simulation event queue based on the transfer gain timing simulation, for details, see “S2”; is the number of simulation event queues in a delayed completion state that have a connection relationship with the nth simulation event queue; is the average communication rate between the server to which the nth simulation event queue belongs and the server with which it has a connection relationship; is the computing resource that needs to be reserved for the current time slot of the nth simulation event queue. This value is obtained based on the backlog data volume, historical maximum computing complexity, and historical average computing completion time of the nth simulation event queue, and is expressed as
[0044]
[0045] or n The larger (t) is, the more computing resources the current simulation event queue needs to reserve to process its own backlog of data. The smaller; The larger the value is, the more simulation event queues that are connected to the nth simulation event queue and are in a delayed completion state are, and the more backlog data the external simulation event queue needs to assist in processing. The bigger; The larger the value, the greater the potential of the server connected to the server to which the simulation event queue belongs to obtain computing resources. The bigger;
[0046] S1.3: Calculation of transfer gains and transfer costs taking into account transfer capacity constraints
[0047] When scheduling resources in time slot t, the amount of computing resources transferred from the mth simulation event queue to the nth simulation event queue is = ... and Respectively expressed as:
[0048]
[0049]
[0050] After the nth simulation event queue receives the computing resources transferred by the mth simulation event queue, the degree of advance or lag of the nth and mth simulation event queues is re-determined. and Respectively expressed as:
[0051]
[0052]
[0053] The resource transfer gain between simulation event queues is calculated based on the calculation completion time change considering the transfer delay and the advance or lag degree change between simulation event queues before and after resource scheduling; wherein, when both simulation event queues for resource transfer are located on different servers, the calculation completion time change between simulation event queues is composed of the weighted sum of the resource transfer delay, the calculation completion time change of the simulation event queue of the resource receiver and the calculation completion time change of the simulation event queue of the resource provider; when both simulation event queues for resource transfer are located on the same server, the calculation completion time change between simulation event queues is composed of the weighted sum of the calculation completion time change of the simulation event queue of the resource receiver and the calculation completion time change of the simulation event queue of the resource provider; the advance or lag degree change is composed of the weighted sum of the advance or lag degree change of the simulation event queue of the resource receiver and the advance or lag degree change of the simulation event queue of the resource provider;
[0054] The constructed resource transfer gain is expressed as:
[0055]
[0056] in, is the resource transfer gain of transferring computing resources from the mth simulation event queue to the nth simulation event queue; R m,n The communication rate of transferring computing resources from the mth simulation event queue to the nth simulation event queue; A weighting factor for the change in computation completion time when both parties of the simulation event queue for resource transfer are located on different servers; Calculate the completion time variation weighting factor for the resource receiver when both parties of the simulation event queue for resource transfer are located on different servers; Calculate the completion time variation weighting factor for the resource provider when both parties of the simulation event queue for resource transfer are located on different servers; A weighted factor for the change in the degree of advancement or lag of the resource receiver when both parties of the simulation event queue for resource transfer are located on different servers; A weighting factor for the change in the degree of advancement or lag of the resource provider when both parties of the simulation event queue for resource transfer are located on different servers; A weighting factor for calculating the change in completion time when both sides of the simulation event queue for resource transfer are located on the same server; Calculate the completion time variation weighting factor for the resource provider when both parties of the simulation event queues for resource transfer are located on the same server; A weighting factor for the change in the degree of advance or lag when both parties of the simulation event queue for resource transfer are located on the same server; A weighted factor for changes in the degree of advancement or lag of the resource provider when both parties of the simulation event queue for resource transfer are located on the same server;
[0057] The transfer cost between simulation event queues is calculated based on the computing resource transfer amount of the simulation event queue and the transfer capacity guidance threshold. When the computing resource transfer amount is less than the transfer capacity guidance threshold, the simulation event queue that provides computing resources can cope with the fluctuation of computing complexity, and has little impact on the processing of its own backlog data volume. The transfer cost increases slowly with the increase of computing resource transfer amount. When the computing resource transfer amount is greater than the transfer capacity guidance threshold, the simulation event queue that provides computing resources will not be able to effectively cope with the fluctuation of computing complexity, and has a greater impact on the processing of its own backlog data volume. The transfer cost increases rapidly with the increase of computing resource transfer amount, and the transfer cost increases rapidly. The constructed transfer cost is expressed as:
[0058]
[0059] Among them, α m , β m , γ m is the transfer cost coefficient of the mth server;
[0060] S1.4: Simulation event queue resource scheduling considering transfer capacity constraints
[0061] The simulation event queues are arranged in descending order according to their degree of advancement or lag, and starting from the simulation event queue at the end of the descending order, resource scheduling is performed based on the weighted difference between the resource transfer gain and the cost function.
[0062] The S1.4 comprises the following sub-steps:
[0063] (1) each simulation event queue at the leading level selects to send a resource transfer request to the simulation event queue at the lagging level with the largest weighted difference based on the weighted difference of the resource transfer gain and cost function of transferring resources to the simulation event queue at the lagging level;
[0064] (2) When a simulation event queue at a lagging level receives resource transfer requests from multiple simulation event queues at an advanced level, starting from the simulation event queue at the end of the descending order, it accepts the resource transfer from the simulation event queue at an advanced level with the largest weighted difference between the resource transfer gain and the cost function, and completes the resource transfer pairing until all simulation event queues at a lagging level that have received resource transfer requests in this round have completed the resource transfer pairing and enter the next round of request sending;
[0065] A simulation event queue at a lagging level can only be paired with a simulation event queue at an advanced level, and similarly, a simulation event queue at an advanced level can only be paired with a simulation event queue at a lagging level;
[0066] (3) In the next round of request sending, the simulation event queue at the advanced level that has not completed resource transfer pairing re-sends the resource transfer request to the simulation event queue at the lagging level that has not completed resource transfer pairing, and the simulation event queue at the lagging level selects the resource transfer request and completes the resource transfer pairing;
[0067] (4) Repeat the above process until all simulation event queues at the advanced level have completed resource transfer pairing or all simulation event queues at the lagging level have completed resource transfer pairing, and the simulation event queue resource scheduling process ends; set y m,n (t) is a binary indicator variable indicating the transfer of computing resources from the mth simulation event queue to the nth simulation event queue, which can be expressed as:
[0068]
[0069] in, That is, the one-to-one transfer pairing principle in step (2) is satisfied;
[0070] After the simulation event queue resource scheduling process is completed, for the two paired event queues m and n, the total computing resources U after time slot processing is n (t) and U m (t) is expressed as:
[0071]
[0072]
[0073] The simulation event controller recalculates the amount of data accumulated in the simulation event queue after processing in time slot t based on the simulation event queue resource scheduling result; without considering the limited amount of data, the maximum amount of data that the nth simulation event queue can process in time slot t is I n (t) is expressed as:
[0074]
[0075] Where Δt is the length of a single time slot; the amount of data actually processed by the nth simulation event queue in time slot t is It is expressed as:
[0076]
[0077] From this, we can deduce the amount of data accumulated in the nth simulation event queue after processing in time slot t:
[0078]
[0079] After the amount of data accumulated in the simulation event queue after processing in time slot t is calculated, it will enter the next time slot and re-optimize the computing resource scheduling.
[0080] The S2 comprises the following sub-steps:
[0081] S2.1: Simulation of the temporal evolution of transfer gain corresponding to positive and negative adjustments of the transfer capacity guidance threshold parameter
[0082] From the beginning of the simulation, every d simulation time slots are divided into a time window, and the time windows do not overlap each other. Then the time slots contained in the w-1th time window are {(w-1)d+1, (w-1)d+2, L, wd}, d is the number of simulation time slots in the time window, and d can be divided by 2. While simulating in the w-1th time window, the resource scheduling controller makes positive and negative adjustments to the transfer capacity guidance threshold parameter of the simulation queue n, that is, the transfer capacity guidance threshold parameter is increased and decreased intermittently. Then the positive and negative adjustment sequence of the transfer capacity guidance threshold parameter used for the transfer gain time series evolution simulation is expressed as:
[0083]
[0084] in, represents the transfer capacity guidance threshold parameter of the simulation queue n in the w-1th time window, that is, t∈{(w-1)d+1,(w-1)d+2,L,wd}, represents the simulated transfer capacity guidance threshold parameter of the simulated queue n in the (w-1)d+1th time slot in the w-1th time window after positive and negative adjustment, σ + , σ - is the positive or negative adjustment factor, which is a positive number less than 1;
[0085] The resource scheduling controller simulates the corresponding transfer gain time series evolution in the w-1th time window through formula (4)-formula (9) in S1.2 based on the transfer capacity guidance threshold parameter after positive and negative adjustment, which is expressed as:
[0086]
[0087] in, is the set of simulated transfer gain time series evolution of the nth simulation event queue in the w-1th time window, is the simulated transfer gain of the nth simulation event queue in time slot t, is the simulated transfer gain of computing resource transfer from the mth simulation event queue to the nth simulation event queue, A simulated binary indicator variable for transferring computing resources from the mth simulation event queue to the nth simulation event queue;
[0088] S2.2: Transfer capacity guidance threshold parameter adjustment
[0089] Based on the simulation results of the time series evolution of the transfer gain, the average value of the simulated transfer gain corresponding to the positive and negative adjustments of the transfer capacity guidance threshold parameter in the w-1th time window can be obtained, which is expressed as:
[0090]
[0091] in, is the mean value of the simulated positive adjustment transfer gain of the simulated queue n in the w-1th time window, is the mean of the simulated negative adjusted transfer gains of the simulated queue n in the w-1th time window;
[0092] The actual transfer gain average obtained by simulating queue n in the w-1th time window is It is expressed as:
[0093]
[0094] in, is the actual transfer gain of the nth simulation event queue in time slot t;
[0095] Then, compare the actual transfer gain mean of the simulated queue n in the w-1th time window Simulated positive adjusted transfer gain mean and the simulated negative adjusted transfer gain mean If the actual transfer gain mean of the simulated queue n in the w-1th time window is Maximum, then the transfer capacity guidance threshold parameter of the simulation queue n in the wth time window is not adjusted, that is, If the simulated positive adjustment transfer gain mean of the simulated queue n in the w-1th time window The maximum value is, then the transfer capacity guidance threshold parameter of the simulation queue n in the wth time window is adjusted to If the simulated negative adjustment transfer gain mean of the simulated queue n in the wth time window is The maximum value is, then the transfer capacity guidance threshold adjustment parameter of the simulation queue n in the wth time window is adjusted to Based on the above method, the resource scheduling controller can adjust the capacity transfer guidance threshold parameters of all simulation queues in the wth time window, that is, t∈{wd+1,wd+2,L,(w+1)d}.
[0096] The present invention proposes a new type of distribution network operation condition cloud simulation system and method, which constructs the transfer capacity guidance threshold of each simulation event queue based on the backlog of the simulation event queue, the estimated value of the computational complexity, the number of servers connected to the server to which the simulation event queue belongs, and the communication rate between the servers, solves the resource transfer gain between the simulation event queues based on the changes in the computational completion time and the degree of advancement or lag of each simulation event queue before and after the computational resource scheduling, and solves the transfer cost between the simulation event queues based on the computational resource transfer amount of the simulation event queue and the transfer capacity guidance threshold; on this basis, resource scheduling is performed in combination with the transfer capacity guidance threshold, resource transfer gain and transfer cost. It effectively solves the problem of long simulation time of the cloud simulation system caused by low computing resource utilization of the operation condition cloud simulation system under the condition of variable operation conditions of the new distribution network, improves the computing resource utilization of the cloud simulation system and the cloud simulation rate of the new distribution network operation condition, effectively improves the real-time performance of the simulation of the distribution network operation condition cloud simulation system, and is suitable for application scenarios with variable operation conditions of the new distribution network.
[0097] The present invention proposes a novel cloud simulation system and method for distribution network operation conditions, constructs a time window including multiple simulation time slots, calculates a transfer capacity guidance threshold of a simulation event queue simulation based on a simulated guidance threshold adjustment parameter, simulates the time series evolution of transfer gain corresponding to positive and negative adjustments of the transfer capacity guidance threshold within the time window, and adjusts the transfer capacity guidance threshold based on the actual transfer gain mean, the simulated positive adjustment transfer gain mean, and the simulated negative adjustment transfer gain mean within the current time window. This effectively solves the problem of poor adaptability caused by poor flexibility in adjusting the transfer capacity guidance threshold, improves the practicability and operation accuracy of computing resource scheduling of the cloud simulation system, enhances the ability of the distribution network operation condition cloud simulation system to respond to multiple simulation event requests, and is suitable for application scenarios with multiple simulation event requests. BRIEF DESCRIPTION OF THE DRAWINGS
[0098] Figure 1 It is a new distribution network operation condition cloud simulation system of the present invention;
[0099] Figure 2 It is a scene diagram of the new distribution network operation condition cloud simulation system of the present invention;
[0100] Figure 3 This is a flow chart of the novel distribution network operation condition cloud simulation method of the present invention. DETAILED DESCRIPTION
[0101] The specific technical solution of the present invention is described in conjunction with the accompanying drawings.
[0102] like Figure 1 As shown, the new distribution network operation condition cloud simulation system includes a simulation event controller and a resource scheduling controller.
[0103] Wherein, the simulation event controller includes a computational complexity estimation module and a simulation event calculation module;
[0104] The resource scheduling controller includes a transfer capacity guidance threshold building module, a data interaction module, a resource scheduling module, and a transfer capacity guidance threshold adjustment module.
[0105] Computational complexity estimation module: calculates the computational complexity estimation value of the simulation event queue;
[0106] Simulation event calculation module: calculates the computing resources allocated to the server after resource scheduling, the calculation completion time of the simulation event queue before and after resource scheduling, the leading or lagging completion time of each simulation event queue, and the actual data volume processed by the simulation event queue and the backlog data volume after processing;
[0107] Transfer capacity guidance threshold building module: calculates the transfer capacity guidance threshold of the server;
[0108] Data interaction module: controls the data interaction between the simulation event controller and the resource scheduling controller, and calculates the resource transfer gain and transfer cost between simulation event queues based on the interaction information;
[0109] Resource scheduling module: performs one-to-one resource transfer matching based on resource transfer gain and transfer cost and the degree of advancement or lag of the simulation event queue;
[0110] Transfer capacity guidance threshold adjustment module: Set the guidance threshold adjustment parameters simulated in the time window, calculate the transfer capacity guidance threshold simulated by each server in the time window, simulate the time series evolution of the transfer gain, obtain the average value of the simulated positive adjustment transfer gain and the average value of the simulated negative adjustment transfer gain in the current time window, and the actual transfer gain average, and complete the guidance threshold parameter update in the next time window.
[0111] A novel cloud simulation method for distribution network operation conditions includes the following steps:
[0112] S1: Computing resource scheduling method considering limited transfer capacity
[0113] Considering that the operation conditions of new distribution networks are becoming more and more complex, in order to improve the efficiency of the cloud simulation system for the operation conditions of new distribution networks, the present invention proposes a new cloud simulation system and method for the operation conditions of distribution networks, which realizes the optimization of computing resource scheduling of multiple servers in the cloud simulation system. The computing resource scheduling method considering the limited transfer capacity includes the following steps: first, evaluating the simulation status of the simulation event queue; second, constructing the transfer capacity guidance threshold; then, calculating the resource transfer gain and transfer cost; finally, designing the simulation event queue resource scheduling method considering the limited transfer capacity.
[0114] S1.1: Simulation Status Assessment of Simulation Event Queues
[0115] The new distribution network operation condition cloud simulation system includes multiple simulation event controllers and a resource scheduling controller. Each simulation event controller corresponds to a server and is responsible for managing the simulation queue of the server. The resource scheduling controller is responsible for optimizing the computing resource allocation between multiple simulation event controllers. Figure 2 As shown in Figure 2, there are J servers and N simulation event queues in the cloud simulation system. Each server contains multiple simulation event queues and can process multiple simulation events in parallel. The set of simulation event queues contained in the jth server is Ω. j .
[0116] In the new distribution network operation condition cloud simulation system, the computational complexity of different simulation events is different. Due to the complex and changeable distribution network operation conditions, the computational complexity of the same simulation event will change with the change of distribution network operation conditions. Specifically, it is affected by the number of distribution network equipment, the number of power lines and the operation status of the substation involved in the simulation event. The computational complexity estimate of the nth simulation event queue in time slot t is n (t) is expressed as:
[0117]
[0118] Among them, f(·) is the computational complexity estimation function, which is proportional to the number of distribution network devices involved in the simulation event queue during simulation, proportional to the logarithm of the number of power lines involved in the simulation event queue during simulation, and inversely proportional to the operation status of the substation involved in the simulation event queue during simulation; is the number of network distribution devices involved in the simulation of the nth simulation event queue in the t time slot. The larger the number, the more data to be processed, resulting in increased computational complexity. is the number of power lines involved in the simulation of the nth simulation event queue in the t time slot. The larger the number, the more data to be processed and the greater the computational complexity. is the operation status of the substation involved in the simulation of the nth simulation event queue in the t time slot, The larger the value, the more complex the operation status of the substation. Complex operation status of the substation will lead to data loss, requiring more complex data processing methods, and the calculation complexity will also increase.
[0119] Due to the differences in computational complexity and computational resource allocation of each simulation event queue, the computation completion time of each simulation event queue also varies to a certain extent. Under the existing resource scheduling, the computation completion time of the nth simulation event queue in time slot t is It is expressed as:
[0120]
[0121] Among them, Q n (t) is the amount of backlog data to be simulated in the nth simulation event queue in time slot t; U is the amount of simulation data added to the nth simulation event queue in time slot t; n (t-1) is the total computing resources after the resource transfer of the nth simulation event queue in the t-1 time slot. In the present invention, resource transfer refers to the simulation event queue dividing certain computing resources with reference to the transfer capacity guidance threshold constructed in step S1.2, and transferring the divided computing resources to another simulation event queue to process the backlog of data in the simulation event queue, thereby optimizing resource utilization and improving system performance.
[0122] Based on the difference between the calculation completion time of the simulation event queue and the average calculation completion time of all simulation event queues under the existing resource scheduling, the degree of advancement or lag of each simulation event queue is determined. If the difference is positive, it means that the calculation completion time of this simulation event queue is ahead of the average calculation completion time of all simulation event queues. If the difference is negative, it means that the calculation completion time of this simulation event queue is behind the average calculation completion time of all simulation event queues, which is expressed as:
[0123]
[0124] in, is the advanced completion time or delayed completion time of the nth simulation event queue in the t time slot under the existing resource scheduling; When , it means that the simulation event queue is completed ahead of schedule under the existing resource scheduling. When , it means that the simulation event queue is behind schedule under the existing resource scheduling conditions.
[0125] S1.2: Construction of transfer capacity guidance thresholds
[0126] The transfer capacity guidance threshold refers to the resource transfer recommendation value provided by the resource scheduling controller to the simulation event queue in the advanced completion state in each time slot. The role of the transfer capacity guidance threshold is to provide a reference for determining the amount of computing resource transfer. When the amount of computing resource transfer is less than the transfer capacity guidance threshold, the simulation event queue that provides computing resources can cope with the fluctuation of computing complexity, and has little impact on the processing of its own backlog data volume; when the amount of computing resource transfer is greater than the transfer capacity guidance threshold, the simulation event queue that provides computing resources will not be able to effectively cope with the fluctuation of computing complexity, and will have a greater impact on the processing of its own backlog data volume.
[0127] In order to cope with the fluctuation of simulation event queue calculation complexity caused by the change of distribution network operation conditions, the present invention constructs the transfer capacity guidance threshold based on the backlog of simulation event queue, the estimated value of calculation complexity, the number of simulation event queues in a delayed completion state connected to the simulation event queue, and the average communication rate between servers. In summary, the transfer capacity guidance threshold of the nth simulation event queue in time slot t is It is expressed as:
[0128]
[0129] in, is the weight of the number of servers; is the communication rate weight; is the calculation complexity weight; is the queue backlog weight; κ n (t) is the transfer capacity guidance threshold adjustment parameter obtained by the nth simulation event queue based on the transfer gain timing simulation; is the number of simulation event queues in a delayed completion state that have a connection relationship with the nth simulation event queue; is the average communication rate between the server to which the nth simulation event queue belongs and the server with which it has a connection relationship; is the computing resource that needs to be reserved for the current time slot of the nth simulation event queue. This value is obtained based on the backlog data volume, historical maximum computing complexity, and historical average computing completion time of the nth simulation event queue, and is expressed as
[0130]
[0131] or n The larger (t) is, the more computing resources the current simulation event queue needs to reserve to process its own backlog of data. The smaller; The larger the value is, the more simulation event queues that are connected to the nth simulation event queue and are in a delayed completion state are, and the more backlog data the external simulation event queue needs to assist in processing. The bigger; The larger the value, the greater the potential of the server connected to the server to which the simulation event queue belongs to obtain computing resources. The bigger.
[0132] S1.3: Calculation of transfer gains and transfer costs taking into account transfer capacity constraints
[0133] The transfer of computing resources from the simulation event queue in the leading state to the simulation event queue in the lagging state can effectively reduce the lagging degree of the simulation event queue in the lagging state, reduce the overall backlog data processing time, and generate resource transfer gain. However, the transfer of computing resources from the simulation event queue in the leading state to the simulation event queue in the lagging state will have an adverse effect on the increase of simulation time for the processing of its own backlog data, thereby generating a transfer cost. The resource transfer gain consists of two parts: the change in the calculation completion time of both simulation event queues and the change in the degree of advancement or lag of both simulation event queues. It is related to the transfer delay, the communication rate of computing resource transfer between simulation event queues, and the backlog data of simulation event queues. The transfer cost is a function of the transfer capacity guidance threshold and the transfer resource amount. Among them, when the transfer resource amount is greater than the transfer capacity guidance threshold, the transfer cost increases rapidly with the increase of the transfer resource amount; when it is less than the transfer capacity guidance threshold, the transfer cost increases slowly with the increase of the transfer resource amount.
[0134] The resource scheduling controller interacts with each simulation event controller, collects information such as the queue backlog of each server's simulation event queue, the estimated value of computational complexity, and the connection relationship and communication rate between each server, and calculates the resource transfer gain and transfer cost between simulation event queues.
[0135] When scheduling resources in time slot t, assume that the amount of computing resources transferred from the mth simulation event queue to the nth simulation event queue is After the nth simulation event queue receives the computing resources transferred from the mth simulation event queue, the computing completion time of the nth and mth simulation event queues in time slot t is and Can be expressed as:
[0136]
[0137]
[0138] After the nth simulation event queue receives the computing resources transferred by the mth simulation event queue, the degree of advance or lag of the nth and mth simulation event queues is re-determined. and Can be expressed as:
[0139]
[0140]
[0141] The present invention calculates the resource transfer gain between simulation event queues based on the change in calculation completion time considering the transfer delay and the change in the degree of advance or lag between simulation event queues before and after resource scheduling. Wherein, when both simulation event queues for resource transfer are located on different servers, the change in calculation completion time between simulation event queues is composed of the weighted sum of three parts: resource transfer delay, change in calculation completion time of the simulation event queue of the resource receiver, and change in calculation completion time of the simulation event queue of the resource provider; when both simulation event queues for resource transfer are located on the same server, the change in calculation completion time between simulation event queues is composed of the weighted sum of two parts: change in calculation completion time of the simulation event queue of the resource receiver and change in calculation completion time of the simulation event queue of the resource provider. The change in the degree of advance or lag is composed of the weighted sum of two parts: change in the degree of advance or lag of the simulation event queue of the resource receiver and change in the degree of advance or lag of the simulation event queue of the resource provider. In order to effectively distinguish whether both simulation event queues for resource transfer are located on the same server, the resource transfer gain constructed by the present invention is expressed as:
[0142]
[0143] in, is the resource transfer gain of transferring computing resources from the mth simulation event queue to the nth simulation event queue; R m,n The communication rate of transferring computing resources from the mth simulation event queue to the nth simulation event queue; A weighting factor for the change in computation completion time when both parties of the simulation event queue for resource transfer are located on different servers; Calculate the completion time variation weighting factor for the resource receiver when both parties of the simulation event queue for resource transfer are located on different servers; Calculate the completion time variation weighting factor for the resource provider when both parties of the simulation event queue for resource transfer are located on different servers; A weighted factor for the change in the degree of advancement or lag of the resource receiver when both parties of the simulation event queue for resource transfer are located on different servers; A weighting factor for the change in the degree of advancement or lag of the resource provider when both parties of the simulation event queue for resource transfer are located on different servers; A weighting factor for calculating the change in completion time when both sides of the simulation event queue for resource transfer are located on the same server; Calculate the completion time variation weighting factor for the resource provider when both parties of the simulation event queues for resource transfer are located on the same server; A weighting factor for the change in the degree of advance or lag when both parties of the simulation event queue for resource transfer are located on the same server; It is a weighting factor for the change in the degree of advancement or lag of the resource provider when both parties of the simulation event queues for resource transfer are located on the same server.
[0144] The present invention calculates the transfer cost between simulation event queues based on the computing resource transfer amount of the simulation event queue and the transfer capacity guidance threshold. When the computing resource transfer amount is less than the transfer capacity guidance threshold, the simulation event queue that provides the computing resources can cope with the fluctuation of the computing complexity, and has little effect on the processing of its own backlog data volume, and the transfer cost increases slowly with the increase of the computing resource transfer amount; when the computing resource transfer amount is greater than the transfer capacity guidance threshold, the simulation event queue that provides the computing resources will not be able to effectively cope with the fluctuation of the computing complexity, and has a greater impact on the processing of its own backlog data volume, and the transfer cost increases rapidly with the increase of the computing resource transfer amount, and the transfer cost increases rapidly. The transfer cost constructed by the present invention is expressed as:
[0145]
[0146] Among them, α m , β m , γ m is the transfer cost coefficient of the mth server.
[0147] S1.4: Simulation event queue resource scheduling considering transfer capacity constraints
[0148] The present invention arranges the simulation event queues in descending order according to their leading or lagging degree, and starts from the simulation event queue at the end of the descending order, and performs resource scheduling based on the weighted difference between the resource transfer gain and the cost function. The specific description is as follows:
[0149] (1) each simulation event queue at the leading level selects to send a resource transfer request to the simulation event queue at the lagging level with the largest weighted difference based on the weighted difference of the resource transfer gain and cost function of transferring resources to the simulation event queue at the lagging level;
[0150] (2) When a simulation event queue at a lagging level receives resource transfer requests from multiple simulation event queues at an advanced level, starting from the last simulation event queue in descending order, it accepts the resource transfer from the simulation event queue at an advanced level with the largest weighted difference between the resource transfer gain and the cost function, and completes the resource transfer pairing until all simulation event queues at a lagging level that have received resource transfer requests in this round have completed the resource transfer pairing and enter the next round of request sending. It is worth noting that a simulation event queue at a lagging level can only be paired with one simulation event queue at an advanced level, and similarly, a simulation event queue at an advanced level can only be paired with one simulation event queue at a lagging level.
[0151] (3) In the next round of request sending, the simulation event queue at the leading level that has not completed resource transfer pairing re-sends the resource transfer request to the simulation event queue at the lagging level that has not completed resource transfer pairing. The simulation event queue at the lagging level selects the resource transfer request and completes the resource transfer pairing.
[0152] (4) Repeat the above process until all simulation event queues at the advanced level have completed resource transfer pairing or all simulation event queues at the lagging level have completed resource transfer pairing, and the simulation event queue resource scheduling process ends. Set y m,n (t) is a binary indicator variable indicating the transfer of computing resources from the mth simulation event queue to the nth simulation event queue, which can be expressed as:
[0153]
[0154] in, That is, the one-to-one transfer pairing principle in step (2) is satisfied.
[0155] After the simulation event queue resource scheduling process is completed, for the two paired event queues m and n, the total computing resources U after time slot processing is n (t) and U m (t) is expressed as:
[0156]
[0157]
[0158] The simulation event controller recalculates the amount of data accumulated in the simulation event queue after processing in time slot t based on the simulation event queue resource scheduling result. Without considering the limited amount of data, the maximum amount of data that the nth simulation event queue can process in time slot t is I n (t) is expressed as:
[0159]
[0160] Where Δt is the length of a single time slot. Then the amount of data actually processed by the nth simulation event queue in time slot t is It is expressed as:
[0161]
[0162] From this, we can deduce the amount of data accumulated in the nth simulation event queue after processing in time slot t:
[0163]
[0164] After the amount of data accumulated in the simulation event queue after processing in time slot t is calculated, it will enter the next time slot and re-optimize the computing resource scheduling.
[0165] S2: Transfer capacity guidance threshold adjustment method based on transfer gain time series fitting
[0166] The transfer capacity guidance threshold adjustment method based on transfer gain time series fitting includes the following steps: first, simulating the transfer gain time series evolution corresponding to the positive and negative adjustments of the transfer capacity guidance threshold parameters; second, adjusting the transfer capacity guidance threshold parameters based on the simulation results.
[0167] Since the length of the simulation time slot is relatively small compared to the length of time when the working conditions of the distribution station area change drastically, a time window containing d simulation time slots can be constructed. While performing simulation in each time window, the resource scheduling controller simulates the time-series evolution of the transfer gain corresponding to the positive and negative adjustments of the transfer capacity guidance threshold parameter, and adjusts the transfer capacity guidance threshold parameter of the next time window according to the results of the simulated transfer gain time-series evolution, that is, the transfer capacity guidance threshold parameters of all simulation time slots in the w-1th time window are adjusted according to the results of the simulated transfer gain time-series evolution of the w-1th time window, and the transfer capacity guidance threshold parameters in the same time window are equal.
[0168] S2.1: Simulation of the temporal evolution of transfer gain corresponding to positive and negative adjustments of the transfer capacity guidance threshold parameter
[0169] From the beginning of the simulation, every d simulation time slots are divided into a time window, and the time windows do not overlap each other. Then the time slots contained in the w-1th time window are {(w-1)d+1, (w-1)d+2, L, wd}, d is the number of simulation time slots in the time window, and d is divisible by 2. While simulating in the w-1th time window, the resource scheduling controller makes positive and negative adjustments to the transfer capacity guidance threshold parameter of the simulation queue n, that is, the transfer capacity guidance threshold parameter is increased and decreased intermittently, and the positive and negative adjustment sequence of the transfer capacity guidance threshold parameter used for the transfer gain timing evolution simulation is expressed as:
[0170]
[0171] in, represents the transfer capacity guidance threshold parameter of the simulation queue n in the w-1th time window, that is, t∈{(w-1)d+1,(w-1)d+2,L,wd}, represents the simulated transfer capacity guidance threshold parameter of the simulated queue n in the (w-1)d+1th time slot in the w-1th time window after positive and negative adjustment, σ + , σ - It is a positive adjustment factor, which is a positive number less than 1.
[0172] The resource scheduling controller simulates the corresponding transfer gain time series evolution in the w-1th time window through formula (4)-formula (9) in S1.2 based on the transfer capacity guidance threshold parameter after positive and negative adjustment, which is expressed as:
[0173]
[0174] in, is the set of simulated transfer gain time series evolution of the nth simulation event queue in the w-1th time window, is the simulated transfer gain of the nth simulation event queue in time slot t, is the simulated transfer gain of computing resource transfer from the mth simulation event queue to the nth simulation event queue, A simulated binary indicator variable for transferring computing resources from the mth simulation event queue to the nth simulation event queue.
[0175] S2.2: Transfer capacity guidance threshold parameter adjustment
[0176] Based on the simulation results of the time series evolution of the transfer gain, the average value of the simulated transfer gain corresponding to the positive and negative adjustments of the transfer capacity guidance threshold parameter in the w-1th time window can be obtained, which is expressed as:
[0177]
[0178] in, is the mean value of the simulated positive adjustment transfer gain of the simulated queue n in the w-1th time window, is the mean of the simulated negative adjusted transfer gains of the simulated queue n in the w-1th time window.
[0179] The actual transfer gain average obtained by simulating queue n in the w-1th time window is It is expressed as:
[0180]
[0181] in, is the actual transfer gain of the nth simulation event queue in time slot t.
[0182] Then, compare the actual transfer gain mean of the simulated queue n in the w-1th time window Simulated positive adjusted transfer gain mean and the simulated negative adjusted transfer gain mean If the actual transfer gain mean of the simulated queue n in the w-1th time window is Maximum, then the transfer capacity guidance threshold parameter of the simulation queue n in the wth time window is not adjusted, that is, If the simulated positive adjustment transfer gain mean of the simulated queue n in the w-1th time window The maximum value is, then the transfer capacity guidance threshold parameter of the simulation queue n in the wth time window is adjusted to If the simulated negative adjustment transfer gain mean of the simulated queue n in the wth time window is The maximum value is, then the transfer capacity guidance threshold adjustment parameter of the simulation queue n in the wth time window is adjusted to Based on the above method, the resource scheduling controller can adjust the capacity transfer guidance threshold parameters of all simulation queues in the wth time window, that is, t∈{wd+1,wd+2,L,(w+1)d}.
[0183] The specific steps of the present invention are as follows Figure 3 shown.
[0184] Step 0: Calculate the computational complexity estimate x of the nth simulation event queue in time slot t n (t);
[0185] Step 1: Calculate the calculation completion time of the nth simulation event queue in time slot t under the existing resource scheduling
[0186] Step 2: Calculate the completion time of each simulation event queue based on the existing resource scheduling Calculate the lead or lag completion time of each simulation event queue
[0187] Step 3: Calculate the transfer capacity guidance threshold of the nth simulation event queue in time slot t
[0188] Step 4: The resource scheduling controller interacts with each simulation event controller to collect cloud simulation system information such as the simulation event queue backlog of each server, the estimated value of computational complexity, and the connection relationship and communication rate between each server;
[0189] Step 5: Calculate the calculation completion time of each simulation event queue after resource scheduling
[0190] Step 6: Re-determine the degree of advancement or lag of each simulation event queue based on the calculation completion time of each simulation event queue after computing resource scheduling and
[0191] Step 7: Construct a function to calculate resource transfer gain
[0192] Step 8: Construct a cost function for computing resource transfer
[0193] Step 9: Perform resource transfer matching according to the degree of advancement or lag of the simulation event queue;
[0194] Step 10: Calculate the amount of data accumulated in the simulation event queue after being processed in the current time slot;
[0195] Step 11: Based on the guidance threshold adjustment parameters simulated in the current time window, the transfer capacity guidance threshold simulated by each server in the current time window is calculated;
[0196] Step 12: Calculate the corresponding simulated transfer gain time series evolution in the current time window based on the transfer capacity guidance threshold simulated in the current time window;
[0197] Step 13: based on the time series evolution of the simulated transfer gain in the current time window, obtain the average value of the simulated positive adjustment transfer gain and the average value of the simulated negative adjustment transfer gain in the current time window;
[0198] Step 14: Calculate the actual transfer gain mean value obtained by simulation in the current time window;
[0199] Step 15: Compare the actual transfer gain mean, the simulated positive adjustment transfer gain mean, and the simulated negative adjustment transfer gain mean in the current time window, and update the guidance threshold parameter in the next time window;
[0200] Step 16: Return to Step 3.
Claims
1. A new distribution network operation condition cloud simulation system, characterized by: Including simulation event controller and resource scheduling controller; The simulation event controller includes a computational complexity estimation module and a simulation event calculation module; The resource scheduling controller includes a transfer capacity guidance threshold construction module, a data interaction module, a resource scheduling module, and a transfer capacity guidance threshold adjustment module; Computational complexity estimation module: calculates the computational complexity estimation value of the simulation event queue; Simulation event calculation module: calculates the computing resources allocated to the server after resource scheduling, the calculation completion time of the simulation event queue before and after resource scheduling, the leading or lagging completion time of each simulation event queue, and the actual data volume processed by the simulation event queue and the backlog data volume after processing; A transfer capacity guidance threshold building module: building a transfer capacity guidance threshold based on the backlog of the simulation event queue, the estimated value of the computational complexity, the number of simulation event queues in a delayed completion state that are connected to the simulation event queue, and the average communication rate between servers; Data interaction module: controls the data interaction between the simulation event controller and the resource scheduling controller, calculates the resource transfer gain between the simulation event queues based on the change in the calculation completion time and the change in the degree of advance or lag between the simulation event queues before and after resource scheduling considering the transfer delay; calculates the transfer cost between the simulation event queues based on the calculation resource transfer amount of the simulation event queues and the transfer capacity guidance threshold; Resource scheduling module: performs one-to-one resource transfer matching based on resource transfer gain and transfer cost and the degree of advancement or lag of the simulation event queue; Transfer capacity guidance threshold adjustment module: Set the transfer capacity guidance threshold adjustment parameters simulated in the time window, calculate the transfer capacity guidance threshold simulated by each server in the time window, simulate the time series evolution of the transfer gain, obtain the average value of the simulated positive adjustment transfer gain and the average value of the simulated negative adjustment transfer gain in the current time window, and the average value of the actual transfer gain, and complete the update of the transfer capacity guidance threshold adjustment parameters in the next time window.
2. A new distribution network operation condition cloud simulation method, characterized in that: Using the novel distribution network operation condition cloud simulation system described in claim 1, the method comprises the following steps: S1: Computing resource scheduling method considering limited transfer capacity Firstly, the simulation status of the simulation event queue is evaluated; secondly, the transfer capacity guidance threshold is constructed; then, the resource transfer gain and transfer cost are calculated; finally, a simulation event queue resource scheduling method is designed with transfer capacity constraints in mind; S2: Transfer capacity guidance threshold adjustment method based on transfer gain time series fitting First, the transfer gain time series evolution corresponding to the positive and negative adjustments of the transfer capacity guidance threshold adjustment parameters is simulated; second, the transfer capacity guidance threshold adjustment parameters are adjusted based on the simulation results; A time window containing d simulation time slots is constructed. While performing simulation in each time window, the resource scheduling controller simulates the time-series evolution of the transfer gain corresponding to the positive and negative adjustments of the transfer capacity guidance threshold adjustment parameter, and adjusts the transfer capacity guidance threshold adjustment parameter of the next time window according to the result of the simulated transfer gain time-series evolution, that is, the transfer capacity guidance threshold adjustment parameter of all simulation time slots in the w-1th time window is adjusted according to the result of the simulated transfer gain time-series evolution of the w-1th time window, and the transfer capacity guidance threshold adjustment parameter in the same time window is equal.
3. The new distribution network operation condition cloud simulation method according to claim 2 is characterized in that: The S1 comprises the following sub-steps: S1.1: Simulation Status Assessment of Simulation Event Queues The new distribution network operation condition cloud simulation system contains multiple simulation event controllers and a resource scheduling controller. Each simulation event controller corresponds to a server and is responsible for managing the server simulation queue. The resource scheduling controller is responsible for optimizing the computing resource allocation between multiple simulation event controllers. Suppose there are J servers and N simulation event queues in the cloud simulation system. Each server contains multiple simulation event queues and can process multiple simulation events in parallel. The set of simulation event queues contained in the jth server is Ω j ; Affected by the number of distribution network equipment, the number of power lines and the operating status of the substation involved in the simulation event; the estimated value of the computational complexity of the nth simulation event queue in the t time slot is χ n (t) is expressed as: Among them, f(·) is the computational complexity estimation function, which is proportional to the number of distribution network devices involved in the simulation event queue during simulation, proportional to the logarithm of the number of power lines involved in the simulation event queue during simulation, and inversely proportional to the operation status of the substation involved in the simulation event queue during simulation; is the number of network distribution devices involved in the simulation of the nth simulation event queue in the t time slot. The larger the number, the more data to be processed, resulting in increased computational complexity. is the number of power lines involved in the simulation of the nth simulation event queue in the t time slot. The larger the number, the more data to be processed and the greater the computational complexity. is the operation status of the substation involved in the simulation of the nth simulation event queue in the t time slot, The larger the value, the more complex the operation status of the substation. Complex operation status of the substation will lead to data loss, requiring more complex data processing methods, and the calculation complexity will also increase. Under the existing resource scheduling, the calculation completion time of the nth simulation event queue in the t time slot is It is expressed as: Among them, Q n (t) is the amount of backlog data to be simulated in the nth simulation event queue in time slot t; U is the amount of simulation data added to the nth simulation event queue in time slot t; n (t-1) is the total computing resources after the transfer of the nth simulation event queue resource in the t-1 time slot; Based on the difference between the calculation completion time of the simulation event queue and the average calculation completion time of all simulation event queues under the existing resource scheduling, the degree of advancement or lag of each simulation event queue is determined. If the difference is positive, it means that the calculation completion time of this simulation event queue is ahead of the average calculation completion time of all simulation event queues. If the difference is negative, it means that the calculation completion time of this simulation event queue is behind the average calculation completion time of all simulation event queues, which is expressed as: in, is the advanced completion time or delayed completion time of the nth simulation event queue in the t time slot under the existing resource scheduling; When , it means that the simulation event queue is completed ahead of schedule under the existing resource scheduling. When , it means that the simulation event queue is completed behind schedule under the existing resource scheduling; S1.2: Construction of transfer capacity guidance thresholds The transfer capacity guidance threshold refers to the resource transfer recommendation value provided by the resource scheduling controller to the simulation event queue in the advanced completion state in each time slot; the role of the transfer capacity guidance threshold is to provide a reference for determining the transfer amount of computing resources. When the transfer amount of computing resources is less than the transfer capacity guidance threshold, the simulation event queue that provides computing resources can cope with the fluctuation of computing complexity, and has little impact on the processing of its own backlog data volume; when the transfer amount of computing resources is greater than the transfer capacity guidance threshold, the simulation event queue that provides computing resources will not be able to effectively cope with the fluctuation of computing complexity, and will have a greater impact on the processing of its own backlog data volume. The transfer capacity guidance threshold is constructed based on the backlog of the simulation event queue, the estimated value of the computational complexity, the number of simulation event queues in a delayed completion state that are connected to the simulation event queue, and the average communication rate between servers; the transfer capacity guidance threshold of the nth simulation event queue in time slot t It is expressed as: in, is the weight of the number of servers; is the communication rate weight; is the calculation complexity weight; is the queue backlog weight; κ n (t) is the transfer capacity guidance threshold adjustment parameter obtained by the nth simulation event queue based on the transfer gain timing simulation; is the number of simulation event queues in a delayed completion state that have a connection relationship with the nth simulation event queue; is the average communication rate between the server to which the nth simulation event queue belongs and the server with which it has a connection relationship; is the computing resource that needs to be reserved for the current time slot of the nth simulation event queue. This value is obtained based on the backlog data volume, historical maximum computing complexity, and historical average computing completion time of the nth simulation event queue, and is expressed as or n The larger (t) is, the more computing resources the current simulation event queue needs to reserve to process its own backlog of data. The smaller; The larger the value is, the more simulation event queues that are connected to the nth simulation event queue and are in a delayed completion state are, and the more backlog data the external simulation event queue needs to assist in processing. The bigger; The larger the value, the greater the potential of the server connected to the server to which the simulation event queue belongs to obtain computing resources. The bigger; S1.3: Calculation of transfer gains and transfer costs taking into account transfer capacity constraints When scheduling resources in time slot t, the amount of computing resources transferred from the mth simulation event queue to the nth simulation event queue is = ... and Respectively expressed as: After the nth simulation event queue receives the computing resources transferred by the mth simulation event queue, the degree of advance or lag of the nth and mth simulation event queues is re-determined. and Respectively expressed as: The resource transfer gain between simulation event queues is calculated based on the calculation completion time change considering the transfer delay and the advance or lag degree change between simulation event queues before and after resource scheduling; wherein, when both simulation event queues for resource transfer are located on different servers, the calculation completion time change between simulation event queues is composed of the weighted sum of the resource transfer delay, the calculation completion time change of the simulation event queue of the resource receiver and the calculation completion time change of the simulation event queue of the resource provider; when both simulation event queues for resource transfer are located on the same server, the calculation completion time change between simulation event queues is composed of the weighted sum of the calculation completion time change of the simulation event queue of the resource receiver and the calculation completion time change of the simulation event queue of the resource provider; the advance or lag degree change is composed of the weighted sum of the advance or lag degree change of the simulation event queue of the resource receiver and the advance or lag degree change of the simulation event queue of the resource provider; The constructed resource transfer gain is expressed as: in, is the resource transfer gain of transferring computing resources from the mth simulation event queue to the nth simulation event queue; R m,n The communication rate of transferring computing resources from the mth simulation event queue to the nth simulation event queue; A weighting factor for the change in computation completion time when both parties of the simulation event queue for resource transfer are located on different servers; Calculate the completion time variation weighting factor for the resource receiver when both parties of the simulation event queue for resource transfer are located on different servers; Calculate the completion time variation weighting factor for the resource provider when both parties of the simulation event queue for resource transfer are located on different servers; A weighted factor for the change in the degree of advancement or lag of the resource receiver when both parties of the simulation event queue for resource transfer are located on different servers; A weighting factor for the change in the degree of advancement or lag of the resource provider when both parties of the simulation event queue for resource transfer are located on different servers; A weighting factor for calculating the change in completion time when both sides of the simulation event queue for resource transfer are located on the same server; Calculate the completion time variation weighting factor for the resource provider when both parties of the simulation event queues for resource transfer are located on the same server; A weighting factor for the change in the degree of advance or lag when both parties of the simulation event queue for resource transfer are located on the same server; A weighted factor for changes in the degree of advancement or lag of the resource provider when both parties of the simulation event queue for resource transfer are located on the same server; The transfer cost between simulation event queues is calculated based on the computing resource transfer amount of the simulation event queue and the transfer capacity guidance threshold. When the computing resource transfer amount is less than the transfer capacity guidance threshold, the simulation event queue that provides computing resources can cope with the fluctuation of computing complexity, and has little impact on the processing of its own backlog data volume. The transfer cost increases slowly with the increase of computing resource transfer amount. When the computing resource transfer amount is greater than the transfer capacity guidance threshold, the simulation event queue that provides computing resources will not be able to effectively cope with the fluctuation of computing complexity, and has a greater impact on the processing of its own backlog data volume. The transfer cost increases rapidly with the increase of computing resource transfer amount, and the transfer cost increases rapidly. The constructed transfer cost is expressed as: Among them, α m , β m , γ m is the transfer cost coefficient of the mth server; S1.4: Simulation event queue resource scheduling considering transfer capacity constraints The simulation event queues are arranged in descending order according to their degree of advancement or lag, and starting from the simulation event queue at the end of the descending order, resource scheduling is performed based on the weighted difference between the resource transfer gain and the cost function.
4. The novel distribution network operation condition cloud simulation method according to claim 3 is characterized in that: The S1.4 comprises the following sub-steps: (1) each simulation event queue at the leading level selects to send a resource transfer request to the simulation event queue at the lagging level with the largest weighted difference based on the weighted difference of the resource transfer gain and cost function of transferring resources to the simulation event queue at the lagging level; (2) When a simulation event queue at a lagging level receives resource transfer requests from multiple simulation event queues at an advanced level, starting from the simulation event queue at the end of the descending order, it accepts the resource transfer from the simulation event queue at an advanced level with the largest weighted difference between the resource transfer gain and the cost function, and completes the resource transfer pairing until all simulation event queues at a lagging level that have received resource transfer requests in this round have completed the resource transfer pairing and enter the next round of request sending; A simulation event queue at a lagging level can only be paired with a simulation event queue at an advanced level, and similarly, a simulation event queue at an advanced level can only be paired with a simulation event queue at a lagging level; (3) In the next round of request sending, the simulation event queue at the advanced level that has not completed resource transfer pairing re-sends the resource transfer request to the simulation event queue at the lagging level that has not completed resource transfer pairing, and the simulation event queue at the lagging level selects the resource transfer request and completes the resource transfer pairing; (4) Repeat the above process until all simulation event queues at the advanced level have completed resource transfer pairing or all simulation event queues at the lagging level have completed resource transfer pairing, and the simulation event queue resource scheduling process ends; set y m,n (t) is a binary indicator variable indicating the transfer of computing resources from the mth simulation event queue to the nth simulation event queue, which can be expressed as: in, That is, the one-to-one transfer pairing principle in step (2) is satisfied; After the simulation event queue resource scheduling process is completed, for the two paired event queues m and n, the total computing resources U after time slot processing is n (t) and U m (t) is expressed as: The simulation event controller recalculates the amount of data accumulated in the simulation event queue after processing in time slot t based on the simulation event queue resource scheduling result; without considering the limited amount of data, the maximum amount of data that the nth simulation event queue can process in time slot t is I n (t) is expressed as: Where Δt is the length of a single time slot; the amount of data actually processed by the nth simulation event queue in time slot t is It is expressed as: From this, we can deduce the amount of data accumulated in the nth simulation event queue after processing in time slot t: After the amount of data accumulated in the simulation event queue after processing in time slot t is calculated, it will enter the next time slot and re-optimize the computing resource scheduling.
5. The novel distribution network operation condition cloud simulation method according to claim 3 is characterized in that: The S2 comprises the following sub-steps: S2.1: Simulation of the temporal evolution of transfer gain corresponding to positive and negative adjustments of the transfer capacity guidance threshold adjustment parameter From the beginning of the simulation, every d simulation time slots are divided into a time window, and the time windows do not overlap each other. Then the time slots contained in the w-1th time window are {(w-1)d+1, (w-1)d+2, L, wd}, d is the number of simulation time slots in the time window, and d can be divided by 2; while simulating in the w-1th time window, the resource scheduling controller makes positive and negative adjustments to the transfer capacity guidance threshold adjustment parameter of the simulation queue n, that is, the transfer capacity guidance threshold adjustment parameter is increased and decreased intermittently, then the positive and negative adjustment sequence of the transfer capacity guidance threshold adjustment parameter used for the transfer gain time series evolution simulation is expressed as: in, represents the transfer capacity guidance threshold adjustment parameter of the simulation queue n in the w-1th time window, that is, represents the transfer capacity guidance threshold adjustment parameter of the simulation queue n in the (w-1)d+1th time slot in the w-1th time window after positive and negative adjustment, σ + , σ - is the positive or negative adjustment factor, which is a positive number less than 1; The resource scheduling controller adjusts the parameters based on the transfer capacity guidance threshold after positive and negative adjustment, and simulates the corresponding transfer gain time series evolution in the w-1th time window through formula (4)-formula (9), which is expressed as: in, is the set of simulated transfer gain time series evolution of the nth simulation event queue in the w-1th time window, is the simulated transfer gain of the nth simulation event queue in time slot t, is the simulated transfer gain of computing resource transfer from the mth simulation event queue to the nth simulation event queue, A simulated binary indicator variable for transferring computing resources from the mth simulation event queue to the nth simulation event queue; S2.2: Transfer capacity guidance threshold adjustment parameter adjustment Based on the simulation results of the time series evolution of the transfer gain, the simulated transfer gain mean corresponding to the positive and negative adjustments of the transfer capacity guidance threshold adjustment parameters in the w-1th time window can be obtained, which is expressed as: in, is the mean value of the simulated positive adjustment transfer gain of the simulated queue n in the w-1th time window, is the mean of the simulated negative adjusted transfer gains of the simulated queue n in the w-1th time window; The actual transfer gain average obtained by simulating queue n in the w-1th time window is It is expressed as: in, is the actual transfer gain of the nth simulation event queue in time slot t; Then, compare the actual transfer gain mean of the simulated queue n in the w-1th time window Simulated positive adjusted transfer gain mean and the simulated negative adjusted transfer gain mean If the actual transfer gain mean of the simulated queue n in the w-1th time window is Maximum, then the transfer capacity guidance threshold adjustment parameter of the simulation queue n in the wth time window is not adjusted, that is, If the simulated positive adjustment transfer gain mean of the simulated queue n in the w-1th time window The maximum value is, then the transfer capacity guidance threshold adjustment parameter of the simulation queue n in the wth time window is adjusted to If the simulated negative adjustment transfer gain mean of the simulated queue n in the wth time window is The maximum value is, then the transfer capacity guidance threshold adjustment parameter of the simulation queue n in the wth time window is adjusted to Based on the above method, the resource scheduling controller can adjust the transfer capacity guidance threshold adjustment parameters of all simulation queues in the wth time window, that is,
