population size of pso in matlab

4 views (last 30 days)
yuen andy
yuen andy on 15 Oct 2020
Commented: yuen andy on 16 Oct 2020
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.

Accepted Answer

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

More Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!