A cloud computing resource scheduling method, system, device and medium based on enhanced Cougar optimization algorithm
By enhancing the Puma optimization algorithm and related strategies, it solves the problems of high response time and low resource utilization in large-scale task scheduling, achieves efficient task scheduling and resource management, and improves system performance.
Patent Information
- Application Number
- CN202411046424.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-01
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-08-01
AI Technical Summary
Existing task scheduling algorithms have excessive response times, long exploration times, and insufficient optimization performance when dealing with large-scale task scheduling, leading to resource waste and business performance degradation.
A cloud computing resource scheduling method based on the enhanced Puma optimization algorithm is adopted. Through the objective function optimization of minimizing the total cost, combined with the Sinusoidal chaos map and the intermediate point sample learning strategy, the random S-T shape transfer function is used for task scheduling, which improves the scheduling efficiency and Resource utilization.
It significantly reduces the time cost of task scheduling, improves the accuracy and resource utilization of the optimal solution, reduces the response time of the computer system, and is suitable for large-scale task scheduling problems.
Smart Images

Figure CN118585341B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of task scheduling methods under cloud computing, and in particular to a cloud computing resource scheduling method, system, device and medium based on an enhanced Puma optimization algorithm. Background Art
[0002] Cloud computing technology has been on the rise since the beginning of the 21st century and has gradually become an important support for modern society. It provides computing resources, storage resources, and application services to users through the Internet through virtualization technology, distributed data storage technology, large-scale data management technology, etc., realizing the decoupling of IT and business, so that IT resources can be supplied on demand. Cloud computing optimization scheduling is used to reduce the waste rate of resources and prevent the waste of virtual machine computing resources, storage resources, and resource bandwidth resources under large-scale task scheduling.
[0003] At present, many task scheduling problems are generally solved using heuristic and meta-heuristic algorithms. Heuristic algorithms are search and optimization algorithms based on experience and intuition, which are usually used to solve complex combinatorial optimization problems, such as simulated annealing, genetic algorithm, and ant colony optimization. However, these algorithms often have difficulty in handling large-scale task scheduling problems, resulting in excessive computer response time. On the other hand, existing meta-heuristic algorithms use random exploration, such as the whale optimization algorithm (WOA), the gray wolf optimization algorithm (GWO), and the differential evolution algorithm (DE) to handle scheduling problems, making them have a higher response speed. However, although the existing meta-heuristic algorithms have their advantages in handling large-scale task scheduling problems, most meta-heuristic algorithms have problems such as long exploration time and insufficient optimization performance when handling large-scale task scheduling problems. Therefore, the existing cloud computing task scheduling methods based on meta-heuristic algorithms need to be further improved. Summary of the invention
[0004] The purpose of the present invention is to solve the technical problems existing in large-scale task scheduling, and in particular to introduce a cloud computing resource scheduling method, system, device and medium based on an enhanced Puma optimization algorithm.
[0005] In order to achieve the above-mentioned object of the present invention, the present invention provides a cloud computing resource scheduling method based on an enhanced Puma optimization algorithm, comprising the following steps:
[0006] S1. Obtain the cloud task byte size vector and the computing resource vector, load cost vector, and resource bandwidth vector of the virtual machine, and then establish the following objective function that minimizes the total cost:
[0007] Fun=min{ω1F1+ω2F2+ω3F3}(1)
[0008] In formula (1), ω1, ω2 and ω3 represent the weights of functions F1, F2 and F3, respectively, which are used to adjust the center of gravity of the objective function when optimizing different aspects;
[0009] F1 represents the time cost function;
[0010] F2 represents the load cost function;
[0011] F3 represents the resource bandwidth cost function;
[0012] F1 represents the time cost function and is calculated as follows:
[0013]
[0014] In formula (2), T represents the number of tasks, K represents the number of computing resources (virtual machines), and u i,j Indicates the i th The task is in the jth th It is calculated on two virtual machines, and it is stipulated that each task can only be calculated on one virtual machine, that is, for each i∈[1,T], we get E n,j Indicates the jth th The computing resource vector of a virtual machine, E t,i Indicates the i th The computing resource vector required for each task, F2 represents the load cost function, and is calculated as follows:
[0015]
[0016] In formula (3), T represents the number of tasks, K represents the number of computing resources (virtual machines), and u i,j Indicates the i th The task is in the jth th It is calculated on two virtual machines, and it is stipulated that each task can only be calculated on one virtual machine, that is, for each i∈[1,T], we get S n,j Indicates the jth th The load vector of a virtual machine, S t,i Indicates the i th The load vector required by each task, F3 represents the resource bandwidth cost function, and is calculated by the following formula:
[0017]
[0018] In formula (4), T represents the number of tasks, K represents the number of computing resources (virtual machines), and u i,j Indicates the i thThe task is in the jth th It is calculated on two virtual machines, and it is stipulated that each task can only be calculated on one virtual machine, that is, for each i∈[1,T], we get E t,i Indicates the i th The computing resource vector required by the task, C n,j Indicates the jth th The resource bandwidth vector of a virtual machine, C t,i Indicates the i th The resource bandwidth vector required by each task is E n,j Indicates the jth th where P is the computing resource vector of a virtual machine and P is the parameter related to the price.
[0019] S2. Use the enhanced Puma optimization algorithm to optimize the objective function and obtain the optimal individual:
[0020] S21. Initialize the original population using formula (5) to obtain the initialized original population Sol:
[0021] Sol i =lb+rand·(ub-lb)(5)
[0022] In formula (5), Sol i Represents the position information of the i-th individual in the population Sol, ub represents the upper bound vector of the solution space, lb represents the lower bound vector of the solution space, and rand represents the generation of a random number between [0,1];
[0023] S22, initially Iter=1, by judging the relationship between Iter and 4, if Iter<4, then execute S23, otherwise jump to execute S28; wherein Iter represents the current number of iterations;
[0024] S23, updating individual positions through the exploration phase;
[0025] S24, updating individual positions through the development phase;
[0026] S25, Sol, Sol * and Sol ** Merge and take the first Nc individuals, where Sol represents the original population after initialization, Sol * represents the new population after the exploration phase, Sol ** represents the new population after being updated through the development phase;
[0027] S26. Calculate the population Sol * and Sol ** The optimal individual fitness and At the same time, Iter = Iter + 1;
[0028] S27, calculate the score of the exploration phase at the Iter iteration and development stage scores
[0029] S28. If Iter≤MaxIter, execute S29, otherwise execute step S33; wherein MaxIter represents the maximum number of iterations, and MaxIter≥4;
[0030] S29, updating the individual positions through the exploration phase, where the individuals here are the first Nc individuals in step S25;
[0031] S30, updating the individual positions through the development phase, where the individuals here are the first Nc individuals in step S25;
[0032] S31, yes and Make updates;
[0033] S32, Iter=Iter+1, return to S28;
[0034] S33, select the population Sol at the last iteration * The individual with the smallest objective function value is used as the scheduling method;
[0035] Furthermore, the specific steps of S23 are:
[0036] S231, calculate the i-th th The jth individual th New position in dimensions:
[0037]
[0038] In formula (6), ub represents the upper bound vector of the solution space, lb represents the lower bound vector of the solution space, N is a random number, and N = 2·rand-1, rand is a random number between 0 and 1, Dim represents the dimension of the problem, Dif a,b Sol for two different random solutions a,N and Sol b,N The difference between a,N Sol b,N Specifically, two individuals are randomly drawn from the population Sol), and Gap1 is calculated by the following formula:
[0039] Gap1=Dif a,b -Dif c,d (7)
[0040] In formula (7), Dif c,d Indicates two different from Sol a,N or Sol b,N Two random different solutions Sol c,N and Sol d,N The difference between c,N Sol d,N Specifically, two individuals are randomly drawn from the population Sol), and Gap2 is given by the following formula:
[0041] Gap2=Dif c,d -Dif e,f (8)
[0042] In formula (8), Dif e,f For two different Sol a,N , Sol b,N , Sol c,N or Sol d,N Random Sol e,N With Sol f,N The difference between e,N Sol f,N Specifically, two individuals are randomly drawn from the population Sol); the new population Sol is obtained by the following formula: * , Sol * = {Sol inew}, Sol inew The solution formula is as follows:
[0043]
[0044] In formula (9), Sol inew Represents the new population Sol * The i-th th Individuals, Represents the new population Sol * The i th Individual j th The new position in the dimension, Sol i Represents the initial population i th Individuals, represents the newly generated i through formula (6) th The fitness value of each individual, Sol icost Represents the i of the original population Sol after initialization th The fitness value of an individual.
[0045] Furthermore, the specific steps of S24 are:
[0046] S241, calculate the i-th th The jth individual th New position in dimensions:
[0047]
[0048] In formula (10), Represents the new population Sol ** The i-th th Individuals, Sol inew Represents the population Sol * The i-th individual in Sol r1 and Sol r2 For the population Sol * There are two random different solutions, ε and L * is the parameter set before the optimization starts, δ represents a random number of 0 or 1, Sol male Represents the population Sol * The optimal individual in , exp represents the exponential function with e as the base, mean represents the average function, rand represents a random number between 0 and 1, Sol all Represents the population Sol * All individuals in, Nc represents the population Sol * The number of individuals in the problem, randn represents the random number that conforms to the normal distribution in the problem dimension, Sol nn Calculated by the following formula:
[0049] Sol nn =(Q1·P·Sol inew )+Q2·(1-P)·Sol male (11)
[0050] In formula (11), P is a random number, Sol inew Represents the population Sol * The i-th individual in Sol male Represents the population Sol * The optimal individual in , Q1 is calculated by the following formula:
[0051]
[0052] In formula (12), Iter represents the current number of iterations, MaxIter represents the total number of iterations, exp represents the exponential function with e as the base, randn represents the random number that conforms to the normal distribution in the problem dimension, and Q2 is calculated by the following formula:
[0053] Q2=randn·(randn) 2 ·cos((2·rand)·randn) (13)
[0054] In formula (13), cos represents the cosine function, randn represents a random number that conforms to the normal distribution in the problem dimension, and rand represents a random number between 0 and 1;
[0055] Furthermore, the specific steps of S25 are:
[0056] S251. Merge the three populations and take the first Nc individuals using the following formula:
[0057] Sol new =[Sol Sol * Sol ** ] (14)
[0058] In formula (14), Sol represents the original population after initialization, Sol * represents the new population after the exploration phase, Sol ** Represents the new population after the development phase, and then sorted by the following formula:
[0059] [~,index]=sort(Sol newcost ) (15)
[0060] In formula (15), [~, index] represents the new The representation after ascending sorting, sort represents the ascending function, Sol newcost Represents the population Sol new The fitness matrix of Sol newcost After sorting in ascending order, the new population is obtained by the following formula:
[0061] Sol new =Sol new (index(1:Nc)) (16)
[0062] In formula (16), index represents Sol newcost The subscripts after sorting in ascending order, Nc represents the number of populations; Sol new (index(1:Nc)) means taking the population Sol new The first Nc individuals;
[0063] Furthermore, the specific steps of S26 are:
[0064] S261, calculate the population Sol by the following formula * and Sol ** The best fitness individual and
[0065]
[0066] Formula (17), Represents the minimum function, Sol * .cost and Sol ** .cost represents the population Sol * and Sol ** The fitness vector, at the same time, Iter = Iter + 1;
[0067] Furthermore, the specific steps of S27 are:
[0068] S271, update the score of the exploration phase at the Iter iteration by the following formula and development stage scores
[0069]
[0070] In formula (18), PF1 and PF2 are the parameters set before optimization and are initially set to PF1 = PF2 = 0.5, f1 Exploration and f2 Exploration Calculated by the following formula:
[0071]
[0072] In formula (19), Gap time , Gap 1 time , Gap 2 time and Gap 3 time are four numbers with initial values of 1. PF1 and PF2 are the parameters set before optimization and are initially set to PF1 = PF2 = 0.5. and Calculated by the following formula:
[0073]
[0074] In formula (20), is the fitness value of the best individual in the initialized original population Sol, and Respectively represent the population Sol in the first three iterations * The optimal fitness value, f1 Exploitation and f2 Exploitation Calculated by the following formula:
[0075]
[0076] In formula (21), PF1 and PF2 are the parameters set before optimization and are initially set to PF1 = PF2 = 0.5, Gap time , Gap 1 time , Gap 2 time and Gap 3 time are four numbers with initial value 1, and Calculated by the following formula:
[0077]
[0078] In formula (22), and Respectively represent the population Sol in the first three iterations ** The optimal fitness value of It is the fitness value of the best individual in the initialized original population Sol;
[0079] Furthermore, the specific steps of S31 are:
[0080] S311, through the following formula and To update:
[0081]
[0082] In formula (23), and Respectively represent the Iter th The scores of the exploration and development phases during the iteration, and Calculated by the following formula:
[0083]
[0084] In formula (24), is the rounding symbol; and Iter th The scores of the exploration and development phases at the iteration, and Calculated by the following formula:
[0085]
[0086] In formula (25), Kc is calculated by the following formula:
[0087]
[0088] In formula (26), {|cost old -cost new |} exploit and {|cost old -cost new |} explore They are respectively expressed as the absolute value of the difference between the fitness value before and after the update in the development and exploration phases, and min represents the minimum value function. and Calculated by the following equation:
[0089]
[0090] In formula (27), and They represent the optimal fitness before and after the development phase update, respectively. and They represent the optimal fitness before the exploration phase and the optimal fitness after the exploration phase respectively. represents the number of times the individual is updated through formula (10), represents the number of individuals updated in the exploration phase selected by formula (9), PF1 is the parameter set before optimization and is initially set to PF1 = 0.5, and Calculated by the following formula:
[0091]
[0092] In formula (28), and They are Iter th The best fitness value of the current solution in the development phase and exploration phase before the update, and They are (Iter+1) th The fitness value of the best solution in the development phase and exploration phase, and They are (Iter+2) th The fitness value of the best solution in the development phase and exploration phase, and They are Iter th The best fitness value of the current solution in the development phase and exploration phase after the update, and They are (Iter+1) th The fitness value of the best solution in the development phase and exploration phase, and They are (Iter+2)th The fitness value of the best solution in the development phase and exploration phase after the first selection, It is the iterative process through the development phase Iter th Iterations to (Iter+1) th The number of iterations to select the individuals after the development phase update, It is the exploration phase in the iterative process. th Iterations to (Iter+1) th The number of iterations to select the individuals after the exploration phase update, It is the process of iterating through the development phase (Iter+1) th Iterations to (Iter+2) th The number of iterations to select the individuals after the development phase update, It is the exploration phase (Iter+1) in the iteration process th Iterations to (Iter+2) th The number of iterations to select the individuals after the exploration phase update, It is the iteration process through the development phase (Iter+2) th Iterations to (Iter+3) th The number of iterations to select the individuals after the development phase update, It is the exploration phase (Iter+2) in the iteration process th Iterations to (Iter+3) th The iteration selects the number of individuals updated after the exploration phase. PF2 is the parameter set before optimization and is initially set to PF2 = 0.5. and Calculated by the following formula:
[0093]
[0094] In formula (29), PF3 is the parameter set before optimization and is initially set to PF3 = 0.3;
[0095] S3, mapping the optimal individuals obtained in S2 to a binary scheduling matrix to perform task scheduling;
[0096] The binary scheduling matrix is represented as:
[0097]
[0098] Among them, matrix U is the scheduling matrix;
[0099] u i,j Indicates the i th The task is in the jth thIt runs on computing resources and stipulates that each task can only be calculated on one virtual machine, that is, for each i∈[1,T], we get The first row of the scheduling matrix represents the first task, and its first row j th The column has a value of 1 (a row has at least one value 1); it means that the first task is in the jth th running on a computing resource.
[0100] Furthermore, the initialization of the population Sol also includes: updating the initialized population using a Sinusoidal chaotic map:
[0101]
[0102] In formula (30), α is the control parameter, and the initial α = 2.3;
[0103] sin represents the sine function;
[0104] Sol i Represents the i-th individual in the initialized original population Sol;
[0105] Represents the individual after being updated by the Sinusoidal chaotic map.
[0106] By adding the Sinusoidal chaotic map initialization method to the algorithm, on the one hand, the diversity of the population is improved, thereby reducing the average total cost of all strategies in the initial task scheduling strategy. On the other hand, the search speed for the optimal solution is accelerated, thereby improving the efficiency of obtaining the task scheduling strategy.
[0107] Furthermore, in the development stage, the individual positions are updated and an intermediate point sample learning strategy is introduced to improve the development stage, which is specifically the following formula:
[0108]
[0109] In formula (31), Represents the new individual updated in the original development stage; the specific expression is formula (10) in step S241.
[0110] Sol mid represents the individual generated by the intermediate point sample learning strategy and is represented by the following formula:
[0111]
[0112] In formula (32), Represents the updated population Sol ** The Rth population after being sorted in ascending order by its fitness value mindividuals, Temp represents the updated population Sol ** The population after being sorted in ascending order by its fitness value, R m Calculated by the following formula:
[0113]
[0114] In formula (33), i represents the i-th individual, represents the upward rounding function, and rand represents a random number between the interval [0,1];
[0115] Since the median is not affected by extreme values and can also judge the quality of a batch of data, the middle point carries relevant information about the optimal solution during the task scheduling process. By adding the middle point sample learning strategy during the algorithm development phase, the convergence speed of finding the optimal solution in the task scheduling process is accelerated, thereby reducing the response time of cloud computing task scheduling.
[0116] Furthermore, the optimal individual is mapped to a binary scheduling matrix by using a random ST-shaped transfer function to convert the optimal individual into a binary matrix for task scheduling, which is specifically expressed as the following formula:
[0117]
[0118] In formula (34), abs represents the absolute value function, tan represents the tangent function, and Sol male Represents the optimal individual in the iterative process, Matrix new represents the matrix after transformation by random ST-shaped transfer function;
[0119] A single or traditional transfer function will use a lot of conversion time, resulting in a waste of computing resources during task scheduling. Using a random ST-shaped transfer function, the time for converting the optimal solution to the optimal scheduling method during task scheduling can be reduced through the above steps, thereby reducing the response time of the computer system during scheduling.
[0120] The present invention also proposes a cloud task scheduling system based on a multi-strategy Cougar optimization algorithm.
[0121] Furthermore, the system comprises:
[0122] Data collection module: obtains the cloud task byte size vector and the computing resource vector, load cost vector and resource bandwidth vector of the virtual machine;
[0123] Task scheduling module: optimize the objective function of minimizing the total cost through the enhanced Puma optimization algorithm to obtain the optimal individual; then map the optimal individual to the binary scheduling matrix, obtain the task scheduling strategy through the scheduling matrix, and then perform task scheduling;
[0124] The binary scheduling matrix is represented as:
[0125]
[0126] Among them, matrix U is the scheduling matrix;
[0127] u i,j Indicates the i th The task is in the jth th It runs on computing resources and stipulates that each task can only be calculated on one virtual machine, that is, for each i∈[1,T], we get The first row of the scheduling matrix represents the first task, and its first row j th The column has a value of 1 (a row has at least one value 1); it means that the first task is in the jth th running on a computing resource.
[0128] The objective function of minimizing the total cost is:
[0129] Fun=min{ω1F1+ω2F2+ω3F3}(1)
[0130] In formula (1), ω1, ω2 and ω3 represent the weights of functions F1, F2 and F3, respectively, which are used to adjust the center of gravity of the objective function when optimizing different aspects;
[0131] F1 represents the time cost function;
[0132] F2 represents the load cost function;
[0133] F3 represents the resource bandwidth cost function;
[0134] The objective function of minimizing the total cost is optimized by the enhanced Cougar optimization algorithm to obtain the optimal individual, including:
[0135] S21. Initialize the original population using formula (5) to obtain the initialized original population Sol:
[0136] Sol i =lb+rand·(ub-lb)(5)
[0137] In formula (5), Sol i Represents the location information of the i-th individual in the population Sol;
[0138] ub represents the upper bound vector of the solution space;
[0139] lb represents the lower bound vector of the solution space;
[0140] rand means generating a random number between [0,1];
[0141] S22, initially Iter=1, by judging the relationship between Iter and 4, if Iter<4, then execute S23, otherwise jump to execute S28; wherein Iter represents the current number of iterations;
[0142] S23, updating individual positions through the exploration phase;
[0143] S24, updating individual positions through the development phase;
[0144] S25, Sol, Sol * and Sol ** Merge and take the first Nc individuals; where Sol represents the original population after initialization, Sol * represents the new population after the exploration phase, Sol ** represents the new population after being updated through the development phase;
[0145] S26. Calculate the population Sol * and Sol ** The optimal individual fitness and At the same time, Iter = Iter + 1;
[0146] S27, calculate the score of the exploration phase at the Iter iteration and development stage scores
[0147] S28. If Iter≤MaxIter, execute S29, otherwise execute step S33; wherein MaxIter represents the maximum number of iterations, and MaxIter≥4;
[0148] S29, updating the individual positions through the exploration phase, where the individuals here are the first Nc individuals in step S25;
[0149] S30, updating the individual positions through the development phase, where the individuals here are the first Nc individuals in step S25;
[0150] S31, yes and Make updates;
[0151] S32, Iter=Iter+1, return to S28;
[0152] S33, select the population Sol at the last iteration * The individual with the smallest objective function value is selected as the scheduling method.
[0153] Furthermore, the initialization of the population Sol also includes: updating the initialized population using a Sinusoidal chaotic map:
[0154]
[0155] In formula (30), α is the control parameter, and the initial α = 2.3;
[0156] sin represents the sine function;
[0157] Sol i Represents the i-th individual in the initialized original population Sol;
[0158] Represents the individual after being updated by the Sinusoidal chaotic map.
[0159] Furthermore, in the development stage, the individual positions are updated and an intermediate point sample learning strategy is introduced to improve the development stage, which is specifically the following formula:
[0160]
[0161] In formula (31), Sol midnew represents the new individuals updated in the development phase after the introduction of the intermediate point sample learning strategy;
[0162] Represents the new individual updated in the original development stage; the specific expression is formula (10) in step S241.
[0163] Sol mid represents the individual generated by the intermediate point sample learning strategy and is represented by the following formula:
[0164]
[0165] In formula (32), Temp represents the updated population Sol ** The population after being sorted in ascending order by its fitness value, R m Calculated by the following formula:
[0166]
[0167] In formula (33), i represents the i-th individual, represents the rounding function, and rand represents a random number between the interval [0,1].
[0168] Furthermore, the optimal individual is mapped to a binary scheduling matrix by using a random ST-shaped transfer function to convert the optimal individual into a binary matrix for task scheduling, which is specifically expressed as the following formula:
[0169]
[0170] In formula (34), abs represents the absolute value function, tan represents the tangent function, and Sol male Represents the optimal individual in the iterative process, Matrix new Represents the matrix after transformation by a random ST-shaped transfer function.
[0171] The present invention also proposes a computer device, wherein when the processor executes the program stored in the memory, a cloud task scheduling method based on the multi-strategy Cougar optimization algorithm is implemented.
[0172] The present invention also proposes a readable storage medium storing a program, which, when executed by a processor, implements a cloud task scheduling method based on a multi-strategy Cougar optimization algorithm.
[0173] In summary, due to the adoption of the above technical solutions, the task scheduling method proposed in the present invention obtains a scheduling strategy by introducing an advanced optimization algorithm, which significantly reduces the time cost of task scheduling. This optimization not only reduces the response time of the computer system, but also enhances the search range of the understanding space by adding an intermediate point sample learning strategy in the development stage, thereby improving the accuracy of the optimal solution. This method is particularly suitable for large-scale task scheduling problems, and can effectively improve the rationality of cloud computing task scheduling, maximize resource utilization, and effectively reduce resource waste and business performance degradation. At the same time, by optimizing the task execution process and resource allocation, this method can also improve hardware computing efficiency and hardware processing speed, thereby improving system performance as a whole.
[0174] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0175] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0176] Figure 1 It is a schematic diagram of the task scheduling process based on the enhanced Puma optimization algorithm SMRSTPO of the present invention.
[0177] Figure 2 This is a comparison chart of task scheduling based on the enhanced Puma optimization algorithm SMRSTPO and other optimization algorithms in the present invention. DETAILED DESCRIPTION
[0178] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.
[0179] With the rise of cloud computing, the scale of tasks has also continued to rise. Existing task scheduling methods often face the problem of falling into suboptimal task scheduling. The fundamental reason is that the algorithm's exploration and utilization performance is weak, and it is impossible to quickly and effectively find the optimal task scheduling method. The selected task scheduling method is inefficient, resulting in problems such as wasting resources when the system performs large-scale task scheduling.
[0180] In order to alleviate these problems, this paper proposes a cloud computing resource scheduling method SMRSTPO based on the enhanced Puma optimization algorithm. Figure 1 As shown, the specific steps include:
[0181] S1. Obtain the cloud task (Task) byte size vector and the computing resource vector, load cost vector and resource bandwidth vector of the virtual machine (VM); then establish the following objective function that minimizes the total cost;
[0182] S2, using the enhanced Puma optimization algorithm to optimize the objective function and obtain the optimal individual;
[0183] S3, mapping the optimal individual (optimal solution) obtained in S2 to a binary scheduling matrix, obtaining the task scheduling strategy through the scheduling matrix, and thus performing task scheduling;
[0184] The binary scheduling matrix is represented as:
[0185]
[0186] Among them, matrix U is the scheduling matrix;
[0187] u i,j Indicates the i th The task is in the jth th It runs on computing resources and stipulates that each task can only be calculated on one virtual machine, that is, for each i∈[1,T], we get The first row of the scheduling matrix represents the first task, and its first row j th The column has a value of 1 (a row has at least one value 1); it means that the first task is in the jth th computing resources; for example, the first row of the scheduling matrix U contains only u 1,2The value of is 1, indicating that the first task is assigned to the second computing resource to run; the second row of the scheduling matrix U has u 2,2 、u 2,5 The value of is 1, indicating that the second task is assigned to the second computing resource and the fifth computing resource. Therefore, the scheduling matrix U has u i,j The value can be used to know the specific task scheduling strategy, thereby realizing task scheduling.
[0188] Furthermore, the objective function of minimizing the total cost established in step S1 is as follows:
[0189] Fun=min{ω1F1+ω2F2+ω3F3}(1)
[0190] In formula (1), ω1, ω2 and ω3 represent the weights of functions F1, F2 and F3 respectively, which are used to adjust the center of gravity of the objective function when optimizing different aspects. F1 represents the time cost function, F2 represents the load cost function, and F3 represents the resource bandwidth cost function.
[0191] F1 represents the time cost function and is calculated as follows:
[0192]
[0193] In formula (2), T represents the number of tasks, K represents the number of computing resources (virtual machines), and u i,j Indicates the i th The task is in the jth th It is calculated on two virtual machines, and it is stipulated that each task can only be calculated on one virtual machine, that is, for each i∈[1,T], we get E n,j Indicates the jth th The computing resource vector of a virtual machine, E t,i Indicates the i th The computing resource vector required for each task, F2 represents the load cost function, and is calculated as follows:
[0194]
[0195] In formula (3), T represents the number of tasks, K represents the number of computing resources (virtual machines), and u i,j Indicates the i th The task is in the jth th It is calculated on two virtual machines, and it is stipulated that each task can only be calculated on one virtual machine, that is, for each i∈[1,T], we get S n,j Indicates the jth th The load vector of a virtual machine, S t,i Indicates the i thThe load vector required by each task, F3 represents the resource bandwidth cost function, and is calculated by the following formula:
[0196]
[0197] In formula (4), T represents the number of tasks, K represents the number of computing resources (virtual machines), and u i,j Indicates the i th The task is in the jth th It is calculated on two virtual machines, and it is stipulated that each task can only be calculated on one virtual machine, that is, for each i∈[1,T], we get E t,i Indicates the i th The computing resource vector required by the task, C n,j Indicates the jth th The resource bandwidth vector of a virtual machine, C t,i Indicates the i th The resource bandwidth vector required by each task is E n,j Indicates the jth th where P is the computing resource vector of a virtual machine and P is the parameter related to the price.
[0198] Furthermore, the S2 optimizes the cloud task scheduling method using the enhanced Puma optimization algorithm, and the specific steps of obtaining the optimal task scheduling strategy are:
[0199] S21. Initialize the original population using formula (5) to obtain the initialized original population Sol:
[0200] Sol i =lb+rand·(ub-lb)(5)
[0201] In formula (5), Sol i Represents the location information of the i-th individual in the population Sol;
[0202] ub represents the upper bound vector of the solution space;
[0203] lb represents the lower bound vector of the solution space;
[0204] rand means generating a random number between [0,1];
[0205] S22, initially Iter=1, by judging the relationship between Iter and 4, if Iter<4, then execute S23, otherwise jump to execute S28; wherein Iter represents the current number of iterations;
[0206] S23, updating individual positions through the exploration phase;
[0207] S24, updating individual positions through the development phase;
[0208] S25, Sol, Sol * and Sol ** Merge and take the first Nc individuals; where Sol represents the original population after initialization, Sol * represents the new population after the exploration phase, Sol ** represents the new population after being updated through the development phase;
[0209] S26. Calculate the population Sol * and Sol ** The optimal individual fitness and At the same time, Iter = Iter + 1;
[0210] S27, calculate the score of the exploration phase at the Iter iteration and development stage scores
[0211] S28. If Iter≤MaxIter, execute S29, otherwise execute step S33; wherein MaxIter represents the maximum number of iterations, and MaxIter≥4;
[0212] S29, updating the individual positions through the exploration phase, where the individuals here are the first Nc individuals in step S25;
[0213] S30, updating the individual positions through the development phase, where the individuals here are the first Nc individuals in step S25;
[0214] S31, yes and Make updates;
[0215] S32, Iter=Iter+1, return to S28;
[0216] S33, select the population Sol at the last iteration * The individual with the smallest objective function value is selected as the scheduling method.
[0217] Furthermore, the specific steps of S23 are:
[0218] S231, calculate the i-th th The jth individual th New position in dimensions:
[0219]
[0220] In formula (6), ub represents the upper bound vector of the solution space, lb represents the lower bound vector of the solution space, N is a random number, and N = 2·rand-1, rand is a random number between 0 and 1, Dim represents the dimension of the problem, Dif a,b Sol for two different random solutions a,N and Sol b,N The difference between a,N Sol b,N Specifically, two individuals are randomly drawn from the population Sol), and Gap1 is calculated by the following formula:
[0221] Gap1=Dif a,b -Dif c,d (7)
[0222] In formula (7), Dif c,d Indicates two different from Sol a,N or Sol b,N Two random different solutions Sol c,N and Sol d,N The difference between c,N Sol d,N Specifically, two individuals are randomly drawn from the population Sol), and Gap2 is given by the following formula:
[0223] Gap2=Dif c,d -Dif e,f (8)
[0224] In formula (8), Dif e,f For two different Sol a,N , Sol b,N , Sol c,N or Sol d,N Random Sol e,N With Sol f,N The difference between e,N Sol f,N Specifically, two individuals are randomly drawn from the population Sol); the new population Sol is obtained by the following formula: * , Sol * = {Sol inew}, Sol inew The solution formula is as follows:
[0225]
[0226] In formula (9), Sol inew Represents the new population Sol * The i-th th Individuals, Represents the new population Sol * The i th Individual j th The new position in the dimension, Sol i Represents the initial population i th Individuals, represents the newly generated i through formula (6) th The fitness value of each individual, Sol icost Represents the i of the original population Sol after initialization th The fitness value of an individual.
[0227] Furthermore, the specific steps of S24 are:
[0228] S241, calculate the i-th th The jth individual th New position in dimensions:
[0229]
[0230] In formula (10), Represents the new population Sol ** The i-th th Individuals, Sol inew Represents the population Sol * The i-th individual in Sol r1 and Sol r2 For the population Sol * There are two random different solutions, ε and L * is the parameter set before the optimization starts, δ represents a random number of 0 or 1, Sol male Represents the population Sol * The optimal individual in , exp represents the exponential function with e as the base, mean represents the average function, rand represents a random number between 0 and 1, Sol all Represents the population Sol * All individuals in, Nc represents the population Sol * The number of individuals in the problem, randn represents the random number that conforms to the normal distribution in the problem dimension, Sol nn Calculated by the following formula:
[0231] Sol nn =(Q1·P·Sol inew )+Q2·(1-P)·Sol male (11)
[0232] In formula (11), P is a random number, Sol inew Represents the population Sol *The i-th individual in Sol male Represents the population Sol * The optimal individual in , Q1 is calculated by the following formula:
[0233]
[0234] In formula (12), Iter represents the current number of iterations, MaxIter represents the total number of iterations, exp represents the exponential function with e as the base, randn represents the random number that conforms to the normal distribution in the problem dimension, and Q2 is calculated by the following formula:
[0235] Q2=randn·(randn) 2 ·cos((2·rand)·randn) (13)
[0236] In formula (13), cos represents the cosine function, randn represents a random number that conforms to the normal distribution in the problem dimension, and rand represents a random number between 0 and 1;
[0237] Furthermore, the specific steps of S25 are:
[0238] S251. Merge the three populations and take the first Nc individuals using the following formula:
[0239] Sol new =[Sol Sol * Sol ** ] (14)
[0240] In formula (14), Sol represents the original population after initialization, Sol * represents the new population after the exploration phase, Sol ** Represents the new population after the development phase, and then sorted by the following formula:
[0241] [~,index]=sort(Sol newcost ) (15)
[0242] In formula (15), [~, index] represents the new The representation after ascending sorting, sort represents the ascending function, Sol newcost Represents the population Sol new The fitness matrix of Sol newcost After sorting in ascending order, the new population is obtained by the following formula:
[0243] Sol new =Sol new (index(1:Nc)) (16)
[0244] In formula (16), index represents Sol newcost The subscripts after sorting in ascending order, Nc represents the number of populations; Sol new (index(1:Nc)) means taking the population Sol new The first Nc individuals;
[0245] Furthermore, the specific steps of S26 are:
[0246] S261, calculate the population Sol by the following formula * and Sol ** The best fitness individual and
[0247]
[0248] Formula (17), Represents the minimum function, Sol * .cost and Sol ** .cost represents the population Sol * and Sol ** The fitness vector, at the same time, Iter = Iter + 1;
[0249] Furthermore, the specific steps of S27 are:
[0250] S271, update the score of the exploration phase at the Iter iteration by the following formula and development stage scores
[0251]
[0252] In formula (18), PF1 and PF2 are the parameters set before optimization and are initially set to PF1 = PF2 = 0.5, f1 Exploration and f2 Exploration Calculated by the following formula:
[0253]
[0254] In formula (19), Gap time , Gap 1 time , Gap 2 time and Gap 3 time are four numbers with initial values of 1. PF1 and PF2 are the parameters set before optimization and are initially set to PF1 = PF2 = 0.5. and Calculated by the following formula:
[0255]
[0256] In formula (20), is the fitness value of the best individual in the initialized original population Sol, and Respectively represent the population Sol in the first three iterations * The optimal fitness value, f1 Exploitation and f2 Exploitation Calculated by the following formula:
[0257]
[0258] In formula (21), PF1 and PF2 are the parameters set before optimization and are initially set to PF1 = PF2 = 0.5, Gap time , Gap 1 time , Gap 2 time and Gap 3 time are four numbers with initial value 1, and Calculated by the following formula:
[0259]
[0260] In formula (22), and Respectively represent the population Sol in the first three iterations ** The optimal fitness value of It is the fitness value of the best individual in the initialized original population Sol;
[0261] Furthermore, the specific steps of S31 are:
[0262] S311, through the following formula and To update:
[0263]
[0264] In formula (23), and Respectively represent the Iter th The scores of the exploration and development phases during the iteration, and Calculated by the following formula:
[0265]
[0266] In formula (24), is the rounding symbol; and Iter th The scores of the exploration and development phases at the iteration, and Calculated by the following formula:
[0267]
[0268] In formula (25), Kc is calculated by the following formula:
[0269]
[0270] In formula (26), {|cost old -cost new |} exploit and {|cost old -cost new |} explore They are respectively expressed as the absolute value of the difference between the fitness value before and after the update in the development and exploration phases, and min represents the minimum value function. and Calculated by the following equation:
[0271]
[0272] In formula (27), and They represent the optimal fitness before and after the development phase update, respectively. and They represent the optimal fitness before the exploration phase and the optimal fitness after the exploration phase respectively. represents the number of times the individual is updated through formula (10), represents the number of individuals updated in the exploration phase selected by formula (9), PF1 is the parameter set before optimization and is initially set to PF1 = 0.5, and Calculated by the following formula:
[0273]
[0274] In formula (28), and They are Iter th The best fitness value of the current solution in the development phase and exploration phase before the update, and They are (Iter+1) th The fitness value of the best solution in the development phase and exploration phase, and They are (Iter+2) th The fitness value of the best solution in the development phase and exploration phase, and They are Iter th The best fitness value of the current solution in the development phase and exploration phase after the update, and They are (Iter+1) th The fitness value of the best solution in the development phase and exploration phase, and They are (Iter+2) th The fitness value of the best solution in the development phase and exploration phase after the first selection, It is the iterative process through the development phase Iter th Iterations to (Iter+1) th The number of iterations to select the individuals after the development phase update, It is the exploration phase in the iterative process. th Iterations to (Iter+1) th The number of iterations to select the individuals after the exploration phase update, It is the process of iterating through the development phase (Iter+1) th Iterations to (Iter+2) th The number of iterations to select the individuals after the development phase update, It is the exploration phase (Iter+1) in the iteration process th Iterations to (Iter+2) th The number of iterations to select the individuals after the exploration phase update, It is the iteration process through the development phase (Iter+2) th Iterations to (Iter+3) th The number of iterations to select the individuals after the development phase update, It is the exploration phase (Iter+2) in the iteration process th Iterations to (Iter+3) th The iteration selects the number of individuals updated after the exploration phase. PF2 is the parameter set before optimization and is initially set to PF2 = 0.5. and Calculated by the following formula:
[0275]
[0276] In formula (29), PF3 is the parameter set before optimization and is initially set to PF3 = 0.3;
[0277] Furthermore, the Sinusoidal chaotic map is introduced to update the initialized original population, which is expressed as the following formula:
[0278]
[0279] In formula (30), α is the control parameter, the initial α = 2.3, sin represents the sine function, Sol i represents the i-th individual in the initialized original population Sol, Represents the individual after updating through the Sinusoidal chaotic mapping;
[0280] By adding the Sinusoidal chaotic map initialization method to the algorithm, on the one hand, the diversity of the population is improved, thereby reducing the average total cost of all strategies in the initial task scheduling strategy. On the other hand, the search speed for the optimal solution is accelerated, thereby improving the efficiency of obtaining the task scheduling strategy.
[0281] Furthermore, the intermediate point sample learning strategy is introduced to improve the development stage, which is specifically the following formula:
[0282]
[0283] In formula (31), Represents the new individual updated in the original development stage, Sol mid represents the individual generated by the intermediate point sample learning strategy and is represented by the following formula:
[0284]
[0285] In formula (32), Temp represents the updated population Sol ** The population after being sorted in ascending order by its fitness value, R m Calculated by the following formula:
[0286]
[0287] In formula (33), i represents the i-th individual, represents the upward rounding function, and rand represents a random number between the interval [0,1];
[0288] Since the median is not affected by extreme values and can also judge the quality of a batch of data, the middle point carries relevant information about the optimal solution during the task scheduling process. By adding the middle point sample learning strategy during the algorithm development phase, the convergence speed of finding the optimal solution in the task scheduling process is accelerated, thereby reducing the response time of cloud computing task scheduling.
[0289] Furthermore, the optimal individual (optimal solution) is mapped to a binary scheduling matrix by using a random ST-shaped transfer function to convert the optimal individual into a binary matrix for task scheduling, which is specifically expressed as the following formula:
[0290]
[0291] In formula (34), abs represents the absolute value function, tan represents the tangent function, and Sol male Represents the optimal individual in the iterative process, Matrix new represents the matrix after transformation by random ST-shaped transfer function;
[0292] In addition to the binary scheduling matrix obtained by adopting the proposed random ST transfer function, general s-shaped transfer functions, t-shaped transfer functions, v-shaped transfer functions, etc. can also be used. However, a single or traditional transfer function will use a lot of conversion time, resulting in a waste of computing resources during task scheduling. Using a random ST-shaped transfer function, the time for converting the optimal solution into the optimal scheduling method during task scheduling can be reduced through the above steps, thereby reducing the response time of the computer system during scheduling.
[0293] The pseudo code of the SMRSTPO algorithm is as follows:
[0294]
[0295]
[0296] In order to further illustrate the technical effect of SMRSTPO, simulation experiments are conducted. We analyze the performance of the proposed SMRSTPO in solving the cloud resource scheduling problem and compare it with the ant colony optimization algorithm (ACO), particle swarm optimization algorithm (PSO), whale optimization algorithm (WOA), puma optimization algorithm (PO) and improved whale optimization algorithm (IWC). The description of the computing tasks and virtual machine parameters is shown in Table 1. Load cost, time cost (i.e., resource bandwidth cost), price cost and total cost are used as performance analysis indicators. The experimental conditions are set to a population size of 50 and a maximum number of iterations of 100.
[0297] We tested SMRSTPO's ability to handle task scheduling using 100 computing tasks. Figure 2 The simulation results are shown in Figure 2. Figure 2 It can be clearly seen in (a) that the total cost of SMRSTPO is reduced by more than 20% compared with PSO, WOA, and ACO, which shows that SMRSTPO has a strong optimization ability. In addition, compared with the powerful IWC, the total cost of SMRSTPO is also reduced by about 1%, which further shows that SMRSTPO has a more accurate solution. Figure 2 (b) It can be seen that SMRSTPO is always better than ACO, PSO, PO and WOA in terms of price cost, and after the 60th iteration, SMRSTPO is comparable to IWC in terms of price cost. Figure 2 (c) It can be seen that although SMRSTPO is slightly inferior to WOA in terms of time optimization, it also has stronger optimization performance compared with other algorithms. Figure 2 (d) It can be seen that in terms of load performance, SMRSTPO is much lower than ACO, PSO, WOA and PO, indicating that SMRSTPO has a stronger search ability.
[0298] Table 1. Virtual machine and computing task parameters
[0299] parameter Virtual Machine Scope Scope of Tasks Computational resource vector En [200,500] [10,50] Load cost vector Sn [100,500] [50,100] Resource bandwidth vector Cn [100,250] [20,50]
Claims
1. A cloud computing resource scheduling method based on enhanced Puma optimization algorithm, characterized in that: The following steps are involved: S1. Obtain the cloud task byte size vector and the computing resource vector, load cost vector, and resource bandwidth vector of the virtual machine, and then establish the following objective function that minimizes the total cost: Fun=min{ω1F1+ω2F2+ω3F3}(1) In formula (1), ω1, ω2 and ω3 represent the weights of functions F1, F2 and F3 respectively; F1 represents the time cost function; F2 represents the load cost function; F3 represents the resource bandwidth cost function; S2. Use the enhanced Puma optimization algorithm to optimize the objective function and obtain the optimal individual: S21. Initialize the original population using formula (5) to obtain the initialized original population Sol: Sol i =lb+rand·(ub-lb)(5) In formula (5), Sol i Represents the location information of the i-th individual in the population Sol; ub represents the upper bound vector of the solution space; lb represents the lower bound vector of the solution space; rand means generating a random number between [0,1]; S22, initially Iter=1, by judging the relationship between Iter and 4, if Iter<4, then execute S23, otherwise jump to execute S28; wherein Iter represents the current number of iterations; S23, updating individual positions through the exploration phase; S24, updating individual positions through the development phase; S25, Sol, Sol * and Sol ** Merge and take the first Nc individuals; where Sol represents the original population after initialization, Sol * represents the new population after the exploration phase, Sol ** represents the new population after being updated through the development phase; S26. Calculate the population Sol * and Sol ** The optimal individual fitness and At the same time, Iter = Iter + 1; S27, calculate the score of the exploration phase at the Iter iteration and development stage scores S28. If Iter≤MaxIter, execute S29, otherwise execute step S33; wherein MaxIter represents the maximum number of iterations, and MaxIter≥4; S29, update individual positions through the exploration phase; S30, updating individual positions through the development phase; S31, yes and Make updates; S32, Iter=Iter+1, return to S28; S33, select the population Sol at the last iteration * The individual with the smallest objective function value is used as the scheduling method; S3, mapping the optimal individual obtained in S2 to a binary scheduling matrix, obtaining the task scheduling strategy through the scheduling matrix, and thus performing task scheduling; The binary scheduling matrix is represented as: Among them, matrix U is the scheduling matrix; T and K are the number of rows and columns of matrix U respectively; u i,j Indicates the i th The task is in the jth th It runs on multiple computing resources and stipulates that each task can only be calculated on one virtual machine; The optimal individual is mapped to a binary scheduling matrix by using a random ST-shaped transfer function to convert the optimal individual into a binary matrix for task scheduling, which is specifically expressed as the following formula: In formula (34), abs represents the absolute value function, tan represents the tangent function, and Sol male Represents the optimal individual in the iterative process, Matrix new Represents the matrix after transformation by a random ST-shaped transfer function.
2. The cloud computing resource scheduling method based on the enhanced Puma optimization algorithm according to claim 1 is characterized in that: Initializing the original population further includes: updating the initialized population using a Sinusoidal chaotic map: In formula (30), α is the control parameter; sin represents the sine function; Sol i Represents the i-th individual in the initialized original population Sol; Represents the individual after being updated by the Sinusoidal chaotic map.
3. The cloud computing resource scheduling method based on the enhanced Puma optimization algorithm according to claim 1 is characterized in that: In the development stage, the individual positions are updated and the intermediate point sample learning strategy is introduced to improve the development stage, which is specifically the following formula: In formula (31), Sol midnew represents the new individuals updated in the development phase after the introduction of the intermediate point sample learning strategy; It represents the new individuals updated in the original development stage; Sol mid represents the individual generated by the intermediate point sample learning strategy and is represented by the following formula: In formula (32), Represents the updated population Sol ** The Rth population after being sorted in ascending order by its fitness value m Individuals, R m Calculated by the following formula: In formula (33), i represents the i-th individual, represents the rounding function, and rand represents a random number between the interval [0,1].
4. A cloud computing resource scheduling system based on enhanced Puma optimization algorithm, characterized in that: The system comprises: Data collection module: obtains the cloud task byte size vector and the computing resource vector, load cost vector and resource bandwidth vector of the virtual machine; Task scheduling module: optimize the objective function of minimizing the total cost through the enhanced Puma optimization algorithm to obtain the optimal individual; then map the optimal individual to the binary scheduling matrix, obtain the task scheduling strategy through the scheduling matrix, and then perform task scheduling; The binary scheduling matrix is represented as: Among them, matrix U is the scheduling matrix; T and K are the number of rows and columns of matrix U respectively; u i,j Indicates the i th The task is in the jth th It runs on computing resources and stipulates that each task can only be calculated on one virtual machine. The objective function of minimizing the total cost is: Fun=min{ω1F1+ω2F2+ω3F3}(1) In formula (1), ω1, ω2 and ω3 represent the weights of functions F1, F2 and F3 respectively; F1 represents the time cost function; F2 represents the load cost function; F3 represents the resource bandwidth cost function; The objective function of minimizing the total cost is optimized by the enhanced Cougar optimization algorithm to obtain the optimal individual, including: S21. Initialize the original population using formula (5) to obtain the initialized original population Sol: Sol i =lb+rand·(ub-lb)(5) In formula (5), Sol i Represents the position information of the i-th individual in the population Sol, ub represents the upper bound vector of the solution space, lb represents the lower bound vector of the solution space, and rand represents the generation of a random number between [0,1]; S22, initially Iter=1, by judging the relationship between Iter and 4, if Iter<4, then execute S23, otherwise jump to execute S28; wherein Iter represents the current number of iterations; S23, updating individual positions through the exploration phase; S24, updating individual positions through the development phase; S25, Sol, Sol * and Sol ** Merge and take the first Nc individuals, where Sol represents the original population after initialization, Sol * represents the new population after the exploration phase, Sol ** represents the new population after being updated through the development phase; S26. Calculate the population Sol * and Sol ** The optimal individual fitness and At the same time, Iter = Iter + 1; S27, calculate the score of the exploration phase at the Iter iteration and development stage scores S28. If Iter≤MaxIter, execute S29, otherwise execute step S33; wherein MaxIter represents the maximum number of iterations, and MaxIter≥4; S29, update individual positions through the exploration phase; S30, updating individual positions through the development phase; S31, yes and Make updates; S32, Iter=Iter+1, return to S28; S33, select the population Sol at the last iteration * The individual with the smallest objective function value is used as the scheduling method; The optimal individual is mapped to a binary scheduling matrix by using a random ST-shaped transfer function to convert the optimal individual into a binary matrix for task scheduling, which is specifically expressed as the following formula: In formula (34), abs represents the absolute value function, tan represents the tangent function, and Sol male Represents the optimal individual in the iterative process, Matrix new Represents the matrix after transformation by a random ST-shaped transfer function.
5. The cloud computing resource scheduling system based on the enhanced Puma optimization algorithm according to claim 4 is characterized in that: Initializing the original population further includes: updating the initialized population using a Sinusoidal chaotic map: In formula (30), α is the control parameter; sin represents the sine function; Sol i Represents the i-th individual in the initialized original population Sol; Sol i new Represents the individual after being updated by the Sinusoidal chaotic map.
6. The cloud computing resource scheduling system based on the enhanced Puma optimization algorithm according to claim 4, characterized in that: In the development stage, the individual positions are updated and the intermediate point sample learning strategy is introduced to improve the development stage, which is specifically the following formula: In formula (31), It represents the new individuals updated in the original development stage; Sol mid represents the individual generated by the intermediate point sample learning strategy and is represented by the following formula: In formula (32), Temp represents the updated population Sol ** The population after being sorted in ascending order by its fitness value, R m Calculated by the following formula: In formula (33), i represents the i-th individual, represents the rounding function, and rand represents a random number between the interval [0,1].
7. A computer device comprising a processor and a memory for storing a program executable by the processor, characterized in that: When the processor executes the program stored in the memory, the method of claim 1 is implemented.
8. A readable storage medium storing a program, characterized in that: When the program is executed by a processor, the method according to claim 1 is implemented.
Citation Information
Patent Citations
Super-heuristic task scheduling method and system based on reinforcement learning in cloud environment
CN113448687A
Resource scheduling method and device, computer equipment and computer readable storage medium
CN116954815A
Cloud resource scheduling method based on enhanced growth optimizer
CN118210603A
Method, system and product to implement deterministic on-boarding and scheduling of virtualized workloads for edge computing
US20200296155A1
