CN114358234B - Resource scheduling method of cloud platform based on improved bat algorithm - Google Patents

Resource scheduling method of cloud platform based on improved bat algorithm Download PDF

Info

Publication number
CN114358234B
CN114358234B CN202111544885.8A CN202111544885A CN114358234B CN 114358234 B CN114358234 B CN 114358234B CN 202111544885 A CN202111544885 A CN 202111544885A CN 114358234 B CN114358234 B CN 114358234B
Authority
CN
China
Prior art keywords
bat
algorithm
pulse
optimal solution
task
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111544885.8A
Other languages
Chinese (zh)
Other versions
CN114358234A (en
Inventor
贺小伟
祁巨擘
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NORTHWEST UNIVERSITY
Original Assignee
NORTHWEST UNIVERSITY
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NORTHWEST UNIVERSITY filed Critical NORTHWEST UNIVERSITY
Priority to CN202111544885.8A priority Critical patent/CN114358234B/en
Publication of CN114358234A publication Critical patent/CN114358234A/en
Application granted granted Critical
Publication of CN114358234B publication Critical patent/CN114358234B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Complex Calculations (AREA)

Abstract

A resource scheduling method of a cloud platform based on an improved bat algorithm includes the steps of S1, receiving tasks submitted by users, dividing each task into sub-tasks, generating bat populations for each sub-task, wherein the scale of each sub-task is approximately equal; s2, initializing the position, speed, pulse search frequency and pulse search frequency range of each bat in the bat population generated in the step one; s3, improving a bat algorithm, and solving the bat population initialized in the step two by using the improved bat algorithm; and S4, obtaining a global optimal solution, and carrying out resource scheduling of the cloud platform according to the optimal solution. The speed is updated by an inertia weight method based on a logarithmic decrement strategy, and in order to enable the algorithm not to fall into a local optimal solution too early, the searching performance of the algorithm is improved, the diversity of the population is increased by adding random disturbance to update the current optimal solution, and therefore the random searching capability of the bat algorithm is furthest mined.

Description

Resource scheduling method of cloud platform based on improved bat algorithm
Technical Field
The invention relates to the field of cloud platform resource scheduling, in particular to a resource scheduling method of a cloud platform based on an improved bat algorithm.
Background
In recent years, as the scale of cloud computing is gradually enlarged, more and more high-performance computing and big data application depend on the cloud computing, so how to find an efficient and reasonable computing resource scheduling model and a method thereof are important in a cloud environment.
Aiming at the scheduling problem of cloud platform resources, a plurality of students have conducted corresponding researches on the cloud platform resources, a large number of cloud computing resource scheduling algorithms based on intelligent optimization are provided, and the bat algorithm is one of the cloud computing resource scheduling algorithms. The bat algorithm is a heuristic bionic group intelligent algorithm proposed by the Yang professor 2010, and the algorithm finds the optimal solution of the problem by simulating the behavior of the bat for foraging by a small insect through an echo positioning system, has the advantages of less parameters, strong stability, high solving speed, strong searching capability and the like, but the bat algorithm still has the problems of low later convergence speed, low convergence precision and the like.
Disclosure of Invention
In order to overcome the problems, the invention aims to provide a resource scheduling method of a cloud platform based on an improved bat algorithm, which updates the speed based on an inertia weight method of a number decreasing strategy, improves the searching performance of the algorithm in order to prevent the algorithm from falling into a local optimal solution prematurely, and increases the diversity of a population by adding random disturbance to update the current optimal solution, thereby mining the random searching capability of the bat algorithm to the maximum extent.
In order to achieve the above purpose, the technical scheme adopted by the invention is as follows:
the resource scheduling method of the cloud platform based on the improved bat algorithm is characterized by comprising the following steps of:
s1, receiving tasks submitted by users, dividing each task into sub-tasks, wherein the scale of each sub-task is approximately equal, generating bat population for each sub-task, assuming that the number of the tasks is n, the number of computing resources is m, dividing each task into a plurality of smaller sub-tasks according to a certain rule, and dividing the tasks into the total number of the sub-tasks which is larger than the total number of the computing resources, wherein the coding sub-task formula is as follows:
wherein: s [ i, j ] represents the j-th subtask number in the i-th task. sn (k) (k=0, 1,2,.,. N) represents the number of h-th tasks divided into smaller sub-tasks, and sn (0) =0 is specified;
s2, initializing the position, speed, pulse search frequency and pulse search frequency range of each bat in the bat population generated in the first step, and assuming that the search space is d-dimensional, the position of the ith bat at the t-th iteration isSpeed is +.>Pulse search frequency f i . Each bat is randomly assigned an initial position within the search spaceAnd an initial speed +.>Pulse search frequency f i =f min +(f max -f min ) Beta, pulse search frequency range [ f min ,f max ]。
Wherein: f (f) min For searching the minimum value of the frequency of the pulse, f max For maximum pulse search frequency, β is in interval [0,1 ]]Random numbers uniformly distributed on the base;
s3, improving a bat algorithm, solving the bat population initialized in the second step by using the improved bat algorithm, updating the speed by adding an inertia weight method of a logarithmic decrement strategy, wherein the inertia weight ensures the randomness of each bat speed, and the bat population is distributed in the whole solution space in the initial stage of the algorithm, so that the capability of jumping out of local extremum is enhanced. Later in the algorithm, the speed of the individual bats drops to perform finer searches, thereby improving the performance of the algorithm. Meanwhile, the diversity of the population is increased by adding random disturbance to update the current optimal solution, so that the random searching capability of the bat algorithm is furthest mined, and the speed and position updating formula is as follows:
ω=ω max -α(ω maxmin )log MaxIter t+τ*betarnd()
wherein ω is an inertial factor, x best For the current optimal position, alpha is a logarithmic control factor, maxIter is the maximum iteration number, tau is an inertial deviation factor, and tau epsilon [0.1,0.9 ]]Betarnd () is generated following beta distributionA random number;
and S4, obtaining a global optimal solution, carrying out resource scheduling specific positions of the cloud platform according to the optimal solution, and carrying out resource scheduling of the cloud platform according to the partitioning rule corresponding to the step one after obtaining the optimal solution.
For local search, in order to prevent the algorithm from being sunk into a local optimal solution prematurely, the searching performance of the algorithm is improved, the current optimal solution is updated by adding random disturbance, the diversity of the population is increased, and therefore the random searching capability of the bat algorithm is furthest mined.
x new =x old +σ∈tA t
Wherein x is new Representing the position of the bat after disturbance, x old Representing the position of the bat before disturbance, e t obeys a gaussian normal distribution N (0, 1), σ is a scaling factor;
pulse loudness A i And pulse frequency R i To update continuously with the iterative process, in general, when the optimal solution is continuously approached, the loudness will gradually decrease, the pulse frequency will gradually increase, and the following is an updated formula of pulse loudness and pulse frequency:
wherein θ and γ are constants, and θ is 0< 1, γ >0;
in the bat algorithm, the pulse frequency increase coefficient gamma and the pulse loudness attenuation coefficient theta have important influence on the algorithm performance. The current space state of the bat subject is changed in such a way as to generate a bat in the interval 0,1]Random number R, if R > R i The i-th bat current new solution is generated by the vicinity of the optimal solution in the current space; if not, then the i-th bat's current new solution is generated from its vicinity.
The beneficial effects of the invention are as follows: the invention can obviously improve the convergence speed and optimizing precision of the original bat algorithm.
Drawings
Fig. 1 is a schematic diagram of an improved bat algorithm provided by an embodiment of the present invention.
Description of the preferred embodiments 2
The invention is further described below with reference to the accompanying drawings.
As shown in fig. 1, a resource scheduling method of a cloud platform based on an improved bat algorithm is characterized by comprising the following steps:
s1, receiving tasks submitted by users, dividing each task into sub-tasks, wherein the scale of each sub-task is approximately equal, generating bat population for each sub-task, assuming that the number of the tasks is n, the number of computing resources is m, dividing each task into a plurality of smaller sub-tasks according to a certain rule, and dividing the tasks into the total number of the sub-tasks which is larger than the total number of the computing resources, wherein the coding sub-task formula is as follows:
wherein: s [ i, j ] represents the j-th subtask number in the i-th task. sn (k) (k=0, 1,2,.,. N) represents the number of h-th tasks divided into smaller sub-tasks, and sn (0) =0 is specified;
s2, initializing the position, speed, pulse search frequency and pulse search frequency range of each bat in the bat population generated in the first step, and assuming that the search space is d-dimensional, the position of the ith bat at the t-th iteration isSpeed is +.>Pulse search frequency f i . Each bat is randomly assigned an initial position within the search spaceAnd an initial speed +.>Pulse search frequency f i =f min +(f max -f min ) Beta, pulse search frequency range [ f min ,f max ]。
Wherein: f (f) min For searching the minimum value of the frequency of the pulse, f max For maximum pulse search frequency, β is in interval [0,1 ]]Random numbers uniformly distributed on the base;
s3, improving a bat algorithm, solving the bat population initialized in the second step by using the improved bat algorithm, updating the speed by adding an inertia weight method of a logarithmic decrement strategy, wherein the inertia weight ensures the randomness of each bat speed, and the bat population is distributed in the whole solution space in the initial stage of the algorithm, so that the capability of jumping out of local extremum is enhanced. Later in the algorithm, the speed of the individual bats drops to perform finer searches, thereby improving the performance of the algorithm. Meanwhile, the diversity of the population is increased by adding random disturbance to update the current optimal solution, so that the random searching capability of the bat algorithm is furthest mined, and the speed and position updating formula is as follows:
ω=ω max -α(ω maxmin )log MaxIter t+τ*betarnd()
wherein ω is an inertial factor, x best For the current optimal position, alpha is a logarithmic control factor, maxIter is the maximum iteration number, tau is an inertial deviation factor, and tau epsilon [0.1,0.9 ]]Betarnd () is a random number generated following the beta distribution;
and S4, obtaining a global optimal solution, carrying out resource scheduling specific positions of the cloud platform according to the optimal solution, and carrying out resource scheduling of the cloud platform according to the partitioning rule corresponding to the step one after obtaining the optimal solution.
For local search, in order to prevent the algorithm from being sunk into a local optimal solution prematurely, the searching performance of the algorithm is improved, the current optimal solution is updated by adding random disturbance, the diversity of the population is increased, and therefore the random searching capability of the bat algorithm is furthest mined.
x new =x old +σ∈tA t
Wherein x is new Representing the position of the bat after disturbance, x old Representing the position of the bat before disturbance, e t obeys a gaussian normal distribution N (0, 1), σ is a scaling factor;
pulse loudness A i And pulse frequency R i To update continuously with the iterative process, in general, when the optimal solution is continuously approached, the loudness will gradually decrease, the pulse frequency will gradually increase, and the following is an updated formula of pulse loudness and pulse frequency:
wherein θ and γ are constants, and θ is 0< 1, γ >0;
in the bat algorithm, the pulse frequency increase coefficient gamma and the pulse loudness attenuation coefficient theta have important influence on the algorithm performance. The current space state of the bat subject is changed in such a way as to generate a bat in the interval 0,1]Random number R, if R > R i The i-th bat current new solution is generated by the vicinity of the optimal solution in the current space; if not, then the i-th bat's current new solution is generated from its vicinity.

Claims (2)

1. The resource scheduling method of the cloud platform based on the improved bat algorithm is characterized by comprising the following steps of:
s1, receiving tasks submitted by users, dividing each task into sub-tasks, wherein the scale of each sub-task is approximately equal, generating bat population for each sub-task, assuming that the number of the tasks is n, the number of computing resources is m, dividing each task into a plurality of smaller sub-tasks according to a certain rule, and dividing the tasks into the total number of the sub-tasks which is larger than the total number of the computing resources, wherein the coding sub-task formula is as follows:
where s [ h, j ] represents the j-th subtask number in the h-th task, sn (k) (k=0, 1,2, …, n) represents the number of subtasks into which the h-th task is divided, and sn (0) =0 is specified;
s2, initializing the position, the speed, the pulse search frequency and the pulse search frequency range of each bat in the bat population generated in the step S1, and assuming that the search space is d-dimensional, the position of the ith bat at the t-th iteration isSpeed is +.>Pulse search frequency f i Each bat is randomly assigned an initial position within the scope of the search spaceAnd an initial speed +.>Pulse search frequency f i =f min +(f max -f min ) Beta, pulse search frequency range [ f min ,f max ];
Wherein: f (f) min For searching the minimum value of the frequency of the pulse, f max For maximum pulse search frequency, β is in interval [0,1 ]]Random numbers uniformly distributed on the base;
s3, improving a bat algorithm, solving the bat population initialized in the second step by using the improved bat algorithm, updating the speed by adding an inertia weight method of a logarithmic decreasing strategy, wherein the inertia weight ensures the randomness of each bat speed, the bat population is distributed in the whole solution space in the initial stage of the algorithm, the capability of jumping out of a local extremum is enhanced, the speed of a bat individual is reduced in the later stage of the algorithm so as to perform more careful searching, thereby improving the performance of the algorithm, and meanwhile, the diversity of the population is increased by adding random disturbance to update the current optimal solution, so that the random searching capability of the bat algorithm is furthest mined, and the speed and position updating formula is as follows:
ω=ω max -α(ω maxmin )log MaxIter t+τ*betarnd()
wherein ω is an inertial factor, x best For the current optimal position, alpha is a logarithmic control factor, maxIter is the maximum iteration number, tau is an inertial deviation factor, and tau epsilon [0.1,0.9 ]]Betarnd () is a random number generated following the beta distribution;
and S4, obtaining a global optimal solution, carrying out resource scheduling specific positions of the cloud platform according to the optimal solution, and carrying out resource scheduling of the cloud platform according to the partitioning rule corresponding to the step S1 after obtaining the optimal solution.
2. The resource scheduling method of a cloud platform based on an improved bat algorithm according to claim 1, wherein for local search, in order to prevent the algorithm from sinking into a local optimal solution prematurely, the search performance of the algorithm is improved, the diversity of the population is increased by adding random disturbance to update the current optimal solution, thereby maximally exploiting the random search capability of the bat algorithm;
x new =x old +σεtA t
wherein x is new Representing the position of the bat after disturbance, x old Representing the position of the bat before disturbance, e t obeys a gaussian normal distribution N (0, 1), σ is a scaling factor;
pulse loudness A i And pulse frequency R i To update continuously with the iterative process, in general, when the optimal solution is continuously approached, the loudness will gradually decrease, the pulse frequency will gradually increase, and the following is an updated formula of pulse loudness and pulse frequency:
wherein θ and γ are constants, and 0< θ <1, γ >0;
in the bat algorithm, the pulse frequency increasing coefficient gamma and the pulse loudness attenuating coefficient theta have important influence on the algorithm performance; the current space state of the bat subject is changed in such a way as to generate a bat in the interval 0,1]Random number r, if r>R i The i-th bat current new solution is generated by the vicinity of the optimal solution in the current space; if not, then the i-th bat's current new solution is generated from its vicinity.
CN202111544885.8A 2021-12-16 2021-12-16 Resource scheduling method of cloud platform based on improved bat algorithm Active CN114358234B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111544885.8A CN114358234B (en) 2021-12-16 2021-12-16 Resource scheduling method of cloud platform based on improved bat algorithm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111544885.8A CN114358234B (en) 2021-12-16 2021-12-16 Resource scheduling method of cloud platform based on improved bat algorithm

Publications (2)

Publication Number Publication Date
CN114358234A CN114358234A (en) 2022-04-15
CN114358234B true CN114358234B (en) 2023-12-01

Family

ID=81100280

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111544885.8A Active CN114358234B (en) 2021-12-16 2021-12-16 Resource scheduling method of cloud platform based on improved bat algorithm

Country Status (1)

Country Link
CN (1) CN114358234B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106203614A (en) * 2016-07-22 2016-12-07 吉林大学 KP model densities Function identification method based on self adaptation Vespertilio searching algorithm
CN107886157A (en) * 2017-10-30 2018-04-06 中国地质大学(武汉) A kind of new bat optimized algorithm system
CN107886158A (en) * 2017-10-30 2018-04-06 中国地质大学(武汉) A kind of bat optimized algorithm based on Iterated Local Search and Stochastic inertia weight
CN111027665A (en) * 2019-12-02 2020-04-17 浙江工业大学 Cloud manufacturing scheduling method based on improved chaotic bat swarm algorithm
WO2021068350A1 (en) * 2019-10-12 2021-04-15 平安科技(深圳)有限公司 Resource-constrained project scheduling method and apparatus, and computer device and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8116527B2 (en) * 2009-10-07 2012-02-14 The United States Of America As Represented By The Secretary Of The Army Using video-based imagery for automated detection, tracking, and counting of moving objects, in particular those objects having image characteristics similar to background
CN107578178B (en) * 2017-09-11 2018-08-28 合肥工业大学 Based on the dispatching method and system for becoming neighborhood search and gravitation search hybrid algorithm

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106203614A (en) * 2016-07-22 2016-12-07 吉林大学 KP model densities Function identification method based on self adaptation Vespertilio searching algorithm
CN107886157A (en) * 2017-10-30 2018-04-06 中国地质大学(武汉) A kind of new bat optimized algorithm system
CN107886158A (en) * 2017-10-30 2018-04-06 中国地质大学(武汉) A kind of bat optimized algorithm based on Iterated Local Search and Stochastic inertia weight
WO2021068350A1 (en) * 2019-10-12 2021-04-15 平安科技(深圳)有限公司 Resource-constrained project scheduling method and apparatus, and computer device and storage medium
CN111027665A (en) * 2019-12-02 2020-04-17 浙江工业大学 Cloud manufacturing scheduling method based on improved chaotic bat swarm algorithm

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Na Lin 等.A Novel Improved Bat Algorithm in UAV Path Planning.CMC.2019,第323-344页. *
吕赵明 等.改进的新型蝙蝠算法.计算机技术与发展.2018,第69-73+78页. *
张佳丹 等.基于改进蝙蝠算法的梯级水库发电优化调度.人民黄河.2020,第57-61页. *

Also Published As

Publication number Publication date
CN114358234A (en) 2022-04-15

Similar Documents

Publication Publication Date Title
CN113222096B (en) Improved particle swarm algorithm for cloud computing task scheduling
CN108694077B (en) Distributed system task scheduling method based on improved binary system bat algorithm
Örkcü et al. Estimating the parameters of 3-p Weibull distribution using particle swarm optimization: A comprehensive experimental comparison
CN113627871B (en) Workflow scheduling method, system and storage medium based on multi-target particle swarm algorithm
CN111310885A (en) Chaotic space cattle herd search algorithm introducing variation strategy
Cao et al. A PSO-based cost-sensitive neural network for imbalanced data classification
CN109872009A (en) A kind of interference increment method method for improving particle swarm algorithm
CN110599068A (en) Cloud resource scheduling method based on particle swarm optimization algorithm
CN111159489B (en) Searching method
CN109451012A (en) A kind of end cloud collaboration load equilibration scheduling method, system and storage medium
CN113485826A (en) Load balancing method and system for edge server
CN110262879B (en) Monte Carlo tree searching method based on balanced exploration and utilization
CN112286686A (en) Edge calculation task scheduling algorithm based on PSO optimization
CN114358234B (en) Resource scheduling method of cloud platform based on improved bat algorithm
CN111027665A (en) Cloud manufacturing scheduling method based on improved chaotic bat swarm algorithm
CN109034372B (en) Neural network pruning method based on probability
CN111488208B (en) Bian Yun collaborative computing node scheduling optimization method based on variable-step-size bat algorithm
Nkwanyana et al. Improved particle swarm optimization base on the combination of linear decreasing and chaotic inertia weights
CN110889531A (en) Wind power prediction method and prediction system based on improved GSA-BP neural network
Li et al. IPSOMC: An improved particle swarm optimization and membrane computing based algorithm for cloud computing
CN114625493B (en) Kubernetes cluster resource scheduling method based on improved longhorn beetle whisker intelligent method
CN113051856B (en) Optimization method for integrated circuit design data
CN115511052A (en) Neural network searching method, device, equipment and storage medium
Fan Cloud computing task scheduling based on improved bird swarm algorithm
CN114662638A (en) Mobile robot path planning method based on improved artificial bee colony algorithm

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant