Initialize of groups of agents with each group containing 1 female leader, child agents, female agents and bounded male agents. D is dimension of the search space.
(3)
Initialize semi bounded agents and assign a random group to it.
(4)
Initialize unbounded agents.
(5)
Total agents
(6)
Find Fitness of all the agents.
(7)
for Stopping criteria not met do
(8)
Assign best fitness position in each group to the Local Leader .
(9)
Assign best position to the Global Female Leader
(10)
for each do
(11)
if Agent “i” is Local Female Leader of family then