Summary — To understand how PSO-based algorithm can work with Gravitational algorithm to provide better results.
In the gravitational search algorithm, there is law of gravity and law of motion, where in the forces are proportional to masses in the objects and inversely proportional to the distance between the particles. The force of attraction of the i-th particle to the j-th particle [1],

As per [1],

As per [1],

Velocity and positions are required to run the PSO algorithm into next layer of iterations to improve the search.
You can write to me for any clarifications,
References
[1] Yadav, A., Deep, K., Kim, J. H., & Nagar, A. K. (2016). Gravitational swarm optimizer for global optimization. Swarm and Evolutionary Computation, 31, 64–89.
Warm regards,
Yours sincerely,
NY..