Particle Swarm Optimization (PSO) in Matlab

Here is a very simple version of PSO in Matlab. PSO is a very popular, population based metaheuristic algorithm that mimics swarming behavior and swarm intelligence in order to solve optimization problems.

The code below is intended to get you started working with PSO in Matlab or Octave. Best efforts were made to keep the code clean and easy to understand. Feel free to play with it and contact me with any questions.

Click Here to Download PSO.m

  1. I am working in PSO area

  2. hello Sir,
    i wanted to implement this PSO MATLAB code to tune PID controller parameters. Sir can u help me with to get the matlab code for the above problem.

    with regards,
    Prakhar

  3. The code you are looking for is available at http://www.parallelcoding.com/wp-content/uploads/PSO/PSO.m. You can modify the fitness function, etc. to fit your needs. PSO tends to work very well for PID controllers. Let me know if you need more help.

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">