|
Algorithm 2 Comprehensive Learning Fungal Growth Optimizer (CLFGO) |
-
1:
Input: Population size N, maximum function evaluations , dimension D, bounds , stagnation threshold m, learning bounds
-
2:
Initialize N hyphae using Equation (1); evaluate fitness; identify
-
3:
Initialize personal best positions , stagnation counters ,
-
4:
Compute learning probabilities using Equation (6),
-
5:
,
-
6:
while do
-
7:
for to N do ▹ CLS Module
-
8:
if then
-
9:
break
-
10:
end if
-
11:
if then ▹ Individual i is stagnant
-
12:
for to D do ▹ Build exemplar vector
-
13:
Generate
-
14:
if then
-
15:
Randomly select
-
16:
▹ Tournament selection
-
17:
else
-
18:
▹ Learn from own best
-
19:
end if
-
20:
end for
-
21:
if then ▹ Safeguard check
-
22:
Randomly select dimension and individual
-
23:
-
24:
end if
-
25:
Construct candidate : for each dimension j, set
-
26:
Evaluate and set
-
27:
if then ;
-
28:
end if
-
29:
end for
-
30:
▹ Standard FGO Update (Algorithm 1, Lines 6–16)
-
31:
Execute Hyphal Tip Growth or Branching-Germination loop on all individuals while respecting
-
32:
Perform greedy selection for each individual; update and accordingly
-
33:
Update global best if a better solution is found
-
34:
-
35:
end while
-
36:
Output: Global best solution
|