tinyso: a minimalistic header-only C++ library for stochastic optimization algorithms, such as a genetic algorithm and particle swarm optimization (experimental)
tinyso is a small and efficient library written in modern C++ to provide functionality for stochastic optimization.
tinyso is available as single-file, header-only library. Insert tinyso.hpp into your project, #include "tinyso.hpp", and compile your project with a modern C++ compiler (C++20 or newer).
example.mp4
- Written in highly portable and high quality C++20
- Available as header-only, single-file distribution. Insert tinyso.hpp into your project,
#include "tinyso.hpp", and compile your project with a modern C++ compiler (C++20 or newer) - Genetic algorithm with creep mutation and tournament selection. Each individual is a list of doubles.
- Particle swarm optimization with crazy operator.
tinyso requires no dependencies! All you need is a C++20-compliant compiler as the project ships the following dependencies as part of the source distribution:
tinypso requires:
tinyso is provided as header-only, single-file library as well. Insert tinyso.hpp into your project, #include "tinyso.hpp", and compile your project with a modern C++ compiler (C++20 or newer)