Hello everyone and welcome. I’m going to show you a simple but effective Matlab code of Particle Swarm Optimization (PSO)…