A twin resource management method and system for automated master station training

By using the enhanced dung beetle optimization algorithm in power system automation and optimizing the container scheduling model, the problem of load imbalance and complex data exchange links in the master station automation training scenario is solved, dynamic resource management is realized, and hardware resources are reduced. requirements, improving the flexibility and reliability of the system.

CN118469258BActive Publication Date: 2024-09-27BEIJING KEDONG ELECTRIC POWER CONTROL SYST CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410923844.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2024-09-27
Estimated Expiration
2044-07-11

AI Technical Summary

Technical Problem

In power system automation, there are problems such as load imbalance, complex data exchange links between containers, and slow server response in the master station automation training scenario. Existing technologies are difficult to effectively solve, and the demand for hardware resources is high, which limits the availability of the system. Scalability and flexibility.

Method used

The Chebyshev chaotic map and Gaussian-Cauchy hybrid mutation perturbation strategy are used to enhance the dung beetle optimization algorithm, build a container scheduling model, optimize the cross-node data exchange rate and load imbalance, and achieve dynamic optimization of container scheduling.

Benefits of technology

Dynamically reduce the cross-node data exchange rate and load imbalance, reduce hardware resource requirements, improve system flexibility and scalability, solve the problem of working node load imbalance and container data exchange link complexity, and reduce hardware and maintenance costs. cost and improve system reliability and security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118469258B
    Figure CN118469258B
Patent Text Reader

Abstract

A twin resource management method and system for automated master station training. The method includes obtaining demand data for multiple substation remote motors in the master station automation training scenario, constructing a container scheduling model based on the demand data, and determining the objective function of container scheduling according to the cross-node data exchange rate and load imbalance; enhancing the dung beetle optimization algorithm using Chebyshev chaotic mapping and Gauss-Cauchy mixed mutation perturbation strategy to obtain an enhanced dung beetle optimization algorithm; optimizing the container scheduling model based on the enhanced dung beetle optimization algorithm, solving the objective function, obtaining the optimal values ​​of the cross-node data exchange rate and load imbalance, and using the optimal values ​​to implement container scheduling. The solution of the present invention dynamically reduces the cross-node data exchange rate and load imbalance, reduces hardware resource requirements, and improves the flexibility and scalability of the system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of power system automation, and in particular relates to a twin resource management method and system for automation master station training. Background Art

[0002] The power system has very high requirements for the continuity and safety of operation, and the dispatching automation system is a very complex system. Once a fault occurs, it needs to be diagnosed and processed as soon as possible. With the development of automation technology and the update of automation equipment, the requirements for dispatching automation operation and maintenance are getting higher and higher, and the problem of insufficient automation professional training capacity is becoming increasingly prominent. At present, most of the automation training is carried out by deploying a complete set of master station systems on physical machines. The deployment of the master station system is complex, which is not convenient for quickly creating a training environment. It is difficult to carry out multi-person training on real automation equipment at the same time, and it is impossible to carry out abnormal fault training on real equipment, and the investment is large. When there is a demand for multiple substation remote motors in the master station automation training scenario, it is necessary to reduce the hardware resource requirements. With the continuous advancement of technology, hardware equipment is also continuously upgraded. Reducing the hardware resource requirements helps to reduce the dependence on high-performance hardware, so that the training system is more scalable and can adapt to future technological developments. In the master station automation training scenario, multiple substation remote motors may not all need to run at the same time. By reducing the hardware resource requirements, dynamic allocation and sharing of resources can be achieved, and the utilization rate of hardware equipment can be improved.

[0003] Using intelligent search algorithms to solve container scheduling problems can help reduce cross-node exchange rates and load imbalances, and solve the problem of slow service response. In 2022, Wei Jianbing proposed a particle swarm gray wolf collaborative algorithm (PS-GWCA) in order to improve the collaborative optimization of the gray wolf algorithm and the particle swarm algorithm. This algorithm uses the global optimization ability of the gray wolf algorithm in the early stage to improve the ability of the particle swarm algorithm to jump out of the local optimum, and uses the local optimization ability of the particle swarm algorithm on the Pareto frontier in the later stage to make up for the shortcomings of the gray wolf algorithm's weakened optimization ability in the later stage, so that the two algorithms can collaborate to optimize, which solves the container multi-objective optimization problem to a certain extent, but it requires too many parameters to be set, the algorithm complexity is high, and the optimization time is long.

[0004] As the key to container scheduling, the open source software Docker provides several simple container scheduling algorithms, random, spread, and binpack, in container-based computer clusters. Container instances will randomly select available computing resources for scheduling without considering the status and load of the nodes. This scheduling algorithm can be used in test and development environments, but it may cause some problems in production environments, such as load imbalance and low resource utilization. Most existing technologies ignore the dependencies between containers, resulting in complex data exchange links between containers and slow service response. In addition, the convergence accuracy and convergence speed of intelligent search algorithms (such as particle swarm optimization, genetic algorithm, and flower pollination algorithm) need to be improved. In addition, these methods have not been further discussed in comparison with traditional intelligent algorithms, making it difficult to reflect the rationality and superiority of the improved algorithms. The main problem of the traditional dung beetle optimization algorithm (DBO algorithm) is that the population lacks diversity and is prone to fall into local optimal solutions, resulting in suboptimal solutions or slow convergence. Summary of the invention

[0005] In order to solve the deficiencies in the prior art, the present invention provides a twin resource management method and system for automated master station training to solve the load imbalance problem that occurs during the operation of a computer cluster and the technical problems of complex data exchange links between containers and slow server response.

[0006] In order to solve the above technical problems, the present invention adopts the following technical solutions.

[0007] The present invention first discloses a twin resource management method for automated master station training, the method comprising the following steps:

[0008] Step 1: Obtain demand data for multiple substation remote motors in the master station automation training scenario, build a container scheduling model based on the demand data, and determine the objective function of container scheduling according to the cross-node data exchange rate and load imbalance;

[0009] Step 2, using Chebyshev chaotic mapping and Gauss-Cauchy mixed mutation perturbation strategy to enhance the dung beetle optimization algorithm, and obtaining an enhanced dung beetle optimization algorithm;

[0010] Step 3: Optimize the container scheduling model based on the enhanced dung beetle optimization algorithm, solve the objective function, obtain the optimal values ​​of the cross-node data exchange rate and load imbalance, and use the optimal values ​​to implement container scheduling.

[0011] The present invention further includes the following preferred embodiments:

[0012] The demand data for multiple substation remote motors include the number of simulated substations, equipment types, and data transmission volume.

[0013] The objective function of container scheduling is determined according to the cross-node data exchange rate and load imbalance, further comprising:

[0014] The cross-node data exchange rate F 1 and the worker node load imbalance F 2 Use the weight vector w respectively 1 , w 2 Merge and transform into a single-objective optimization problem F, take the minimum value of F as the objective function, and set two constraints, namely, each container can only run on a certain working node, and the required resources of all containers in a single working node do not exceed its capacity:

[0015] ,

[0016] in:

[0017]

[0018] ,

[0019] The total amount of data exchanged between containers:

[0020] ,

[0021] The amount of data exchanged between containers across nodes:

[0022] ,

[0023] The average CPU utilization of all worker nodes:

[0024] ,

[0025] is the CPU utilization of worker node i:

[0026] ,

[0027] The average memory utilization is:

[0028] ,

[0029] is the memory utilization of worker node i:

[0030] ,

[0031] Indicates the relationship between container j and worker node i. When container j is not in worker node i, , when container j is in worker node i, ;

[0032] Indicates the dependency between containers. When there is no data exchange between container j and container j' , when the data exchange between container j and container j' is l Megabyte-hour ;

[0033] m is the number of working nodes, n is the number of containers, and s is the number of working nodes. i The available resource vector is , container c j The resource demand vector is . is the CPU available resource of worker node i, is the available memory resource of worker node i; is the CPU resource requirement of container j, is the memory resource requirement of container j.

[0034] The method of enhancing the dung beetle optimization algorithm by using the Gauss-Cauchy mixed variation perturbation strategy further includes:

[0035] Calculate the optimal position of individual X in the tth iteration Position after the Gauss-Cauchy mixture perturbation:

[0036] ,

[0037] in, is the Gaussian mutation operator, is the Cauchy mutation operator, the mutation operator weight coefficient , , Indicates the maximum number of iterations.

[0038] The enhanced dung beetle optimization algorithm updates the position of the rolling dung beetle according to the following formula:

[0039] ,

[0040] Where t represents the current iteration number, represents the position information of the i-th dung beetle at the t-th iteration, is a constant representing the deflection coefficient, b represents a constant belonging to (0, 1), is a natural coefficient, assigned , represents the global worst position, and Δx is a parameter used to simulate the change of light intensity.

[0041] The enhanced dung beetle optimization algorithm uses the tangent function to update the position of the dancing dung beetle according to the following formula:

[0042] ,

[0043] in, .

[0044] The enhanced dung beetle optimization algorithm updates the position of the breeding ball according to the following formula:

[0045] ;in

[0046] ,

[0047] Among them, X* represents the current local optimal position, Lb* and Ub* represent the lower and upper bounds of the spawning area respectively. , represents the maximum number of iterations, Lb and Ub represent the lower and upper bounds of the optimization problem, respectively. is the position information of the i-th breeding ball at the t-th iteration, b 1 and b 2 represents two independent random vectors of size 1×D, where D represents the dimension of the optimization problem;

[0048] The enhanced dung beetle optimization algorithm updates the position of the foraging dung beetle according to the following formula:

[0049] ,

[0050] in, represents the position information of the i-th dung beetle at the t-th iteration, C 1 represents a random number that follows a normal distribution, C 2 represents a random vector belonging to (0, 1);

[0051] Where Lb b and Ub b Represent the lower and upper limits of the optimal foraging area:

[0052] ,

[0053] Where X b represents the global optimal position.

[0054] The enhanced dung beetle optimization algorithm updates the position information of the stealing dung beetle according to the following formula:

[0055] ,

[0056] That represents the position information of the i-th thieving dung beetle at the t-th iteration, g is a random vector of size 1×D that obeys the normal distribution, and S represents a constant.

[0057] The present invention also discloses a twin resource management system for automated master station training using the aforementioned twin resource management method for automated master station training, comprising:

[0058] A container scheduling model building module is used to obtain demand data for multiple substation remote motors in the master station automation training scenario, build a container scheduling model based on the demand data, and determine the objective function of container scheduling according to the cross-node data exchange rate and load imbalance;

[0059] The dung beetle optimization algorithm enhancement module is used to enhance the dung beetle optimization algorithm by using Chebyshev chaotic mapping and Gauss-Cauchy mixed mutation perturbation strategy to obtain an enhanced dung beetle optimization algorithm;

[0060] The container scheduling model solving module is used to optimize the container scheduling model based on the enhanced dung beetle optimization algorithm, solve the objective function, obtain the optimal values ​​of the cross-node data exchange rate and load imbalance, and use the optimal values ​​to implement container scheduling.

[0061] Accordingly, the present application also discloses a terminal, including a processor and a storage medium;

[0062] The storage medium is used to store instructions;

[0063] The processor is used to operate according to the instructions to execute the steps of the aforementioned twin resource management method for automation master station training.

[0064] Correspondingly, the present application also discloses a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of the aforementioned twin resource management method for automated master station training are implemented.

[0065] The beneficial effect of the present invention is that, compared with the prior art, the present invention provides a twin resource management method and system for automated master station training, which can dynamically reduce the cross-node data exchange rate and load imbalance, reduce hardware resource requirements, and effectively solve the problem of unbalanced load on working nodes and the complex data exchange links between containers and slow server response. Cloud computing technology is used to realize the demand for multiple substation remote motors in the master station automation training scenario, and resources can be dynamically expanded according to demand, reducing hardware costs and maintenance costs, and improving the flexibility and scalability of the system. At the same time, the rich resources and professional technical support provided by the cloud service provider are used to improve the reliability and security of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] Figure 1 It is a flow chart of the twin resource management method for automated master station training in the present invention. DETAILED DESCRIPTION

[0067] In order to make the purpose, technical solution and advantages of the present invention more clear, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0068] The embodiments described in this application are only some embodiments of the present invention, not all embodiments. Based on the spirit of the present invention, other embodiments obtained by ordinary technicians in this field without creative work are all within the protection scope of the present invention.

[0069] In view of the shortcomings of the prior art, in order to reduce the demand for twin hardware resources of the master-substation in the training of the automated master station, the present invention proposes a twin resource management method and system for the training of the automated master station. The objective function and constraint conditions of the container scheduling are constructed through the data interaction relationship between containers and the container resource requirements. The container scheduling model is established and optimized with the cross-node data exchange rate and load balance as the fitness function. The population is initialized by Chebyshev mapping chaos to obtain a richer population diversity, enhance the global optimization ability of the algorithm, and use the Gauss-Cauchy mutation to perturb the individual to solve the scheduling scheme and jump out of the local optimum. The improved DBO algorithm is used to find the optimal values ​​of the cross-node data exchange rate and load imbalance, dynamically reduce the cross-node data exchange rate and load imbalance, reduce the demand for hardware resources, and effectively solve the problem of load imbalance of working nodes and the problem of complex data exchange links between containers and slow server response.

[0070] The twin resource management method for automated master station training disclosed in the present invention utilizes cloud computing technology to realize the demand processing of multiple substation remote motors in the master station automated training scenario, and includes the following steps:

[0071] Step 1: Obtain demand data for multiple substation remote motors in the master station automation training scenario, build a container scheduling model based on the demand data, and determine the objective function of container scheduling according to the cross-node data exchange rate and load imbalance.

[0072] First, a demand analysis is needed to determine the demand for multiple substation remote motors in the master station automation training scenario, including the number of simulated substations, equipment types, data transmission volume, etc.

[0073] Then build a container scheduling model, select a suitable cloud computing service provider, and build a cloud environment according to the above requirements. In the cloud environment, you can create virtual machine instances, configure network and storage resources, and provide an operating environment for the main station and substation remote machines. Cloud computing is an Internet-based computing method that has developed on the basis of virtualized computing and distributed computing. The resource scheduling process is an important part of cloud computing. It is the process of allocating tasks to corresponding resources and executing them according to the number of tasks and resource conditions in the cloud computing environment.

[0074] Container scheduling technology refers to the process of allocating containerized applications to the underlying computing resources. This process needs to take into account factors such as resource requirements, relationships between containers, and performance optimization to achieve optimal application performance and resource utilization. Through container scheduling, containers are automatically allocated and managed, including deciding which host to run containers on, how to start them, how they communicate, how to achieve load balancing between containers, and when to expand or reduce the number of containers. This can achieve automated management and optimization of the master-substation twin hardware resources, improve resource utilization and system stability. The master-substation twin hardware resources are the infrastructure for container scheduling, and container scheduling relies on these hardware resources to deploy and manage containerized applications. The scheduler is responsible for managing and allocating cluster resources to ensure that each container can run on the appropriate host, meet the needs of multiple substation remote motors in a master station automation training scenario, and reduce hardware resource requirements.

[0075] First, establish the objective function and constraints of container scheduling. The worker node is the carrier of container operation and provides resources such as CPU and memory for the container.

[0076] Let S represent the set of working nodes , m is the number of working nodes, C represents the container set , n is the number of containers. Worker nodes s i The available resource vector is , container c j The resource demand vector is , is the CPU available resource of worker node i, is the available memory resource of worker node i; is the CPU resource requirement of container j, is the memory resource requirement of container j.

[0077] Container dependencies are expressed in terms of the amount of data exchanged.

[0078] The total amount of data exchanged between containers is:

[0079] ,

[0080] in Indicates the dependency between containers. When there is no data exchange between container j and container j' , when the data exchange between container j and container j' is l megabytes .

[0081] When containers run on the same working node, data exchange between containers is completed in the node. When containers run on different working nodes, data exchange between containers needs to be completed across working nodes with the help of routers. express:

[0082] ,

[0083] in Indicates the relationship between container j and worker node i. When container j is not in worker node i, , when container j is in worker node i, .

[0084] The amount of data exchanged between containers across nodes accounts for the total amount of data exchanged between containers. 1 It is called the cross-node data exchange rate:

[0085] ,

[0086] If the containers that need to collaborate are distributed in one working node, the data exchange link between the containers is simple, the service response is fast, and the cluster network consumption is less; when the containers that need to collaborate are distributed in different working nodes, the data exchange link between the containers is complex, and the cluster network consumption is high. Container scheduling technology is responsible for reasonably allocating these containers to each node and ensuring that they can collaborate effectively. Therefore, the cross-node data exchange rate F 1 The smaller it is, the simpler the data link for data exchange between containers is and the smaller the communication load is.

[0087] The resource utilization of different working nodes is different. The average CPU utilization of all working nodes is:

[0088] ,

[0089] in is the CPU utilization of worker node i, .

[0090] The average memory utilization is:

[0091] ,

[0092] in is the memory utilization of worker node i, .

[0093] Different containers are deployed on the worker nodes, resulting in different loads on the worker nodes. The load imbalance between the worker nodes is expressed as F. 2 express:

[0094] ,

[0095] The purpose of container scheduling is to reduce the load imbalance of working nodes F 2 At the same time, it also reduces the cross-node data exchange rate F 1 , using the weight vector w 1 , w 2 Combining the two and converting them into a single-objective optimization problem F, there are two constraints: one is that the container cannot be split, that is, each container can only run on a certain working node. The other is that the resources of a single working node are limited, that is, the required resources of all containers in the working node cannot exceed its capacity.

[0096] ,

[0097] st. represents constraints;

[0098] Step 2: Use Chebyshev chaotic mapping and Gauss-Cauchy mixed mutation perturbation strategy to enhance the dung beetle optimization algorithm and obtain the enhanced dung beetle optimization algorithm.

[0099] The DBO algorithm is a swarm intelligence optimization algorithm that mainly simulates the rolling, dancing, foraging, stealing, and reproduction behaviors of dung beetles. The DBO algorithm uses its global exploration capability, fast convergence speed, and higher solution accuracy to quickly obtain the optimal container scheduling fitness function. The DBO algorithm has better optimization capabilities than genetic algorithms, particle swarm algorithms, gray wolf optimization algorithms, sparrow search algorithms, etc. in terms of convergence speed, solution accuracy, and stability.

[0100] In order to simulate the rolling ball behavior, the dung beetle needs to move in a given direction throughout the search space. The position update of the rolling ball dung beetle during the rolling process is shown as follows:

[0101] ,

[0102] Where t represents the current iteration number, represents the position information of the i-th dung beetle at the t-th iteration, is a constant representing the deflection coefficient, b represents a constant belonging to (0, 1), is a natural coefficient, assigned , represents the global worst position, and Δx is a parameter used to simulate the change of light intensity.

[0103] When the dung beetle encounters an obstacle and cannot move forward, the tangent function is used to simulate the dancing behavior of the dung beetle and obtain a new rolling direction. The position of the dancing behavior is defined as follows:

[0104] ,

[0105] in, ,if , the position of the dung beetle will not be updated.

[0106] In order to provide a safe environment for their offspring, a boundary selection strategy is used to simulate the area where female dung beetles lay eggs. The strategy is:

[0107] ,

[0108] Among them, X* represents the current local optimal position, Lb* and Ub* represent the lower and upper bounds of the spawning area respectively. , represents the maximum number of iterations, Lb and Ub represent the lower bound and upper bound of the optimization problem respectively.

[0109] The position of the breeding ball is also dynamic during the iteration process, and the iteration process is expressed as:

[0110] ,

[0111] in, is the position information of the i-th breeding ball at the t-th iteration, b 1 and b 2 denote two independent random vectors of size 1×D, where D represents the dimension of the optimization problem.

[0112] An optimal foraging area was established to guide dung beetles to forage and simulate the foraging process of dung beetles in nature. The boundaries of the optimal foraging area were defined as follows:

[0113] ,

[0114] Where X b represents the global optimal position, Lb b and Ub b Represent the lower and upper limits of the optimal foraging area, respectively.

[0115] The locations of foraging dung beetles have been updated as follows:

[0116] ,

[0117] in, represents the position information of the i-th dung beetle at the t-th iteration, C 1 represents a random number that follows a normal distribution, C 2 represents a random vector belonging to (0, 1).

[0118] Assume X b Nearby is the best place to compete for food. During the iteration, the location information of the stealing dung beetle is updated, which can be described as follows:

[0119] ,

[0120] That represents the position information of the i-th thieving dung beetle at the t-th iteration, g is a random vector of size 1×D that obeys the normal distribution, and S represents a constant.

[0121] The dung beetle optimization algorithm is used to randomly initialize the position of the population in the search space. In order to improve the diversity of the initial solution of the population, the Chebyshev chaotic map is used in the population initialization stage of DBO to generate a highly diverse initial population. The Chebyshev chaotic map has better traversal uniformity and faster convergence speed, and the iterative process is suitable for computer operation.

[0122] The Chebyshev iteration formula is:

[0123] ,

[0124] Where k is the order.

[0125] In the later stage of the iteration of the basic dung beetle algorithm, the rapid assimilation of dung beetle individuals causes the dung beetle population to quickly gather near the current optimal position, whose value is close to the optimal solution. Therefore, if the current optimal position is not the global optimal point, the dung beetle population will concentrate on searching near the current optimal position, resulting in the inability to find the true optimal position, leading to a stagnant search. To solve this problem, the mutation perturbation operation is used to interfere with individuals to increase population diversity and jump out of the local optimum. Performing the mutation perturbation operation can increase the diversity of the dung beetle population, allowing the algorithm to jump out of the local optimal solution and enter other areas of the solution space to continue exploration until the global optimal solution is finally found.

[0126] The present invention only performs mutation disturbance on the best individual, then compares its position before and after the mutation, selects the better position to enter the next iteration, fully increases the diversity of dung beetles, expands the population search range, adopts an adaptive Gaussian-Cauchy mixed mutation disturbance strategy, uses the characteristics of the Cauchy and Gaussian distribution functions to generate new individuals, enhances the diversity of dung beetles, and enhances the algorithm's ability to coordinate its local development and global exploration. The specific formula is as follows:

[0127] ,

[0128] in, is the optimal position of individual X in the tth iteration, is the optimal position in the tth iteration At the position after the Gauss-Cauchy mixture perturbation, is the Gaussian mutation operator, is the Cauchy mutation operator, the mutation operator weight coefficient , , Represents the maximum number of iterations to ensure that each iterative disturbance is balanced and smooth.

[0129] Step 3: Optimize the container scheduling model based on the enhanced dung beetle optimization algorithm, solve the objective function, obtain the optimal values ​​of the cross-node data exchange rate and load imbalance, and use the optimal values ​​to implement container scheduling.

[0130] The process of optimizing the container scheduling objective function using the improved DBO algorithm is as follows: Figure 1 As shown, including:

[0131] Step 3.1: First, input the container scheduling objective function and use Chebyshev to initialize the DBO parameters. Calculate the fitness value of the dung beetle.

[0132] Step 3.2: Determine whether δ<ST. ST is a fixed obstacle state threshold (preferably 0.5), δ is a random number and δ∈[0,1]. If δ<ST, it is an obstacle-free state. First, δ is determined, and then the position of the rolling dung beetle is updated according to the rolling behavior update formula. Otherwise, it is an obstacle state. A new route is determined by simulating dance behavior, and the position of the rolling dung beetle is updated according to the dance behavior update formula.

[0133] For dung beetle breeding behavior, update the location of the breeding ball;

[0134] For dung beetle foraging behavior, update the location of the foraging dung beetle;

[0135] For dung beetle stealing behavior, update the location of the stealing dung beetle.

[0136] Step 3.3: If the new position is better than the original position, perform Gaussian Cauchy mutation on the new position and replace the original position with the new position, otherwise keep the position unchanged.

[0137] Step 3.4: Determine whether t≤Tmax is satisfied. If so, re-execute step 3.2. Otherwise, output the optimal position and optimal fitness. The method ends.

[0138] The beneficial effect of the present invention is that, compared with the prior art, the present invention provides a twin resource management method and system for automated master station training, which can dynamically reduce the cross-node data exchange rate and load imbalance, reduce hardware resource requirements, and effectively solve the problem of unbalanced load on working nodes and the complex data exchange links between containers and slow server response. Cloud computing technology is used to realize the demand for multiple substation remote motors in the master station automation training scenario, and resources can be dynamically expanded according to demand, reducing hardware costs and maintenance costs, and improving the flexibility and scalability of the system. At the same time, the rich resources and professional technical support provided by the cloud service provider are used to improve the reliability and security of the system.

[0139] The present invention may be a system, a method and / or a computer program product. The present invention also discloses a twin resource management system for automated master station training based on the aforementioned twin resource management method for automated master station training, comprising:

[0140] A container scheduling model building module is used to obtain demand data for multiple substation remote motors in the master station automation training scenario, build a container scheduling model based on the demand data, and determine the objective function of container scheduling according to the cross-node data exchange rate and load imbalance;

[0141] The dung beetle optimization algorithm enhancement module is used to enhance the dung beetle optimization algorithm by using Chebyshev chaotic mapping and Gauss-Cauchy mixed mutation perturbation strategy to obtain an enhanced dung beetle optimization algorithm;

[0142] The container scheduling model solving module is used to optimize the container scheduling model based on the enhanced dung beetle optimization algorithm, solve the objective function, obtain the optimal values ​​of the cross-node data exchange rate and load imbalance, and use the optimal values ​​to implement container scheduling.

[0143] Based on the spirit of the present invention, those skilled in the art can easily think of a computer program product based on the aforementioned twin resource management method for automation master station training. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for enabling a processor to implement various aspects of the present disclosure. That is, the present application also includes a terminal, including a processor and a storage medium; the storage medium is used to store instructions; the processor is used to operate according to the instructions to execute the steps of the aforementioned twin resource management method for automation master station training.

[0144] Computer readable storage medium can be a tangible device that can keep and store the instructions used by the instruction execution device. Computer readable storage medium can be, for example, - but not limited to - electrical storage device, magnetic storage device, optical storage device, electromagnetic storage device, semiconductor storage device or any suitable combination of the above. More specific examples (non-exhaustive list) of computer readable storage medium include: portable computer disk, hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disk read-only memory (CD-ROM), digital versatile disk (DVD), memory stick, floppy disk, mechanical encoding device, such as punch card or groove protrusion structure with instructions stored thereon and any suitable combination of the above. Computer readable storage medium used here is not interpreted as instantaneous signal itself, such as radio wave or other free propagating electromagnetic wave, electromagnetic wave propagated by waveguide or other transmission medium (for example, light pulse by optical fiber cable) or electrical signal transmitted by wire.

[0145] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0146] The computer program instructions for performing the operations of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Smalltalk, C++, etc., and conventional procedural programming languages ​​such as "C" language or similar programming languages. The computer-readable program instructions may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect through the Internet). In some embodiments, by using the state information of the computer-readable program instructions to personalize an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA) or a programmable logic array (PLA), the electronic circuit may execute the computer-readable program instructions, thereby implementing various aspects of the present disclosure.

[0147] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents, and any modifications or equivalent replacements that do not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A twin resource management method for automated master station training, characterized in that: The following steps are involved: Step 1: Obtain demand data for multiple substation remote motors in the master station automation training scenario, build a container scheduling model based on the demand data, and determine the objective function of container scheduling according to the cross-node data exchange rate and load imbalance; Step 2, using Chebyshev chaotic mapping and Gauss-Cauchy mixed mutation perturbation strategy to enhance the dung beetle optimization algorithm, and obtaining an enhanced dung beetle optimization algorithm; Step 3, optimizing the container scheduling model based on the enhanced dung beetle optimization algorithm, solving the objective function, obtaining optimal values ​​of the cross-node data exchange rate and load imbalance, and implementing container scheduling using the optimal values; The demand data for multiple substation remote motors includes the number of simulated substations, equipment types, and data transmission volume; The objective function of container scheduling is determined according to the cross-node data exchange rate and load imbalance, further comprising: The cross-node data exchange rate F1 and the worker node load imbalance F2 are combined using weight vectors w1 and w2 respectively, and converted into a single-objective optimization problem F. The minimum value of F is used as the objective function, and two constraints are set, namely, each container can only run on a certain worker node, and the required resources of all containers in a single worker node do not exceed its capacity: in: The total amount of data exchanged between containers: The amount of data exchanged between containers across nodes: The average CPU utilization of all worker nodes: is the CPU utilization of worker node i: The average memory utilization is: is the memory utilization of worker node i: Indicates the relationship between container j and worker node i. When container j is not in worker node i, , when container j is in worker node i, ; Indicates the dependency between containers. When there is no data exchange between container j and container j' , when the data exchange between container j and container j' is l Megabyte-hour ; m is the number of working nodes, n is the number of containers, and s is the number of working nodes. i The available resource vector is , container c j The resource demand vector is ; is the CPU available resource of worker node i, is the available memory resource of worker node i; is the CPU resource requirement of container j, is the memory resource requirement of container j; The method of optimizing the container scheduling model based on the enhanced dung beetle optimization algorithm and solving the objective function further includes: Step 3.1: First, input the container scheduling objective function and use Chebyshev to initialize the DBO parameters; calculate the fitness value of the dung beetle; Step 3.2: Determine whether δ<ST; ST is a fixed obstacle state threshold, δ is a random number and δ∈[0,1]. If δ<ST, it is an obstacle-free state. First, determine δ, and then update the position of the rolling dung beetle according to the rolling behavior update formula. Otherwise, it is an obstacle state. Simulate the dance behavior to determine a new route, and update the position of the rolling dung beetle according to the dance behavior update formula. For dung beetle breeding behavior, update the location of the breeding ball; For dung beetle foraging behavior, update the location of the foraging dung beetle; For dung beetle stealing behavior, update the location of the stealing dung beetle; Step 3.3: If the new position is better than the original position, perform Gaussian Cauchy mutation on the new position and replace the original position with the new position, otherwise keep the position unchanged; Step 3.4: Determine whether t≤Tmax is satisfied. If so, re-execute step 3.

2. Otherwise, output the optimal position and optimal fitness.

2. The twin resource management method for automated master station training according to claim 1 is characterized in that: The method of enhancing the dung beetle optimization algorithm by using the Gauss-Cauchy mixed variation perturbation strategy further includes: Calculate the optimal position of individual X in the tth iteration Position after the Gauss-Cauchy mixture perturbation: in, is the Gaussian mutation operator, is the Cauchy mutation operator, the mutation operator weight coefficient , , Indicates the maximum number of iterations.

3. The twin resource management method for automated master station training according to claim 2 is characterized in that: The enhanced dung beetle optimization algorithm updates the position of the rolling dung beetle according to the following formula: Where t represents the current iteration number, represents the position information of the i-th dung beetle at the t-th iteration, is a constant representing the deflection coefficient, b represents a constant belonging to (0, 1), is a natural coefficient, assigned , represents the global worst position, is a parameter used to simulate changes in light intensity.

4. The twin resource management method for automated master station training according to claim 3 is characterized in that: The enhanced dung beetle optimization algorithm uses the tangent function to update the position of the dancing dung beetle according to the following formula: in, .

5. The twin resource management method for automated master station training according to claim 4 is characterized in that: The enhanced dung beetle optimization algorithm updates the position of the breeding ball according to the following formula: ;in Among them, X* represents the current local optimal position, Lb* and Ub* represent the lower and upper bounds of the spawning area respectively. , represents the maximum number of iterations, Lb and Ub represent the lower and upper bounds of the optimization problem, respectively. is the position information of the i-th breeding ball at the t-th iteration, b1 and b2 represent two independent random vectors of size 1×D, and D represents the dimension of the optimization problem.

6. The twin resource management method for automated master station training according to claim 5 is characterized in that: The enhanced dung beetle optimization algorithm updates the position of the foraging dung beetle according to the following formula: in, represents the position information of the i-th dung beetle at the t-th iteration, C1 represents a random number that obeys the normal distribution, and C2 represents a random vector belonging to (0, 1); Where Lb b and Ub b Respectively represent the lower and upper limits of the optimal foraging area: Where X b represents the global optimal position.

7. The twin resource management method for automated master station training according to claim 6 is characterized in that: The enhanced dung beetle optimization algorithm updates the position information of the stealing dung beetle according to the following formula: That represents the position information of the i-th thieving dung beetle at the t-th iteration, g is a random vector of size 1×D that obeys the normal distribution, and S represents a constant.

8. A twin resource management system for automated master station training using the twin resource management method for automated master station training as described in any one of claims 1 to 7, characterized in that: include: A container scheduling model building module is used to obtain demand data for multiple substation remote motors in the master station automation training scenario, build a container scheduling model based on the demand data, and determine the objective function of container scheduling according to the cross-node data exchange rate and load imbalance; The dung beetle optimization algorithm enhancement module is used to enhance the dung beetle optimization algorithm by using Chebyshev chaotic mapping and Gauss-Cauchy mixed mutation perturbation strategy to obtain an enhanced dung beetle optimization algorithm; The container scheduling model solving module is used to optimize the container scheduling model based on the enhanced dung beetle optimization algorithm, solve the objective function, obtain the optimal values ​​of the cross-node data exchange rate and load imbalance, and use the optimal values ​​to implement container scheduling.

9. A terminal comprising a processor and a storage medium; characterized in that: The storage medium is used to store instructions; The processor is used to operate according to the instructions to execute the steps of the twin resource management method for automation master station training according to any one of claims 1-7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the twin resource management method for automated master station training described in any one of claims 1 to 7 are implemented.