Particle Swarm optimisation visualiser in C++
Go to file
dvdrw 585fdc3a7e
feat: add support for centering the screen around best/midpoint
Pressing 'c' will center the screen around the average position of the
particles. Pressing 'f' will center the screen on each frame.

Pressing 'b' will center the screen around the best found point.
2024-11-26 00:08:47 +01:00
include feat: add support for centering the screen around best/midpoint 2024-11-26 00:08:47 +01:00
src feat: add support for centering the screen around best/midpoint 2024-11-26 00:08:47 +01:00
.gitignore ci: add automatic header file deps to Makefile 2024-11-25 13:52:40 +01:00
Makefile ci: add automatic header file deps to Makefile 2024-11-25 13:52:40 +01:00
README.md chore: add README 2024-11-25 14:56:21 +01:00

swarmc

A Particle Swarm Optimisation visualiser in C++. Run with swarm <iteration count> and enjoy the pretty colors. Pressing h will print out a help menu.

Requires an ANSI terminal (emulator) with support for 24-bit colours to render.

The implemented showcase works for R^2 -> R functions, but the underlying code can work for much more, including for spaces other than real spaces (see the type parameters in Agent et al).

Supports dynamically changing Particle parameters. Although not implemented (yet!), the code supports arbitrary swarm topologies