The safe and economic design of grounding system is carried out by minimizing the cost function. In the literature, several mathematical cost functions have been devoted. These functions include only some geometrical and construction parameters, such as the number of conductors, conductor size, grid depth,number of rods,length of rods,spacing between conductors, total area of excavation, and revetment. Moreover, such functions are subjected to various safety criteria