Particle swarm optimization

how to write the simple pytorch code to present the particle swarm optimization algorithm