Monte Carlo Integration Library 1.0
High-performance Monte Carlo methods for numerical integration and optimization
Namespaces
GA.cpp File Reference

Genetic Algorithm implementation. More...

#include "GA.hpp"
#include "../rng/rng_factory.hpp"
#include <algorithm>
#include <cmath>
#include <cstdint>
Include dependency graph for GA.cpp:

Go to the source code of this file.

Namespaces

namespace  mc
 
namespace  mc::optim
 

Detailed Description

Genetic Algorithm implementation.

Implements tournament selection, uniform crossover, Gaussian mutation, and elitism. Fitness evaluation may be parallelized with OpenMP. Global-best updates are performed serially (outside parallel regions) to avoid races and ensure deterministic tie-breaking.

Definition in file GA.cpp.