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.GAllelesinstance.
-
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.G1DListMutatorSIM(genome, **args)¶ The mutator of G1DList, Simple Inversion Mutation
Note
this mutator is Data Type Independent
-
Mutators.G1DListMutatorSwap(genome, **args)¶ The mutator of G1DList, Swap Mutator
Note
this mutator is Data Type Independent
-
Mutators.G2DBinaryStringMutatorFlip(genome, **args)¶ A flip mutator for G2DBinaryString
New in version 0.6: The G2DBinaryStringMutatorFlip function
-
Mutators.G2DBinaryStringMutatorSwap(genome, **args)¶ The mutator of G2DBinaryString, Swap Mutator
New in version 0.6: The G2DBinaryStringMutatorSwap function
-
Mutators.G2DListMutatorAllele(genome, **args)¶ The mutator of G2DList, Allele Mutator
To use this mutator, you must specify the allele genome parameter with the
GAllele.GAllelesinstance.Warning
the
GAllele.GAllelesinstance 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.G2DListMutatorIntegerRange(genome, **args)¶ Simple integer range mutator for G2DList
Accepts the rangemin and rangemax genome parameters, both optional.
-
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
Note
this mutator is Data Type Independent
-
Mutators.GTreeGPMutatorOperation(genome, **args)¶ The mutator of GTreeGP, Operation Mutator
New in version 0.6: The GTreeGPMutatorOperation function
-
Mutators.GTreeGPMutatorSubtree(genome, **args)¶ The mutator of GTreeGP, Subtree Mutator
This mutator will recreate random subtree of the tree using the grow algorithm.
New in version 0.6: The GTreeGPMutatorSubtree function
-
Mutators.GTreeMutatorIntegerGaussian(genome, **args)¶ A gaussian mutator for GTree 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.GTreeMutatorIntegerRange(genome, **args)¶ The mutator of GTree, Integer Range Mutator
Accepts the rangemin and rangemax genome parameters, both optional.
New in version 0.6: The GTreeMutatorIntegerRange function
-
Mutators.GTreeMutatorRealGaussian(genome, **args)¶ A gaussian mutator for GTree of Real numbers
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.GTreeMutatorRealRange(genome, **args)¶ The mutator of GTree, Real Range Mutator
Accepts the rangemin and rangemax genome parameters, both optional.
New in version 0.6: The GTreeMutatorRealRange function
-
Mutators.GTreeMutatorSwap(genome, **args)¶ The mutator of GTree, Swap Mutator
New in version 0.6: The GTreeMutatorSwap function