<s>
In	O
mathematical	O
optimization	O
,	O
the	O
firefly	B-Algorithm
algorithm	I-Algorithm
is	O
a	O
metaheuristic	B-Algorithm
proposed	O
by	O
Xin-She	O
Yang	O
and	O
inspired	O
by	O
the	O
flashing	O
behavior	O
of	O
fireflies	B-Device
.	O
</s>
<s>
move	O
firefly	B-Device
i	O
towards	O
j	O
;	O
</s>
<s>
Rank	O
fireflies	B-Device
and	O
find	O
the	O
current	O
best	O
;	O
</s>
<s>
Note	O
that	O
the	O
number	O
of	O
objective	O
function	O
evaluations	O
per	O
loop	O
is	O
one	O
evaluation	O
per	O
firefly	B-Device
,	O
even	O
though	O
the	O
above	O
pseudocode	O
suggests	O
it	O
is	O
n×n	O
.	O
</s>
<s>
(	O
Based	O
on	O
Yang	O
's	O
MATLAB	B-Language
code	O
.	O
)	O
</s>
<s>
Thus	O
the	O
total	O
number	O
of	O
objective	O
function	O
evaluations	O
is	O
(	O
number	O
of	O
generations	O
)	O
×	O
(	O
number	O
of	O
fireflies	B-Device
)	O
.	O
</s>
<s>
It	O
can	O
be	O
shown	O
that	O
the	O
limiting	O
case	O
corresponds	O
to	O
the	O
standard	O
Particle	B-Algorithm
Swarm	I-Algorithm
Optimization	I-Algorithm
(	O
PSO	O
)	O
.	O
</s>
<s>
Nature-inspired	O
metaheuristics	B-Algorithm
in	O
general	O
have	O
attracted	O
criticism	O
in	O
the	O
research	O
community	O
for	O
hiding	O
their	O
lack	O
of	O
novelty	O
behind	O
metaphors	O
.	O
</s>
<s>
The	O
firefly	B-Algorithm
algorithm	I-Algorithm
has	O
been	O
criticized	O
as	O
differing	O
from	O
the	O
well-established	O
particle	B-Algorithm
swarm	I-Algorithm
optimization	I-Algorithm
only	O
in	O
a	O
negligible	O
way	O
.	O
</s>
