Rank: 733 based on 183 downloads (last 30 days) and 1 file submitted
photo

Sam

E-mail
Company/University
University of Western Ontario

Personal Profile:

B.Sc. Mechanical Engineering, Queen's University
M.A.Sc. Mechanical Engineering, Royal Military College of Canada
M.D. Candidate, Schulich School of Medicine and Dentistry, Western University

Professional Interests:

 

Watch this Author's files

 

Files Posted by Sam
Updated   File Tags Downloads
(last 30 days)
Comments Rating
01 Apr 2014 Screenshot Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam optimization, particle swarm, pso, swarm intelligence, trajectory, important 183 141
  • 4.68
4.7 | 31 ratings
Comments and Ratings by Sam View all
Updated File Comments Rating
10 Jun 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Stephen,

psoplotswarm is meant to plot particle positions in a 3-dimensional axes. I use it in the PSODEMO file to make it easier to visualize how the swarm behaves. IIRC the ijk variable is a 3-element array where you specify which dimension of your problem you want to plot (for example, if you have a problem with 12 dimensions and you want to plot the particle positions along the 4th, 7th, and 11th dimensions on a 3D plot).

Sam

22 Apr 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Hi parinya,

Can you email me a copy of your nonlinear constraints function through the Contact Author link? I will have a look at it.

Sam

03 Apr 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Thanks for pointing that out, Aman.

b should really be a column vector [2;1] so that it will fit the equation

[1 0 ; 0 1]*[x1; x2] ≤ [2; 1]

however it looks like GA is robust enough to check for and correct that error.

I will add a small piece of input-checking code in the next release so that PSO will yield the same behavior as GA.

01 Apr 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Aman, I'm glad your problem is working properly now. Sorry for the inconvenience! Erik, you are very welcome; is it OK if I add your name to the list of acknowledgements for this toolbox?

31 Mar 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Erik, I have discovered a typo in one of the helper functions for PSO which is causing the bug that you describe. I have submitted an update which should appear over the next few days. This should also improve performance for anyone who is using lower and upper bound constraints for their optimization problems.

Comments and Ratings on Sam's Files View all
Updated File Comment by Comments Rating
10 Jun 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam Sam

Stephen,

psoplotswarm is meant to plot particle positions in a 3-dimensional axes. I use it in the PSODEMO file to make it easier to visualize how the swarm behaves. IIRC the ijk variable is a 3-element array where you specify which dimension of your problem you want to plot (for example, if you have a problem with 12 dimensions and you want to plot the particle positions along the 4th, 7th, and 11th dimensions on a 3D plot).

Sam

09 Jun 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam Bush, Stephen

What is the meaning of the ijk parameter of psoplotswarm(options,state,flag,ijk)? What is psoplotswarm() intended to plot?

As further background, I'm using psobinary() to optimize a two-dimensional array (adjacency matrix for a network).

09 Jun 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam Zed

Hi Sam,

Great tool, I have been using the 2010 release with no problems. Just updated to the latest release 20140330 but found out that my upper/lower bounds LB/UB are now somehow getting ignored. I noticed that this issue was brought up by Erik and others below, and you seem to indicate that this was fixed. Was it fixed in this release? This bug is serious because my LB is positive yet the PSO is straying into negative values. Hope this could be fixed soon. I am running 8.0.0.783 (R2012b).

Thanks.

28 May 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam math_network

What about the constraints handling?

23 May 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam math_network

Dear Sam,
Thanks for powerful pso toolbox. What about the PSO TECHNICAL INFORMATION, such as the PSO algorithm.
A document ablout the Particle Swarm Optimization Toolbox for use with Matlab is needed.

Contact us