Algorithm simulator

Run the 25 best-known nature-inspired algorithms on five standard test functions, and watch the population's movement and the convergence, diversity and time curves, then repeat the run or compare the algorithms you choose to get the mean and standard deviation.

Settings

Algorithm parameters
Algorithms to compare

The comparison uses at least five runs per algorithm. Some algorithms (ABC, CS, TLBO and MPA) evaluate the function twice per individual per iteration, so check the evaluations column before judging.

Everything runs in your browser. The same seed with the same settings gives the same result.

PSO — Particle Swarm Optimization

Algorithm card
f(x)=10d+\sum_{i=1}^{d}\left[x_i^2-10\cos(2\pi x_i)\right],\quad x\in[-5.12,5.12]^d
0Iteration
—Best value
0Function evaluations
0ms

Function surface and population movement (first two dimensions)

Convergence curve (best value, logarithmic scale)

Mean population fitness

Population diversity (mean distance from the centre)

ms