MATLAB: Population size of pso in matlab


I am trying particle swarm optimization in MATLAB, but i could not find any information about the default number of population size for the PSO in matlab function. ( pos() ). I want to know about the population size. thank you.

Best Answer

  • You find it here:
    The entry is in the third row from the bottom of the table:
    Number of particles in the swarm, an integer greater than 1. Default is min(100,10*nvars), where nvars is the number of variables."