Particle Swarm Topology.Ring Method
Definition
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.1.0
public static ParticleSwarmTopology Ring(
int neighborsPerSide = 1
)
Parameters
- neighborsPerSide Int32 (Optional)
- The number of neighbors on each side of a particle.
Return Value
ParticleSwarmTopologyA ParticleSwarmTopology instance representing the ring topology.
Remarks
In the ring topology, each particle is influenced by a fixed number of neighbors on either side, forming a ring structure. This means that each particle has a local neighborhood that wraps around the ends of the particle array, ensuring that the first and last particles are also neighbors.
The neighborsPerSide parameter determines the number of neighbors on each side of a particle. For example, if neighborsPerSide is set to 1, each particle will be influenced by its immediate left and right neighbors, forming a neighborhood size of 2.
The ring topology promotes exploration of the search space by maintaining diversity among particles. It prevents premature convergence by ensuring that information is spread slowly through the swarm. This topology is particularly useful in multimodal optimization problems where maintaining diversity is crucial.
However, the ring topology may result in slower convergence compared to the global topology, where each particle is influenced by every other particle. It is best suited for problems where exploration is more important than rapid convergence.