|
Algorithm2. COA Pseudo Code. |
-
1:
Define control parameters Np, Nc, and maximal iterations N_Max
-
2:
Initialize Np packs with Nc coyotes each and verify coyote adaptation
-
3:
While t < N_Max, do
-
4:
forp = 1:Np
-
5:
determine alpha and culture tendency
-
6:
forc = 1:Nc
-
7:
Update the social condition
-
8:
Evaluate the new social condition
-
9:
Adaptation
-
10:
end for
-
11:
Generate the pup considering intrinsic and extrinsic influence
-
12:
The pup dies or the oldest coyote dies
-
13:
end for
-
14:
Transition between packs
-
15:
Update coyote ages
-
16:
end while
-
17:
Select the best adapted coyote
|