Particle Swarm Optimization (PSO) in C#

Particle Swarm Optimization (PSO) is a computational method for optimization of a problem by simulating a set of moving particles that move around a search-space. Now let’s say that you want to find the (global) minimum of the square function: f(x) = x[0]^2 + x[1]^2. The source code can be found on https://github.com/isachpaz/OptimizationSharp