In firefly algorithm, light intensity or brightness
of a firefly is calculated for objective function f(x) to be optimized. For a maximization problem, the brightness is
directly proportional to the value of the objective function evaluated for a
problem. In the simplest case for maximum optimization problems, the brightness I of a firefly at a particular location x can be chosen as f(x) at that point.