Next Article in Journal
Investigation of Special Type-Π Smarandache Ruled Surfaces Due to Rotation Minimizing Darboux Frame in E3
Previous Article in Journal
Existence and Uniqueness of Solutions of Hammerstein-Type Functional Integral Equations
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Fog Computing Task Scheduling of Smart Community Based on Hybrid Ant Lion Optimizer

Henan Institute of Science and Technology, Xinxiang 453000, China
*
Author to whom correspondence should be addressed.
Symmetry 2023, 15(12), 2206; https://doi.org/10.3390/sym15122206
Submission received: 11 October 2023 / Revised: 30 November 2023 / Accepted: 15 December 2023 / Published: 17 December 2023

Abstract

:
Due to the problem of large latency and energy consumption of fog computing in smart community applications, the fog computing task-scheduling method based on Hybrid Ant Lion Optimizer (HALO) is proposed in this paper. This method is based on the Ant Lion Optimizer (ALO. Firstly, chaotic mapping is adopted to initialize the population, and the quality of the initial population is improved; secondly, the Adaptive Random Wandering (ARW) method is designed to improve the solution efficiency; finally, the improved Dynamic Opposite Learning Crossover (DOLC) strategy is embedded in the generation-hopping stage of the ALO to enrich the diversity of the population and improve the optimization-seeking ability of ALO. HALO is used to optimize the scheduling scheme of fog computing tasks. The simulation experiments are conducted under different data task volumes, compared with several other task scheduling algorithms such as the original algorithm of ALO, Genetic Algorithm (GA), Whale Optimizer Algorithm (WOA) and Salp Swarm Algorithm (SSA). HALO has good initial population quality, fast convergence speed, and high optimization-seeking accuracy. The scheduling scheme obtained by the proposed method in this paper can effectively reduce the latency of the system and reduce the energy consumption of the system.

1. Introduction

In recent years, the rapid development of the Internet of Things (IoT) has promoted the development of smart cities [1]. The smart community is one of the key elements as a basic component to realize a smart city. The IoT devices involved in smart communities are located at the edge of the Internet and are of diverse types. The number and the amount of data of IoT devices are growing exponentially year by year [2]. Therefore, the transmission latency and energy consumption in the cloud computing of a smart community has been highlighted directly. The bandwidth of a network has become a key factor in limiting the development of cloud computing. Then, fog computing was born [3]. Fog nodes have limited and different computing capabilities in the application of fog computing. How to coordinate and schedule the fog computing tasks between the fog nodes and IoT devices to reduce data transmission time and energy consumption and improve response speed [4], and enhance the quality of the user experience [5], has become the focus of research in fog computing.
Currently, a large number of fog computing task-scheduling algorithms have been proposed for the scheduling of fog computing tasks [6,7,8]. The hardware utilization efficiency of fog computing systems has been improved through task scheduling [9,10,11,12]. Verba et al. [13] proposed a real-time service model for community energy management, and cost-effective energy management was achieved for electricity by three scenarios for the energy consumption in smart community fog computing. In order to meet the latency requirements of multiple services in the electric power IoT scenario, a BRT (Balanced initialization, Resource allocation, and Task allocation) algorithm was proposed by Niu et al. [14]. In the paper, the original problem was decomposed into three subproblems, and the computational resources were allocated by improved particle swarm optimization to minimize the service latency. Amit et al. [15] studied the latency decrease in the resource-constrained IoT devices in smart cities that require low-latency processing by a fog computing task-scheduling algorithm based on ant colony optimization. Dai et al. [16] improved the fog computing architecture for smart factories and reduced the task latency and kept the resource balance by improved genetic algorithm for the characteristics and needs of smart factories. Cen et al. [17] proposed a computing resource allocation method for smart distribution network fog computing devices to improve the adaptability of a distribution network automation system. The latency of the fog computing system by task scheduling was optimized in the literature [14,15,16,17], but the system energy consumption was not considered. Mohamed et al. [18] proposed an improved artificial ecosystem algorithm for computing task scheduling in order to improve the performance of IoT systems. The improved artificial ecosystem algorithm was evaluated using synthetic and real datasets of different sizes, and the method worked best in reducing latency and energy consumption. Wang et al. [19] investigated the limited computing resources and high energy consumption of terminal devices in smart factories based on a hybrid heuristic algorithm. The tasks of terminal devices were able to be processed in real time and efficiently with the method in the paper. Abdel-Basse et al. [20] proposed a fog computing task-scheduling algorithm based on the Modified Marine Predator Algorithm (MMPA) to solve the problem of high latency and energy consumption of fog computing in IoT applications. The latency and energy consumption of the system were reduced effectively in the literature [18,19,20], but the priority of IoT task processing was not considered.
Hussein et al. [21] proposed two different scheduling algorithms to improve the quality of service of fog computing. The load of IoT tasks on fog nodes was balanced effectively by ant colony algorithm (ACO) and particle swarm optimization in which the communication cost and response time were considered. Rafique et al. [22] proposed a novel bio-inspired hybrid algorithm (NBIHA) task-scheduling algorithm based on modified particle swarm optimization (MPSO) and modified cat swarm optimization (MCSO) to reduce the response time of IoT fog computing system and improve the fog computing resource utilization. Movahedi et al. [23] investigated a task-scheduling algorithm based on the Opposition-based Chaotic Whale Optimization Algorithm (OppoCWOA), and the latency and energy consumption of IoT tasks were decreased by having fewer offloading requests and fog node resource constraints in the smart city. Xu et al. [24] proposed a task-scheduling algorithm based on slackness and the ant colony algorithm to reduce the energy consumption for scheduling complex tasks with priority constraints in IoT applications, but the latency of fog computing was not considered.
Table 1 compares the different works in terms of application scenario, optimization method, optimization objective and priority. To sum up, the existing fog computing scheduling research mainly focused on manufacturing [6,16,19] and smart grids [13,14,17]. There were few research papers on fog computing task-scheduling in smart communities. The smart communities have characteristics that distinguish them from other smart subjects: (1) The smart communities include smart grids [25,26], smart water networks [27], smart parking [28,29], smart buildings [30] and other subjects, in which a variety of IoT devices are deployed, and different devices with different requirements of latency, energy consumption and different priorities of IoT tasks; (2) The smart communities are non-profit organizations, which invest less in the deployment of fog nodes than other subjects, and have insufficient fog node resources; (3) Irrational task scheduling can lead to some nodes running at full capacity, and the system will generate a lot of latency and energy consumption, which does not meet the requirements of delay-sensitive tasks in smart communities. Therefore, the traditional optimization algorithms have no way to meet the fog computing task-scheduling requirements in smart communities. Ant Lion Optimizer [31] (ALO) is a new intelligent algorithm proposed by Mirjalili, an Australian scholar, in 2015. Given that ALO has the advantages of diverse populations, fast convergence, and few adjustment parameters [32], in this paper, a fog computing task-scheduling algorithm based on the improved Ant Lion Optimizer is proposed by exploiting the features of intelligent communities and the Ant Lion Optimizer. The main contribution of this paper is embodied in three aspects.
(1)
Modeling smart community fog computing architecture with the specifics of a smart community;
(2)
Chaotic mapping is adopted to initialize the population, and the quality of the initial population is enhanced;
(3)
The random walk is adopted to improve the solving efficiency of ALO;
(4)
The improved DOLC strategy is embedded in the generation-hopping process of ALO, the population diversity is enriched and the ability to jump out of the local optimum is enhanced.

2. Fog Computing Scheduling Model for Smart Communities

2.1. Fog Computing Architecture Model

The fog computing architecture model with three main layers for smart communities is established based on the current research. The system architecture model consists of an IoT layer, fog layer and cloud layer, as shown in Figure 1.
IoT layer: The IoT devices are located on this layer and make up the smart subjects in the smart community (power system monitoring, smart street lights, community access control, environmental monitoring, fire alarm, etc.), which have very limited computing power and need to upload data to the fog layer or cloud layer for processing.
Fog layer: The fog layer is located between the IoT layer and cloud layer and is composed of fog nodes and fog management nodes mainly. The fog nodes are distributed in different areas near the IoT devices and have certain data processing capability, but the computing resources are limited and are mainly used to handle delay-sensitive tasks (power system fault alarm, fire alarm, dangerous behavior warning) in the fog computing system of the smart community. The fog management node is able to maintain fog nodes information, fully dispatch fog computing layer resources, and improve the equipment utilization rate of the fog computing system.
Cloud layer: Located at the top layer of the network architecture, it consists of cloud servers with scalable computing capabilities, which are used to store and analyze core data and provide high-performance computing services for smart community tasks. The cloud layer cannot guarantee the quality of service for all applications due to network bandwidth and is mainly used for computing-intensive tasks with low real-time requirements.
The processing of kinds of tasks can be well solved by fog-layer layering. But, due to the limited resources of fog nodes in smart communities, unreasonable task scheduling will lead to some nodes running at full load, and the system will generate a lot of latency and energy consumption, which does not meet the requirements of delay-sensitive tasks. The task-scheduling problem of the fog computing layer still needs to be solved. This paper mainly studies the task scheduling of the fog computing layer for smart communities.

2.2. Fog Computing Task-Scheduling Model

The fog computing task-scheduling process of smart community can be described as follows: n IoT tasks generated in a certain period in the smart community are mapped to m fog nodes by executing a task scheduler.
The fog computing task-scheduling process is shown in Figure 2. IoT devices send task-execution requests and device information to the fog management node; fog nodes send the current state information of the nodes to the fog management node; the fog management node is responsible for scheduling and distributing fog computing tasks, and sends the result to IoT devices and fog nodes for execution; IoT devices communicate with the corresponding fog nodes to complete computing tasks.
The parameters of the mathematical model for the fog computing tasks scheduling in smart communities are shown in Table 2.
The latency of a task in a fog computing system consists of the transmission time of the task T i j t r a n s t i m e and the execution time of the task T i j e x e c u t e s . The transmission time of the i th task to the j th fog node is expressed as:
T i j t r a n s t i m e = D i r i j ,
where r i j denotes the transmission rate [33] of the i th task to the j th fog node, expressed as:
r i j = B j × l o g 2 ( 1 + h i j × P i σ 2 ) ,
where P i denotes the transmission power of the IoT device, h i j is the channel power gain, and σ is the noise power.
The computation time for the i th task is expressed as:
T i j e x e c u t e s = D i × θ i C j
The latency of the i th task is expressed as:
T i j = T i j t r a n s t i m e + T i j e x e c u t e s
The energy consumption for the i th task consists of the transmission energy consumption and the computational energy consumption, respectively, are expressed as:
E i j t r a n s t i m e = T i j t r a n s t i m e × P i
E i j e x e c u t e s = T i j e x e c u t e s × P C j
where P i indicates the IoT device transmission power of the i th task, and P C j indicates the computed power of the j th fog node.
The energy consumption of the i th task is expressed as:
E i j = E i j t r a n s t i m e + E i j e x e c u t e s
The total latency and total energy consumption of the system are expressed as:
T t o t a l = i = 1 n j = 1 m S i j × T i j
E t o t a l = i = 1 n j = 1 m S i j × E i j
Since the two optimization objectives of latency and energy consumption differ significantly in value, they are normalized, and this paper uses the MIN–MAX normalization process as follows:
o b j 1 = T t o t a l T M I N T M A X T M I N
o b j 2 = E t o t a l E M I N E M A X E M I N
o b j 1 is the latency after normalization and o b j 2 is the energy consumption after normalization, and T M I N , T M A X , E M I N , E M A X are the minimum and maximum values of system latency and energy consumption in the ideal state.
In order to achieve a smart community for o b j 1 and o b j 2 , two objectives of different weights in the practical application, this paper uses a linear weighting method to establish the objective function, as follows, in Equation (12):
U = m i n ( ω × o b j 1 + ( 1 ω ) × o b j 2 ) s . t . C 1 : j = 1 m S i j = 1 , i = 1 , 2 , , n C 2 : i = 1 n S i j × D i < S C j , j = 1 , 2 , , m C 3 : i = 1 n S i j × θ i < C j , j = 1 , 2 , , m C 4 : T i j < D M i , i = 1 , 2 , , n , j = 1 , 2 , , m C 5 : S i j { 0 , 1 } , i = 1 , 2 , , n , j = 1 , 2 , , m C 6 : D U i 1 < D U i , i = 1 , 2 , , n C 7 : 0 < ω < 1 ,
C1, C5 indicate that tasks can only be executed on a fog node, C2, C3 indicate that a set of tasks executed by the fog node cannot consume more resources than the storage and computational resources of that node, C4 indicates that the execution time of a task cannot be greater than the maximum completion time, C6 indicates that the priority of the i th task is greater than that of the ( i 1 ) th task, and C7 indicates the degree of user preference for latency and energy consumption.

3. Traditional Ant Lion Optimizer

The ant lion optimizer achieves global optimization by simulating the idea of ant lions capturing ants in nature. Firstly, the ant lion optimizer randomly generates the position of the initial population in the search space, denoted as:
X i = r 1 × ( u b i l b i ) + l b i , i = 1 , 2 , , n
r1 is a random number between [0, 1], where u b i , l b i are the upper and lower bounds of the search space and X i denotes the i th dimensional variable of the population individuals.
Ants wander randomly in the search space with different random wandering steps, denoted as:
X ( I t e r ) = [ 0 , c u m s u m ( s ( 1 ) ) c u m s u m ( s ( I t e r ) ) c u m s u m ( s ( M a x _ I t e r ) ) ]
X(Iter) is the set of steps in which the ant randomly wanders, cumsum is the calculation of the cumulative sum, and Iter and Max_Iter are the current and maximum number of iterations, respectively;
s(Iter) is the random function of −1 and 1, denoted as:
s ( I t e r ) = { 1 , r 2 > 0.5 1 , r 2 < 0.5
r1 is a random number between [0, 1].
A normalization process is applied to each dimension of X(Iter) so that it is in the search space to generate new ants, denoted as:
X i I t e r = ( ( X i I t e r min ( X ( I t e r ) ) ) ( max ( X ( I t e r ) ) min ( X ( I t e r ) ) ) × ( u b i I t e r l b i I t e r ) + l b i I t e r )
a i and b i are the minimum and maximum values of ants randomly wandering, respectively, and u b i I t e r and l b i I t e r are the upper and lower boundaries of the search space of the i th dimension of an individual ant at the I t e r th generation, respectively.
The search space of ants randomly wandering is related to the behavior of ants captured by the ant lion, around which the trap is first constructed as follows:
{ l b i I t e r = P A L y I t e r + c I t e r u b i I t e r = P A L y I t e r + d I t e r ,
P A L y I t e r indicates the position of the I t e r th generation of the y th ant lion, and c I t e r and d I t e r indicate the minimum and maximum values of the I t e r th generation of all variables, respectively.
Secondly, as the number of iterations increases, the scope of the search space in which the ants randomly roam diminishes, denoted as:
{ c I t e r = c I t e r I d I t e r = d I t e r I
I = 10 w ( I t e r / M a x _ I t e r ) indicates the ratio of the current algebra to the largest algebra, and w is a constant.
Finally, two approaches were used to jointly determine the random wandering of the ants; the ants randomly wandered around the ant lions chosen by the roulette strategy; and the ants randomly wandered around the elite ant lions, elite ant lions being the ant lions with the best fitness values during each iteration of the process, denoted as:
P A k I t e r = R A I t e r + R E I t e r 2
R A I t e r , R E I t e r are separately the random wanderings of the ant lion and elite ant lion selected by the I t e r th generation of ants around the roulette wheel.
When the ant has a better fitness value than the ant lion, the ant lion captures the ant and the ant lion updates to the location of the captured ant, as follows:
P A L y I t e r = P A k I t e r   i f   ( P A k I t e r ) > U ( P A L y I t e r )
P A L y I t e r indicates the position of the I t e r th generation of the y th ant lion, and P A k I t e r indicates the location of the I t e r th generation of the k th ant.

4. HALO

As mentioned earlier, the fog computing task scheduling in the smart community is a high-dimensional discrete problem, and the Ant Lion Optimizer has poor initial population quality, slow iteration speed and easily falls into a local optimum when solving complex high-latitude problems. This paper makes the following improvements to address the above problems of the Ant Lion Optimizer.

4.1. Chaotic Mapping Initialization

The Ant Lion Optimizer generates initial populations randomly in the search space, resulting in uneven distribution of initial populations in the search space [34]; the poor ergodicity of the solutions affects the pre-searching ability of the Ant Lion Optimizer. Chaotic mapping has the characteristics of ergodicity, regularity and orderliness, which can improve the diversity of the initial population of the algorithm [35,36,37].
The Circle Chaos Map (CCM) has chaotic properties such as unpredictability and non-periodicity and can generate uniformly distributed random numbers in the range of [0, 1].
The Circle Chaos Map can be expressed as
x i + 1 = m o d ( x i + 0.2 ( 0.5 2 π ) × sin ( 2 π × x i ) , 1 )
Figure 3a,b show the distribution of random and circle chaos mapping separately; it can be seen that circle chaos mapping has a more uniform and ergodic distribution of points compared to random distribution. By introducing the circle chaos mapping into the ALO algorithm, the initial population is more evenly distributed in the search space, which enriches the population diversity and improves the quality of the initial solution of the algorithm.
Suppose X = ( X 1 , , X i , , X n ) is an n-dimensional individual in the population. Apply the circle chaos mapping to the population initialization, denoted as
X i = x i × ( u b i l b i ) + l b i , i = 1 , 2 , , n
where u b i and l b i are the upper and lower bounds of the search space, x i is the chaos factor of the circular chaos mapping and X i denotes the i th dimensional variable of the population individuals. Mapping the chaos factor x i onto the solution space of the fog computing task scheduling according to Equation (22) replaces the original random distribution, avoids duplicate values, and improves the quality of the initial population.

4.2. Adaptive Random Wandering

The Ant Lion Optimizer uses the cumulative sum method to simulate the random wandering of ants during each iteration according to Equations (14) and (15). The cumulative sum method ensures the superiority-seeking ability of the ants, but the excessive use of this technique increases the running time and complexity of the algorithm during the iteration process and inevitably generates duplicate values. In order to improve the solving efficiency of the Ant Lion Optimizer and to guarantee the merit-seeking ability of the ants in the search space, this paper designs an adaptive random walk (ARW) to simulate the results of the ant’s random walk T times; during each iteration, randomized wandering results are generated directly according to Equations (23) and (24), avoiding the complexity of cumulative sums:
X ( I t e r ) = s a × ( r 3 γ )
X ( I t e r ) is the set of steps for an ant to wander randomly, r 3 is a random number between [0, 1], γ is the conditioning parameter, and s a is the adaptive factor, denoted as:
s a = M a x _ I t e r sin ( I t e r × π 4 × M a x _ I t e r ) × I t e r
I t e r and M a x _ I t e r are the current and maximum number of iterations, respectively.
Comparison of the two wandering methods is shown in Figure 4, where Figure 4a shows the results of ants randomly wandering according to ALO after 200 iterations. Figure 4b shows the result of the ant after 200 iterations according to the ARW proposed in this paper.
From Figure 4a, it can be seen that the range of random wandering in the search space is not sufficient, and the phenomenon of duplicate values exists regardless of any stage of the algorithm iteration, and the diversity after wandering is poor. Figure 4b shows that, due to the use of ARW strategy, through the control of s a , the wandering results of the ants maintain the corresponding characteristics; in the iteration of the algorithm in the early stage, the ants use ARW in the solution space; the search range is wider compared to the random wandering, wandering after the location diversity, in favor of the algorithm’s global search for the optimal, and in the iteration of the algorithm in the late stage, through the adaptive factor of the control of the ants, the ants of the random wandering results gradually reduced, gradually approaching the optimal solution, in favor of the algorithm’s global search for optimality. In the late iteration of the algorithm, through the control of the adaptive factor, the result of the ant’s random walk gradually decreases and approaches the optimal solution, which is conducive to the local optimization of the algorithm in the late stage.

4.3. Improving Dynamic Oppositional Learning Strategies

Dynamic Oppositional Learning (DOL) is that Xu et al. [38] proposed an improved version for the problem of unavoidable convergence to locally optimal positions existing in the space from the current number to the opposite number for Oppositional Learning (OBL) [39]. DOL has the features of search space asymmetry and random dynamic adjustment of the number of opposites and is commonly used in the generation-hopping process of the algorithm to improve the ability of the algorithm to jump out of the local optimum, denoted as:
X O = l b + u b X
X R O = r 4 × X O
X D O = X + φ × r 5 × ( X R O X )
where r4, r5 are random numbers between [0, 1], X O is the dyadic number of X in the search space, X R O is the asymmetric search space controlled by random numbers, and X D O is the dynamic dyadic number in the space of X and X R O . φ is the weighting factor used to balance the region and diversity of the search space.
Expanding the dynamic dyadic numbers in n dimensional space, then, the dynamic dyadic points are expressed as:
X i O = l b i + u b i X i , i = 1 , 2 , , n
X i R O = r 6 × X i O , i = 1 , 2 , , n
X i D O = X i + φ × r 7 × ( X i R O X i ) , i = 1 , 2 , , n
where r6 and r7 are random numbers between [0, 1], X i O is the opposition point of X i in the search space, X i R O is the asymmetric search space controlled by random numbers, and X i D O is the dynamic opposition point in the space of X i and X i R O .
The asymmetric search space of DOL applied in the Ant Lion Optimizer [32] is shown in Figure 5. The search space for X D O is located between X R O and X [38]. Where (a) is the location distribution of X R O , (b) is the search space of X D O when the value of X R O is smaller than X O , (c) is the search space of X D O when the value of X R O is greater than X O , and (d) is the search space of X D O when the value of X R O exceeds the boundary of the Ant Lion trap. To prevent X i D O from exceeding the search space, it is necessary to perform a boundary check according to Equation (31), as follows:
X i D O = r 8 × ( u b i l b i ) + l b i , i = 1 , 2 , , n
where r8 is a random number between [0, 1], and u b i and l b i are the upper and lower bounds of the search space.
In order to further improve the performance of the DOL strategy in the high-dimensional discrete problem of smart community fog computing, this paper embeds the dynamic oppositional learning crossover (DOLC) strategy designed in this paper in the generation-hopping process of the ant-lion algorithm. Firstly, the Ant Lion Optimizer generates new ant D O L P A i I t e r by the DOL strategy. Secondly, the original individuals and D O L P A i I t e r as parents are subjected to a two-point crossover process to generate new offspring, C P A 1 I t e r and C P A 2 I t e r ; finally, the better-adapted individual ants are selected based on the idea of greed D O L C P A i I t e r . After solving the dynamic opposite solution, DOLC generates offspring individuals by fusing the superior genes of two individuals, which in turn enriches the population diversity and improves the ability of the algorithm to jump out of local optima. A jump rate factor jump is introduced to prevent the population from staying in a local optimum due to overuse of the dynamic pairwise crossover technique.

4.4. Coding Method

Fog computing task scheduling in a smart community is a discrete problem, and this paper adopts a real number encoding approach. Taking the location of ants in the Ant Lion Optimizer as an example, the location of each ant can be represented by an n dimensional array, and each ant represents a task-scheduling scheme, as shown in Figure 6.
A n t k I t e r is the location of the k th ant of the I t e r th generation, the location of the ants is represented as an n-dimensional array corresponding to n IoT tasks, and the value of each dimension of the array represents the assignment of the corresponding task to the fog node f j (in the interval [1,m]). Figure 6 shows a simple coding example A n t k I t e r = { 3 , 7 , 10 , 10 , 14 , 7 , 11 } , which indicates that task 1 is assigned to fog node 3, task 2 and task 6 are assigned to fog node 7, task 3 and task 4 are assigned to fog node 10, task 5 is assigned to fog node 14, and task 7 is assigned to fog node 11.

4.5. Fog Computing Task Scheduling Algorithmic Process

In this section, the steps of HALO are summarized and the HALO flowchart is drawn, as shown in Figure 7. ( I t e r denotes the current iteration number, M a x _ I t e r denotes the maximum iteration number).

5. Experimental Studies

5.1. Experimental Environment and Data Set

In order to verify the effectiveness of HALO in the scheduling of fog computing tasks for smart communities, a lot of research has been conducted for two objectives: latency and energy consumption in the fog computing environment. The experimental environment in this paper is Windows 10, 64-bit operating system, Intel(R) Celeron(R) CPU G3900, 8 GB memory; all programs run in MATLAB2018b software, and each experiment is repeated 20 times independently. Taking the example of the Henan Xinxiang Shi He Fu Smart Community and synthesizing nine data sets (Task Data) with different numbers of IoT tasks (Task 50~Task 450), the main parameters are shown in Table 3. In all experiments, it is assumed that all fog nodes have been deployed and can cover all IoT devices.
Each dataset generates 15 fog nodes with different configurations, and the slowest and fastest fog nodes have computational capacities of 2 and 4 G cycles/s, respectively. Each IoT task in the experiments is independent with different task priorities. The IoT task data size of each dataset ranges from 1 to 5 M, and IoT tasks of different urgency are randomly generated.

5.2. Evaluation Indicators

In order to evaluate the effectiveness of the HALO algorithm proposed in this paper in the fog computing system of smart communities, this paper evaluates the following metrics.
M e a n T O and M e a n E O are the average latency and average energy consumption results, respectively, of the original task-scheduling algorithm after running it independently 20 times, and are expressed in Equations (32) and (33).
M e a n T O = ( f r = 1 20 T t o t a l O ( f r ) ) ÷ 20
M e a n E O = ( f r = 1 20 E t o t a l O ( f r ) ) ÷ 20
T t o t a l O ( f r ) and E t o t a l O ( f r ) are the latency and energy consumption results after the f r th run of the original task-scheduling algorithm, respectively, as calculated by Equations (8) and (9).
M e a n T C and M e a n E C are the average latency and average energy consumption results of the current task-scheduling algorithm after running it independently 20 times, respectively, and are represented by Equations (34) and (35).
M e a n T C = ( f r = 1 20 T t o t a l C ( f r ) ) ÷ 20
M e a n E C = ( f r = 1 20 E t o t a l C ( f r ) ) ÷ 20
T t o t a l C ( f r ) and E t o t a l C ( f r ) are the latency and energy consumption results after the f r th run of the current task-scheduling algorithm and are calculated by Equations (8) and (9).
P I R T and P I R E are the average latency and average energy consumption improvement rates of the current task-scheduling algorithm compared to the original task-scheduling algorithm after 20 independent runs and are represented by Equations (36) and (37).
P I R T ( % ) = ( M e a n T O - M e a n T C M e a n T C ) × 100
P I R E ( % ) = ( M e a n E O - M e a n E C M e a n E C ) × 100
M e a n T O and M e a n E O are the average latency and average energy consumption results of the original task-scheduling algorithm, and M e a n T C and M e a n E C are the average latency and average energy consumption results of the current task-scheduling algorithm.

5.3. Sensitivity Analysis

This paper uses linear weighting to construct the objective function as Equation (12); the different values of ω determine the optimization weights of the objective. In this section, simulation experiments are conducted for HALO algorithms under different ω to obtain the optimal ω solutions to balance the weights of the optimization objective in the objective function under the same experimental environment.
In the set case, the data set with 200 tasks is selected for the experiment, the population size is set to 40, the maximum number of iterations is 200 [40], the value of ω is from 0.1 to 0.9, and the experiment is run 20 times independently to take the average value. The results are shown in Table 4.
Figure 8 shows the average values of o b j 1 and o b j 2 for different weighting factors. It can be seen that with the increasing of ω, o b j 1 shows a decreasing trend and o b j 2 shows an increasing trend. By adjusting the value of ω, the learning of different objectives can be achieved. As ω increases, the importance of o b j 1 increases in the system, o b j 2 decreases, and when ω = 0.4 , the two optimization objectives reach the equilibrium optimum.

5.4. Analysis of the Effectiveness of the Proposed Strategy

Three strategies, Circle Chaotic Mapping (CCM) initialization, Adaptive Random Wandering (ARW), and Dynamic Opposite Learning Crossover (DOLC), are used to improve the efficiency of HALO in solving the smart community fog computing task-scheduling problem. Among them, the CCM strategy and ARW strategy are added to ALO, named HALO-1, and the DOLC strategy is added to HALO-1, named HALO. For fair comparison, each algorithm is run 20 times independently in each experiment, the same population size of 40 is set, and the maximum number of iterations is 200.
From Figure 9 and Figure 10, it can be seen that HALO has the smallest latency and energy consumption results compared to other algorithms for different numbers of tasks, which proves the effectiveness of the algorithm proposed in this paper. Table 5 and Table 6 show the results of P I R T and P I R E for different algorithms under Task Data. HALO-1’s latency and energy consumption results on Task Data are generally better than ALO; ARW not only reduces the complexity of ALO, but also ensures the optimization capability of ALO. The HALO algorithm adds the DOLC strategy on the basis of HALO-1, which is more powerful in Task Data, and the results of latency and energy consumption for high-dimensional test problems such as Task 200–Task 450 are improved by 2.85~3.33% and 4.65~5.39%, respectively, compared with ALO, and they are better than HALO-1, proving that the proposed HALO algorithm still has a stronger performance than ALO in solving high-dimensional complex task-scheduling problems.
To visualize the performance of the algorithms, the average convergence curves of the three algorithms run independently 20 times on Task 350 are shown in Figure 11. The initial values of HALO-1 and HALO are better than those of ALO, because HALO-1 and HALO are initialized with CCM, which generates high-quality initial populations and improves the convergence speed of the algorithm in the first iteration. Meanwhile, at the late stage of the algorithm iteration, it can be seen that HALO-1 has a smaller average fitness value compared to ALO, which proves that ARW can still guarantee the algorithm’s merit-seeking ability at the late stage. HALO has a stronger ability to find the optimal compared to ALO and HALO-1; due to the DOLC strategy, it enriches the diversity of ant populations and is able to jump out of the local optimum very well.

5.5. Comparison with Other Algorithms

In this section, HALO is tested using Task Data, and the results of HALO are compared with algorithms proposed in recent years such as GWO, SSA, ALO and other researchers’ applications of GA, PSO, WOA in fog computing [31,41,42,43,44]. To reflect fairness, the population size and the number of iterations of the algorithms involved in computing are the same as HALO at 40 and 200, respectively, and run 20 times independently, with the minimum and average values of latency and energy consumption and the performance improvement rate as evaluation criteria.
From Figure 12 and Figure 13, it is intuitively clear that the ant lion algorithm improved in this paper is optimized to have the smallest latency and energy consumption relative to the original algorithm for different numbers of tasks. Table 7 and Table 8 give the results of P I R T and P I R E for different algorithms under Task Data. It can be seen that HALO outperforms the results obtained by other algorithms on Task Data. Latency and energy consumption fall by 0.12~4.21% and 0.50~6.76%, respectively, compared to GA, latency and energy consumption, which fall by 1.93~3.47% and 3.20~4.60%, respectively, compared to WOA, latency and energy consumption, which fall by 2.15~3.62% and 3.11~5.50%, respectively, compared to GWO, latency and energy consumption, which fall by 4.46~5.48% and 7.00~9.69%, respectively, compared to SSA; compared to PSO, latency and energy consumption fall by 1.86~4.11% and 1.02~6.08%, respectively, and compared to ALO, latency and energy consumption fall by 2.68~3.25% and 2.35~5.37%, respectively.
To visualize the performance of the algorithm, the convergence curves of the comparison algorithm on Task Data are shown in Figure 11. The figure shows that the initial values of HALO are better compared to those of GA, WOA, GWO, SSA, PSO, and ALO. As shown in Figure 14f–i, it can be seen that for high-dimensional problems, GWO inevitably falls into a local optimum; SSA starts to converge only after 100 generations, while GA, WOA, PSO can guarantee convergence performance, but the optimization-seeking accuracy is not as high as HALO for high-latitude problems. HALO can effectively jump out of the local optimum while guaranteeing convergence speed, which proves that the HALO algorithm improved by CCM, ARW and DOLC in this paper is effective in scheduling fog computing tasks in smart communities and can effectively reduce the system latency.

6. Conclusions

A mathematical model of fog computing task scheduling is established for smart communities. The HALO fog computing task-scheduling algorithm is proposed to improve the quality of service for users under the condition of satisfying the goal of latency and energy consumption to minimize the same for the smart community fog computing system. The improvement of ALO in this paper is mainly in three aspects: (1) The initial population is initialized by the chaotic mapping, which makes the initial values more evenly distributed; (2) The adaptive random wandering is used for Ant Lion wandering, which improves the solving speed; (3) The dynamic opposite learning crossover strategy is embedded in the ALO, which improves the optimization-seeking ability of ALO. Simulation experiments show that compared with GA, WOA, GWO, SSA, PSO, and ALO algorithms, HALO has the best computing capability in high dimensional fog computing task scheduling. Using the method proposed in this paper, compared with GA, WOA, GWO, SSA, PSO, and ALO, the latency fell, respectively, by 4.21%, 2.79%, 2.55%, 5.13%, 4.11%, and 3.05%, and the energy consumption fell, respectively, by 6.76%, 3.71%, 4.82%, 9.39%, 6.08%, and 5.37% for the large-scale smart community fog computing task scheduling. The proposed method can effectively reduce the energy consumption and latency in the smart community fog computing.

Author Contributions

F.T.: the corresponding author, provided the idea and other technical guidance required for completing the study. D.Z. completed the practical design, case study and drafted the manuscript. Y.Y. and G.F. were responsible for the visualization of the manuscript. X.L. and G.C. were responsible for the supervision of the manuscript. All authors have read and agreed to the published version of the manuscript.

Funding

This work is supported by the Science and Technology Development of Henan [Grant No. 232102211071]; Doctoral project of Henan Institute of Science and Technology [Grant No. 103020222001/066].

Data Availability Statement

The data presented in this study are available on request from the corresponding author.

Acknowledgments

The authors are grateful to other project participants for their cooperation and endeavor.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Xu, X.; Huang, Q.; Yin, X.; Abbasi, M.; Khosravi, M.R.; Qi, L. Intelligent Offloading for Collaborative Smart City Services in Edge Computing. IEEE Internet Things J. 2020, 7, 7919–7927. [Google Scholar] [CrossRef]
  2. Perera, C.; Qin, Y.R.; Estrella, J.C.; Reiff-Marganiec, S.; Vasilakos, A.V. Fog Computing for Sustainable Smart Cities: A Survey. ACM Comput. Surv. 2017, 50, 1–43. [Google Scholar] [CrossRef]
  3. Salaht, F.A.; Desprez, F.; Lebre, A. An Overview of Service Placement Problem in Fog and Edge Computing. ACM Comput. Surd. 2020, 53, 1–35. [Google Scholar] [CrossRef]
  4. De Donno, M.; Tange, K.; Dragoni, N. Foundations and Evolution of Modern Computing Paradigms: Cloud, IoT, Edge, and Fog. IEEE Access 2019, 7, 150936–150948. [Google Scholar] [CrossRef]
  5. Mehmood, Y.; Ahmad, F.; Yaqoob, I.; Adnane, A.; Imran, M.; Guizani, S. Internet-of-Things-Based Smart Cities: Recent Advances and Challenges. IEEE Commun. Mag. 2017, 55, 16–24. [Google Scholar] [CrossRef]
  6. Ghobaei-Arani, M.; Souri, A.; Safara, F.; Norouzi, M. An efficient task scheduling approach using moth-flame optimization algorithm for cyber-physical system applications in fog computing. Trans. Emerg. Telecommun. Technol. 2020, 31, e3770. [Google Scholar] [CrossRef]
  7. Zhang, G.; Shen, F.; Liu, Z.; Yang, Y.; Wang, K.; Zhou, M.T. FEMTO: Fair and Energy-Minimized Task Offloading for Fog-Enabled IoT Networks. IEEE Internet Things J. 2019, 6, 4388–4400. [Google Scholar] [CrossRef]
  8. La, Q.D.; Ngo, M.V.; Dinh, T.Q.; Quek, T.Q.; Shin, H. Enabling intelligence in fog computing to achieve energy and latency reduction. Digit. Commun. Netw. 2019, 5, 3–9. [Google Scholar] [CrossRef]
  9. Baniata, H.; Anaqreh, A.; Kertesz, A. PF-BTS: A Privacy-Aware Fog-enhanced Blockchain-assisted task scheduling. Inf. Process. Manag. 2021, 58, 102393. [Google Scholar] [CrossRef]
  10. Tuli, S.; Ilager, S.; Ramamohanarao, K.; Buyya, R. Dynamic Scheduling for Stochastic Edge-Cloud Computing Environments Using A3C Learning and Residual Recurrent Neural Networks. IEEE Trans. Mob. Comput. 2022, 21, 940–954. [Google Scholar] [CrossRef]
  11. Adhikari, M.; Mukherjee, M.; Srirama, S.N. DPTO: A Deadline and Priority-Aware Task Offloading in Fog Computing Framework Leveraging Multilevel Feedback Queueing. IEEE Internet Things J. 2020, 7, 5773–5782. [Google Scholar] [CrossRef]
  12. Luo, J.; Yin, L.; Hu, J.; Wang, C.; Liu, X.; Fan, X.; Luo, H. Container-based fog computing architecture and energy-balancing scheduling algorithm for energy IoT. Future Gener. Comput. Syst.-Int. J. Escience 2019, 97, 50–60. [Google Scholar] [CrossRef]
  13. Verba, N.; Nixon, J.D.; Gaura, E.; Dias, L.A.; Halford, A. A community energy management system for smart microgrids. Electr. Power Syst. Res. 2022, 209, 107959. [Google Scholar] [CrossRef]
  14. XNiu, D.; Shao, J.S.; Xin, C.; Zhou, J.; Guo, S.; Chen, X.; Qi, F. Workload Allocation Mechanism for Minimum Service Delay in Edge Computing-Based Power Internet of Things. IEEE Access 2019, 7, 83771–83784. [Google Scholar]
  15. Kishor, A.; Chakarbarty, C. Task Offloading in Fog Computing for Using Smart Ant Colony Optimization. Wirel. Pers. Commun. 2022, 127, 1683–1704. [Google Scholar] [CrossRef]
  16. Zhou, M.T.; Ren, T.F.; Dai, Z.M.; Feng, X.-Y. Task Scheduling and Resource Balancing of Fog Computing in Smart Factory. Mob. Netw. Appl. 2023, 28, 19–30. [Google Scholar] [CrossRef]
  17. Cen, B.; Hu, C.; Cai, Z.; Wu, Z.; Zhang, Y.; Liu, J.; Su, Z. A configuration method of computing resources for microservice-based edge computing apparatus in smart distribution transformer area. Int. J. Electr. Power Energy Syst. 2022, 138, 107935. [Google Scholar] [CrossRef]
  18. Elaziz, M.A.; Abualigah, L.; Attiya, I. Advanced optimization technique for scheduling IoT tasks in cloud-fog computing environments. Future Gener. Comput. Syst.-Int. J. Escience 2021, 124, 142–154. [Google Scholar] [CrossRef]
  19. Wang, J.; Di, L. Task Scheduling Based on a Hybrid Heuristic Algorithm for Smart Production Line with Fog Computing. Sensors 2019, 19, 1023. [Google Scholar] [CrossRef]
  20. Abdel-Basset, M.; Mohamed, R.; Elhoseny, M.; Bashir, A.K.; Jolfaei, A.; Kumar, N. Energy-Aware Marine Predators Algorithm for Task Scheduling in IoT-Based Fog Computing Applications. IEEE Trans. Ind. Inform. 2021, 17, 5068–5076. [Google Scholar] [CrossRef]
  21. Hussein, K.; Mousa, M.H. Efficient Task Offloading for IoT-Based Applications in Fog Computing Using Ant Colony Optimization. IEEE Access 2020, 8, 37191–37201. [Google Scholar] [CrossRef]
  22. Rafique, H.; Shah, M.A.; Islam, S.U.; Maqsood, T.; Khan, S.; Maple, C. A Novel Bio-Inspired Hybrid Algorithm (NBIHA) for Efficient Resource Management in Fog Computing. IEEE Access 2019, 7, 115760–115773. [Google Scholar] [CrossRef]
  23. Movahedi, Z.; Defude, B.; Hosseininia, A.M. An efficient population-based multi-objective task scheduling approach in fog computing systems. J. Cloud Comput.-Adv. Syst. Appl. 2021, 10, 53. [Google Scholar] [CrossRef]
  24. Xu, J.; Hao, Z.; Zhang, R.; Sun, X. A Method Based on the Combination of Laxity and Ant Colony System for Cloud-Fog Task Scheduling. IEEE Access 2019, 7, 116218–116226. [Google Scholar] [CrossRef]
  25. Chen, H.; Wang, X.; Li, Z.; Chen, W.; Cai, Y. Distributed sensing and cooperative estimation/detection of ubiquitous power internet of things. Prot. Control Mod. Power Syst. 2019, 4, 13. [Google Scholar] [CrossRef]
  26. Junior, W.L.R.; Borges, F.A.; Veloso, A.F.d.S.; Rabêlo, R.d.A.; Rodrigues, J.J. Low voltage smart meter for monitoring of power quality disturbances applied in smart grid. Measurement 2019, 147, 106890. [Google Scholar] [CrossRef]
  27. Amaxilatis, D.; Chatzigiannakis, I.; Tselios, C.; Tsironis, N.; Niakas, N.; Papadogeorgos, S. A Smart Water Metering Deployment Based on the Fog Computing Paradigm. Appl. Sci. 2020, 10, 1965. [Google Scholar] [CrossRef]
  28. Ammad, M.; Shah, A.M.; Islam, S.U.; Maple, C.; Alaulamie, A.A.; Rodrigues, J.J.P.C.; Mu, S.; Tariq, U. A Novel Fog-Based Multi-Level Energy-Efficient Framework for IoT-Enabled Smart Environments. IEEE Access 2020, 8, 150010–150026. [Google Scholar] [CrossRef]
  29. Nguyen, S.; Salcic, Z.; Zhang, X.; Bisht, A. A Low-Cost Two-Tier Fog Computing Testbed for Streaming IoT-Based Applications. IEEE Internet Things J. 2021, 8, 6928–6939. [Google Scholar] [CrossRef]
  30. Li, Q.; Wang, X.; Wang, P.; Zhang, W.; Yin, J. FARDA: A fog-based anonymous reward data aggregation security scheme in smart buildings. Build. Environ. 2022, 225, 109578. [Google Scholar] [CrossRef]
  31. Mirjalili, S. The Ant Lion Optimizer. Adv. Eng. Softw. 2015, 83, 80–98. [Google Scholar] [CrossRef]
  32. Abualigah, L.; Diabat, A. A novel hybrid antlion optimization algorithm for multi-objective task scheduling problems in cloud computing environments. Clust. Comput.-J. Netw. Softw. Tools Appl. 2021, 24, 205–223. [Google Scholar] [CrossRef]
  33. Hosny, K.M.; Awad, A.I.; Khashaba, M.M.; Mohamed, E.R. New Improved Multi-Objective Gorilla Troops Algorithm for Dependent Tasks Offloading problem in Multi-Access Edge Computing. J. Grid Comput. 2023, 21, 21. [Google Scholar] [CrossRef]
  34. Ahmad, S.; Sulaiman, M.; Kumam, P.; Zubaira, H.; Jan Muhammadd, A.; Khand, M.W.; Masiha, U. A novel population initialization strategy for accelerating Levy flights based multi-verse optimizer. J. Intell. Fuzzy Syst. 2020, 39, 1–17. [Google Scholar] [CrossRef]
  35. Zhang, H.; Liu, T.; Ye, X.; Heidari, A.A.; Liang, G.; Chen, H.; Pan, Z. Differential evolution-assisted salp swarm algorithm with chaotic structure for real-world problems. Eng. Comput. 2023, 39, 1735–1769. [Google Scholar] [CrossRef] [PubMed]
  36. Bandyopadhyay, R.; Basu, A.; Cuevas, E.; Sarkar, R. Harris Hawks optimisation with Simulated Annealing as a deep feature selection method for screening of COVID-19 CT-scans. Appl. Soft Comput. 2021, 111, 107698. [Google Scholar] [CrossRef] [PubMed]
  37. Zhang, X.Z.; Wang, Z.Y.; Lu, Z.Y. Multi-objective load dispatch for microgrid with electric vehicles using modified gravitational search and particle swarm optimization algorithm. Appl. Energy 2022, 306, 118018. [Google Scholar] [CrossRef]
  38. Xu, Y.; Yang, Z.; Li, X.; Kang, H.; Yang, X. Dynamic opposite learning enhanced teaching-learning-based optimization. Knowl.-Based Syst. 2020, 188, 104966. [Google Scholar] [CrossRef]
  39. Tizhoosh, H.R. Opposition-based learning: A new scheme for machine intelligence. In Proceedings of the International Conference on Computational Intelligence for Modelling, Control and Automation and International Conference on Intelligent Agents, Web Technologies and Internet Commerce (CIMCA-IAWTIC’06), Vienna, Austria, 28–30 November 2005; pp. 695–701. [Google Scholar]
  40. Arshed, J.U.; Ahmed, M.; Muhammad, T.; Afzal, M.; Arif, M.; Bazezew, B. GA-IRACE: Genetic Algorithm-Based Improved Resource Aware Cost-Efficient Scheduler for Cloud Fog Computing Environment. Wirel. Commun. Mob. Comput. 2022, 2022, 6355192. [Google Scholar] [CrossRef]
  41. Aburukba, R.O.; AliKarrar, M.; Landolsi, T.; El-Fakih, K. Scheduling Internet of Things requests to minimize latency in hybrid Fog-Cloud computing. Future Gener. Comput. Syst.-Int. J. Escience 2020, 111, 539–551. [Google Scholar] [CrossRef]
  42. Ghobaei-Arani, M.; Shahidinejad, A. A cost-efficient IoT service placement approach using whale optimization algorithm in fog computing environment. Expert Syst. Appl. 2022, 200, 117012. [Google Scholar] [CrossRef]
  43. Mirjalili, S.; Lewis, S.M.M.A. Grey Wolf Optimizer. Adv. Eng. Softw. 2014, 69, 46–61. [Google Scholar] [CrossRef]
  44. Mirjalili, S.; Gandomi, A.H.; Mirjalili, S.Z.; Saremi, S.; Faris, H.; Mirjalili, S.M. Salp Swarm Algorithm: A bio-inspired optimizer for engineering design problems. Adv. Eng. Softw. 2017, 114, 163–191. [Google Scholar] [CrossRef]
Figure 1. Fog computing architecture model for smart communities.
Figure 1. Fog computing architecture model for smart communities.
Symmetry 15 02206 g001
Figure 2. Fog computing task-scheduling process.
Figure 2. Fog computing task-scheduling process.
Symmetry 15 02206 g002
Figure 3. Scatter plot comparison: (a) Scatterplot of random distribution; (b) Circle chaos mapping scatter plot.
Figure 3. Scatter plot comparison: (a) Scatterplot of random distribution; (b) Circle chaos mapping scatter plot.
Symmetry 15 02206 g003
Figure 4. Wandering mode comparison: (a) Random wandering; (b) Adaptive random wandering.
Figure 4. Wandering mode comparison: (a) Random wandering; (b) Adaptive random wandering.
Symmetry 15 02206 g004
Figure 5. DOL asymmetric search space. (a) The location distribution of X R O ; (b) The search space of X D O when the value of X R O is smaller than X O ; (c) The search space of X D O when the value of X R O is greater than X O ; (d) The search space of X D O when the value of X R O exceeds the boundary of the Ant Lion trap.
Figure 5. DOL asymmetric search space. (a) The location distribution of X R O ; (b) The search space of X D O when the value of X R O is smaller than X O ; (c) The search space of X D O when the value of X R O is greater than X O ; (d) The search space of X D O when the value of X R O exceeds the boundary of the Ant Lion trap.
Symmetry 15 02206 g005
Figure 6. A n t k I t e r Example of coding.
Figure 6. A n t k I t e r Example of coding.
Symmetry 15 02206 g006
Figure 7. HALO flow chart.
Figure 7. HALO flow chart.
Symmetry 15 02206 g007
Figure 8. o b j 1 and o b j 2 under different ω.
Figure 8. o b j 1 and o b j 2 under different ω.
Symmetry 15 02206 g008
Figure 9. Latency results of three algorithms with different Task Data.
Figure 9. Latency results of three algorithms with different Task Data.
Symmetry 15 02206 g009
Figure 10. Energy consumption results of three algorithms with different Task Data.
Figure 10. Energy consumption results of three algorithms with different Task Data.
Symmetry 15 02206 g010
Figure 11. Comparison of different algorithms on Task 350.
Figure 11. Comparison of different algorithms on Task 350.
Symmetry 15 02206 g011
Figure 12. Latency results of different algorithms with different Task Data.
Figure 12. Latency results of different algorithms with different Task Data.
Symmetry 15 02206 g012
Figure 13. Energy consumption results of different algorithms with different Task Data.
Figure 13. Energy consumption results of different algorithms with different Task Data.
Symmetry 15 02206 g013
Figure 14. Comparison of different algorithms on Task Data.
Figure 14. Comparison of different algorithms on Task Data.
Symmetry 15 02206 g014aSymmetry 15 02206 g014b
Table 1. Task scheduling in fog computing.
Table 1. Task scheduling in fog computing.
Ref.Application ScenarioOptimization MethodOptimization ObjectivePriority
[13]smart microgridsGAservice delivery and longevityNo
[14]smart gridsBRTlatencyNo
[15]-SACOlatencyNo
[16]smart factoryIDGSAlatency and resource balanceNo
[17]smart distribution transformer areaa sequential logic-based evolution algorithmconfigured capacitiesNo
[18]-SSAlatency and energyNo
[19]smart factoryHybrid Heuristic Algorithmlatency and energyNo
[20]-Energy-Aware Marine Predators Algorithmlatency and energyNo
[21]-ACOresponse time and load balanceYes
[22]-NBIHAefficient resource utilizationNo
[23]smart cityOppoCWOAlatency and energyNo
[24]-LBP-ACSenergyYes
Our worksmart communityHALOlatency and energyYes
Table 2. Fog computing task-scheduling parameters.
Table 2. Fog computing task-scheduling parameters.
ParametersMeaning
S Number of IoT devices
s o The o th IoT device
N Tasks collection N = { V 1 V i V n }
T A i The i th task
D i The amount of data in T A i (Mb)
P i Transmission power of IoT devices of T A i (W)
D M i The maximum delay time of T A i (s)
T T i The type of tasks for T A i
D U i The degree of urgency for T A i
θ i The computational density of T A i (cycles/bit)
F Fog nodes collection F = { f 1 f j f m }
f j The j th fog node
P C j The calculated power of f j (W)
C j The computing capacity of f j (G cycles/bit)
S C j Storage capacity of f j (Mb)
S F j The state of f j (0 or 1)
B j The bandwidth of f j (MHz)
Table 3. Description of experimental parameters.
Table 3. Description of experimental parameters.
ParametersDescriptionParameter Value
n Number of tasks50~450
D i Amount of data for the T A i 1~5 M
D U i The degree of urgency the T A i First, Second, Third
D M i Maximum delay time of the T A i 0.5~1 s
θ i Computational density of T A i 100~200
P i Transmission power of IoT devices 0.1~0.5 W
m Number of fog nodes15
C j Fog node computing capacity2~4 G cycles/s
B j Fog node bandwidth2000 MHz
C P j Fog node calculated power5~15 W
Table 4. Analysis of optimization target weights.
Table 4. Analysis of optimization target weights.
HALOω = 0.1ω = 0.2ω = 0.3ω = 0.4ω = 0.5ω = 0.6ω = 0.7ω = 0.8ω = 0.9
o b j 1 0.2060.1990.1960.1940.1930.1910.1900.1870.184
o b j 2 0.2340.2360.2410.2430.2440.2460.2490.2540.256
Table 5. P I R T of two algorithms on latency over ALO with different Task Data.
Table 5. P I R T of two algorithms on latency over ALO with different Task Data.
Task 50Task 100Task 150Task 200Task 250Task 300Task 350Task 400Task 450
HALO-1 P I R (%)0.470.160.700.070.320.270.110.040.40
HALO P I R (%)3.153.483.223.332.852.923.062.853.20
Table 6. P I R E of two algorithms on energy consumption over ALO with different Task Data.
Table 6. P I R E of two algorithms on energy consumption over ALO with different Task Data.
Task 50Task 100Task 150Task 200Task 250Task 300Task 350Task 400Task 450
HALO-1 P I R (%)0.280.650.840.200.750.510.090.450.79
HALO P I R (%)3.454.264.874.984.655.355.034.894.89
Table 7. P I R T of different algorithms on latency with different Task Data.
Table 7. P I R T of different algorithms on latency with different Task Data.
Task 50Task 100Task 150Task 200Task 250Task 300Task 350Task 400Task 450
GA0.12%0.65%0.98%1.76%2.43%2.81%3.02%4.21%3.71%
WOA3.16%3.47%2.84%2.58%2.35%1.93%2.10%2.79%2.02%
GWO2.15%3.62%3.13%2.26%2.53%2.61%2.41%2.55%2.25%
SSA4.46%5.48%5.14%4.79%4.63%4.58%4.52%5.13%4.61%
PSO1.86%2.07%2.11%2.57%2.81%2.67%3.09%4.11%3.51%
ALO2.68%3.36%3.05%3.25%2.93%2.79%2.89%3.05%3.02%
Table 8. P I R E of different algorithms on energy consumption with different Task Data.
Table 8. P I R E of different algorithms on energy consumption with different Task Data.
Task 50Task 100Task 150Task 200Task 250Task 300Task 350Task 400Task 450
GA0.50%1.83%3.08%4.03%5.01%5.80%6.21%6.91%6.76%
WOA3.20%4.22%3.88%3.90%3.94%3.71%4.19%4.60%3.71%
GWO3.11%5.31%4.90%4.14%5.05%5.50%5.17%4.98%4.82%
SSA7.00%8.96%9.34%8.78%9.24%9.40%9.40%9.69%9.39%
PSO1.02%2.57%3.43%3.68%4.80%5.00%5.43%6.43%6.08%
ALO2.35%3.90%4.36%4.83%4.75%5.16%5.13%5.15%5.37%
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Tian, F.; Zhang, D.; Yuan, Y.; Fu, G.; Li, X.; Chen, G. Fog Computing Task Scheduling of Smart Community Based on Hybrid Ant Lion Optimizer. Symmetry 2023, 15, 2206. https://doi.org/10.3390/sym15122206

AMA Style

Tian F, Zhang D, Yuan Y, Fu G, Li X, Chen G. Fog Computing Task Scheduling of Smart Community Based on Hybrid Ant Lion Optimizer. Symmetry. 2023; 15(12):2206. https://doi.org/10.3390/sym15122206

Chicago/Turabian Style

Tian, Fengqing, Donghua Zhang, Ying Yuan, Guangchun Fu, Xiaomin Li, and Guanghua Chen. 2023. "Fog Computing Task Scheduling of Smart Community Based on Hybrid Ant Lion Optimizer" Symmetry 15, no. 12: 2206. https://doi.org/10.3390/sym15122206

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop