Initially a random population of fireflies is generated within the d-dimensional search space of the given problem. Each firefly represents the solution of the problem. In this paper d is NPQ.