Each individual is evaluated with fitness function. Generally,
GA takes an objective function as the fitness function for the
optimization problem without any constraint. However, the
optimization problem in this paper needs to consider the
constraints of the grounding grids. When the individuals do not
satisfy the safe limits, they need to be penalized for reducing
their fitness. Considering the constraints of the grounding
grids, the fitness function is shown as (17).