↓Skip to main content

Mutant Ants: a genetic swarm algorithm

Description #

A genetic variant of particle swarm optimisation, written in Rust by a team of two as a graded assignment for Optimization Methods for Engineers.

In essence, a swarm of candidate solutions moves through the search space, each particle pulled towards both its own best-known position and the swarm’s. The genetic variant adds selection and recombination on top of that: instead of every particle surviving each iteration, the population is bred, so good candidates propagate their parameters and poor ones drop out.

We benchmarked it on nine standard optimisation test functions, where its runtime matched most of MATLAB’s built-in optimisers.


Link to GitHub Repository