The Program can be run from the command window following the on-screen instructions. A function file of the objective function need to be created, and named 'myfun'.
A sample function file is uploaded for Hartmann-3 function.
Arshad Afzal (2019). Particle Swarm Optimization (PSO) (https://www.mathworks.com/matlabcentral/fileexchange/72530-particle-swarm-optimization-pso), MATLAB Central File Exchange. Retrieved .