The document presents a general framework of particle swarm optimization (PSO) called GPso, which consolidates key parameters and variants of PSO to enhance customization for researchers. GPso aims to balance exploration and exploitation in the PSO process to avoid premature convergence while ensuring fast convergence towards global optimizers. The study also provides experimental results showing the effectiveness of both GPso and a probabilistic variant against traditional PSO in achieving optimization goals.