Plotting values for binary pso

3 次查看(过去 30 天)
maoster
maoster 2015-8-4
回答: Ali Alaa 2018-4-17
Hi,
I'm developing a program for binary PSO. I'm trying to illustrate the particles movement. But I don't know how to implement it since the particles in binary PSO do not have coordinates like standard PSO have. I have the binary values as follow for one particle. Each column is the iteration. How can I plot the location of this particle? Many thanks.
0 1 0 0 1 0 0 1 0 0 1 0 1
0 1 0 0 1 1 0 0 1 1 1 1 1
0 1 0 0 0 0 1 0 1 0 1 0 0
0 0 0 0 1 0 1 0 1 1 0 1 1
1 0 1 0 0 1 0 1 0 0 1 0 1
0 0 0 1 0 0 0 0 0 0 0 0 1
1 1 1 1 1 1 1 1 1 1 1 1 1
0 0 1 0 1 1 0 0 0 0 0 0 1
1 1 1 1 1 0 1 0 0 1 0 0 0
0 1 0 0 0 1 0 0 0 0 0 0 1
1 0 1 1 0 0 1 1 0 1 1 1 1
0 0 0 0 0 0 1 0 0 0 0 1 0
1 1 1 1 1 1 1 0 1 1 0 1 1
1 1 0 0 0 1 0 1 0 1 0 0 0

回答(1 个)

Ali Alaa
Ali Alaa 2018-4-17
If you figured out please share it out with me because i'm cant figure it out yet.

类别

Help CenterFile Exchange 中查找有关 Particle Swarm 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by