write python code for the given problem statement in description box.

Job ID: 36166399

Budget: ₹600 – ₹1,500 INR

write the python code of particle swarm optimization based on the sphere function, Trid function, Griewank Function, and Bohachevsky Functions. explain the exploration phase and exploitation phase in every code.