Integer encoded mutations

Integer encoded mutations#

namespace integer#

Predefined mutation operators for the integer encoded genetic algorithm.

class Uniform#

#include <mutation/integer.hpp>
class Uniform : public gapp::mutation::Mutation<IntegerGene>#

Uniform mutation operator for the integer encoded genetic algorithm. Each gene of the chromosome is changed, with the specified mutation probability, to another value selected from a uniform distribution over all other values.

Public Functions

inline explicit constexpr Mutation(Probability pm) noexcept#

Create a mutation operator.

Parameters:

pm – The mutation probability. Must be in the closed interval [0.0, 1.0].