The gravitational search algorithm (GSA) is a population-based search algorithm inspired by the law of gravity and was proposed by Rashedi et al. in 2009. It models solutions as agents whose performance is determined by their mass, causing them to explore the solution space through gravitational interactions and gradually converge to the optimal solution. The algorithm consists of several iterative steps including initial population generation, agent evaluation, and continuous updates of agent velocities and positions until termination criteria are met.