Mutators – mutation methods module

In this module we have the genetic operators of mutation for each chromosome representation.

Mutators.G1DBinaryStringMutatorFlip(genome, **args)
The classical flip mutator for binary strings
Mutators.G1DBinaryStringMutatorSwap(genome, **args)
The 1D Binary String Swap Mutator
Mutators.G1DListMutatorAllele(genome, **args)

The mutator of G1DList, Allele Mutator

To use this mutator, you must specify the allele genome parameter with the GAllele.GAlleles instance.

Mutators.G1DListMutatorIntegerBinary(genome, **args)

The mutator of G1DList, the binary mutator

This mutator will random change the 0 and 1 elements of the 1D List.

Mutators.G1DListMutatorIntegerGaussian(genome, **args)

A gaussian mutator for G1DList of Integers

Accepts the rangemin and rangemax genome parameters, both optional. Also accepts the parameter gauss_mu and the gauss_sigma which respectively represents the mean and the std. dev. of the random distribution.

Mutators.G1DListMutatorIntegerRange(genome, **args)

Simple integer range mutator for G1DList

Accepts the rangemin and rangemax genome parameters, both optional.

Mutators.G1DListMutatorRealGaussian(genome, **args)

The mutator of G1DList, Gaussian Mutator

Accepts the rangemin and rangemax genome parameters, both optional. Also accepts the parameter gauss_mu and the gauss_sigma which respectively represents the mean and the std. dev. of the random distribution.

Mutators.G1DListMutatorRealRange(genome, **args)

Simple real range mutator for G1DList

Accepts the rangemin and rangemax genome parameters, both optional.

Mutators.G1DListMutatorSwap(genome, **args)
The mutator of G1DList, Swap Mutator
Mutators.G2DListMutatorAllele(genome, **args)

The mutator of G2DList, Allele Mutator

To use this mutator, you must specify the allele genome parameter with the GAllele.GAlleles instance.

Warning

the GAllele.GAlleles instance must have the homogeneous flag enabled

Mutators.G2DListMutatorIntegerGaussian(genome, **args)

A gaussian mutator for G2DList of Integers

Accepts the rangemin and rangemax genome parameters, both optional. Also accepts the parameter gauss_mu and the gauss_sigma which respectively represents the mean and the std. dev. of the random distribution.

Mutators.G2DListMutatorRealGaussian(genome, **args)

A gaussian mutator for G2DList of Real

Accepts the rangemin and rangemax genome parameters, both optional. Also accepts the parameter gauss_mu and the gauss_sigma which respectively represents the mean and the std. dev. of the random distribution.

Mutators.G2DListMutatorSwap(genome, **args)
The mutator of G1DList, Swap Mutator

Recent Blog Posts

Previous topic

GPopulation – the population module

Next topic

Crossovers – crossover methdos module

This Page