Next Article in Journal
REVIO: Range- and Event-Based Visual-Inertial Odometry for Bio-Inspired Sensors
Next Article in Special Issue
Serval Optimization Algorithm: A New Bio-Inspired Approach for Solving Optimization Problems
Previous Article in Journal
Soft Gripper with Electro-Thermally Driven Artificial Fingers Made of Tri-Layer Polymers and a Dry Adhesive Surface
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Load Balancing Based on Firefly and Ant Colony Optimization Algorithms for Parallel Computing

1
School of E-Commerce and Logistics, Beijing Technology and Business University, Beijing 100048, China
2
School of Computer Science and Engineering, Beijing Technology and Business University, Beijing 100048, China
*
Author to whom correspondence should be addressed.
Biomimetics 2022, 7(4), 168; https://doi.org/10.3390/biomimetics7040168
Submission received: 4 September 2022 / Revised: 9 October 2022 / Accepted: 13 October 2022 / Published: 17 October 2022
(This article belongs to the Special Issue Bio-Inspired Design and Optimisation of Engineering Systems)

Abstract

:
With the wide application of computational fluid dynamics in various fields and the continuous growth of the complexity of the problem and the scale of the computational grid, large-scale parallel computing came into being and became an indispensable means to solve this problem. In the numerical simulation of multi-block grids, the mapping strategy from grid block to processor is an important factor affecting the efficiency of load balancing and communication overhead. The multi-level graph partitioning algorithm is an important algorithm that introduces graph network dynamic programming to solve the load-balancing problem. This paper proposed a firefly-ant compound optimization (FaCO) algorithm for the weighted fusion of two optimization rules of the firefly and ant colony algorithm. For the graph, results after multi-level graph partitioning are transformed into a traveling salesman problem (TSP). This algorithm is used to optimize the load distribution of the solution, and finally, the rough graph segmentation is projected to obtain the most original segmentation optimization results. Although firefly algorithm (FA) and ant colony optimization (ACO), as swarm intelligence algorithms, are widely used to solve TSP problems, for the problems for which swarm intelligence algorithms easily fall into local optimization and low search accuracy, the improvement of the FaCO algorithm adjusts the weight of iterative location selection and updates the location. Experimental results on publicly available datasets such as the Oliver30 dataset and the eil51 dataset demonstrated the effectiveness of the FaCO algorithm. It is also significantly better than the commonly used firefly algorithm and other algorithms in terms of the search results and efficiency and achieves better results in optimizing the load-balancing problem of parallel computing.

1. Introduction

Computational fluid dynamics (CFD) [1] is a discipline that solves and analyzes fluid dynamics problems through computer and numerical simulation methods. In the process of CFD numerical simulations, the complexity of the problem is gradually increasing, the accuracy of the numerical simulation is becoming more and more demanding, and the network size is continuously expanding. In the process of numerical simulations, the computational area is discretized into multiple grid blocks of different sizes, and these blocks are assigned to different processors for parallel computation. Therefore, how to make the load task of each processor reasonably balanced is the main problem to be solved, and it is also an important technology to improve the processing efficiency. As the scale of computation increases, the impact of the communication overhead of the processors is also gradually increasing on the parallel processing efficiency. The mismatch between the number of grid blocks and the number of processes, as well as the mismatch between the computational capacity of grid blocks and the computational capacity of processes, makes the traditional partitioning or combination strategies unable to meet the demand of load balancing well [2]. Therefore, the research on algorithms for large-scale load balancing is crucial.
At present, load-balancing algorithms for CFD parallel computing are being gradually and extensively researched in the world. For example, the load-balancing algorithm of greedy method and the recursive pairwise edge splitting load-balancing algorithm proposed by Streng [3] and Ytterström [4] are classical load-balancing algorithms based on a geometric level. In addition, Hendrickson et al. [5] proposed a multi-level algorithm for partitioning graphs, which is a method of mapping to a refined graph by coarsening the graph dissection. In recent years, heuristic algorithms have also been increasingly used in the research of load-balancing algorithms. Most of them are swarm intelligence algorithms that imitate natural bodies, such as firefly algorithm, ant colony algorithm, and bee colony algorithm. They are applied to solve various optimization scheduling problems and are widely used in industry [6], network transmission [7], biology [8] and cloud computing [9]. Among them, the combination of neural networks and other algorithms has achieved considerable research success in image capture and retrieval [10,11,12,13]. With the development of parallel computing, the improvement and optimization of heuristic algorithms to solve the load-balancing problem of parallel computing have also achieved considerable results. For example, Kernighan et al. [14] proposed a heuristic algorithm for graph segmentation. The hybrid load-balancing algorithm proposed by Yang Chengfu et al. [15] and the ant colony optimization based MrLBA algorithm proposed by Arfa Muteeh [16] are typical methods of heuristic algorithms applied to load balancing. However, swarm intelligence algorithms generally easily fall into local optimum, and the optimization effect is uneven. This paper uses the multi-level graph segmentation algorithm of a structural grid to obtain a network coarsening graph and proposes a FaCO algorithm based on the firefly and ant colony algorithm to subdivide the coarsening graph. Based on the fusion of the two in the optimization rule, a new optimization rule is established to adjust the position update, which avoids falling into the local optimal situation to a certain extent.
In this paper, we take TSP public datasets such as Oliver30 and eil51 to conduct experiments, and the results demonstrate that the FaCO algorithm is significantly better than the commonly used firefly algorithm in terms of finding the optimal results. The number of iterations is reduced, and the efficiency of finding the optimal results is higher with the same number of iterations. In addition, the optimal solution is obtained with the same number of iterations, and the algorithm does not fall into local optimum, which solves the problem that the firefly algorithm frequently falls into local optimum to a certain extent and thus optimizes the load-balancing problem in parallel computing.
The rest of this paper is organized as follows. Section 2 presents the related work, followed by Section 3, which presents the background and problem statement. Then, Section 4 presents the methods and models, the proposed method is described in Section 5, experiments and analysis are presented in Section 6, and finally conclusions and future work are drawn in Section 7 and Section 8, respectively.

2. Related Work

In order to solve the time and cost problems of large-scale computation, parallel computing decomposes complex problems into several parts with certain regularity and assigns each part to a separate processor for simultaneous computation of multiple instructions. It not only reduces the time cost but also improves the overall computational performance. With the development of CFD numerical simulation research, the scale of computation is increasing, and parallel computing becomes an effective method to solve this problem.
With the wide application of CFD numerical simulations, such as point cloud sampling [17], multi-view image retrieval [18], etc., the research on load-balancing algorithms for CFD parallel computing can be basically divided into two main categories: geometry-based and graph-based [3,4,5]. However, with the development of research on heuristic algorithms, there is a great potential for their application to solve load-balancing problems. We mainly focus on the improvement of heuristic algorithms and their graph-based optimization applications to load-balancing problems for parallel computing.
Kannan et al. proposed a multi-objective load-balancing method using a bio-inspired algorithm [19]. It solves the pre-convergence problem by a micro-genetic algorithm and proposed a stable method of combining cat swarm optimization for process load distribution (MG-CSO). Better results are obtained on the time cost problem of load balancing for cloud computing.
The hybrid discrete artificial bee colony algorithm (ABC) proposed by Junqing Li and Yunqi Han investigated and solved the task scheduling problem in cloud computing systems [20]. It designs an improved scout bee using different local search methods to obtain the best food source or waste solution that can improve the convergence of the proposed algorithm.
Ahmad M. Manasrah et al. proposed a hybrid algorithm based on genetic algorithm (GA) and particle swarm optimization (PSO) to solve the multitask scheduling problem [21]. In the field of multitask scheduling, this algorithm converges to the optimal solution much faster and with higher quality.
The firefly load-balancing algorithm was proposed by Manisha et al. It reduces the computational cycles and the degree of load imbalance while exhibiting better working performance [22]. Both the genetic ant colony algorithm proposed by Cheng Cheng et al. [23] and the ACO focusing algorithm proposed by Skinderowicz Rafał [24] improved the ant colony algorithm to a new level and obtained better computational performance. Tang Bo et al. proposed the idea of applying genetic algorithms to the mapping process of grid blocks and processors and then performing intelligent allocation [2], but genetic algorithms have more space for optimization than other algorithms.
In the optimization process of a series of heuristic algorithms, although they also solve the load-balancing problem to a certain extent, they have the limitation of a single mechanism of finding the best and the tendency to fall into the local optimum. In this paper, the proposed FaCO algorithm based on the fusion of firefly algorithm and ant colony algorithm with merit-seeking mechanism is free from the constraints of a single mechanism. Additionally, the previous heuristic algorithm is introduced to fuse the allocation mapping process of parallel computing, and the innovative FaCO algorithm is applied to solve the simple tsp graph structure after multi-level graph dissection. The load-balancing problem of massively parallel computing is solved with the goal of optimal allocation.

3. Background and Problem Statement

3.1. Background

3.1.1. Parallel Computing

Parallel computing is proposed in contrast to traditional serial computing, which works simultaneously like a parallel circuit. When a problem (e.g., numerical simulation) is decomposed into a series of discrete parts that can be executed concurrently, each part can also be decomposed into a series of discrete instructions, and the discrete instructions of each part can be executed simultaneously on different processors. This can greatly reduce computation time and increase computational efficiency.
Parallel computing is a subdivision of high-performance computing, which decomposes complex problems into several parts with a certain pattern and assigns each part to a separate processor for simultaneous computation of multiple instructions. It is used to solve large-scale computational problems and to improve the speed and performance optimization of computation. The basic evaluation metrics for parallel computing are execution time, workload, and communication overhead. With the development of CFD numerical simulation research, its computational scale is increasing, and parallel computing becomes an effective method to solve this problem. However, there are certain problems in large-scale parallel computing: each processor has a certain load limit, and if the allocated computational units exceed or are far less than the load of the processor, then it will cause the problem of unprocessable or wasted resources. How to allocate computation units to processors in a reasonable and efficient way and minimize the communication overhead between processors is the main content of the load-balancing problem.

3.1.2. Gragh and Bioinspired Algorithms

A graph consists of an infinite nonempty set of vertices and a set of edges between the vertices, usually denoted as: G = (V, E). V is the set of vertices and E is the set of edges. When the edges between two vertices have no direction, then it is called an undirected graph. We mainly study simple undirected graphs in this paper.
Inspired by various natural phenomena and various behaviors of biological populations, humans have proposed new methods to solve many complex optimization problems, such as the firefly algorithm, which simulates the light-attracting motion of fireflies, and the ant colony algorithm, which finds the shortest path from the food source to the ant nest when foraging. These optimization methods inspired by biological behavior are collectively known as bio-inspired algorithms. Bionic computing is the computer modeling of this biological systems to solve various problems using the characteristics of biological populations. The TSP problem is a typical application area of bionic algorithms.

3.2. Problem Statement

Therefore, we will proceed with the following problem statement based on the background of Section 3.1.
During the numerical simulation, we consider the processors as the vertices of the graph and the edge weights of each vertex as the communication overhead between processors. Since there is no static order and direction of communication between processors, the parallel computation of processors is abstracted into an undirected graph structure. The parallel computation of processors is abstracted into a graph structure, but the graph is still very complex and large. Using a multilevel graph dissection algorithm to coarsen the complex original graph into a structurally simple graph [25], to achieve load balancing of the graph, it is necessary to minimize the sum of edge weights through each vertex, which is the TSP problem.
For the solution of the TSP problem of the coarsened simple graph, we innovatively proposed an optimal combination of the optimization mechanism by the firefly and ant colony algorithm to map the optimized result graph back to the original graph, that is, to solve the load-balancing problem of parallel computing. Although there have been many improvements and optimizations of heuristic algorithms before this, they are all based on the improvement of a single merit-seeking mechanism and have certain limitations. The FaCO algorithm proposed in this paper not only breaks away from the limitations of the single search mechanism but also provides significant improvements in the search results and efficiency. We also innovatively proposed to combine the improved algorithm with the multilevel graph dissection algorithm, which simplifies and abstracts the complex parallel computation problem into a simple graph, maintaining the global search capability of the heuristic algorithm and also reducing the spatial search breadth. Additionally, the mapping strategy of the graph dissection algorithm ensures the influence of the resulting search results on the initial complex problem.

4. Methods and Models

In this process, the related multi-level graph dissection algorithm, firefly algorithm and ant colony algorithm are highlighted in this paper.

4.1. Multi-Level Algorithm for Partitioning Graphs

The multi-level algorithm for partitioning graphs is divided into three steps, coarsening, dissecting the coarse graph, and coarse graph projection. The coarsening process is to divide the original graph G 0 = ( V 0 , E 0 ) into subgraphs, with each subgraph as a vertex of the coarsened graph and according to a certain mapping strategy:
f i = V i V i + 1
Roughening occurs here according to the compression ratio:
V i V i + 1 = ρ , ρ > 1
The coarsening process is shown in Figure 1.
The overhead of both the multilevel graph dissection construction coarsening graph and the local refinement algorithm is proportional to the number of edges in the graph. In the coarsest granularity graphs, moving nodes in different profiles correspond to moving a series of nodes simultaneously in the original graph. Therefore, when traversing this series of graphs at different granularities, better improvements can be continuously made to the final profile [26].

4.2. Firefly Algorithm

The firefly algorithm is a bionic firefly population search algorithm, which takes advantage of the feature that the strong fireflies attract the weak fireflies [27]. In the process of moving the weak fireflies to the strong fireflies, the iteration of positions is completed so as to find the optimal position, that is, to complete the process of finding the optimum. After coarsening to get the coarsest graph, the need to ensure that the shortest distance between the connection of points (communication overhead is minimal) and adjacent path points can be assigned to the same processor. Solving this NP problem is the advantage of the firefly algorithm. The flow chart is shown in Figure 2.
Due to the special nature of the firefly algorithm’s ability to solve the TSP problem, we consider the spatial location of each firefly as a set of solutions. Initially, we randomize m firefly locations and generate the two-dimensional locations of n points according to their edge weights G = (V, E) after obtaining the graph dissection results, which are converted into the TSP problem. Suppose the vertex number is N o = 1 , 2 , , n ; then each firefly represents an arbitrary arrangement of n vertices, i.e., R o u t e = r 1 , r 2 , , r n , and r i represents the i-th city of the route.
Suppose R = r 1 , r 2 , , r n is a set of solutions of the firefly, so the length of the path is:
R i = i = 1 n 1 D r i r i + 1 + D r n r 1
Let the objective function be:
f ( i ) = R i
The smaller the value of the objective function is, the shorter the path length is. The absolute brightness is directly determined by the value of the objective function, which represents the degree of superiority of the solution; then, the absolute brightness formula can be set as:
I ( i ) = 1 f ( i ) 2
That is, the shorter the distance length, the greater the absolute brightness value of the firefly.
r i j = r j 1 r i 1 2 + r j 2 r i 2 2 + r j 3 r i 3 2 + + r j n r i n 2
When the position update requirement is reached, the next moving firefly position value is assigned to the current firefly.
Although the firefly algorithm is widely used in the TSP problem, there are still problems, such as the ease of falling into the local optimum, which leads to a poor search effect. Therefore, we introduce the rules of ant colony algorithm on the basis of firefly algorithm, so that the rules of the two are weighted together, which integrates the advantages of the two search rules and makes them more reasonable and can avoid falling into local optimum to some extent.

4.3. Ant Colony Optimization

The basic idea of the ant colony optimization for solving optimization problems is that the paths of ants represent the feasible solutions of the problem to be optimized, and all the paths of the whole ant colony constitute the solution space of the problem to be optimized [28]. The ants with shorter paths release more pheromones, and as time progresses, the concentration of pheromones accumulated on the shorter paths gradually increases, and the number of ants choosing that path also increases. Eventually, all ants will concentrate on the best path under the effect of positive feedback, which corresponds to the optimal solution of the problem to be optimized. The flow chart of the algorithm is shown in Figure 3.
The probabilistic search formula for the ant colony is delineated below.
The probability of ant k visiting node j from node at moment t can be written as follows:
P i j k = τ i j α ( t ) 1 / r i j s u n v i s i t k τ i j α ( t ) 1 / r i j j unvisit k 0 other
where r i j is the distance between i and j at time t, and τ i j α ( t ) is the pheromone concentration from i to j at time t. u n v i s i t k is the set of nodes that have not been visited yet.
The positive feedback mechanism of the ant colony algorithm makes the search process converge continuously and eventually approach the optimal solution. Each individual can change the surrounding environment by releasing pheromones, and each individual can sense the real-time changes of the surrounding environment [29]. The individuals communicate with each other indirectly through the environment. The probabilistic search method of ant colony algorithm does not easily fall into local optimum and instead experiences ease in finding the global optimal solution. It also has other advantages, which makes it an effective heuristic algorithm to solve CFD problems. Therefore, the integration of the pheromone probabilistic iteration rules of the ACO with the firefly algorithm is proved to be a better improvement than the firefly algorithm alone to solve the load-balancing algorithm for massively parallel computation.

5. Proposed Method

5.1. The FaCO Principle

Although the firefly algorithm and ant colony algorithm are applied to solve the NP problem with significant results, both still have certain defects [30]. Due to the need for too many parameters, which must be set in advance, and the ease of falling into the local optimum, the wide search area and high-dimensional optimization problems have a very weak attractiveness and have difficulty influencing the phenomenon of location updates. Therefore, this paper will contain two algorithms in the location update given the corresponding weight according to the weight calculated after the results of the location update, so that the integrated update results from the two algorithms for optimization. Thus the update efficiency becomes faster, but this also avoids the single algorithm update method leading to local optimum. In this paper, the weights are adjusted according to a BP neural network [31], and the final result error is made smaller by the gradient descent method. Then, the most suitable weights are obtained according to the results.
The main principles are as follows.
When the graph dissection result G = (V, E) forms the initial n location nodes, we initialize the population location according to the firefly algorithm and initialize the firefly related parameters: firefly size m, firefly location graph G′ = (V′, E′), absolute brightness I 0 , maximum attractiveness β 0 , and light absorption coefficient γ .
At the same time, the number of firefly populations and their initial positions are used as the number and positions of the new TSP cities, i.e., for the ant colony, the firefly populations form m initial position nodes for the newly generated G′ = (V′, E′) and initialize each parameter of the ant colony: colony size p, pheromone constant Q, pheromone factor α , heuristic function factor β ′, and pheromone volatility factor ρ .
For the i-th firefly, i.e., the i-th city of the colony, we calculate the probability of each point according to the current pheromone of the colony using roulette wheel selection (see Equation (7)) and select the point with the highest probability as the alternative point k i for the next city to be selected in the current situation while judging the highest brightness point within the decision radius in the firefly algorithm as the alternative point j i for the next location to be migrated.
The relative brightness of fireflies can be calculated as follows:
I = I 0 e γ r
We give k i , j i weights as W 1 and W 2 , respectively, and obtain the weighted index value g i :
g i = W 1 k i + W 2 j i
The index of the closest point u i to g i in the remaining firefly index is selected as the next location migration point for the i-th firefly.
u i = min r i u = X u X q q = 1 , 2 , , i 1 , i + 1 , , m
The position of the i-th element at moment t is X i ( t ) ; then, the actual updated position of the firefly at moment t + 1 after anthroposophic weighting of the i-th element is:
X i ( t + 1 ) = X u ( t )
The initial parameters of the FaCO algorithm are set as in Table 1.

5.2. Algorithm Flow

In this section we focus on the algorithmic logic and flow of the FaCO algorithm.

5.2.1. Algorithm Logic Diagram

The logic diagram of the FaCO algorithm is shown in Figure 4. It mainly shows the logical rules of FaCO algorithm, which is the logical basis for the fusion of Firefly and Ant Colony algorithm mechanisms.

5.2.2. Algorithm Pseudocode

The pseudocode of the FaCO algorithm is shown in Algorithm 1. Firstly all parameters are input for initialization definition and the objective function optimal value is output after a conditional loop.
Algorithm 1 FaCO algorithm.
Input: m, I 0 , β 0 , γ , p, Q, α , β ′, ρ , Max           ▹ Initialization parameters
Output: global extreme value points and optimal individual values
1:
n = 1                           ▹ Number of iterations
2:
while n < Max do      ▹ Executes within the maximum number of iterations
3:
  Calculate the relative brightness I of fireflies and initialize the ant colony pheromone matrix
4:
  for i = 1 , 2 , , m do
5:
   for j = 1 , 2 , , m do
6:
    Calculate the probability of selecting the remaining points when the ant colony departs from point i. Select the departure alternative with the highest probability k i , and update the next city selection for ant i as k i
7:
    if I i < I j then
8:
     Calculate the distance nearest point u after weighting k i and j.
9:
     Update the position of firefly i to u and recalculate the firefly brightness. Update the ant colony pheromone matrix and path parameters.
10:
    end if
11:
   end for
12:
  end for
13:
  n = n + 1
14:
end while

5.2.3. Algorithm Flow Chart

The flow chart of FaCO algorithm is shown in Figure 5. The mechanism of position updating is fused at each step within the maximum number of iterations until the optimal objective function value is output.

6. Experiment and Analysis

6.1. Parameter Setting

For the setting parameters in the algorithm, we based our decisions on the previous research on firefly and ant colony parameter setting (since we use the dataset Oliver30 as an example, the default number of cities is 30). We take the default conventional value for the parameters that have little effect on the result, and we determine its reference range and conduct experiments to determine the final parameter value for the parameters that have greater effects on the result. The parameters m, γ are set as follows. m is generally set to be between 1 and 1.5 times the number of cities to achieve better results, and γ is taken as a random number from 0 to 1 [32,33]. The parameters related to the ant colony are set as follows. The heuristic factor α , the pheromone volatility factor ρ and the expectation factor β are analyzed; when the city size is less than 100, p = [ 0.85 n , 1.20 n ] can obtain better results. The overall performance of the algorithm is better when α = [0.5, 0.9] in the case of n equal to 30. The best results are obtained when β = 2, 3, 4, 5. The best results are obtained when ρ = [0.4, 0.7] [34]. Therefore, we conducted the experiment with that result as the initial range.
In order to qualitatively evaluate our parameters [35], we use the control variables method to control the other parameters as constants so that α , β , ρ , and γ vary in the given range, respectively, and obtain the objective function results as shown in Figure 6, Figure 7, Figure 8 and Figure 9. From the above figures, we can parameterize that the algorithm has the best search results when α = 0.5, β = 2, ρ = 0.69, and γ = 0.4.

6.2. Experiment Analysis

The improved FaCO algorithm incorporates the pheromone roulette selection of the ant colony algorithm into the brightness-dependent selection mechanism of fireflies, adds the selection of new population probabilistic merit on the basis of individual population meritocracy, and improves the merit-seeking efficiency of the algorithm on the basis of ensuring the merit-seeking rule of fireflies.
The FaCO algorithm proposed in this paper is analyzed experimentally and comparatively to verify the effectiveness of the algorithm (as shown in Table 2). It was shown experimentally that better results were achieved on the three data sets compared to the firefly algorithm itself as well as the particle swarm algorithm and the genetic algorithm. Moreover, compared with the firefly algorithm itself, the situation of falling into local optimum is avoided in the process of finding the optimum.
In this paper, we take the TSP public dataset Oliver30 as an example and obtain the objective function results as follows.
The results in Figure 10 and Figure 11 show that, in the same case, the firefly algorithm falls into the local optimum problem when it reaches about one hundred iterations, and the result remains flat at about 952. Although the FaCO algorithm, with the same number of iterations, has reached about 952 when it reaches about one hundred iterations, it does not fall into the local optimum solution but jumps out to continue the search until it reaches about 902. The FaCO algorithm is better than the firefly algorithm in terms of both the efficiency of the search and the solution to the local optimum and the search result; therefore, it is an effective and efficient improvement algorithm.

7. Conclusions

We use a multi-level graph dissection algorithm to coarsen the original complex graph structure into a simple graph structure TSP problem with a certain mapping strategy by converting the load-balancing problem of parallel computing into a graph network assignment problem. An innovative proposal is made of an improved FaCO algorithm with a weighted fusion of the iterative mechanism of the firefly algorithm and ant colony algorithm, which gets rid of the limitation of the single merit-seeking mechanism of the previous heuristic algorithm and combines the advantages of both for optimization improvement. TSP public data set Oliver30, eil51, etc. are used as experimental data, and the parameter range selection experiments and results confirm that the FaCO algorithm is significantly better than the firefly algorithm and particle swarm algorithm in terms of optimization results in this paper. The number of iterations of the FaCO algorithm is also less than that of the firefly algorithm when obtaining the same results. It maintains the global search capability of the heuristic algorithm and also reduces the spatial search breadth. Additionally, the mapping strategy of the graph dissection algorithm ensures the influence of the obtained search results on the initial complex problem.

8. Future Work

In this paper, we proposed the incorporation of fireflies in heuristic algorithms into ant colony algorithms and proposed weighted combination on the search rules to improve the search efficiency. The main focus is on the load-balancing problem after the multi-level graph dissection algorithm coarsens the complex graphs into simple graphs after task assignment without optimizing the performance of the graph dissection itself. In addition, the computation time of FaCO itself proposed in this paper increases as the computation scale increases. Therefore, it is also of great significance to pay more attention to the spatio-temporal dimension of the search path [36] and to optimize the computational performance of the algorithm itself and the load-balancing problem of parallel computation of the graph dissection process.
The following aspects can be optimized in the next step: (1) we can optimize and innovate the mapping strategy of the multilevel graph dissection algorithm to make it more suitable with the coarsened assignment results and improve the computational accuracy; (2) we can continue to study the parallelism mechanism of other heuristic algorithms so that they can better maintain the breadth of the search space while having a greater possibility of obtaining better results.

Author Contributions

Conceptualization, Y.L. and J.L.; methodology, J.L.; software, Y.L. and J.L.; validation, Y.L., J.L. and Y.S.; formal analysis, Y.L. and J.L.; investigation, Y.L., J.L. and Y.S.; resources, J.L.; data curation, Y.L.; writing—original draft preparation, J.L.; writing—review and editing, Y.L. and J.L.; visualization, Y.L. and H.L.; supervision, Y.L., J.L., H.L. and Y.S.; funding acquisition, Y.L. and H.L. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Key R & D Plan of National Science and Technology Program Application Center grant number 2019YFC1605306, the Beijing Natural Science Foundation and Fengtai Rail Transit Frontier Research Joint Fund grant number L191009, the Scientific Research Program of Beijing Municipal Education Commission grant number KZ202110011017, and the National Natural Science Foundation of China grant number 61877002.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The code used during the running and testing of the algorithm is available in the file “FAACO_source” in the author’s GitHub repository https://github.com/DissertationResources/FAACO_source.git (accessed on 15 August 2022).

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Kusmayadi, A.; Suyono, E.A.; Nagarajan, D.; Chang, J.S.; Yen, H.W. Application of computational fluid dynamics (CFD) on the raceway design for the cultivation of microalgae: A review. J. Ind. Microbiol. Biotechnol. 2020, 47, 373–382. [Google Scholar] [CrossRef] [PubMed]
  2. Tang, B.; Wang, Y. A novel task load balancing algorithm in the large-scale CFD with multi-zone structured grids. Comput. Eng. Sci. 2014, 36, 1213–1220. [Google Scholar]
  3. Streng, M. Load Balancing for Computational Fluid Dynamics Calculations; Springer: Dordrecht, The Netherlands, 1996. [Google Scholar]
  4. Ytterström, A. A Tool for Partitioning Structured Multiblock Meshes for Parallel Computational Mechanics. Int. J. High Perform. Comput. Appl. 1997, 11, 336–343. [Google Scholar] [CrossRef]
  5. Hendrickson, B.A.; Leland, R.W. A Multi-Level Algorithm for Partitioning Graphs. Comput. Eng. Sci. 2014, 36, 1213–1220. [Google Scholar]
  6. Oh, B.S.; Cho, J.; Choi, B.; Choi, H.W.; Kim, M.S.; Lee, G. Application of heuristic algorithms for design optimization of industrial heat pump. Int. J. Refrig. 2022, 134, 1–15. [Google Scholar] [CrossRef]
  7. Castillon, L.F.; Bedriñana, M.F. Transmission Network Reconfiguration in Restoration Process Based on Constructive Heuristic Algorithms. J. Control Autom. Electr. Syst. 2022, 33, 929–938. [Google Scholar] [CrossRef]
  8. Spirov, A.V.; Myasnikova, E.M. Heuristic algorithms in evolutionary computation and modular organization of biological macromolecules: Applications to in vitro evolution. PLoS ONE 2022, 17, e0260497. [Google Scholar] [CrossRef]
  9. Zuo, L.; Shu, L.; Dong, S.; Zhu, C.; Hara, T. A multi-objective optimization scheduling method based on the ant colony algorithm in cloud computing. IEEE Access 2015, 3, 2687–2699. [Google Scholar] [CrossRef] [Green Version]
  10. Li, H.; Zhao, T.; Li, N.; Cai, Q.; Du, J. Feature Matching of Multi-view 3D Models Based on Hash Binary Encoding. Neural Netw. World 2017, 27, 95–105. [Google Scholar] [CrossRef]
  11. Li, H.; Liu, X.; Lai, L.; Cai, Q.; Du, J. An Area Weighted Surface Sampling Method for 3D Model Retrieval. Chin. J. Electron. 2014, 23, 484–488. [Google Scholar]
  12. Li, H.; Zheng, Y.; Wu, X.; Cai, Q. 3D Model Generation and Reconstruction Using Conditional Generative Adversarial Network. Int. J. Comput. Intell. Syst. 2019, 12, 697–705. [Google Scholar] [CrossRef] [Green Version]
  13. Li, H.; Sun, L.; Dong, S.; Zhu, X.; Cai, Q.; Du, J. Efficient 3D Object Retrieval Based on Compact Views and Hamming Embedding. IEEE Access 2018, 6, 31854–31861. [Google Scholar] [CrossRef]
  14. Kernighan, B.W.; Lin, S. An efficient heuristic procedure for partitioning graphs. Bell Syst. Tech. J. 1970, 49, 291–307. [Google Scholar] [CrossRef]
  15. Hou, X.; Yang, C.; Liu, D. Hybrid load balancing algorithm based on osmotic artificial bee colony and ant colony optimization. Appl. Res. Comput. 2021, 38, 440–443. [Google Scholar]
  16. Muteeh, A.; Sardaraz, M.; Tahir, M. MrLBA: Multi-resource load balancing algorithm for cloud computing using ant colony optimization. Cluster Compu. 2021, 24, 3135–3145. [Google Scholar] [CrossRef]
  17. Zeng, G.; Li, H.; Wang, X.; Li, N. Point cloud up-sampling network with multi-level spatial local feature aggregation. Comput. Electr. Eng. 2021, 94, 107337. [Google Scholar] [CrossRef]
  18. Li, H.; Zeng, G.; Cao, J.; Cai, Q. Multi-view-based siamese convolutional neural network for 3D object retrieval. Comput. Electr. Eng. 2019, 78, 11–21. [Google Scholar] [CrossRef]
  19. Kannan, K.S.; Sunitha, G.; Deepa, S.N.; Babu, D.V.; Avanija, J. A multi-objective load balancing and power minimization in cloud using bio-inspired algorithms. Comput. Electr. Eng. 2022, 102, 108225. [Google Scholar] [CrossRef]
  20. Li, J.; Han, Y. A hybrid multi-objective artificial bee colony algorithm for flexible task scheduling problems in cloud computing system. Cluster Comput. 2020, 23, 2483–2499. [Google Scholar] [CrossRef]
  21. Manasrah, A.M.; Hanan, B.A. Workflow Scheduling Using Hybrid GA-PSO Algorithm in Cloud Computing. Wirel. Commun. Mob. Comput. 2018, 2018, 1934784. [Google Scholar] [CrossRef] [Green Version]
  22. Tapale, M.T.; Goudar, R.H.; Birje, M.N.; Patil, R.S. Utility based load balancing using firefly algorithm in cloud. J. Data Inf. Manag. 2022, 2, 215–224. [Google Scholar] [CrossRef] [Green Version]
  23. Cheng, C.; Xu, Y.; Daniels, G. Efficient Management and Application of Human Resources Based on Genetic Ant Colony Algorithm. J. Sens. 2022, 2022, 9903319. [Google Scholar] [CrossRef]
  24. Skinderowicz, R. Improving Ant Colony Optimization efficiency for solving large TSP instances. Appl. Soft Comput. 2022, 120, 108653. [Google Scholar] [CrossRef]
  25. Ma, T.; Gao, S.; Chen, C.; Song, X. Multitarget Tracking Algorithm Based on Adaptive Network Graph Segmentation in the Presence of Measurement Origin Uncertainty. Sensors 2018, 18, 3791. [Google Scholar] [CrossRef]
  26. Zeng, S. Research of Multilevel Hypergraph Partitioning Algorithms and Its Application in Large-scale Parallel CFD Computations. Natl. Univ. Def. Technol. 2013, 17, e0260497. [Google Scholar]
  27. Wang, X.; Ren, H.; Guo, X. A novel discrete firefly algorithm for Bayesian network structure learning. Knowl.-Based Syst. 2022, 242, 108426. [Google Scholar] [CrossRef]
  28. Yang, L.; Wang, Y.; Zhang, J. Parameter Analysis and Simulation Experiment of Ant Colony Optimization on Small-scale TSP Problem. IOP Conf. Ser. Mater. Sci. Eng. 2020, 768, 072095. [Google Scholar] [CrossRef]
  29. Renu, J.; Ramesh, K. Modified Ant System Solving TSP Problem. Int. J. Innov. Technol. Explor. Eng. (IJITEE) 2019, 8, 328–331. [Google Scholar]
  30. Hima Bindu, G.B.; Ramani, K.; Shoba Bindu, C. Optimized Resource Scheduling using the Meta Heuristic Algorithm in Cloud Computing. IAENG Int. J. Comput. Sci. 2020, 47, 360–366. [Google Scholar]
  31. Liu, Z.; Du, G.; Zhou, S.; Lu, H.; Ji, H. Analysis of Internet Financial Risks Based on Deep Learning and BP Neural Network. Comput. Econ. 2022, 59, 1481–1499. [Google Scholar] [CrossRef]
  32. Zhuo, H.; Chen, Q. Firefly algorithm parameter analysis and optimization. Inf. Technol. Netw. Secur. 2019, 38, 60–66. [Google Scholar]
  33. Li, Y. Study of Firefly algorithm parameters. Logist. Eng. Manag. 2015, 37, 195–197. [Google Scholar]
  34. Xiang, Y. Study of parameter setting in ant colony algorithm–TSP as an example. Mod. Inf. Technol. 2020, 4, 95–98, 102. [Google Scholar]
  35. Li, H.; Wei, Y.; Huang, Y.; Cai, Q.; Du, J. Visual analytics of cellular signaling data. Multimed. Tools Appl. 2019, 78, 29447–29461. [Google Scholar] [CrossRef]
  36. Zheng, Y.; Zeng, G.; Li, H.; Cai, Q.; Du, J. Colorful 3D Reconstruction at High Resolution Using Multi-View Representation. J. Vis. Commun. Image Represent. 2022, 85, 103486. [Google Scholar] [CrossRef]
Figure 1. The coarsening process.
Figure 1. The coarsening process.
Biomimetics 07 00168 g001
Figure 2. The flow chart of the firefly algorithm.
Figure 2. The flow chart of the firefly algorithm.
Biomimetics 07 00168 g002
Figure 3. The flow chart of the ant colony optimization algorithm.
Figure 3. The flow chart of the ant colony optimization algorithm.
Biomimetics 07 00168 g003
Figure 4. Logic diagram of the FaCO algorithm.
Figure 4. Logic diagram of the FaCO algorithm.
Biomimetics 07 00168 g004
Figure 5. The flow chart of the FaCO.
Figure 5. The flow chart of the FaCO.
Biomimetics 07 00168 g005
Figure 6. Experimental results for parameter α .
Figure 6. Experimental results for parameter α .
Biomimetics 07 00168 g006
Figure 7. Experimental results for parameter β .
Figure 7. Experimental results for parameter β .
Biomimetics 07 00168 g007
Figure 8. Experimental results for parameter ρ .
Figure 8. Experimental results for parameter ρ .
Biomimetics 07 00168 g008
Figure 9. Experimental results for parameter γ .
Figure 9. Experimental results for parameter γ .
Biomimetics 07 00168 g009
Figure 10. Firefly distance iteration chart.
Figure 10. Firefly distance iteration chart.
Biomimetics 07 00168 g010
Figure 11. FaCO distance iteration chart.
Figure 11. FaCO distance iteration chart.
Biomimetics 07 00168 g011
Table 1. The initial parameters of the FaCO algorithm.
Table 1. The initial parameters of the FaCO algorithm.
Name of ParameterMeaning of ParametersRemarksExperimental Values
mFirefly population size1.5 times the number of cities60
I 0 Absolute brightness of firefliesObjective function value correlation; the better the value of the objective function, the higher the brightness of their ownDetermined by the initial position of the firefly
β 0 The maximum attractiveness of firefliesThe maximum attractiveness of fireflies when r = 0 Generally set to 1
γ Firefly light absorption coefficient 0.4
pColony population size1.5 times the number of cities60
QColony pheromone constantUsually takes the value of [10, 1000]20
α Colony pheromone factorRange usually: [0.5, 1]0.5
β Ant colony heuristic function factorRange of values: [0, 5]2
ρ Ant colony pheromone volatility factorRange of values usually: [0.4, 0.7]0.69
MaxMaximum number of iterations 1000
rDistance between two points
W 1 Ant colony position update weight 0.35
W 2 Firefly position update weight 0.65
Table 2. Results of objective functions using the three datasets for the above-mentioned bioinspired algorithms.
Table 2. Results of objective functions using the three datasets for the above-mentioned bioinspired algorithms.
TSP Arithmetic ExampleFirefly Algorithm ResultsFaCO Algorithm ResultsParticle Swarm Algorithm ResultsGenetic Algorithm
Burma1444.12930.878532.730.847
Oliver30956.26864.37897.4906.57
eil511436.788807.175823.6842.1
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Li, Y.; Li, J.; Sun, Y.; Li, H. Load Balancing Based on Firefly and Ant Colony Optimization Algorithms for Parallel Computing. Biomimetics 2022, 7, 168. https://doi.org/10.3390/biomimetics7040168

AMA Style

Li Y, Li J, Sun Y, Li H. Load Balancing Based on Firefly and Ant Colony Optimization Algorithms for Parallel Computing. Biomimetics. 2022; 7(4):168. https://doi.org/10.3390/biomimetics7040168

Chicago/Turabian Style

Li, Yong, Jinxing Li, Yu Sun, and Haisheng Li. 2022. "Load Balancing Based on Firefly and Ant Colony Optimization Algorithms for Parallel Computing" Biomimetics 7, no. 4: 168. https://doi.org/10.3390/biomimetics7040168

APA Style

Li, Y., Li, J., Sun, Y., & Li, H. (2022). Load Balancing Based on Firefly and Ant Colony Optimization Algorithms for Parallel Computing. Biomimetics, 7(4), 168. https://doi.org/10.3390/biomimetics7040168

Article Metrics

Back to TopTop