ParticleSwarmOptimizer.ParticleSwarm Class

Represents a swarm of particles.

Definition

Namespace: Numerics.NET.Optimization
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.1.0
C#
public class ParticleSwarm : Population<ParticleSwarmOptimizer.Particle>
Inheritance
Object  →  Population<Vector<Double>, ParticleSwarmOptimizer.Particle>  →  Population<ParticleSwarmOptimizer.Particle>  →  ParticleSwarmOptimizer.ParticleSwarm

Constructors

ParticleSwarmOptimizer.ParticleSwarm Constructs a new ParticleSwarmOptimizer.ParticleSwarm class.

Properties

Candidates Provides an enumerable of candidate proxies representing the population. Each candidate proxy provides read-only access to the underlying SoA data.
(Overrides Population<TCandidate>.Candidates)
CountGets the number of elements contained in the ICollection<T>.
(Inherited from Population<TSolution, TCandidate>)
Dimensions Gets the number of dimensions of the solutions.
(Inherited from Population<TCandidate>)
IsReadOnlyGets a value indicating whether the ICollection<T> is read-only.
(Inherited from Population<TSolution, TCandidate>)
ItemGets or sets the element at the specified index.
(Inherited from Population<TSolution, TCandidate>)
Solutions Gets the solutions of the population.
(Inherited from Population<TSolution, TCandidate>)
Values Gets the values of the population.
(Inherited from Population<TSolution, TCandidate>)

Methods

AddAdds an item to the ICollection<T>.
(Inherited from Population<TSolution, TCandidate>)
ClearRemoves all items from the ICollection<T>.
(Inherited from Population<TSolution, TCandidate>)
ComputeCoefficientOfVariation Computes a population-wide statistic, for example the coefficient of variation of the candidate values.
(Inherited from Population<TSolution, TCandidate>)
ContainsDetermines whether the ICollection<T> contains a specific value.
(Inherited from Population<TSolution, TCandidate>)
CopyToCopies the elements of the ICollection<T> to an Array, starting at a particular Array index.
(Inherited from Population<TSolution, TCandidate>)
Diversity Computes the diversity of the population.
(Inherited from Population<TCandidate>)
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetCandidate Gets a candidate particle at the specified index.
(Overrides Population<TSolution, TCandidate>.GetCandidate(Int32))
GetEnumeratorReturns an enumerator that iterates through the collection.
(Inherited from Population<TSolution, TCandidate>)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
IndexOfDetermines the index of a specific item in the IList<T>.
(Inherited from Population<TSolution, TCandidate>)
Initialize Initializes the population with the specified parameters.
(Inherited from Population<TCandidate>)
InsertInserts an item to the IList<T> at the specified index.
(Inherited from Population<TSolution, TCandidate>)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Migrate Performs a migration operation, moving candidates between subpopulations. This is intended for large-scale adjustments (e.g., in multi-swarm or island models).
(Inherited from Population<TSolution, TCandidate>)
RefreshNeighborhood Refreshes the local structure of the population (for example, updating neighborhood relationships). The exact behavior is algorithm-specific.
(Inherited from Population<TSolution, TCandidate>)
RemoveRemoves the first occurrence of a specific object from the ICollection<T>.
(Inherited from Population<TSolution, TCandidate>)
RemoveAtRemoves the IList<T> item at the specified index.
(Inherited from Population<TSolution, TCandidate>)
SetCandidate Sets a candidate at the specified index.
(Inherited from Population<TSolution, TCandidate>)
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also