ParticleSwarmOptimizer.MaxVelocity Property

Gets or sets the maximum velocity allowed for particles.

Definition

Namespace: Numerics.NET.Optimization
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.1.0
C#
public double MaxVelocity { get; set; }

Property Value

Double

Remarks

The maximum velocity determines the maximum step size a particle can take in one iteration. Setting a high maximum velocity allows particles to explore the search space more quickly, but it can also lead to instability and overshooting of optimal solutions. Conversely, a low maximum velocity ensures more precise convergence but may slow down the optimization process.

The optimal value depends on the specific problem and the desired balance between exploration and exploitation. A common approach is to set the maximum velocity as a fraction of the range of the search space. Experimentation and tuning are often necessary to find the best value for a given optimization task.

The default value for maximum velocity is 4.0.

See Also