MATLAB Answers

Multidimensional Particle Swarm Optimization Code Example

11 views (last 30 days)
Pilar Jiménez
Pilar Jiménez on 28 Feb 2017
Answered: Walter Roberson on 28 Feb 2017
I need to apply a pso code in another program that I have but I don`t understand so much how I can apply a pso code in more than two dimensions. Can someone help me with an example just to understand the structure must have the code?

  0 Comments

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 28 Feb 2017
particleswarm() works with row vectors of variables. You can reshape() your multi-dimensional matrix as required to convert to or from row form.

  0 Comments

Sign in to comment.

Sign in to answer this question.