Literature DB >> 30344601

Modification of Fish Swarm Algorithm Based on Lévy Flight and Firefly Behavior.

Zhenrui Peng1, Kangli Dong1, Hong Yin1, Yu Bai1.   

Abstract

Artificial fish swarm algorithm easily converges to local optimum, especially in solving the global optimization problem of multidimensional and multiextreme value functions. To overcome this drawback, a novel fish swarm algorithm (LFFSA) based on Lévy flight and firefly behavior is proposed. LFFSA incorporates the moving strategy of firefly algorithm into two behavior patterns of fish swarm, i.e., chasing behavior and preying behavior. Furthermore, Lévy flight is introduced into the searching strategy. To limit the search band, nonlinear view and step size based on dynamic parameter are considered. Finally, the proposed algorithm LFFSA is validated with several benchmark problems. Numerical results demonstrate that LFFSA has a better performance in convergence speed and optimization accuracy than the other test algorithms.

Entities:  

Mesh:

Year:  2018        PMID: 30344601      PMCID: PMC6158938          DOI: 10.1155/2018/9827372

Source DB:  PubMed          Journal:  Comput Intell Neurosci


1. Introduction

Optimization plays an important role in modern industry as well as in scientific world. Due to the computational costs of the existing numerical methods, researchers have to rely on metaheuristic algorithms to solve complex optimization problems. Artificial fish swarm algorithm (AFSA) was proposed as a metaheuristic algorithm based on fish swarm behaviors—preying behavior, swarming behavior, and chasing behavior [1]. With its simple principle and such good features as robustness and tolerance of parameter setting, AFSA has become an increasingly important tool in swarm intelligence optimization. Some algorithms derived from AFSA have been presented: Wang et al. eliminated the step restriction and added new leaping behavior to improve the stability of the algorithm [2]. Another modified form of AFSA used particle swarm optimization to reformulate AFSA, integrated AFSA with communication behavior, and created formulas for major AFSA parameters [3]. Luan et al. adopted normal distribution function, Cauchy distribution function, multiparent crossover operator, mutation operator, and modified minimal generation gap model to overcome the drawback of slow convergence speed in later iterations [4]. Another improved AFSA with crossover and culture algorithm was proposed to enhance its optimization efficiency [5]. Hu et al. integrated the merits of the self-adaptation strategy, mutation strategy, and hybrid strategy into the social behaviors of AFSA [6]. Over the last decades, AFSA and its improved algorithms have been successfully applied to various engineering optimization problems. Kumar et al. adopted AFSA to optimize renewable energy sources in a microgrid [7]. By categorizing the social behaviors of fish swarm into foraging, reproductive, and random behaviors, a novel artificial fish swarm algorithm was advocated for solving large-scale reliability-redundancy application problem [8]. A derivative of AFSA was used to solve the multiobjective disassembly line balancing problem with fuzzy disassembly times [9]. A binary fish swarm algorithm was presented to solve profit-based unit commitment problem in generation companies [10]. Firefly algorithm (FA) is another metaheuristic algorithm based on the idealized behavior of the flashing characteristics of fireflies [11]. FA can adaptively adjust the radius of the induction and parallel search the optimum in multiple peaks. FA has natural advantages in solving multimodal optimization problem. Some drawbacks of searching strategy and parameters in FA were targeted and improved by researchers. A derivative of FA with directed movement of fireflies was proposed by Farahani et al. [12]. Chaotic sequence was introduced into the basic FA to adjust parameters γ and α by Coelho et al. [13]. Eagle Strategy, which combines Lévy flight search with FA, was introduced by Yang and Deb [14]. Elitist FA was presented [15], which tried to enhance the best solution position by generating m uniform random vectors and moving in the direction of best solution. Firefly algorithm and its modified forms were also successfully applied to numerous practical problems. Jagatheesan et al. used firefly algorithm to design a controller for an automatic generation control of multiarea power thermal systems [16]. An FA-inspired band selection and optimized extreme learning machine were proposed for hyperspectral image classification [17]. A self-adaptive firefly algorithm was developed for placement of FACTS devices [18]. Teshome et al. modified FA to counteract some inherent problems that may hinder the performance of the maximum power point tracking [19]. Alb et al. used FA to solve a shielding/shunting electromagnetic problem [20]. Mishra et al. proposed a method for optimal placement of interline power flow controller by using FA [21]. Other applications of improved FA include image compression [22], financial forecasting [23], image segmentation [24], structural optimization [25], classification problem [26], unconstrained optimization [27], economic dispatch problems [28], clustering [29], image retrieval [30], and mechanical optimal design [31]. Some researchers presented comprehensive reviews of existing FA and its modified forms to encourage new researchers to employ FA for solving their own problems [32, 33]. At the same time, numerous studies have shown that Lévy flight is similar to flight characteristics of given animals and insects [34-36], which has been widely used in swarm intelligence algorithms. Subsequently, Lévy flight has been applied to optimization, and preliminary results showed its potential capabilities. Jensi and Jiji proposed an enhanced particle swarm optimization with Lévy flight [37]. Tang et al. proposed a new framework of shuffled frog-leaping algorithm based on the exploration and exploitation mechanism by using Lévy flight [38]. Yahya and Saka proposed a multiobjective artificial bee colony algorithm with Lévy flight and applied it to construction site layout planning [39]. Hybridization is recognized to be an important aspect of high performing algorithms in recent years [40]. Owing to some drawbacks of traditional AFSA and FA, they are not suitable for solving highly nonlinear and multimodal problems. By integrating the merits of AFSA with Lévy flight and FA, this paper proposes a novel hybrid algorithm, named LFFSA (fish swarm algorithm based on Lévy flight and firefly behavior), for global optimization. The highlights of the new algorithm are as follows: Attraction degree is involved in the definition of artificial fish Lévy flight is used to adjust the search route of artificial preying fishes By analyzing the relationship between swarming behavior and chasing behavior, unnecessary behavior (swarming behavior) is excluded instead of improving AFSA through adding new behaviors [3-6] Time complexity of the improved algorithm is also further analyzed to demonstrate the effectiveness of the improvement The remainder of this paper is organized as follows: Section 2 describes the basic AFSA, FA, and Lévy flight respectively; Section 3 proposes and explains LFFSA algorithm in details; in Section 4, the superiority of proposed algorithm LFFSA is validated by several benchmark problems; Section 5 outlines the conclusion.

2. Background

2.1. Artificial Fish Swarm Algorithm

AFSA is a swarm intelligence algorithm, which can be employed to solve the optimization problem by imitating swarming, chasing, and preying behaviors of artificial fishes [1]. As shown in Figure 1, let X be the current position of one artificial fish, Xv be the viewpoint of artificial fish at one moment, Visual be the visual scope of each individual, Xa and Xb be fishes within the Visual of X, Step be the biggest step of artificial fish, and δ be the congestion factor of fish swarm. The food concentration is proportional to the fitness function f(X). The behavior patterns of fish swarms can be described as follows.
Figure 1

Vision concept of the artificial fish.

Swarming behavior: if f(Xc) > f(X), where Xc is the central point inside the Visual of the point X, swarming behavior is to be executed. Take Xc as Xv. The fish at X will take a step toward the point Xc. Chasing behavior: if the point (denoted by Xmax) having the best objective function value inside the Visual satisfies f(Xmax) > f(X), and if the Visual of X is not crowded, chasing behavior is to be executed. Take Xmax as Xv. The fish at X will take a step toward the point Xmax. Preying behavior: preying behavior is tried in the following situations: f(Xc) < f(X), f(Xmax) < f(X), and the Visual is not crowded The Visual is crowded Here, a point X inside the Visual of X is randomly selected. If f(X) > f(X), the preying behavior is to be executed. Take X as Xv. The fish at X will take a step toward the point X. Otherwise, it will move a step randomly within its Visual. The best solution obtained in each iteration is marked as “board.” After the specified iterations, search process is terminated and the result on the “board” is regarded as the final solution. For artificial preying fishes, the position-updating can be formulated aswhere Xnext is the next position of artificial fish; X is the current position of artificial fish; X is the position which has a better objective function value; rand is a random number in [−1, 1]; and norm(X − X) is the distance between two position vectors. For artificial swarming fishes, the position-updating can be formulated as For artificial chasing fishes, the position-updating can be formulated as The flowchart of AFSA is shown in Figure 2.
Figure 2

Flowchart of AFSA.

2.2. Firefly Algorithm

Firefly algorithm (FA) [11] is another swarm intelligence algorithm. It achieves swarming phenomenon by using the fluorescent signal between two firefly individuals. The attraction between fireflies depends on their light intensities and attraction degree. The light intensity is in proportion to the objective function value of firefly's position. Attraction degree is in proportion to the light intensity. The brighter the light intensity is, the higher attraction degree will be. Besides, the farther the distance is, the lower the light intensity and attraction degree will be. In the simplest form, the light intensity I(r) varies with the distance r monotonically and exponentially aswhere I0 is the original light intensity and γ is the light absorption coefficient. As firefly attraction degree is proportional to the light intensity seen by adjacent fireflies, the attraction degree beta of a firefly can be defined aswhere beta0 is the attraction degree at r=0. The distance r between any two fireflies i and j at x and x, respectively, is the Cartesian distance, which is calculated aswhere n is the dimensionality of the given problem.

2.3. Lévy Flight

Lévy flight is one kind of random searching strategy [35]. Flying step satisfies a heavy-tailed Lévy distribution, which can be represented by a clear power-law equation aswhere s is random Lévy step. For searching problems inside a wide range of unknown space, the variance of Lévy movement increases faster than the dimensional Brownian movement. To some extent, the foraging behavior of nature animals is a kind of random movement behavior. Because next movement usually depends on the current position and the probability of moving to next position, the effectiveness of each random movement becomes greatly important. Recent studies show that Lévy flight is one of the best searching strategies in random movement model [35, 41–43].

3. Fish Swarm Algorithm Based on Lévy Flight and Firefly Behavior

AFSA has several disadvantages in solving nonlinear and multimodal problems. Firstly, AFSA uses swarming behavior and chasing behavior to execute parallel search in a simple and fast way. However, after determining the direction, each artificial fish moving with random step will be unable to approach the target point effectively. Secondly, artificial fish will execute preying behavior when it does not meet the conditions of swarming behavior and chasing behavior. This kind of searching strategy is inefficient and can easily miss the optimum point. Thirdly, too many moving patterns can increase the algorithm complexity, which may cause slow convergence speed. The above-listed drawbacks of AFSA are improved in the proposed LFFSA. FA has the unique moving strategy using attraction between fireflies, which can be used to fix the random moving after determining the direction in AFSA. And, the preying behavior can be improved using Lévy flight to specify the behavior of artificial fishes. In LFFSA, attraction degree is involved in the definition of artificial fishes, which allows each individual move according to attraction degree; Lévy flight is also considered in the definition of the artificial preying fish to avoid falling into the local optimum; chasing behavior is excluded to decrease the algorithm complexity. The flowchart of LFFSA is shown in Figure 3. Pseudo code of LFFSA is described in Algorithm 1. To show the difference between AFSA and LFFSA vividly, mechanisms of both algorithms are provided in Figure 4.
Figure 3

Flowchart of LFFSA.

Algorithm 1

LFFSA.

Figure 4

Mechanisms of AFSA and LFFSA.

The main improvements of LFFSA are summarized as follows: Improvement 1: FA-based moving strategy. Attraction degree is involved in the definition of artificial fishes, which can be formulated aswhere r is the Cartesian distance between artificial fishes i and j given by Equation (6); γ is the light intensity coefficient, which can be set as a constant; and beta0, the largest attraction degree, is attraction degree of an artificial fish at r=0. The position-updating with preying behavior established by attraction degree can be formulated aswhere X is the current position of artificial fish i; beta(X − X) is the attraction degree; α is the step factor which is a constant between 0 and 1; rand is a number chosen randomly in [−1, 1]; and α(rand − 0.5) is to avoid falling into the local optimum. Improvement 2: inertia weight. A linear inertia weight is added into Equation (9) aswhere ω is the weight size inherited from the last position of an artificial fish; ωmax denotes the biggest weight; ωmin is the minimum weight; gen represents the current iteration; and Maxgen is the ultimate iteration. Similarly, the position-updating with chasing behavior can be formulated aswhere Xmax is the position with the highest food concentration in the view of artificial fish X and other parameters are defined in Equations (10) and (11). Improvement 3: Lévy flight-based search strategy. Lévy flight is involved in the definition of artificial fishes are executing preying behavior. The movement can be formulated aswhere X is the current position of artificial fish i; ⊕ is the point to point multiplication; L(λ) denotes a random vector generated by Lévy flight; Xbest represents the best fish on the “board”; μ=t−, 1 < λ < 3; and μ and v have the standard normal distribution μ ~ N(0, ϕ2), v ~ N(0,1), respectively, wherewhere Γ is the standard Gamma function. Improvement 4: nonlinear visual and step. Visual and step change nonlinearly and dynamically in LFFSA. The updating equations are as follows:where Visualmin, the minimum visual, takes 0.001; Stepmin, the minimum step, takes 0.0002; ρ is a nonlinear weight; and s represents an integer, s > 1. Here, s=3. Other parameters are the same as those in Equation (11). The relationship between s and ρ is as shown in Figure 5.
Figure 5

Value of ρ.

Besides, define the biggest distance between two artificial fishes aswhere, xmax and xmin represent the upper bound and the lower bound of searching range respectively; D denotes the D-dimension searching space. The initial Visual is equal to maxD, and initial Step is equal to maxD/8. Then Visual and Step change dynamically according to Equations (16)–(18). (e) Improvement 5: decrease of time complexity. Swarming behavior in AFSA is excluded to decrease the algorithm complexity.

4. Numerical Simulation

4.1. Comparison of Convergence Accuracy

LFFSA is validated by numerical simulations. Fish swarm algorithm with firefly behavior (FFSA), differential evolution (DE) algorithm, self-adaptive differential evolution (jDE) algorithm, and the two basic algorithms (AFSA and FA) are compared. All the algorithms are coded in Matlab 2014b. The operating system is windows 7. Simulation hardware is a PC with 2.50 GHz Inter Core i5 and 2.00 GB Memory. Parameters shown in Table 1 are determined by trial and error.
Table 1

Parameter settings.

AlgorithmsParametersValues
FA, FFSA, LFFSA β 0 1.0
FA, FFSA, LFFSA γ 1.0
AFSA, FFSA, LFFSA δ 0.618
AFSA, FFSA, LFFSATrynumber5
DE, jDEScaling constant0.5
DE, jDECrossover constant0.9
All 6 algorithmsPopulation50
All 6 algorithmsMaximum function evaluations (FEs)2 × 105
The following benchmarks are chosen carefully according to their features. Functions Sphere, Quartic, and Rosenbrock, etc., are simple unimodal problems. Functions Ackley, Rastrigin, and Schwefel, etc., are highly complex multimodal problems with many local minima. Schwefel function has a maximum value and other functions have minimum values. These benchmarks are listed in Table 2 [44, 45]. The solutions of 17 test functions obtained by different algorithms are compared. To compare the convergence speed and accuracy of the algorithms clearly and correctly, all functions are run 50 times for each algorithm, respectively. The results are averaged and plotted in Figure 6.
Table 2

Test functions.

No.Test functionsExpressionOptimum valueDomain D
f1Sphere f(x)=∑i=1Dxi20(−100,100)D30
f2Quartic f(x)=∑i=1Dixi40(−1.28, 1.28)D30
f3Ackley fx=20exp0.21/Di=1Dxi2exp1/Di=1Dcos2πxi+20+e 0(−32.768, 32.768)D30
f4Rosenbrock f(x)=∑i=1D−1100(xi+1xi2)2+(1 − xi)20(−2.048, 2.048)D30
f5Rastrigin1 f(x)=∑i=1D{xi2 − 10cos(2πxi)+10}0(−5.12, 5.12)D30
f6Rastrigin2 f(x)=∑i=1D{yi2 − 10  cos(2πyi)+10}0(−5.12, 5.12)D30
yi=xi,xi<1/2,round2xi/2,xi>1/2,
f7Schwefel fx=i=1Dxi·sinxi 418.9829D(−500,500)D30
f8Griewank fx=1/4000i=1Dxi2i=1Dcosxi/i+1 0(−600,600)D30
f9Quadric f(x)=∑i=1D(∑j=1ixj)20(−100,100)D30
f10Schaffer1 fx=i=1D1sin2xi+12+xi20.5/0.001xi+12+xi2+12+0.5 0(−100,100)D30
f11Schaffer2 fx=i=1D1sin2i=1Dxi20.5/0.001i=1Dxi2+12+0.5 0(−100,100)D30
f12Maxmod f(x)=max(|xi|)0(−10,10)D30
f13Dixon and price(x1 − 1)2+∑i=1Di(2xi2xi−1)0(−10,10)D30
f14Powell f(x)=∑i=1D/4[(x4i−3+10x4i−2)2+5(x4i−1x4i)2+(x4i−2 − 2x4i−1)2+10(x4i−3x4i)4]0(−4,5)D28
f15Zakharov f(x)=∑i=1Dxi2+(∑i=1D0.5ixi)2+(∑i=1D0.5ixi)40(−5,10)D30
f16Sin1i=1D|xi  sin(xi)+0.1xi|0(−10,10)D30
f17Sin2 f(x)=−∑i=1Dsin(xi)  sin20(ixi2/π)−99.2784(0, π)D100
Figure 6

Iterative curves of test functions. (a) f1. (b) f2. (c) f3. (d) f4. (e) f5. (f) f6. (g) f7. (h) f8. (i) f9. (j) f10. (k) f11. (l) f12. (m) f13. (n) f14. (o) f15. (p) f16. (q) f7.

From Figure 6, LFFSA can avoid local optimum and have better convergence accuracy compared with the other algorithms. For AFSA and FA, the solutions of most functions are unsatisfactory; the DE cannot find ideal solutions of f3, f4, f5, f6, f10, f11, f12, f14, and f15; the jDE has good accuracy while solving some of those functions, e.g. f1, f2, f3, and f8; however, solutions of f4, f10, f11, and f15 obtained by jDE are not so precise; the LFFSA can obtain the ideal accuracy for almost all functions, although it cannot achieve a high precision level like solutions of f2 obtained by jDE; the FFSA is slightly worse than LFFSA. The LFFSA outperforms jDE in 10 benchmark functions, while 2 functions are comparative, and 5 functions are worse. LFFSA is better than AFSA because Lévy flight is able to restrict the movement step of AFSA to a very small area around the current position. Furthermore, the attraction degree guides the fish moving. Besides, LFFSA can quickly lead the fish individual to the close-by optimal point. Considering all the advantages discussed above, the optimum solution can be found successfully by using LFFSA, which outperforms the basic algorithms for all test functions, and outperforms jDE for several functions. To observe the searching capabilities of different algorithms directly, the average, median, best, and worst values obtained by different algorithms are listed in Table 3. Results indicate that LFFSA can find ideal solutions and have a better robustness.
Table 3

Comparison of optimization results.

No.ItemsAFSAStd.FAStd.FFSAStd.LFFSAStd.DEStd.jDEStd.
f1Worst3.0140.181−2.7980.120−5.1320.071−6.7430.071−8.5440.132−15.0210.121
Best2.402−3.257−5.233−8.500−10.371−17.242
Average2.656−3.048−5.145−7.278−8.924−16.326
Median2.651−3.102−5.193−6.325−8.586−16.706

f2Worst−2.3220.171−1.92450.135−11.1780.074−14.2070.134−20.5060.400−31.6440.535
Best−4.126−2.813−11.313−15.585−21.611−33.250
Average−2.812−2.278−11.273−14.812−21.054−32.687
Median−2.562−2.197−11.271−14.834−20.970−32.844

f3Worst1.3860.001−1.7760.124−3.9080.197−6.1210.138−0.0270.438−8.9340.167
Best1.307−2.415−4.647−6.938−1.281−9.471
Average1.587−2.168−4.147−6.546−0.049−9.163
Median1.586−2.177−4.225−6.325−0.035−9.164

f4Worst2.1430.0872.27330.097−2.03480.125−1.0760.3761.5200.0031.4540.025
Best1.5651.043−2.416−3.4051.4121.363
Average1.9461.476−2.158−1.9461.3851.312
Median1.8541.385−2.235−2.3251.3631.287

f5Worst2.3100.0771.8640.856−2.8460.044−4.3850.054−0.5790.3230.8986.009
Best2.0961.243−2.982−5.145−1.591−12.831
Average2.2361.454−2.946−4.643−0.999−3.303
Median2.1361.285−2.435−4.325−0.9630.148

f6Worst2.4450.0381.7160.133−2.3820.076−3.4140.0481.1310.0420.6985.049
Best2.3181.255−2.618−3.6061.012−11.404
Average2.4081.571−2.486−3.4891.077−5.466
Median2.4191.601−2.462−3.4871.094−7.632

f7Worst3.8150.0183.78460.0314.1867.36e − 64.1564.34e − 64.0992.96e − 94.0874.03e − 3
Best3.9453.9784.0994.0994.0994.099
Average3.8133.8484.0994.0994.0994.097
Median3.7363.785−4.099−4.0994.0994.097

f8Worst0.9560.133−0.9600.223−5.3010.051−6.2710.055−9.890.114−Inf0
Best−0.644−0.500−5.444−6.455−10.255−Inf
Average−0.735−0.697−5.357−6.372−10.071−Inf
Median0.7360.685−5.435−6.325−10.074−Inf

f9Worst−11.6651.057−9.761.324−9.3470.843−8.6951.323−6.8481.124−6.1312.697
Best−14.433−10.574−12.194−11.937−10.680−14.831
Average−12.786−10.456−10.764−10.137−8.178−9.938
Median1.1361.085−7.435−6.325−7.745−9.663

f10Worst0.9570.1310.9740.223−5.3750.049−6.2740.0560.6730.0320.2800.110
Best0.6440.497−5.448−6.4860.483−0.022
Average0.7470.649−5.376−6.3480.5260.230
Median1.1361.085−7.435−6.3250.5470.211

f11Worst−0.3012.72e − 05−0.3030.009−4.7510.071−5.6470.085−0.8960.103−1.1060.135
Best−0.301−0.331−5.011−5.965−1.107−1.429
Average−0.301−0.313−4.838−5.804−0.975−1.364
Median−0.301−0.311−4.835−5.804−0.896−1.402

f12Worst0.7790.037−1.1770.163−2.7560.035−3.1580.037−0.1360.052−1.9040.221
Best0.658−1.638−2.892−3.287−0.339−2.526
Average0.711−1.388−2.811−3.221−0.252−2.291
Median0.716−1.376−2.801−3.2160.248−2.374

f13Worst4.2860.1730.5740.297−0.6020.007−0.6020.0050.0390.068−0.1765.38e − 6
Best3.706−0.175−0.605−0.605−0.162−0.176
Average4.147−0.013−0.603−0.603−0.088−0.176
Median4.213−0.135−0.603−6.603−0.086−0.176

f14Worst2.4040.0840.4050.318−3.5980.117−4.5140.1010.2760.211−2.1920.401
Best2.173−0.576−4.001−4.869−0.369−3.409
Average2.2750.069−3.773−4.656−0.117−2.867
Median2.2460.133−3.719−4.651−0.134−2.924

f15Worst2.5880.07051.5050.198−4.2810.117−4.9750.2412.2410.0770.6350.372
Best2.366−4.679−5.792−7.24741.972−0.370
Average2.490−4.561−5.408−6.32592.1400.148
Median2.506−4.601−5.456−6.32592.1360.218

f16Worst1.4380.058−1.4630.253−2.7620.026−3.2390.032−2.3540.042−3.3920.433
Best1.268−2.296−2.838−3.334−2.482−4.646
Average1.366−1.987−2.793−3.282−2.408−3.868
Median1.375−2.016−2.793−3.284−2.402−3.751

f17Worst−22.9540.643−25.6731.721−70.7481.908−79.6450.131−47.0251.403−63.0311.942
Best−24.885−32.075−77.054−80.098−51.440−68.738
Average−23.772−28.641−74.598−79.996−48.982−66.539
Median−23.731−28.759−74.907−80.001−49.035−66.559

4.2. Computational Complexity Analysis

Time complexity is also an important indicator in the analysis of algorithms. If an algorithm is composed of several parts, then its complexity is the sum of the complexities of these parts. The algorithm may consist of a loop executed many times, and each time is with a different complexity. Time complexity of the algorithm is used to estimate the efficiency of the algorithm. It is defined that the time complexity of the algorithm, or the running time, is O(f(n)) [46]. Define N as the population. In the definition of time complexity, O(N2) and O(N) are at different levels. If the time complexity of one algorithm is O(N2), the time complexity of the other one is O(N), then the former algorithm is more complex. In the other case, if the time complexity of one algorithm is O(N2) while the time complexity of the other one is O(N2+N), their complexities are both O(N2). The time complexity analysis of AFSA is provided in Table 4.
Table 4

Time complexity analysis of AFSA.

Procedure of AFSATime complexity
(1) Initialization of N artificial fishes O(N)
(2) Initialization of ‘board' O(N)
(3) Swarming behavior O(N2+2 N)
(4) Chasing behavior O(2 N2+2 N)
(5) Preying behavior O(Trynumber N)
(6) Judging of terminal condition O(1)
(7) Information output of ‘board' O(1)
From Table 4, the time complexity of AFSA is Swarming behavior has N times of calculating congestion factor, 1 time of judging, and 1 time of moving. Therefore, time complexity of swarming behavior is O(N2+2 ∗ N). Chasing behavior has N times of calculating congestion factor, N times of searching, 1 time of judging, and 1 time of moving. Therefore, time complexity of chasing behavior is O(2 ∗ N2+2 ∗ N). Time complexity analysis of LFFSA is listed in Table 5.
Table 5

Time complexity analysis of LFFSA.

Procedure of LFFSATime complexity
(1) Initialization of N artificial fishes O(N)
(2) Initialization of ‘board' O(N)
(3) Chasing behavior O(2 N2+2 N)
(4) Preying behavior O(trynumber N)
(5) Judging of terminal condition O(1)
(6) Information output of ‘board' O(1)
Due to the lack of swarming behavior, time complexity of LFFSA can be calculated as We can also obtain time complexity of FA: A conclusion can be obtained that time complexities of the three algorithms are at the same level. Their computational complexities in the worst case are only the square of the training sample size.

4.3. Experimental Complexity Analysis

Time complexity is a rough estimate of time cost. The more accurate time cost of an algorithm can only be validated by running it on computer. Since different algorithms cannot reach the same convergence accuracy, the test with fixed convergence accuracy is not available. Therefore, the test with max function evaluations is conducted. Running time of each algorithm is counted by the explorer of MATLAB. Parameter settings of algorithms are the same in Section 4.1. Average running time of different algorithms is listed in Table 6. When function evaluations are the same, running speed of LFFSA is faster than that of AFSA, while DE has the fastest running speed. Results are quite in accord with those obtained by computational complexity analysis. LFFSA and jDE are comparative in experimental complexity. Running time of FFSA is almost twice as much as that of LFFSA. The improvement of LFFSA decreases time complexity to some extent.
Table 6

Average running time of algorithms.

No.Running time (s)
AFSAFAFFSALFFSADEjDE
f110.237.4718.57.534.646.08
f212.377.7321.117.104.326.53
f310.877.8020.738.964.128.25
f411.407.6720.4910.275.636.98
f510.537.6619.478.033.285.96
f619.726.1025.7716.377.7110.65
f710.537.4318.778.563.276.56
f812.338.0322.729.233.796.63
f920.837.2021.367.714.016.84
f1016.278.4620.627.564.657.15
f119.268.9513.746.353.636.67
f129.655.3413.756.513.046.28
f139.125.2614.3610.414.137.15
f1413.955.7419.0210.316.489.86
f159.455.3913.077.364.627.74
f168.735.2113.8811.468.5218.87
f1714.537.2818.415.963.326.44

4.4. Parameter Analysis of LFFSA

The effect of parameters on optimization is analyzed in this section. Taking Ackley function as example, Figure 7 shows the change of the objective function value in the case of varying parameters. Trynumber and β0 are proportional to the optimization result. Trynumber can impact the time complexity of the algorithm, so the value should be appropriate not to affect the running speed. The best value of γ and δ is 2.5 and 1.2, respectively.
Figure 7

Test curves of parameters. (a) Test curve of β0. (b) Test curve of γ. (c) Test curve of δ. (d) Test curve of Trynumber.

5. Conclusion

LFFSA is proposed to improve the capability of AFSA which integrates the merits of both AFSA and FA. Firstly, the searching characteristic of AFSA is studied by calculating the time complexity. Secondly, 17 benchmark test functions are used to verify LFFSA. Then time complexity of LFFSA is estimated. Numerical results demonstrate that LFFSA has a better performance in accuracy and speed of optimization to solve nonlinear optimization problems than the other test algorithms. However, the solution obtained by LFFSA can be more precise, and the way of modification could provide reference for those efficient algorithms, e.g. DE and GWO.
  4 in total

1.  A novel artificial fish swarm algorithm for solving large-scale reliability-redundancy application problem.

Authors:  Qiang He; Xiangtao Hu; Hong Ren; Hongqi Zhang
Journal:  ISA Trans       Date:  2015-10-23       Impact factor: 5.468

2.  Mathematical physics: search research.

Authors:  Michael F Shlesinger
Journal:  Nature       Date:  2006-09-21       Impact factor: 49.962

3.  Efficient population utilization strategy for particle swarm optimizer.

Authors:  Sheng-Ta Hsieh; Tsung-Ying Sun; Chan-Cheng Liu; Shang-Jeng Tsai
Journal:  IEEE Trans Syst Man Cybern B Cybern       Date:  2008-12-16

4.  Free-flight odor tracking in Drosophila is consistent with an optimal intermittent scale-free search.

Authors:  Andy M Reynolds; Mark A Frye
Journal:  PLoS One       Date:  2007-04-04       Impact factor: 3.240

  4 in total
  2 in total

1.  Artificial intelligence enabled intrusion detection systems for cognitive cyber-physical systems in industry 4.0 environment.

Authors:  Manal Abdullah Alohali; Fahd N Al-Wesabi; Anwer Mustafa Hilal; Shalini Goel; Deepak Gupta; Ashish Khanna
Journal:  Cogn Neurodyn       Date:  2022-01-30       Impact factor: 3.473

2.  A review of swarm intelligence algorithms deployment for scheduling and optimization in cloud computing environments.

Authors:  Yousef Qawqzeh; Mafawez T Alharbi; Ayman Jaradat; Khalid Nazim Abdul Sattar
Journal:  PeerJ Comput Sci       Date:  2021-08-25
  2 in total

北京卡尤迪生物科技股份有限公司 © 2022-2023.